A class representing a text.
Definition: Text.hpp:25
void SetText(const std::string &text)
Sets the text to the specified string.
Definition: Text.hpp:47
void Draw(const Core::Matrices &data) override
Draws the text with a given transform and z-index.
void SetColor(const Util::Color &color)
Sets the color of the text.
Definition: Text.hpp:57
void UseAntiAliasing(bool useAA)
Sets whether anti-aliasing (AA) should be enabled or disabled.
Text(const std::string &font, int size, const std::string &text, const Util::Color &color=Color(127, 127, 127), bool useAA=true)
Constructor for the Text class.