AnimationStrip
Generated from engine/render/animation_strip.h at aceb130. 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/animation_strip.h" · namespace labrador
class AnimationStrip
Section titled “class AnimationStrip”AnimationStrip
Section titled “AnimationStrip”AnimationStrip
Section titled “AnimationStrip” int frame_count, float frame_time, bool looping);Caches horizontal frames spaced by first_frame.width. Zero frames leave the cache empty without calculating an origin. Throws std::out_of_range if a cached x coordinate cannot fit in int.
frame_rect · frame_count · frame_time · looping
Section titled “frame_rect · frame_count · frame_time · looping”int frame_count() const;float frame_time() const;bool looping() const;By const reference rather than by value, into the strip's own cache, so it lives as long as the strip does. Throws std::out_of_range for a frame index this strip does not have.
Related types
Section titled “Related types”Named in the public declarations above: RectangleI.
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.
samples/components/animation_preview.cpp,animation_preview_content_tests.cpp,animation_preview_test_content.htests/assets/grid_sheet_loader_tests.cpp,sprite_sheet_loader_tests.cpptests/render/animation_strip_tests.cpp,null_resource_tests.cpp,null_tests.cpp,render_resources_tests.cpp,sprite_sheet_object_tests.cpp,visual_tests.cpptests/scene/cull_tests.cpp
Explained in
Section titled “Explained in”Development documentation (unreleased). Built from Labrador aceb130 of 2026-11-20.