|
Level H Engine
|
Contains details and functions for the application. More...
#include <Application.h>

Static Public Member Functions | |
| static void | init (std::string title, Vec2 windowPos, Vec2 windowRes, bool fullscreen, float frameRate) |
| A static function to initialise Application. More... | |
| static void | run (int argc, char *argv[]) |
| A static function that runs Application. More... | |
| static void | destroy () |
| A static function that destroys the Application. More... | |
| static std::vector< std::shared_ptr< GameObject > > & | getGameObjects () |
| A static function to get game objects. More... | |
| static std::shared_ptr< GameObject > & | getCamera () |
| A static function to get camera. More... | |
| static void | setBackgroundColour (Vec3 colour) |
| A static function to set the background colour. More... | |
| static void | setDT (float inDT) |
| A static function to set delta time. More... | |
| static float | getDT () |
| A static function to get the delta time. More... | |
| static void | drawLoadingScreen () |
| A static function to get set the background colour. More... | |
Static Public Attributes | |
| static std::shared_ptr< GameObject > | camera |
| A shared pointer for the camera. More... | |
Static Private Member Functions | |
| static bool | initSDL () |
| A static function to initialise SDL. More... | |
| static bool | initTTF () |
| A static function to initialise SDL TTF. More... | |
| static bool | initMixer () |
| A static function to initialise SDL Mixer. More... | |
| static bool | initGLEW () |
| A static function to initialise GLEW. More... | |
Static Private Attributes | |
| static SDL_Window * | window |
| A pointer for the window. More... | |
| static SDL_GLContext | glcontext |
| The SDL OpenGL context. More... | |
| static StateManager * | stateManager |
| A pointer to the state manager. More... | |
| static std::vector< std::shared_ptr< GameObject > > | gameObjects |
| A vector of the game objects. More... | |
| static Vec3 | backgroundColour |
| The background colour. More... | |
| static std::string | loadingSpriteID |
| The loading sprite. More... | |
| static float | dt |
| The delta time. More... | |
Contains details and functions for the application.
|
static |
A static function that destroys the Application.


|
static |
A static function to get set the background colour.
| colour | The colour to set it to. |


|
static |
A static function to get camera.

|
static |
A static function to get the delta time.

|
static |
A static function to get game objects.

|
static |
A static function to initialise Application.
| title | The title of the window. |
| windowPos | The position of the window. |
| windowRes | The resolution of the window. |
| fullscreen | If the window should be fullscreen. |
| frameRate | The frame rate of the window. |


|
staticprivate |
A static function to initialise GLEW.


|
staticprivate |
A static function to initialise SDL Mixer.


|
staticprivate |
A static function to initialise SDL.


|
staticprivate |
A static function to initialise SDL TTF.


|
static |
A static function that runs Application.
| argc | The command line argument count. |
| argv | The command line argument vector. |


|
static |
A static function to set the background colour.
| colour | The colour to set it to. |

|
static |
A static function to set delta time.
| inDT | The value to set it to. |

|
staticprivate |
The background colour.
|
static |
A shared pointer for the camera.
|
staticprivate |
The delta time.
|
staticprivate |
A vector of the game objects.
|
staticprivate |
The SDL OpenGL context.
|
staticprivate |
The loading sprite.
|
staticprivate |
A pointer to the state manager.
|
staticprivate |
A pointer for the window.
1.8.13