Skip to content

Text

Generated from engine/render/text.h at 862e08b. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.

Browse the render module

#include "engine/render/text.h" · namespace labrador

class Text : public TextObject
Text() = default;
Text(const std::wstring& text,
const std::string& font_name,
const mattmath::Vector2F& position,
RenderResources* render_resources,
const Colour& color = Colour::white,
float scale = 1.0f,
float rotation = 0.0f,
const mattmath::Vector2F& origin = mattmath::Vector2F::ZERO,
float layer_depth = 0.0f);

set_text · set_colour · set_scale · set_position

Section titled “set_text · set_colour · set_scale · set_position”
void set_text(const std::wstring& text) override;
void set_colour(const Colour& colour) override;
void set_scale(float scale) override;
void set_position(const mattmath::Vector2F& position) override;

Named in the public declarations above: Colour, RenderResources, TextObject, Vector2F.

The files that include this header directly. A file can also reach it through another header.

Development documentation (unreleased). Built from Labrador 862e08b of 2026-10-08.