X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=f3ee1410f5ee405a29e2a01b25fb2ab091fa4969;hb=3baab6cca7423d55ea08288d96570b02380b1fe9;hp=8bafb2368d4f685c7b60f629e5bcd39e6b883fca;hpb=ea1ce7b0fb7709ae56977480821ac96a231a0686;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index 8bafb23..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,17 +38,30 @@ private: InitGLEW init_glew; Program program; + float move_velocity; float pitch_sensitivity; float yaw_sensitivity; Camera cam; Model model; + FPSController modelCtrl; - GLuint vtx_buf; + glm::vec3 light_position; + glm::vec3 light_color; + float light_power; + + 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; + }; }