X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FText.hpp;fp=src%2Fgraphics%2FText.hpp;h=0000000000000000000000000000000000000000;hb=376fc1fca87fcdd22dabadf6d01d245ef8c3cedd;hp=989145f9bff79268f07788048798aa3b5e12dcb7;hpb=22b25d4b9cc24e249bc8007757267cea00ab18d3;p=blank.git diff --git a/src/graphics/Text.hpp b/src/graphics/Text.hpp deleted file mode 100644 index 989145f..0000000 --- a/src/graphics/Text.hpp +++ /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 -#include - - -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