diff options
Diffstat (limited to 'libjin/Graphics/Font.h')
-rw-r--r-- | libjin/Graphics/Font.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjin/Graphics/Font.h b/libjin/Graphics/Font.h index 4b0a850..c04d64a 100644 --- a/libjin/Graphics/Font.h +++ b/libjin/Graphics/Font.h @@ -53,7 +53,7 @@ namespace graphics struct Glyph { - GLuint texture; // texture where this glyph rendered + GLuint atlas; // texture where this glyph rendered GlyphBox box; // glyph box }; @@ -84,14 +84,14 @@ namespace graphics Font(FontData* font, unsigned int fontSize); ~Font(); - bool createTexture(); + bool createAtlas(); Glyph* bakeGlyph(unsigned int character); Glyph* findGlyph(unsigned int character); //float getCharWidth(int c, int last); //int getTextWidth(const char* text); - std::vector<GLuint> textures; + std::vector<GLuint> atlases; std::map<unsigned int, Glyph*> glyphs; // map glyph codepoint to Glyph FontData* font; const unsigned int fontsize; |