Text - Team-Innis/UtH-Engine GitHub Wiki

The engine supports drawing text using regular font files (e.g .ttf). Most fonts should work.

Usage

Using text is pretty simple.

Text* text = new Text("font.ttf", fontSize);
gameObject.AddComponent(text);
// You could also use AddText
text->SetText("Some text");
// or
text->SetText("Some colored text", pmath::Vec4(0, 0, 1, 1));

There is also a SetColor function to change the color of the text at any time.