]> git.localhorst.tv Git - blank.git/blobdiff - src/hud.hpp
allow face/turn selection of placed blocks
[blank.git] / src / hud.hpp
index a3dc02e880d2d0c4013e4eaf5234a6972cb1a2c3..4bfd5fb9ae5903a0861287b5791b90b1c7eb9911 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;
@@ -21,11 +23,13 @@ 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;