diff options
Diffstat (limited to 'src/graphics/textureFont.h')
-rw-r--r-- | src/graphics/textureFont.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/graphics/textureFont.h b/src/graphics/textureFont.h index 5e78f9e..f3f194a 100644 --- a/src/graphics/textureFont.h +++ b/src/graphics/textureFont.h @@ -13,14 +13,16 @@ namespace Graphics { unsigned int numrows, numcols; }; private: + using GlyphTable = std::map<char, sf::Glyph>; + GlyphTable glyphTable_; + const sf::Texture &tex_; const Descr description_; - sf::Vector2f glyphSize_; + sf::Vector2i glyphSize_; public: TextureFont(const sf::Texture &texture, Descr desc); - std::array<sf::Vector2f,4> getGlyphMapping(const char ch); - sf::Vector2f getGlyphSize(); - const sf::Texture *getTexture(); + const sf::Glyph &getGlyph(char ch) const; + const sf::Texture *getTexture(unsigned int _); }; } |