1 #ifndef _FONTRENDERER_H_
2 #define _FONTRENDERER_H_
7 #include "Renderable.h"
11 #include FT_FREETYPE_H
12 #include <unordered_map>
24 int bearingX, bearingY;
42 int left, top, width, height;
57 std::vector<GlyphDescription>* glyphs;
59 int textureWidth, textureHeight;
94 void setText(
const std::string& text);
95 const std::string& getText()
const;
124 void loadFont(
const std::string& fontPath,
const std::string& fontName,
int pixelHeight);
132 void createText(
const std::string& text,
const std::string& fontName,
Scene* scene,
Text* textObj);
138 FT_Library _ftLibrary;
139 std::unordered_map<std::string, FaceDescription> _faces;