Skip to content

AnimationStrip

Generated from engine/render/animation_strip.h at f525bc6. 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

Audience: game code.

#include "engine/render/animation_strip.h" · namespace labrador

AnimationStrip() = default;
AnimationStrip(const RectangleI& first_frame,
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”
const RectangleI& frame_rect(int frame_index) const;
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.

Named in the public declarations above: RectangleI.

The files that include this header directly. A file can also reach it through another header.

Documentation for Labrador v0.4.0. Built from Labrador f525bc6 of 2026-11-17.

All documentation versions