]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/Text.hpp
also post UI messages to graphical output
[blank.git] / src / graphics / Text.hpp
index 5d7a8b3a47577118301005043f1ff72e9b4b8220..989145f9bff79268f07788048798aa3b5e12dcb7 100644 (file)
@@ -24,53 +24,22 @@ public:
                Set(f, s.c_str());
        }
 
-       void Position(const glm::vec3 &p) noexcept {
-               pos = p;
-       }
-       void Position(
-               const glm::vec3 &p,
-               Gravity g
-       ) noexcept {
-               pos = p;
-               grav = g;
-               pivot = g;
-               dirty = true;
-       }
-       void Position(
-               const glm::vec3 &p,
-               Gravity g,
-               Gravity pv
-       ) noexcept {
-               pos = p;
-               grav = g;
-               pivot = pv;
+       void Pivot(Gravity p) {
+               pivot = p;
                dirty = true;
        }
 
-       void Foreground(const glm::vec4 &col) noexcept { fg = col; }
-       void Background(const glm::vec4 &col) noexcept { bg = col; }
-
        void Render(Viewport &) noexcept;
 
-       void Show() noexcept { visible = true; }
-       void Hide() noexcept { visible = false; }
-       void Toggle() noexcept { visible = !visible; }
-       bool Visible() const noexcept { return visible; }
-
 private:
        void Update();
 
 private:
        Texture tex;
        SpriteModel sprite;
-       glm::vec4 bg;
-       glm::vec4 fg;
        glm::vec2 size;
-       glm::vec3 pos;
-       Gravity grav;
        Gravity pivot;
        bool dirty;
-       bool visible;
 
 };