C# Class Spine.CurveTimeline

Inheritance: Timeline
Mostra file Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Methods

Method Description
Apply ( Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, bool setupPose, bool mixingOut ) : void
CurveTimeline ( int frameCount ) : System
GetCurvePercent ( int frameIndex, float percent ) : float
GetCurveType ( int frameIndex ) : float
SetCurve ( int frameIndex, float cx1, float cy1, float cx2, float cy2 ) : void

Sets the control handle positions for an interpolation bezier curve used to transition from this keyframe to the next. cx1 and cx2 are from 0 to 1, representing the percent of time between the two keyframes. cy1 and cy2 are the percent of the difference between the keyframe's values.

SetLinear ( int frameIndex ) : void
SetStepped ( int frameIndex ) : void

Method Details

Apply() abstract public method

abstract public Apply ( Skeleton skeleton, float lastTime, float time, ExposedList firedEvents, float alpha, bool setupPose, bool mixingOut ) : void
skeleton Skeleton
lastTime float
time float
firedEvents ExposedList
alpha float
setupPose bool
mixingOut bool
return void

CurveTimeline() public method

public CurveTimeline ( int frameCount ) : System
frameCount int
return System

GetCurvePercent() public method

public GetCurvePercent ( int frameIndex, float percent ) : float
frameIndex int
percent float
return float

GetCurveType() public method

public GetCurveType ( int frameIndex ) : float
frameIndex int
return float

SetCurve() public method

Sets the control handle positions for an interpolation bezier curve used to transition from this keyframe to the next. cx1 and cx2 are from 0 to 1, representing the percent of time between the two keyframes. cy1 and cy2 are the percent of the difference between the keyframe's values.
public SetCurve ( int frameIndex, float cx1, float cy1, float cx2, float cy2 ) : void
frameIndex int
cx1 float
cy1 float
cx2 float
cy2 float
return void

SetLinear() public method

public SetLinear ( int frameIndex ) : void
frameIndex int
return void

SetStepped() public method

public SetStepped ( int frameIndex ) : void
frameIndex int
return void