Main engine class for the SUNENGINE application. More...
#include <SUNENGINE.h>
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 | |
SUNENGINE & | operator= (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 SUNENGINE & | Instance () |
static float | GetTime () |
Retrieves the current time in seconds. | |
static void | RunSUNENGINE () |
Runs the SUNENGINE application. | |
Static Private Attributes | |
static SUNENGINE * | ptrInstance = nullptr |
Friends | |
class | SUNENGINEAttorney |
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.
|
inlinestaticprivate |
Retrieves the current time in seconds.
|
inlinestatic |
Retrieves the height of the window.
|
inlinestatic |
Retrieves the width of the window.