A UI for the MainState using my old PGG2 UI classes.
More...
#include <MainStateUI.h>
A UI for the MainState using my old PGG2 UI classes.
◆ MainStateUI()
MainStateUI::MainStateUI |
( |
std::unordered_map< std::string, Shader *> & |
shaders | ) |
|
◆ ~MainStateUI()
MainStateUI::~MainStateUI |
( |
| ) |
|
◆ draw()
void MainStateUI::draw |
( |
| ) |
|
|
virtual |
A function to draw to the screen.
Implements UI.
◆ drawLoading()
void MainStateUI::drawLoading |
( |
| ) |
|
|
inline |
A function to draw to the loading text to the screen.
◆ drawPerformance()
void MainStateUI::drawPerformance |
( |
| ) |
|
|
inline |
A function to draw to the performance text to the screen.
◆ getAxis()
char MainStateUI::getAxis |
( |
| ) |
|
|
inline |
A function to get the current axis.
- Returns
- The current axis.
◆ getHelp()
bool MainStateUI::getHelp |
( |
| ) |
|
|
inline |
A function to get the current help state.
- Returns
- The current help state.
◆ getMethod()
char MainStateUI::getMethod |
( |
| ) |
|
|
inline |
A function to get the current method.
- Returns
- The current method.
◆ getRotations()
int MainStateUI::getRotations |
( |
| ) |
|
|
inline |
A function to get the current number of rotations.
- Returns
- The current number of rotations.
◆ setHelp()
void MainStateUI::setHelp |
( |
bool |
state | ) |
|
|
inline |
A function to set the help state.
- Parameters
-
◆ update()
void MainStateUI::update |
( |
float |
dt | ) |
|
|
virtual |
◆ updateAxis()
void MainStateUI::updateAxis |
( |
char |
axis | ) |
|
A function to update the axis.
- Parameters
-
axis | The axis to switch to. |
◆ updateMemory()
void MainStateUI::updateMemory |
( |
int |
memory | ) |
|
A function to update the memory text.
- Parameters
-
memory | The memory to update the text to. |
◆ updateMethod()
void MainStateUI::updateMethod |
( |
char |
method | ) |
|
A function to update the method.
- Parameters
-
method | The method to switch to. |
◆ updateNumberOfRotations()
void MainStateUI::updateNumberOfRotations |
( |
int |
rotations | ) |
|
A function to update the number of rotations.
- Parameters
-
rotations | The number of rotations to switch to. |
◆ updateTime()
void MainStateUI::updateTime |
( |
float |
time | ) |
|
A function to update the time text.
- Parameters
-
time | The time to update the text to. |
◆ axis
◆ axisText
◆ background
◆ help
◆ helpState
bool MainStateUI::helpState |
|
private |
if the help should be displayed
◆ helpText
◆ loadingText
◆ matrixText
◆ memoryText
◆ method
◆ numberOfRotationsText
UIObject* MainStateUI::numberOfRotationsText |
|
private |
◆ performanceText
◆ quatText
◆ rotationMethodText
UIObject* MainStateUI::rotationMethodText |
|
private |
◆ rotations
int MainStateUI::rotations |
|
private |
◆ set10000Text
◆ set1000Text
◆ set100Text
◆ set10Text
◆ timeText
◆ xText
◆ yText
◆ zText
The documentation for this class was generated from the following files: