35 std::vector<std::shared_ptr<Font>> m_fonts;
36 std::shared_ptr<Font> m_current;
40 void set(
const int fontSize,
const std::shared_ptr<Color3f>& fontColor,
const std::string& fontFile);
41 std::shared_ptr<Glyph>
getGlyph(
wchar_t character);
43 std::shared_ptr<Vector2i>
textExtent(
const std::wstring& text);
49 std::shared_ptr<Font> getFont(
const int fontSize,
const std::shared_ptr<Color3f>& fontColor,
const std::string& fontFile);
Definition textengine.h:32
std::shared_ptr< Vector2i > textExtent(const std::wstring &text)
std::shared_ptr< Glyph > getGlyph(wchar_t character)
static TextEngine * getInstance()
void set(const int fontSize, const std::shared_ptr< Color3f > &fontColor, const std::string &fontFile)