A class for the 2D EndGameUI that inherits UI. More...
#include <EndGameUI.h>
Public Member Functions | |
EndGameUI (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders, float score) | |
EndGameUI (std::unordered_map< std::string, Shader * > &shaders, float score) | |
~EndGameUI () | |
void | update (float dt) |
void | draw () |
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 * | endGame |
UIObject * | scoreText |
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 |
EndGameUI::EndGameUI | ( | std::string | vertexShaderFileName, |
std::string | fragmentShaderFileName, | ||
std::unordered_map< std::string, Shader * > & | shaders, | ||
float | score | ||
) |
EndGameUI::EndGameUI | ( | std::unordered_map< std::string, Shader * > & | shaders, |
float | score | ||
) |
EndGameUI::~EndGameUI | ( | ) |
Destructs the EndGameUI object.
|
virtual |
A function to draw to the screen.
Implements UI.
|
virtual |
|
private |
The end game image