Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Private Attributes | List of all members
MainMenuUI Class Reference

A class for the 2D MainMenuUI that inherits UI. More...

#include <MainMenuUI.h>

Inheritance diagram for MainMenuUI:
Inheritance graph
Collaboration diagram for MainMenuUI:
Collaboration graph

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

UIObjecttitle
 
UIObjectplay
 
UIObjectplayText
 
UIObjectcredits
 
UIObjectcreditsText
 
UIObjectquit
 
UIObjectquitText
 

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
Shadershader
 

Detailed Description

A class for the 2D MainMenuUI that inherits UI.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

MainMenuUI::MainMenuUI ( std::string  vertexShaderFileName,
std::string  fragmentShaderFileName,
std::unordered_map< std::string, Shader * > &  shaders 
)

Constructs the MainMenuUI object.

Parameters
vertexShaderFileNameThe name of the vertex shader file.
fragmentShaderFileNameThe name of the fragment shader file.
shadersA reference to the loaded Shader files
MainMenuUI::MainMenuUI ( std::unordered_map< std::string, Shader * > &  shaders)

Constructs the MainMenuUI object.

Parameters
shadersA reference to the loaded Shader files
MainMenuUI::~MainMenuUI ( )

Destructs the MainMenuUI object.

Member Function Documentation

void MainMenuUI::draw ( )
virtual

A function to draw to the screen.

Implements UI.

Here is the call graph for this function:

Here is the caller graph for this function:

void MainMenuUI::update ( float  dt)
virtual

A function to update the MainMenuUI.

Parameters
dtThe delta time.

Implements UI.

Member Data Documentation

UIObject* MainMenuUI::credits
private

The Credits Button

UIObject* MainMenuUI::creditsText
private

The Credits Text

UIObject* MainMenuUI::play
private

The Play Button

UIObject* MainMenuUI::playText
private

The Play Text

UIObject* MainMenuUI::quit
private

The Quit Button

UIObject* MainMenuUI::quitText
private

The Quit Text

UIObject* MainMenuUI::title
private

The Title Image


The documentation for this class was generated from the following files: