SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
SUNENGINE Class Reference

Main engine class for the SUNENGINE application. More...

#include <SUNENGINE.h>

Inheritance diagram for SUNENGINE:
Inheritance graph

Static Public Member Functions

static int GetWindowWidth ()
 Retrieves the width of the window.
 
static int GetWindowHeight ()
 Retrieves the height of the window.
 

Private Member Functions

 SUNENGINE (const SUNENGINE &)=delete
 
SUNENGINEoperator= (const SUNENGINE &)=delete
 
virtual void Initialize ()
 Initializes the engine.
 
virtual void LoadContent ()
 Loads the content for the engine.
 
virtual void Update ()
 Updates the engine.
 
virtual void Draw ()
 Draws the content for the engine.
 
virtual void UnLoadContent ()
 Unloads the content for the engine.
 
void LoadResources ()
 Method to be overloaded by users to load resources.
 
void SUNENGINEInitialize ()
 Method to be overloaded by users to initialize the engine. Happens after LoadResources.
 
void SUNENGINEEnd ()
 Method to be overloaded by users to end the engine. Happens first in UnLoadContent.
 

Static Private Member Functions

static SUNENGINEInstance ()
 
static float GetTime ()
 Retrieves the current time in seconds.
 
static void RunSUNENGINE ()
 Runs the SUNENGINE application.
 

Static Private Attributes

static SUNENGINEptrInstance = nullptr
 

Friends

class SUNENGINEAttorney
 

Detailed Description

Main engine class for the SUNENGINE application.

The SUNENGINE class is responsible for initializing, loading content, updating, drawing, and unloading content for the application. It follows the Singleton design pattern and inherits from the Engine class.

Member Function Documentation

◆ GetTime()

static float SUNENGINE::GetTime ( )
inlinestaticprivate

Retrieves the current time in seconds.

Returns
The current time in seconds.
Here is the caller graph for this function:

◆ GetWindowHeight()

static int SUNENGINE::GetWindowHeight ( )
inlinestatic

Retrieves the height of the window.

Returns
The height of the window.
Here is the caller graph for this function:

◆ GetWindowWidth()

static int SUNENGINE::GetWindowWidth ( )
inlinestatic

Retrieves the width of the window.

Returns
The width of the window.

The documentation for this class was generated from the following files: