X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=e5cddcedadb7a722de3cf1c075cc9ce31f6408be;hb=ac8765b510707d77cac9620778f40ddf3a4ad2a2;hp=9ec5f1f9b7de81c710aa74c9ce60247a995f86ca;hpb=b314df303ffedbd6d2e81872908d12fc9712801a;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index 9ec5f1f..e5cddce 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -4,8 +4,11 @@ #include #include +#include "camera.hpp" +#include "controller.hpp" #include "init.hpp" #include "shader.hpp" +#include "world.hpp" namespace blank { @@ -23,22 +26,43 @@ 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; - GLuint vtx_buf; - glm::mat4 mvp; + float move_velocity; + float pitch_sensitivity; + float yaw_sensitivity; + + BlockTypeRegistry blockType; + + Camera cam; + Chunk chunk; + + 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; + }; }