X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp.hpp;h=9534da7ec1d6f3a0677dda703e2dfea4bb19d63d;hb=982b69ce8c393ae18beed5239191b8bc2ee1d5d1;hp=e5cddcedadb7a722de3cf1c075cc9ce31f6408be;hpb=ac8765b510707d77cac9620778f40ddf3a4ad2a2;p=blank.git diff --git a/src/app.hpp b/src/app.hpp index e5cddce..9534da7 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -7,6 +7,7 @@ #include "camera.hpp" #include "controller.hpp" #include "init.hpp" +#include "model.hpp" #include "shader.hpp" #include "world.hpp" @@ -17,7 +18,6 @@ class Application { public: Application(); - ~Application(); Application(const Application &) = delete; Application &operator =(const Application &) = delete; @@ -36,32 +36,26 @@ private: Window window; GLContext ctx; InitGLEW init_glew; - Program program; + DirectionalLighting program; 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; + World world; + OutlineModel outline; - 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 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; };