X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFont.hpp;h=d7aa4fadeccc884797b87e030ab2e321fe634351;hb=refs%2Fheads%2Fmaster;hp=ce9cfd9248cbe4c03a56e3428c67d6dc4817f568;hpb=be413456f57da06e918ae7bf4c4f35e5198ff7ce;p=blobs.git diff --git a/src/graphics/Font.hpp b/src/graphics/Font.hpp index ce9cfd9..d7aa4fa 100644 --- a/src/graphics/Font.hpp +++ b/src/graphics/Font.hpp @@ -1,8 +1,9 @@ #ifndef BLOBS_GRAPHICS_FONT_HPP_ #define BLOBS_GRAPHICS_FONT_HPP_ -#include "glm.hpp" +#include "../math/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;