X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fhud.hpp;h=984a24dc0c426e6de05437af57a4efd9af9c5ad6;hb=83ed3de28841d1eecfca39ff540e804cf6809b32;hp=47fcdb0392fa404c3b47a8e5896d7f56b6c68be0;hpb=41e0223ec090142bf03066f4f5fc1f5005095072;p=blank.git diff --git a/src/hud.hpp b/src/hud.hpp index 47fcdb0..984a24d 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,23 +9,29 @@ namespace blank { +class BlockTypeRegistry; +class DirectionalLighting; + class HUD { public: - HUD(); + explicit HUD(const BlockTypeRegistry &); HUD(const HUD &) = delete; HUD &operator =(const HUD &) = delete; - void Viewport(float width, float height); - void Viewport(float x, float y, float width, float height); + void Viewport(float width, float height) noexcept; + void Viewport(float x, float y, float width, float height) noexcept; - void Display(const BlockType &); + void Display(const Block &); - void Render(DirectionalLighting &); + void Render(DirectionalLighting &) noexcept; private: + const BlockTypeRegistry &types; + Model block; + Model::Buffer block_buf; glm::mat4 block_transform; bool block_visible;