GCP Assignment 1
LoadingScreen.h
Go to the documentation of this file.
1 //DISCLAMER - This is a modified version of code from one of my other assignments.
2 
3 #pragma once
4 
5 #include <SDL.h>
6 #include <iostream>
7 #include <unordered_map>
8 #include "Shader.h"
9 #include "UIObject.h"
10 #include "UI.h"
11 
15 class LoadingScreen : public UI
16 {
17 public:
24  LoadingScreen(std::string vertexShaderFileName, std::string fragmentShaderFileName,
25  std::unordered_map<std::string, Shader*> &shaders);
26 
31  LoadingScreen(std::unordered_map<std::string, Shader*> &shaders);
32 
37 
42  void update(float dt);
43 
47  void draw();
48 
49 private:
54 };
~LoadingScreen()
Destructs the LoadingScreen object.
Definition: LoadingScreen.cpp:56
UIObject * loadingImage
The loading image.
Definition: LoadingScreen.h:53
LoadingScreen(std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader *> &shaders)
Constructs the LoadingScreen object.
Definition: LoadingScreen.cpp:5
UIObject * loadingText
The loading text.
Definition: LoadingScreen.h:51
A class for the 2D user interfaces.
Definition: UI.h:16
void draw()
A function to draw to the screen.
Definition: LoadingScreen.cpp:67
A class for the UI Objects.
Definition: UIObject.h:13
void update(float dt)
A function to update the LoadingScreen.
Definition: LoadingScreen.cpp:63
A class for the 2D LoadingScreen that inherits UI.
Definition: LoadingScreen.h:15