|
Fireworks Engine
v2.0
Lightweight Sandbox Game Engine using OpenGL for additional Customisation and Quick Prototyping
|
The label class to render text onto the screen. More...
#include <label.h>

Public Member Functions | |
| Label (const char *text, glm::vec3 position, glm::vec3 color, Font &font) | |
| Creates a new label to render text onto the screen. More... | |
| void | renderText () const |
| Renders the text onto the screen. More... | |
Public Attributes | |
| std::string | text |
| The text of the label. More... | |
| glm::vec3 | position |
| The position of the label. More... | |
| glm::vec3 | color |
| The color of the label. More... | |
| Font | font |
| The font used to render the label. More... | |
The label class to render text onto the screen.
| fireworks::graphics::Label::Label | ( | const char * | text, |
| glm::vec3 | position, | ||
| glm::vec3 | color, | ||
| Font & | font | ||
| ) |
Creates a new label to render text onto the screen.
| text | The text to render to the screen |
| position | The position on the screen where the Label will be places |
| color | The color of the Label |
| font | The font used to render the Label |
| void fireworks::graphics::Label::renderText | ( | ) | const |
Renders the text onto the screen.
| glm::vec3 fireworks::graphics::Label::color |
The color of the label.
| Font fireworks::graphics::Label::font |
The font used to render the label.
| glm::vec3 fireworks::graphics::Label::position |
The position of the label.
| std::string fireworks::graphics::Label::text |
The text of the label.