]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/Text.hpp
simple (text) progress display for preloader
[blank.git] / src / graphics / Text.hpp
diff --git a/src/graphics/Text.hpp b/src/graphics/Text.hpp
deleted file mode 100644 (file)
index 989145f..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#ifndef BLANK_GRAPHICS_TEXT_HPP_
-#define BLANK_GRAPHICS_TEXT_HPP_
-
-#include "align.hpp"
-#include "Texture.hpp"
-#include "../model/SpriteModel.hpp"
-
-#include <string>
-#include <glm/glm.hpp>
-
-
-namespace blank {
-
-class Font;
-class Viewport;
-
-class Text {
-
-public:
-       Text() noexcept;
-
-       void Set(const Font &, const char *);
-       void Set(const Font &f, const std::string &s) {
-               Set(f, s.c_str());
-       }
-
-       void Pivot(Gravity p) {
-               pivot = p;
-               dirty = true;
-       }
-
-       void Render(Viewport &) noexcept;
-
-private:
-       void Update();
-
-private:
-       Texture tex;
-       SpriteModel sprite;
-       glm::vec2 size;
-       Gravity pivot;
-       bool dirty;
-
-};
-
-}
-
-#endif