26 unsigned int textureID;
38 std::map<int, Glyph> _glyphMap;
40 unsigned int _VAO, _VBO;
42 bool LoadGlyph(
int c);
43 Glyph GetGlyph(
int c);
46 Font(
GLManager *glManager,
const std::string &path,
int size, FT_Library library =
nullptr);
55 void DrawText(
const std::string &text,
const glm::vec4 &color = glm::vec4(1));
Renders charachter glyphs using FreeType2 This class does not do any transformation,...
Font(GLManager *glManager, const std::string &path, int size, FT_Library library=nullptr)
glm::vec2 TextDimensions(const std::string &text)
void DrawText(const std::string &text, const glm::vec4 &color=glm::vec4(1))
Contains references to context scope OpenGL data.