13class SUNENGINE :
public Engine
15 friend class SUNENGINEAttorney;
17 static SUNENGINE* ptrInstance;
19 SUNENGINE() =
default;
20 SUNENGINE(
const SUNENGINE&) =
delete;
21 SUNENGINE& operator=(
const SUNENGINE&) =
delete;
22 ~SUNENGINE() =
default;
24 static SUNENGINE& Instance()
26 if (ptrInstance ==
nullptr)
27 ptrInstance =
new SUNENGINE();
61 static float GetTime() {
return Instance().GetTimeInSeconds(); }
virtual void Draw()
Draws the content for the engine.
Definition SUNENGINE.cpp:66
static int GetWindowWidth()
Retrieves the width of the window.
Definition SUNENGINE.h:89
void SUNENGINEInitialize()
Method to be overloaded by users to initialize the engine. Happens after LoadResources.
static float GetTime()
Retrieves the current time in seconds.
Definition SUNENGINE.h:61
virtual void LoadContent()
Loads the content for the engine.
Definition SUNENGINE.cpp:41
virtual void Initialize()
Initializes the engine.
Definition SUNENGINE.cpp:31
void SUNENGINEEnd()
Method to be overloaded by users to end the engine. Happens first in UnLoadContent.
virtual void Update()
Updates the engine.
Definition SUNENGINE.cpp:53
static int GetWindowHeight()
Retrieves the height of the window.
Definition SUNENGINE.h:96
virtual void UnLoadContent()
Unloads the content for the engine.
Definition SUNENGINE.cpp:78
void LoadResources()
Method to be overloaded by users to load resources.
static void RunSUNENGINE()
Runs the SUNENGINE application.
Definition SUNENGINE.cpp:18