]> git.localhorst.tv Git - blank.git/blobdiff - src/app.hpp
lousy implementation of camera movement
[blank.git] / src / app.hpp
index 9ec5f1f9b7de81c710aa74c9ce60247a995f86ca..c5a5098578c306a951c79d0157af6b7ce15c648b 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"
 
 
@@ -23,22 +25,32 @@ public:
        void Loop(int dt);
 
        void HandleEvents();
+       void Update(int dt);
        void Render();
 
 private:
        InitSDL init_sdl;
+       InitIMG init_img;
        InitGL init_gl;
        Window window;
        GLContext ctx;
        InitGLEW init_glew;
        Program program;
 
+       float move_velocity;
+       float pitch_sensitivity;
+       float yaw_sensitivity;
+
+       Camera cam;
+       Model model;
+
        GLuint vtx_buf;
-       glm::mat4 mvp;
        GLuint mvp_handle;
 
        bool running;
 
+       bool front, back, left, right, up, down;
+
 };
 
 }