Crate omn_sprites

Source
Expand description

This crate contains types and functions for managing playback of frame sequences over time.

Modules§

aseprite
The aseprite module contains types and functions extracting information from the json export data feature provided by Aseprite.

Structs§

AnimationClip
AnimationClip is a group of cell indexes paired with durations such that it can track playback progress over time. It answers the question of “what subsection of a sprite sheet should I render at this time?”
AnimationClipTemplate
CellInfo
CellInfo.idx points to an index in SpriteSheetData.cells and CellInfo.duration indicates how long this section of the texture atlas should be displayed as per an AnimationClip.
ClipStore
Frame
FrameTag
Region

Enums§

Direction
PlayMode
PlayMode controls how the current frame data for a clip at a certain time is calculated with regards to the duration bounds.

Type Aliases§

Delta
FrameDuration
SpriteSheetData