13 namespace fireworks {
namespace graphics {
30 Font(
const char* path,
unsigned int size)
32 this->fontPath = path;
33 this->fontSize = size;
51 mutable std::map<char, Character> m_Characters;
65 Label(
const char* text, glm::vec3 position, glm::vec3 color,
Font& font);
68 void renderText()
const;
glm::vec3 position
The position of the label.
Definition: label.h:45
glm::vec2 Bearing
Definition: label.h:20
unsigned int Advance
Definition: label.h:21
Definition: audioclip.cpp:3
glm::vec3 color
The color of the label.
Definition: label.h:47
The class responsible for creating amazing shaders.
Definition: Shader.h:22
unsigned int fontSize
Definition: label.h:28
The label class to render text onto the screen.
Definition: label.h:39
Font font
The font used to render the label.
Definition: label.h:49
Font(const char *path, unsigned int size)
Definition: label.h:30
glm::vec2 Size
Definition: label.h:19
std::string text
The text of the label.
Definition: label.h:43
Engine specific font data type.
Definition: label.h:25
unsigned int TextureID
Definition: label.h:18
const char * fontPath
Definition: label.h:27
Struct denoting the text character of the font.
Definition: label.h:16