Skip to main content

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

TypeNameValueDescription
Vector3fpositionVector3f::zeroFont position.
ColorcolorColor::whiteFont color.
FontStylestylenullptrFont style.
const char*strnullptrFont text.