]> git.localhorst.tv Git - blank.git/blobdiff - src/hud.hpp
block place/remove timers
[blank.git] / src / hud.hpp
index a3dc02e880d2d0c4013e4eaf5234a6972cb1a2c3..984a24dc0c426e6de05437af57a4efd9af9c5ad6 100644 (file)
@@ -2,7 +2,6 @@
 #define BLANK_HUD_H_
 
 #include "model.hpp"
-#include "shader.hpp"
 #include "world.hpp"
 
 #include <glm/glm.hpp>
 
 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;