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

static void IonEngine::EnableDebugTitle ( bool  enable)
inlinestatic

Function for enabling debug output in the window title.

Parameters
enablebool to enable
static int IonEngine::GetWindowHeight ( )
inlinestatic

Function for getting the window height.

Returns
int height of window
static int IonEngine::GetWindowWidth ( )
inlinestatic

Function for getting the window width.

Returns
int width of window
static void IonEngine::SetBackgroundColor ( const Vect &  Col)
static

Function for setting the Background color of the window.

Parameters
ColColor Vect ref for background color
static void IonEngine::SetBackgroundColor ( const float  fl_Red,
const float  fl_Green,
const float  fl_Blue,
const float  fl_Alpha 
)
inlinestatic

Function for setting the Background color of the window.

Parameters
fl_RedColor float for red value
fl_GreenColor float for green value
fl_BlueColor float for blue value
fl_AlphaColor float for alpha value
static void IonEngine::SetWidthHeight ( const int  Window_Width,
const int  Window_Height 
)
inlinestatic

Function for setting the window width and height.

Parameters
Window_Widthint for window width
Window_Heightint for window height
static void IonEngine::SetWindowName ( const char *  Window_Name)
inlinestatic

Function for setting the window name.

Parameters
Window_Namechar string for new window name