]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/HUD.hpp
group entity updates in as few packets as possible
[blank.git] / src / ui / HUD.hpp
index 47e0fd453f635f7b048dab826d798f3a1c76cc77..1917b130c926772b5518806c1fc04af157447271 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef BLANK_UI_HUD_H_
 #define BLANK_UI_HUD_H_
 
-#include "../graphics/Text.hpp"
-#include "../model/Model.hpp"
+#include "FixedText.hpp"
+#include "../model/EntityModel.hpp"
 #include "../model/OutlineModel.hpp"
 
 #include <glm/glm.hpp>
@@ -23,6 +23,7 @@ public:
        HUD(const HUD &) = delete;
        HUD &operator =(const HUD &) = delete;
 
+       void DisplayNone();
        void Display(const Block &);
 
        void Render(Viewport &) noexcept;
@@ -31,11 +32,11 @@ private:
        const BlockTypeRegistry &types;
        const Font &font;
 
-       Model block;
-       Model::Buffer block_buf;
+       EntityModel block;
+       EntityModel::Buffer block_buf;
        glm::mat4 block_transform;
 
-       Text block_label;
+       FixedText block_label;
 
        bool block_visible;