DrawObject
Generated from engine/render/draw_object.h at 0f4f503. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.
Audience: game code.
#include "engine/render/draw_object.h" · namespace labrador
class DrawObject
Section titled “class DrawObject”~DrawObject
Section titled “~DrawObject”DrawObject
Section titled “DrawObject”Holds no resource table and performs no resource lookup.
DrawObject
Section titled “DrawObject” float rotation = 0.0f, float layer_depth = 0.0f);Stores render_resources as a loan; this base never deletes it. The table must outlive the resource-dependent operations of any drawable using it. A null pointer still permits this base's appearance state to be read and changed; it does not supply resources to a subclass.
render_resources · colour · draw_rotation · origin · flip (protected)
Section titled “render_resources · colour · draw_rotation · origin · flip (protected)”virtual float draw_rotation() const;layer_depth (protected)
Section titled “layer_depth (protected)”virtual float layer_depth() const;TextureObject and TextObject pass this to every draw they make, and no backend reads it: what is on top is decided by the order of the draw calls into a list (DrawList::draw_sprite in engine/render/renderer.h), never by depth. A Scene draws its plain objects in the order they were added and its collision objects after them, in no order it promises.
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_draw_rotation(float rotation);virtual void set_layer_depth(float layer_depth);set_draw_rotation_by_rectangle_rotated (protected)
Section titled “set_draw_rotation_by_rectangle_rotated (protected)”Related types
Section titled “Related types”Named in the public declarations above: Colour, RectangleRotated, RenderResources, SpriteFlip, Vector2F.
In the samples and tests
Section titled “In the samples and tests”The files that include this header directly. A file can also reach it through another header.
tests/render/draw_object_tests.cpp
Explained in
Section titled “Explained in”No guide or concept page links to this header yet.
Documentation for Labrador v0.3.0. Built from Labrador 0f4f503 of 2026-11-03.