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

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

#include <EndGameUI.h>

Inheritance diagram for EndGameUI:
Inheritance graph
Collaboration diagram for EndGameUI:
Collaboration graph

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

UIObjectendGame
 
UIObjectscoreText
 

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 EndGameUI that inherits UI.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

EndGameUI::EndGameUI ( std::string  vertexShaderFileName,
std::string  fragmentShaderFileName,
std::unordered_map< std::string, Shader * > &  shaders,
float  score 
)

Constructs the EndGameUI object.

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

Constructs the EndGameUI object.

Parameters
shadersA reference to the loaded Shader files
scoreValueThe score.
EndGameUI::~EndGameUI ( )

Destructs the EndGameUI object.

Member Function Documentation

void EndGameUI::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 EndGameUI::update ( float  dt)
virtual

A function to update the EndGameUI.

Parameters
dtThe delta time.

Implements UI.

Member Data Documentation

UIObject* EndGameUI::endGame
private

The end game image

UIObject* EndGameUI::scoreText
private

A UIObject for the score text


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