A class for the 2D GameUI that inherits UI. More...
#include <GameUI.h>


Public Member Functions | |
| GameUI (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders, float scoreValue, float heightValue) | |
| GameUI (std::unordered_map< std::string, Shader * > &shaders, float scoreValue, float heightValue) | |
| ~GameUI () | |
| void | update (float dt) |
| void | draw () |
| void | updateValues (float scoreValue, float heightValue) |
Public Member Functions inherited from UI | |
| UI (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders) | |
| UI (std::unordered_map< std::string, Shader * > &shaders) | |
| ~UI () | |
Private Attributes | |
| UIObject * | score |
| UIObject * | height |
| UIObject * | helpInfo |
| UIObject * | scoreText |
| UIObject * | heightText |
| float | scoreValue |
| float | heightValue |
Additional Inherited Members | |
Protected Member Functions inherited from UI | |
| void | initialiseShaders (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders) |
Protected Attributes inherited from UI | |
| Shader * | shader |
| GameUI::GameUI | ( | std::string | vertexShaderFileName, |
| std::string | fragmentShaderFileName, | ||
| std::unordered_map< std::string, Shader * > & | shaders, | ||
| float | scoreValue, | ||
| float | heightValue | ||
| ) |
| GameUI::GameUI | ( | std::unordered_map< std::string, Shader * > & | shaders, |
| float | scoreValue, | ||
| float | heightValue | ||
| ) |
| GameUI::~GameUI | ( | ) |
Destructs the GameUI object
|
virtual |
A function to draw to the screen.
Implements UI.


|
virtual |
| void GameUI::updateValues | ( | float | scoreValue, |
| float | heightValue | ||
| ) |
A function to update the score and height in the GameUI.
| scoreValue | The score. |
| heightValue | The height. |

|
private |
The height of the game
|
private |
The score of the game
1.8.8