#include <Font.hpp>
TextRenderer can be used to render text to the screen.
Definition at line 88 of file Font.hpp.
Constructs a TextRenderer-object.
- Parameters
-
app | The global application. |
Definition at line 218 of file Font.cpp.
Destructs the TextRenderer-object.
Definition at line 249 of file Font.cpp.
Begin font-rendering. Sets some states that are necessary for font-rendering.
Definition at line 269 of file Font.cpp.
Draws all vertices in the vertex-vector.
Definition at line 283 of file Font.cpp.
End font-rendering. Resets all states that were set by begin().
Definition at line 277 of file Font.cpp.
Font * getFont |
( |
string const & |
name, |
|
|
uint const |
size |
|
) |
| |
Returns a font with the requested name and size. If the font is not loaded jet, it will be loaded from a file.
- Parameters
-
name | The name of the font |
size | The size of the font |
- Returns
- The requested font.
Definition at line 256 of file Font.cpp.
The global application
Definition at line 92 of file Font.hpp.
A map of all loaded fonts by their name
Definition at line 94 of file Font.hpp.
Freetype-library
Definition at line 93 of file Font.hpp.
The font-shader that is used to render text
Definition at line 95 of file Font.hpp.
VAO that is used for rendering
Definition at line 100 of file Font.hpp.
All vertices that need to be rendered (before they are pushed to VBO)
Definition at line 97 of file Font.hpp.
Vertex-VBO
Definition at line 99 of file Font.hpp.
The documentation for this class was generated from the following files: