Visual
Generated from engine/render/visual.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.
#include "engine/render/visual.h" · namespace labrador
class Visual
Section titled “class Visual”Visual
Section titled “Visual”Visual(const std::string& sheet_name, const std::string& frame_name, float rotation = 0.0f, float layer_depth = 0.0f);Visual
Section titled “Visual” const std::string& frame_name, float rotation = 0.0f, float layer_depth = 0.0f);The shape's angle plus rotation, about its center. Frame/caller origins are additional local source-texel offsets from that center.
update · draw
Section titled “update · draw”void update(float dt) override;bounds · cull_bounds
Section titled “bounds · cull_bounds”mattmath::RectangleF cull_bounds(float units_per_pixel) const override;Unsnapped world geometry, including both authored and caller origin. cull_bounds additionally covers view-pixel quantization at this zoom. Both the geometry and per-pixel padding are cached at construction; this final class exposes no geometry/frame setters. Adding one must refresh both, keeping lookups and trigonometry off the cull path.
rectangle_ (protected)
Section titled “rectangle_ (protected)”Related types
Section titled “Related types”Named in the public declarations above: Colour, DrawList, GameObject, RectangleF, RectangleRotated, RenderResources, SpriteFlip, TextureObject, 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/visual_tests.cpptests/scene/cull_tests.cpp
Development documentation (unreleased). Built from Labrador 862e08b of 2026-10-08.