Struct Animation

Inheritance Relationships

Base Types

Struct Documentation

struct Animation : public CE::Assets::Content2D, public CE::Assets::Animation::Cursor<Animation>

Declaration: final

Owns 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

explicit Animation(Clip definition, const CE::Memory::Shared<CE::Rendering::Geometry::Buffer2D> &geometry, const CE::Memory::Shared<CE::Rendering::Resources::Image> &texture, std::shared_ptr<const CE::Rendering::Resources::Material> material = {})
inline const Clip &definition() const

Declaration: [[nodiscard]]

std::chrono::milliseconds frame_duration() const

Declaration: [[nodiscard]]

inline bool loops() const

Declaration: [[nodiscard]]