X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=e5cddcedadb7a722de3cf1c075cc9ce31f6408be;hb=ac8765b510707d77cac9620778f40ddf3a4ad2a2;hp=4e381a2a2fa6d7e388ab3884ad7dc33f0227eaf5;hpb=d18be10ef3f0a7b61c6f5c4c4096ca2b776c75b3;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index 4e381a2..e5cddce 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -5,9 +5,10 @@ #include #include "camera.hpp" +#include "controller.hpp" #include "init.hpp" -#include "model.hpp" #include "shader.hpp" +#include "world.hpp" namespace blank { @@ -25,6 +26,7 @@ public: void Loop(int dt); void HandleEvents(); + void Update(int dt); void Render(); private: @@ -36,14 +38,31 @@ private: InitGLEW init_glew; Program program; + float move_velocity; + float pitch_sensitivity; + float yaw_sensitivity; + + BlockTypeRegistry blockType; + Camera cam; - Model model; + Chunk chunk; - 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; + }; }