]> git.localhorst.tv Git - blank.git/blob - src/app.hpp
moved some stuff around
[blank.git] / src / app.hpp
1 #ifndef BLANK_APP_HPP_
2 #define BLANK_APP_HPP_
3
4 #include <glm/glm.hpp>
5 #include <glm/gtc/matrix_transform.hpp>
6
7 #include "init.hpp"
8 #include "shader.hpp"
9
10
11 namespace blank {
12
13 class Application {
14
15 public:
16         Application();
17         ~Application();
18
19         Application(const Application &) = delete;
20         Application &operator =(const Application &) = delete;
21
22         void Run();
23         void Loop(int dt);
24
25         void HandleEvents();
26         void Render();
27
28 private:
29         InitSDL init_sdl;
30         InitGL init_gl;
31         Window window;
32         GLContext ctx;
33         InitGLEW init_glew;
34         Program program;
35
36         GLuint vtx_buf;
37         glm::mat4 mvp;
38         GLuint mvp_handle;
39
40         bool running;
41
42 };
43
44 }
45
46 #endif