]> git.localhorst.tv Git - blank.git/blobdiff - src/app.hpp
mouse controlled camera pitch/yaw
[blank.git] / src / app.hpp
index 9ec5f1f9b7de81c710aa74c9ce60247a995f86ca..8bafb2368d4f685c7b60f629e5bcd39e6b883fca 100644 (file)
@@ -4,7 +4,9 @@
 #include <glm/glm.hpp>
 #include <glm/gtc/matrix_transform.hpp>
 
+#include "camera.hpp"
 #include "init.hpp"
+#include "model.hpp"
 #include "shader.hpp"
 
 
@@ -27,14 +29,20 @@ public:
 
 private:
        InitSDL init_sdl;
+       InitIMG init_img;
        InitGL init_gl;
        Window window;
        GLContext ctx;
        InitGLEW init_glew;
        Program program;
 
+       float pitch_sensitivity;
+       float yaw_sensitivity;
+
+       Camera cam;
+       Model model;
+
        GLuint vtx_buf;
-       glm::mat4 mvp;
        GLuint mvp_handle;
 
        bool running;