Jamie Slowgrove - PGG Assignment 2
 All Classes Namespaces Files Functions Variables Typedefs Macros
MainMenuUI.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 MainMenuUI : public UI
15 {
16 private:
31 
32 public:
39  MainMenuUI(std::string vertexShaderFileName, std::string fragmentShaderFileName,
40  std::unordered_map<std::string, Shader*> &shaders);
41 
46  MainMenuUI(std::unordered_map<std::string, Shader*> &shaders);
47 
51  ~MainMenuUI();
52 
57  void update(float dt);
58 
62  void draw();
63 };
UIObject * playText
Definition: MainMenuUI.h:22
void draw()
Definition: MainMenuUI.cpp:116
~MainMenuUI()
Definition: MainMenuUI.cpp:94
UIObject * title
Definition: MainMenuUI.h:18
A class for the 2D user interfaces.
Definition: UI.h:15
void update(float dt)
Definition: MainMenuUI.cpp:109
UIObject * credits
Definition: MainMenuUI.h:24
UIObject * quitText
Definition: MainMenuUI.h:30
UIObject * quit
Definition: MainMenuUI.h:28
GLsizei GLsizei GLuint * shaders
Definition: glew.h:1826
A class for the UI Objects.
Definition: UIObject.h:12
UIObject * creditsText
Definition: MainMenuUI.h:26
MainMenuUI(std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders)
Definition: MainMenuUI.cpp:6
UIObject * play
Definition: MainMenuUI.h:20
A class for the 2D MainMenuUI that inherits UI.
Definition: MainMenuUI.h:14
GLsizei const GLchar *const * string
Definition: glew.h:1843