]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/Interface.hpp
combine text handling stuff into a class
[blank.git] / src / ui / Interface.hpp
index 1e2e8834ba7a507f369661e4f68ca84eba583749..d6c301981ef45125ac10cbf7a4eeabd7b987dbe6 100644 (file)
@@ -5,6 +5,7 @@
 #include "../app/FPSController.hpp"
 #include "../app/IntervalTimer.hpp"
 #include "../graphics/Font.hpp"
+#include "../graphics/Text.hpp"
 #include "../model/geometry.hpp"
 #include "../model/OutlineModel.hpp"
 #include "../world/Block.hpp"
@@ -42,8 +43,6 @@ public:
        void HandleRelease(const SDL_MouseButtonEvent &);
        void Handle(const SDL_MouseWheelEvent &);
 
-       void Resize(const Viewport &);
-
        void FaceBlock();
        void TurnBlock();
 
@@ -87,11 +86,7 @@ private:
        OutlineModel outline;
        glm::mat4 outline_transform;
 
-       bool show_counter;
-       Texture counter_tex;
-       SpriteModel counter_sprite;
-       glm::mat4 counter_transform;
-       float counter_x;
+       Text counter_text;
 
        Config config;