A class for the 2D LoadingScreen that inherits UI. More...
#include <LoadingScreen.h>
Public Member Functions | |
LoadingScreen (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders) | |
LoadingScreen (std::unordered_map< std::string, Shader * > &shaders) | |
~LoadingScreen () | |
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 * | loadingText |
UIObject * | loadingImage |
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 |
A class for the 2D LoadingScreen that inherits UI.
LoadingScreen::LoadingScreen | ( | std::string | vertexShaderFileName, |
std::string | fragmentShaderFileName, | ||
std::unordered_map< std::string, Shader * > & | shaders | ||
) |
Constructs the LoadingScreen object.
vertexShaderFileName | The name of the vertex shader file. |
fragmentShaderFileName | The name of the fragment shader file. |
shaders | A reference to the loaded Shader files |
LoadingScreen::LoadingScreen | ( | std::unordered_map< std::string, Shader * > & | shaders | ) |
Constructs the LoadingScreen object.
shaders | A reference to the loaded Shader files |
LoadingScreen::~LoadingScreen | ( | ) |
Destructs the LoadingScreen object.
|
virtual |
A function to draw to the screen.
Implements UI.
|
virtual |
|
private |
The loading image
|
private |
The loading text