X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=9534da7ec1d6f3a0677dda703e2dfea4bb19d63d;hb=982b69ce8c393ae18beed5239191b8bc2ee1d5d1;hp=4e381a2a2fa6d7e388ab3884ad7dc33f0227eaf5;hpb=d18be10ef3f0a7b61c6f5c4c4096ca2b776c75b3;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index 4e381a2..9534da7 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -5,9 +5,11 @@ #include #include "camera.hpp" +#include "controller.hpp" #include "init.hpp" #include "model.hpp" #include "shader.hpp" +#include "world.hpp" namespace blank { @@ -16,7 +18,6 @@ class Application { public: Application(); - ~Application(); Application(const Application &) = delete; Application &operator =(const Application &) = delete; @@ -25,6 +26,7 @@ public: void Loop(int dt); void HandleEvents(); + void Update(int dt); void Render(); private: @@ -34,16 +36,27 @@ private: Window window; GLContext ctx; InitGLEW init_glew; - Program program; + DirectionalLighting program; + + float move_velocity; + float pitch_sensitivity; + float yaw_sensitivity; Camera cam; - Model model; + World world; + OutlineModel outline; - GLuint vtx_buf; - GLuint mvp_handle; + bool outline_visible; + glm::mat4 outline_transform; bool running; + bool front, back, left, right, up, down; + bool place, remove, pick; + + int remove_id; + int place_id; + }; }