Container for font and text rendering.
Definition: font.hpp:60
Object for text which does not change often.
Definition: static_text.hpp:43
Static_text(Font_sys &font, const std::string &utf8_input)
void render_text_mat(const Color &color, const Mat4< float > &model_view_projection)
Render the previously set text, using a model view projection matrix.
void render_text_rotate(const Color &color, const Vec2< float > &win_size, const Vec2< float > &pos, const float rotation, const int align_flags=0)
Render the previously set text, with rotation.
void set_text(const std::string &utf8_input)
Recreate text object with new string.
void set_font_sys(Font_sys &font)
Recreate text object with new Font_sys.
void render_text(const Color &color, const Vec2< float > &win_size, const Vec2< float > &pos, const int align_flags=0)
Render the previously set text.
OpenGL Font rendering types.
Definition: font.hpp:35
Vec4< float > Color
Color vector
Definition: types.hpp:191
typename detail::Mat4_t< T >::type Mat4
4D Matrix
Definition: types.hpp:186
typename detail::Vec2_t< T >::type Vec2
2D Vector
Definition: types.hpp:176