HudText is a HUD element that displays text on the screen. It allows customization of text content, position, scale, color, alignment, font, and shader program.
HudText(const std::string& text, float x, float y, float scale, Vector4D color, TextAlignment alignment, Font* pFont);
Constructor of a HudText. It takes as parameters a text, an x and y position, a size, a colour, an alignment in relation to its position (by default it is aligned to the left) and a font (by default the font is RoadPixel.ttf).
void SetText(std::string pText);
Sets the text of the HudText element.
void SetColor(Vector4D color);
Allows you to change the colour of the text displayed