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

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

#include <CreditsUI.h>

Inheritance diagram for CreditsUI:
Inheritance graph
Collaboration diagram for CreditsUI:
Collaboration graph

Public Member Functions

 CreditsUI (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders)
 
 CreditsUI (std::unordered_map< std::string, Shader * > &shaders)
 
 ~CreditsUI ()
 
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

UIObjectcredits
 

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

Author
Jamie Slowgrove

Constructor & Destructor Documentation

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

Constructs the CreditsUI object.

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

Constructs the CreditsUI object.

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

Destructs the CreditsUI object.

Member Function Documentation

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

A function to update the CreditsUI.

Parameters
dtThe delta time.

Implements UI.

Member Data Documentation

UIObject* CreditsUI::credits
private

The credits image


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