Skip to content

TextDropShadow

Generated from engine/render/text_drop_shadow.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_drop_shadow.h" · namespace labrador

class TextDropShadow : public Text
TextDropShadow() = default;
TextDropShadow(const std::wstring& text,
const std::string& font_name,
const mattmath::Vector2F& position,
RenderResources* render_resources,
const Colour& color = Colour::white,
const Colour& shadow_color = Colour::black,
const mattmath::Vector2F& shadow_offset = { 2.0f, 2.0f },
float scale = 1.0f,
float shadow_scale = 1.0f,
float rotation = 0.0f,
const mattmath::Vector2F& origin = mattmath::Vector2F::ZERO,
float layer_depth = 0.0f);
void draw(DrawList& draw_list) const override;

const, like every draw below it - and here const also buys correctness rather than only safety. A non-const draw would not override TextObject::draw(...) const at all, it would *hide* it, so a TextDropShadow reached through a Text& would draw its text with no shadow.

shadow_offset · shadow_color · shadow_scale

Section titled “shadow_offset · shadow_color · shadow_scale”
mattmath::Vector2F shadow_offset() const;
Colour shadow_color() const;
float shadow_scale() const;

set_shadow_offset · set_shadow_color · set_shadow_scale

Section titled “set_shadow_offset · set_shadow_color · set_shadow_scale”
void set_shadow_offset(const mattmath::Vector2F& offset);
void set_shadow_color(const Colour& color);
void set_shadow_scale(float scale);

Named in the public declarations above: Colour, DrawList, RenderResources, Text, 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.