C# Class UVAnimation, Sisyphus

Show file Open project: astrism/Sisyphus Class Usage Examples

Public Properties

Property Type Description
framerate float
loopCycles int
loopReverse bool
name string

Protected Properties

Property Type Description
curFrame int
frames Vector2[]
numLoops int
stepDir int

Public Methods

Method Description
AppendAnim ( Vector2 anim ) : void
BuildUVAnim ( Vector2 start, Vector2 cellSize, int cols, int rows, int totalCells, float fps ) : Vector2[]
GetNextFrame ( Vector2 &uv ) : bool
PlayInReverse ( ) : void
Reset ( ) : void
SetAnim ( Vector2 anim ) : void

Method Details

AppendAnim() public method

public AppendAnim ( Vector2 anim ) : void
anim Vector2
return void

BuildUVAnim() public method

public BuildUVAnim ( Vector2 start, Vector2 cellSize, int cols, int rows, int totalCells, float fps ) : Vector2[]
start Vector2
cellSize Vector2
cols int
rows int
totalCells int
fps float
return Vector2[]

GetNextFrame() public method

public GetNextFrame ( Vector2 &uv ) : bool
uv Vector2
return bool

PlayInReverse() public method

public PlayInReverse ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SetAnim() public method

public SetAnim ( Vector2 anim ) : void
anim Vector2
return void

Property Details

curFrame protected property

protected int curFrame
return int

framerate public property

public float framerate
return float

frames protected property

protected Vector2[] frames
return Vector2[]

loopCycles public property

public int loopCycles
return int

loopReverse public property

public bool loopReverse
return bool

name public property

public string name
return string

numLoops protected property

protected int numLoops
return int

stepDir protected property

protected int stepDir
return int