]> git.localhorst.tv Git - blank.git/blobdiff - src/app.hpp
extracted projection and viewport to camera class
[blank.git] / src / app.hpp
index 9ec5f1f9b7de81c710aa74c9ce60247a995f86ca..5148a7a411a30669425b376ee9b73394802510c8 100644 (file)
@@ -4,6 +4,7 @@
 #include <glm/glm.hpp>
 #include <glm/gtc/matrix_transform.hpp>
 
+#include "camera.hpp"
 #include "init.hpp"
 #include "shader.hpp"
 
@@ -33,8 +34,9 @@ private:
        InitGLEW init_glew;
        Program program;
 
+       Camera cam;
+
        GLuint vtx_buf;
-       glm::mat4 mvp;
        GLuint mvp_handle;
 
        bool running;