C# Class SpriterBetaRuntime.SpriterAnimation

Class containing all data for a given animation An animation is conceptually a number of frames that loop An eye-blink might look like: Frame 1: Frame Definition 1, 500 msec (open eye) Frame 2: Frame Definition 2, 10 msec (eye partially closed) Frame 3: Frame Definition 3, 20 msec (eye closed) Frame 4: Frame Definition 2, 10 msec (eye partially closed, again) The class is a parallel list of frame definition indicies, frame durations
Datei anzeigen Open project: schmelze/SpriterXNA

Public Methods

Method Description
GetFrameDuration ( int idx ) : float

Return the duration for a given animation frame

GetFrameIdx ( int idx ) : int

Return the frame definition index for a given animation frame

GetTotalFrames ( ) : int

Return total number of frames in the animation

Method Details

GetFrameDuration() public method

Return the duration for a given animation frame
public GetFrameDuration ( int idx ) : float
idx int the animation frame to retrieve
return float

GetFrameIdx() public method

Return the frame definition index for a given animation frame
public GetFrameIdx ( int idx ) : int
idx int the animation frame to retrieve
return int

GetTotalFrames() public method

Return total number of frames in the animation
public GetTotalFrames ( ) : int
return int