Struct Animation
Defined in File tileset.h
Inheritance Relationships
Base Types
public CE::Assets::Content2D(Struct Content2D)public CE::Assets::Animation::Cursor< Animation >(Template Struct Cursor)
Struct Documentation
-
struct Animation : public CE::Assets::Content2D, public CE::Assets::Animation::Cursor<Animation>
Declaration:
finalOwns a clip copy and retains its resources.
CE::Assets::Animation::Cursor’s index selects a clip entry, not a grid cell; looping wraps and nonlooping clamps. An empty clip throws. The caller schedules index changes from millisecond durations on one owner.
Public Functions
Own a clip copy and retain its uploaded resources.
See also
- Parameters:
definition – Nonempty ordered timeline; loop selects inherited Wrap or Clamp policy.
geometry – Retained atlas geometry.
texture – Retained atlas image.
material – Optional retained material, with no default construction. An empty timeline rejects via Cursor; direct construction does not validate durations, cells or backend compatibility. Caller advances the ordinal from frame_duration() on one owner.
-
inline const Clip &definition() const
Declaration:
[[nodiscard]]Borrow the owned clip copy for this animation handle’s lifetime.
See also
-
std::chrono::milliseconds frame_duration() const
Declaration:
[[nodiscard]]Read the selected clip-entry duration in milliseconds; does not advance time or validate positivity.
See also
-
inline bool loops() const
Declaration:
[[nodiscard]]Read the clip’s loop flag used to select inherited ordinal policy.
See also