Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
HelpUI.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <iostream>
5 #include <unordered_map>
6 #include "Shader.h"
7 #include "UIObject.h"
8 #include "UI.h"
9 
14 class HelpUI : public UI
15 {
16 private:
19 
20 public:
27  HelpUI(std::string vertexShaderFileName, std::string fragmentShaderFileName,
28  std::unordered_map<std::string, Shader*> &shaders);
29 
34  HelpUI(std::unordered_map<std::string, Shader*> &shaders);
35 
39  ~HelpUI();
40 
45  void update(float dt);
46 
50  void draw();
51 };
A class for the 2D user interfaces.
Definition: UI.h:15
HelpUI(std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders)
Definition: HelpUI.cpp:6
GLsizei GLsizei GLuint * shaders
Definition: glew.h:1826
A class for the UI Objects.
Definition: UIObject.h:12
A class for the 2D HelpUI that inherits UI.
Definition: HelpUI.h:14
~HelpUI()
Definition: HelpUI.cpp:39
void update(float dt)
Definition: HelpUI.cpp:48
UIObject * help
Definition: HelpUI.h:18
GLsizei const GLchar *const * string
Definition: glew.h:1843
void draw()
Definition: HelpUI.cpp:55