C# Class UVAnimation, Sisyphus

Exibir arquivo 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_oe property

protected int curFrame
return int

framerate public_oe property

public float framerate
return float

frames protected_oe property

protected Vector2[] frames
return Vector2[]

loopCycles public_oe property

public int loopCycles
return int

loopReverse public_oe property

public bool loopReverse
return bool

name public_oe property

public string name
return string

numLoops protected_oe property

protected int numLoops
return int

stepDir protected_oe property

protected int stepDir
return int