X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=f3ee1410f5ee405a29e2a01b25fb2ab091fa4969;hb=3baab6cca7423d55ea08288d96570b02380b1fe9;hp=4e381a2a2fa6d7e388ab3884ad7dc33f0227eaf5;hpb=d18be10ef3f0a7b61c6f5c4c4096ca2b776c75b3;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index 4e381a2..f3ee141 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -5,6 +5,7 @@ #include #include "camera.hpp" +#include "controller.hpp" #include "init.hpp" #include "model.hpp" #include "shader.hpp" @@ -25,6 +26,7 @@ public: void Loop(int dt); void HandleEvents(); + void Update(int dt); void Render(); private: @@ -36,14 +38,30 @@ private: InitGLEW init_glew; Program program; + float move_velocity; + float pitch_sensitivity; + float yaw_sensitivity; + Camera cam; Model model; + FPSController modelCtrl; + + glm::vec3 light_position; + glm::vec3 light_color; + float light_power; - GLuint vtx_buf; + GLuint m_handle; + GLuint v_handle; + GLuint mv_handle; GLuint mvp_handle; + GLuint light_position_handle; + GLuint light_color_handle; + GLuint light_power_handle; bool running; + bool front, back, left, right, up, down; + }; }