FontBatch
The FontBatch struct represents a batch of UTF-8 encoded text to be rendered, with properties for positioning, color, and style. It includes constructors for setting the position and text, and optionally the font style.
#include <interface/TellusimTypes.h>
Constructors
FontBatch()
FontBatch(const Vector3f &position, const char *str)
FontBatch(const Vector3f &position, const FontStyle *style, const char *str)
Variables
Type | Name | Value | Description |
---|---|---|---|
Vector3f | position | Vector3f::zero | Font position. |
Color | color | Color::white | Font color. |
FontStyle | style | nullptr | Font style. |
const char* | str | nullptr | Font text. |