]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/HUD.hpp
move font color from texture to uniform
[blank.git] / src / ui / HUD.hpp
index 245d886e795ffaccf35b658e7fde710457d46d9d..55f3afb806cb56d73a01f27d881a0adb8d76816a 100644 (file)
 
 namespace blank {
 
-class BlendedSprite;
 class Block;
 class BlockTypeRegistry;
-class DirectionalLighting;
 class Font;
+class Viewport;
 
 class HUD {
 
@@ -25,12 +24,9 @@ public:
        HUD(const HUD &) = delete;
        HUD &operator =(const HUD &) = delete;
 
-       void Viewport(float width, float height) noexcept;
-       void Viewport(float x, float y, float width, float height) noexcept;
-
        void Display(const Block &);
 
-       void Render(DirectionalLighting &, BlendedSprite &) noexcept;
+       void Render(Viewport &) noexcept;
 
 private:
        const BlockTypeRegistry &types;
@@ -43,16 +39,10 @@ private:
        Texture block_label;
        SpriteModel label_sprite;
        glm::mat4 label_transform;
-       SDL_Color label_color;
 
        bool block_visible;
 
        OutlineModel crosshair;
-       glm::mat4 crosshair_transform;
-
-       float near, far;
-       glm::mat4 projection;
-       glm::mat4 view;
 
 };