X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFont.hpp;h=6088d95b70a96f609899596ff2a8d6e84e5dd9cc;hb=fd08d1defb5c42d2847a9001e1921898e3d526bf;hp=ce9cfd9248cbe4c03a56e3428c67d6dc4817f568;hpb=be413456f57da06e918ae7bf4c4f35e5198ff7ce;p=blobs.git diff --git a/src/graphics/Font.hpp b/src/graphics/Font.hpp index ce9cfd9..6088d95 100644 --- a/src/graphics/Font.hpp +++ b/src/graphics/Font.hpp @@ -3,6 +3,7 @@ #include "glm.hpp" +#include #include @@ -29,6 +30,7 @@ public: }; public: + Font(const std::string &src, int size, long index = 0); Font(const char *src, int size, long index = 0); ~Font(); @@ -60,9 +62,12 @@ public: bool HasGlyph(Uint16) const noexcept; glm::ivec2 TextSize(const char *) const; + glm::ivec2 TextSize(const std::string &) const; Texture Render(const char *) const; + Texture Render(const std::string &) const; void Render(const char *, Texture &) const; + void Render(const std::string &, Texture &) const; private: TTF_Font *handle;