|
GCP Assignment 1
|
The main state of the program. More...
#include <MainState.h>


Public Member Functions | |
| MainState (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight) | |
| Constructs a MainState. More... | |
| ~MainState () | |
| Destructs a MainState object. More... | |
| bool | input () |
| Handles the MainState input. More... | |
| void | update (float dt) |
| A function to update the MainState. More... | |
| void | draw () |
| A function to draw to the screen. More... | |
Public Member Functions inherited from State | |
| State (StateManager *stateManager, SDL_Window *window, int screenWidth, int screenHeight) | |
| Constructs a State object. More... | |
| virtual | ~State () |
| A virtual destructor for the State object. More... | |
| SDL_Window * | getWindow () |
| Gets the window. More... | |
Private Member Functions | |
| void | loadingScreen () |
| Draws a LoadingScreen. More... | |
| void | init10MatQuats () |
| Initialise 10 sets of matrixs and quats. More... | |
| void | init100MatQuats () |
| Initialise 100 sets of matrixs and quats. More... | |
| void | init1000MatQuats () |
| Initialise 1000 sets of matrixs and quats. More... | |
| void | init10000MatQuats () |
| Initialise 10000 sets of matrixs and quats. More... | |
| void | performanceTest () |
| Runs the performance test. More... | |
| void | memoryTest () |
| Runs the memory test. More... | |
| void | xAxisMatRotationTest () |
| Runs the matrix performance test of the X axis. More... | |
| void | yAxisMatRotationTest () |
| Runs the matrix performance test of the Y axis. More... | |
| void | zAxisMatRotationTest () |
| Runs the matrix performance test of the Z axis. More... | |
| void | xAxisQuatRotationTest () |
| Runs the quat performance test of the X axis. More... | |
| void | yAxisQuatRotationTest () |
| Runs the quat performance test of the Y axis. More... | |
| void | zAxisQuatRotationTest () |
| Runs the quat performance test of the Z axis. More... | |
Private Attributes | |
| std::unordered_map< std::string, Object * > | objects |
| std::unordered_map< std::string, Shader * > | shaders |
| MainStateUI * | userInterface |
| The MainStateUI. More... | |
| Sam * | sam |
| The 3D model. More... | |
| Camera * | camera |
| The Camera for the program. More... | |
| std::vector< Maths::Mat4 > | matrix |
| The array of matrix's to use. More... | |
| std::vector< Maths::Quaternion > | quats |
| The array of quaternion's to use. More... | |
| Core::PerformanceTest * | tester |
| The performance tester. More... | |
Additional Inherited Members | |
Protected Attributes inherited from State | |
| StateManager * | stateManager |
| A pointer to the state manager. More... | |
| SDL_Window * | window |
| The window to display to. More... | |
| int | screenWidth |
| The width of the screen. More... | |
| int | screenHeight |
| The height of the screen. More... | |
The main state of the program.
| MainState::MainState | ( | StateManager * | stateManager, |
| SDL_Window * | window, | ||
| int | screenWidth, | ||
| int | screenHeight | ||
| ) |
Constructs a MainState.
| stateManager | A pointer to the StateManager. |
| window | A pointer to the window. |
| screenWidth | The screen width. |
| screenHeight | The screen height. |

| MainState::~MainState | ( | ) |
Destructs a MainState object.
|
virtual |
|
private |
Initialise 10000 sets of matrixs and quats.


|
private |
Initialise 1000 sets of matrixs and quats.


|
private |
Initialise 100 sets of matrixs and quats.


|
private |
Initialise 10 sets of matrixs and quats.


|
virtual |
|
private |
Draws a LoadingScreen.


|
private |
Runs the memory test.


|
private |
Runs the performance test.


|
virtual |
|
private |
Runs the matrix performance test of the X axis.


|
private |
Runs the quat performance test of the X axis.


|
private |
Runs the matrix performance test of the Y axis.


|
private |
Runs the quat performance test of the Y axis.


|
private |
Runs the matrix performance test of the Z axis.


|
private |
Runs the quat performance test of the Z axis.


|
private |
The array of matrix's to use.
|
private |
The loaded Object files (left over from PGG, not really needed as only have one object and shader but is a lot of work to remove)
|
private |
The array of quaternion's to use.
|
private |
The 3D model.
|
private |
The loaded Shader files (left over from PGG, not really needed as only have one object and shader but is a lot of work to remove)
|
private |
The performance tester.
|
private |
The MainStateUI.
1.8.13