]> git.localhorst.tv Git - blank.git/blobdiff - src/hud.hpp
allow face/turn selection of placed blocks
[blank.git] / src / hud.hpp
index 47fcdb0392fa404c3b47a8e5896d7f56b6c68be0..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,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;