GCP Assignment 1
Public Member Functions | Private Attributes | List of all members
LoadingScreen Class Reference

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

#include <LoadingScreen.h>

Inheritance diagram for LoadingScreen:
Inheritance graph
Collaboration diagram for LoadingScreen:
Collaboration graph

Public Member Functions

 LoadingScreen (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader *> &shaders)
 Constructs the LoadingScreen object. More...
 
 LoadingScreen (std::unordered_map< std::string, Shader *> &shaders)
 Constructs the LoadingScreen object. More...
 
 ~LoadingScreen ()
 Destructs the LoadingScreen object. More...
 
void update (float dt)
 A function to update the LoadingScreen. More...
 
void draw ()
 A function to draw to the screen. More...
 
- Public Member Functions inherited from UI
 UI (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader *> &shaders)
 Constructs the UI object. More...
 
 UI (std::unordered_map< std::string, Shader *> &shaders)
 Constructs the UI object. More...
 
 ~UI ()
 Destructs the UI object. More...
 

Private Attributes

UIObjectloadingText
 The loading text. More...
 
UIObjectloadingImage
 The loading image. More...
 

Additional Inherited Members

- Protected Member Functions inherited from UI
void initialiseShaders (std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader *> &shaders)
 Initialise the shaders. More...
 
- Protected Attributes inherited from UI
Shadershader
 The shader for the UI. More...
 

Detailed Description

A class for the 2D LoadingScreen that inherits UI.

Constructor & Destructor Documentation

◆ LoadingScreen() [1/2]

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

Constructs the LoadingScreen object.

Parameters
vertexShaderFileNameThe name of the vertex shader file.
fragmentShaderFileNameThe name of the fragment shader file.
shadersA reference to the loaded Shader files

◆ LoadingScreen() [2/2]

LoadingScreen::LoadingScreen ( std::unordered_map< std::string, Shader *> &  shaders)

Constructs the LoadingScreen object.

Parameters
shadersA reference to the loaded Shader files

◆ ~LoadingScreen()

LoadingScreen::~LoadingScreen ( )

Destructs the LoadingScreen object.

Member Function Documentation

◆ draw()

void LoadingScreen::draw ( )
virtual

A function to draw to the screen.

Implements UI.

Here is the call graph for this function:

◆ update()

void LoadingScreen::update ( float  dt)
virtual

A function to update the LoadingScreen.

Parameters
dtThe delta time.

Implements UI.

Member Data Documentation

◆ loadingImage

UIObject* LoadingScreen::loadingImage
private

The loading image.

◆ loadingText

UIObject* LoadingScreen::loadingText
private

The loading text.


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