X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fhud.hpp;h=4bfd5fb9ae5903a0861287b5791b90b1c7eb9911;hb=88620c3c816c47b32a90758f40efe5d02c50bbfa;hp=47fcdb0392fa404c3b47a8e5896d7f56b6c68be0;hpb=41e0223ec090142bf03066f4f5fc1f5005095072;p=blank.git diff --git a/src/hud.hpp b/src/hud.hpp index 47fcdb0..4bfd5fb 100644 --- a/src/hud.hpp +++ b/src/hud.hpp @@ -2,7 +2,6 @@ #define BLANK_HUD_H_ #include "model.hpp" -#include "shader.hpp" #include "world.hpp" #include @@ -10,10 +9,13 @@ namespace blank { +class BlockTypeRegistry; +class DirectionalLighting; + class HUD { public: - HUD(); + explicit HUD(const BlockTypeRegistry &); HUD(const HUD &) = delete; HUD &operator =(const HUD &) = delete; @@ -21,12 +23,15 @@ public: void Viewport(float width, float height); void Viewport(float x, float y, float width, float height); - void Display(const BlockType &); + void Display(const Block &); void Render(DirectionalLighting &); private: + const BlockTypeRegistry &types; + Model block; + Model::Buffer block_buf; glm::mat4 block_transform; bool block_visible;