|
|
| Text (const std::string &font, int size, const std::string &text, const Util::Color &color=Color(127, 127, 127)) |
| glm::vec2 | GetSize () const override |
| void | SetText (const std::string &text) |
| | Sets the text to the specified string.
|
| void | SetColor (const Util::Color &color) |
| | Sets the color of the text.
|
| void | Draw (const Core::Matrices &data) override |
| | Draws the text with a given transform and z-index.
|
A class representing a text.
This class encapsulates the properties and behaviors of a text. It includes properties such as texture and surface. It also includes behaviors such as drawing the text.