X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FInterface.hpp;h=88637c6adc368144b9825d411c03729b46cf9ba1;hb=55dbd6b35a39888f245e247d2e140f141f918178;hp=a08a0bf5c6a3add3518ea571333bce3e44d6c212;hpb=282d731ea8f10342efa82012028de7043b3dd639;p=blank.git diff --git a/src/ui/Interface.hpp b/src/ui/Interface.hpp index a08a0bf..88637c6 100644 --- a/src/ui/Interface.hpp +++ b/src/ui/Interface.hpp @@ -4,6 +4,7 @@ #include "HUD.hpp" #include "../app/FPSController.hpp" #include "../app/IntervalTimer.hpp" +#include "../graphics/Font.hpp" #include "../model/geometry.hpp" #include "../model/OutlineModel.hpp" #include "../world/Block.hpp" @@ -15,7 +16,9 @@ namespace blank { class Chunk; +class BlendedSprite; class DirectionalLighting; +class Assets; class World; class Interface { @@ -31,7 +34,7 @@ public: bool visual_disabled = false; }; - Interface(const Config &, World &); + Interface(const Config &, const Assets &, World &); void HandlePress(const SDL_KeyboardEvent &); void HandleRelease(const SDL_KeyboardEvent &); @@ -61,7 +64,7 @@ public: void Update(int dt); - void Render(DirectionalLighting &) noexcept; + void Render(DirectionalLighting &, BlendedSprite &) noexcept; private: void CheckAim(); @@ -69,6 +72,7 @@ private: private: World &world; FPSController ctrl; + Font font; HUD hud; Ray aim;