Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 729 Bytes

text.md

File metadata and controls

20 lines (13 loc) · 729 Bytes

Text

Text is a component class for rendering text.

Overview

Currently the only font available is Roboto Black and all characters are rendered in 128p resolution. If you want to scale your text, use the scale field in the parent's Transform component.

Fields

The class comprises of the following public fields, which can be modified freely:

  • std::string text (the actual text to be rendered),
  • glm::vec3 colour (text colour in normalised rgb format).

Constructors

The class offers one constructor with optional arguments:

  • GameObject* parent (this argument is required; the parent gameobject),
  • std::string text (the text, empty on default),
  • glm::vec3 colour (the colour, black on default).