Skip to content

DrawObject

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

virtual ~DrawObject() = default;
DrawObject() = default;
DrawObject(RenderResources* render_resources,
const Colour& color = Colour::white,
float rotation = 0.0f,
SpriteFlip flip = SpriteFlip::none,
float layer_depth = 0.0f);

render_resources · colour · draw_rotation · origin · flip · layer_depth (protected)

Section titled “render_resources · colour · draw_rotation · origin · flip · layer_depth (protected)”
virtual RenderResources* render_resources() const;
virtual const Colour& colour() const;
virtual float draw_rotation() const;
virtual const mattmath::Vector2F& origin() const;
virtual SpriteFlip flip() const;
virtual float layer_depth() const;

set_colour · set_draw_rotation · set_origin · set_flip · set_layer_depth (protected)

Section titled “set_colour · set_draw_rotation · set_origin · set_flip · set_layer_depth (protected)”
virtual void set_colour(const Colour& colour);
virtual void set_draw_rotation(float rotation);
virtual void set_origin(const mattmath::Vector2F& origin);
virtual void set_flip(SpriteFlip flip);
virtual void set_layer_depth(float layer_depth);

set_draw_rotation_by_rectangle_rotated (protected)

Section titled “set_draw_rotation_by_rectangle_rotated (protected)”
void set_draw_rotation_by_rectangle_rotated(const mattmath::RectangleRotated& rect);

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