IonEngine Class Reference
Main engine class. More...
#include <IonEngine.h>
Inherits Engine.
Detailed Description
Main engine class.
IonEngine is a singlton class for the main engine. This class provides a few methods for accessing and setting various parameters of the window and engine. The engine is simply started by calling the Run() function.
Static Public Member Functions | |
static void | Run () |
Function that starts the Engine. | |
static void | SetWindowName (const char *Window_Name) |
Function for setting the window name. More... | |
static void | SetWidthHeight (const int Window_Width, const int Window_Height) |
Function for setting the window width and height. More... | |
static void | SetBackgroundColor (const Vect &Col) |
Function for setting the Background color of the window. More... | |
static void | SetBackgroundColor (const float fl_Red, const float fl_Green, const float fl_Blue, const float fl_Alpha) |
Function for setting the Background color of the window. More... | |
static int | GetWindowWidth () |
Function for getting the window width. More... | |
static int | GetWindowHeight () |
Function for getting the window height. More... | |
static void | EnableDebugTitle (bool enable) |
Function for enabling debug output in the window title. More... | |
Private Member Functions | |
void | LoadResources () |
Public engine function for loading assets/resources. More... | |
void | InitializeEngine () |
Public engine function for initialization of the engine. More... | |
void | EngineEnd () |
Public engine function that is called when shitting down. More... | |
Member Function Documentation
|
inlinestatic |
Function for enabling debug output in the window title.
- Parameters
-
enable bool to enable
|
inlinestatic |
Function for getting the window height.
- Returns
- int height of window
|
inlinestatic |
Function for getting the window width.
- Returns
- int width of window
|
static |
Function for setting the Background color of the window.
- Parameters
-
Col Color Vect ref for background color
|
inlinestatic |
Function for setting the Background color of the window.
- Parameters
-
fl_Red Color float for red value fl_Green Color float for green value fl_Blue Color float for blue value fl_Alpha Color float for alpha value
|
inlinestatic |
Function for setting the window width and height.
- Parameters
-
Window_Width int for window width Window_Height int for window height
|
inlinestatic |
Function for setting the window name.
- Parameters
-
Window_Name char string for new window name