7 #include <unordered_map>
28 std::unordered_map<std::string, Shader*> &
shaders);
38 std::unordered_map<std::string, Shader*> &
shaders);
44 UI(std::unordered_map<std::string, Shader*> &
shaders);
55 virtual void update(
float dt) = 0;
60 virtual void draw() = 0;
A class for the 2D user interfaces.
Definition: UI.h:15
GLsizei GLsizei GLuint * shaders
Definition: glew.h:1826
Creates a Shader for use with OpenGL. Creates a Shader from an text file, this can then be used with ...
Definition: Shader.h:13
void initialiseShaders(std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders)
Definition: UI.cpp:26
virtual void update(float dt)=0
UI(std::string vertexShaderFileName, std::string fragmentShaderFileName, std::unordered_map< std::string, Shader * > &shaders)
Definition: UI.cpp:6
Shader * shader
Definition: UI.h:19
GLsizei const GLchar *const * string
Definition: glew.h:1843
~UI()
Definition: UI.cpp:50