X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FInterface.hpp;h=f3b1252643c93f02c8065c347a90ce7229bc3dcb;hb=5d2da8a07411ad6417d6ed8d1be997189cf5ce89;hp=d01fe254a665ed0011c214a97fae7af4b9dbb030;hpb=37a1465a83e4ac4363ed0d8e0fa1ce5055dd2db4;p=blank.git diff --git a/src/ui/Interface.hpp b/src/ui/Interface.hpp index d01fe25..f3b1252 100644 --- a/src/ui/Interface.hpp +++ b/src/ui/Interface.hpp @@ -17,9 +17,8 @@ namespace blank { class Assets; class Chunk; -class BlendedSprite; -class DirectionalLighting; class FrameCounter; +class Viewport; class World; class Interface { @@ -43,7 +42,8 @@ public: void HandlePress(const SDL_MouseButtonEvent &); void HandleRelease(const SDL_MouseButtonEvent &); void Handle(const SDL_MouseWheelEvent &); - void Handle(const SDL_WindowEvent &) noexcept; + + void Resize(const Viewport &); void FaceBlock(); void TurnBlock(); @@ -68,7 +68,7 @@ public: void Update(int dt); - void Render(DirectionalLighting &, BlendedSprite &) noexcept; + void Render(Viewport &) noexcept; private: void CheckAim(); @@ -92,6 +92,7 @@ private: Texture counter_tex; SpriteModel counter_sprite; glm::mat4 counter_transform; + float counter_x; SDL_Color counter_color; Config config;