X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FHUD.hpp;h=4b60127e685d7eb45462a9b3453b4c43a3251a44;hb=5d2da8a07411ad6417d6ed8d1be997189cf5ce89;hp=245d886e795ffaccf35b658e7fde710457d46d9d;hpb=55dbd6b35a39888f245e247d2e140f141f918178;p=blank.git diff --git a/src/ui/HUD.hpp b/src/ui/HUD.hpp index 245d886..4b60127 100644 --- a/src/ui/HUD.hpp +++ b/src/ui/HUD.hpp @@ -11,11 +11,10 @@ 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; @@ -48,11 +44,6 @@ private: bool block_visible; OutlineModel crosshair; - glm::mat4 crosshair_transform; - - float near, far; - glm::mat4 projection; - glm::mat4 view; };