struct SpriteSheetGridAnimation

Descriptor that describes a simple sprite sheet animation.

The parent area is split into a grid of

x , each representing one frame of the animation. Every frame is of equal size. Frames are sequentially evaluated starting from the top-most row, iterating over all columns in a row and then moving to next row, up to frames. frames are evaluated every second, allowing you to control animation speed.

Public

Constructors

SpriteSheetGridAnimation

SpriteSheetGridAnimation() = default

SpriteSheetGridAnimation

SpriteSheetGridAnimation(u32 rowCount, u32 columnCount, u32 frameCount, u32 framesPerSecond)

Fields

RowCount

u32 RowCount

Number of rows to divide the parent area in.

Determines height of the individual frame (depends on parent area size).

ColumnCount

u32 ColumnCount

Number of columns to divide the parent area in.

Determines column of the individual frame (depends on parent area size).

FrameCount

u32 FrameCount

Number of frames in the animation.

Must be less or equal than

  • .

FramesPerSecond

u32 FramesPerSecond

How many frames to evaluate each second.

Determines the animation speed.