Expand description
Validated sprite regions and CPU-only animation with explicit simulation time.
Structs§
- Animation
Clip - Immutable named clip. Share with
Arcbetween independent players. - Animation
Completed - A one-shot completion returned exactly once by
AnimationPlayer::advance. Can be sent tocrate::events::Events; retains the completed clip even if the player immediately switches to another clip. - Animation
Player - CPU playback cursor. Drawing/reading a frame never changes playback. Advancement uses integer nanoseconds and binary frame lookup, so large time steps do not iterate over every crossed frame or loop.
- Sprite
Frame - One selected sprite-sheet region and its simulation duration.
- Sprite
Region - A positive, axis-aligned source rectangle in top-left texture pixel coordinates. Bounds against an actual texture are checked at drawing time.
- Sprite
Transform - Sprite destination geometry in world units, with positive size and explicit pivot. Flips change texture sampling; they do not move the pivot or geometry.
Enums§
- Playback
Mode - Behavior at the end of a clip.
- Sprite
Error - Invalid sprite geometry or animation definition.