A class for the 2D MainMenuUI that inherits UI. More...
#include <MainMenuUI.h>
Public Member Functions | |
MainMenuUI (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders) | |
MainMenuUI (std::unordered_map< std::string, Shader * > &shaders) | |
~MainMenuUI () | |
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 * | title |
UIObject * | play |
UIObject * | playText |
UIObject * | credits |
UIObject * | creditsText |
UIObject * | quit |
UIObject * | quitText |
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 MainMenuUI that inherits UI.
MainMenuUI::MainMenuUI | ( | std::string | vertexShaderFileName, |
std::string | fragmentShaderFileName, | ||
std::unordered_map< std::string, Shader * > & | shaders | ||
) |
Constructs the MainMenuUI 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 |
MainMenuUI::MainMenuUI | ( | std::unordered_map< std::string, Shader * > & | shaders | ) |
Constructs the MainMenuUI object.
shaders | A reference to the loaded Shader files |
MainMenuUI::~MainMenuUI | ( | ) |
Destructs the MainMenuUI object.
|
virtual |
A function to draw to the screen.
Implements UI.
|
virtual |
|
private |
The Play Button
|
private |
The Play Text
|
private |
The Quit Button
|
private |
The Quit Text
|
private |
The Title Image