Changes a slot's {@link Slot#getDeform()} to deform a {@link VertexAttachment}.

Static variables

@:value(CurveTimeline.LINEAR)staticinlineread onlyLINEAR:Int = CurveTimeline.LINEAR

@:value(CurveTimeline.STEPPED)staticinlineread onlySTEPPED:Int = CurveTimeline.STEPPED

@:value(CurveTimeline.BEZIER)staticinlineread onlyBEZIER:Int = CurveTimeline.BEZIER

@:value(CurveTimeline.BEZIER_SIZE)staticinlineread onlyBEZIER_SIZE:Int = CurveTimeline.BEZIER_SIZE

Constructor

new(frameCount:Int, bezierCount:Int, slotIndex:Int, attachment:VertexAttachment)

Variables

Methods

getAttachment():VertexAttachment

The attachment that will be deformed.

See {@link VertexAttachment#getDeformAttachment()}.

getVertices():FloatArray2D

The vertices for each frame.

setFrame(frame:Int, time:Float, vertices:FloatArray):Void

Sets the time and vertices for the specified frame.

Parameters:

frame

Between 0 and frameCount, inclusive.

time

The frame time in seconds.

vertices

Vertex positions for an unweighted VertexAttachment, or deform offsets if it has weights.

setBezier(bezier:Int, frame:Int, value:Int, time1:Float, value1:Float, cx1:Float, cy1:Float, cx2:Float, cy2:Float, time2:Float, value2:Float):Void

Parameters:

value1

Ignored (0 is used for a deform timeline).

value2

Ignored (1 is used for a deform timeline).

Inherited Variables

Inherited Methods

Defined by CurveTimeline

setLinear(frame:Int):Void

Sets the specified frame to linear interpolation.

Parameters:

frame

Between 0 and frameCount - 1, inclusive.

setStepped(frame:Int):Void

Sets the specified frame to stepped interpolation.

Parameters:

frame

Between 0 and frameCount - 1, inclusive.

getCurveType(frame:Int):Int

Returns the interpolation type for the specified frame. @link #LINEAR}, {@link #STEPPED}, or {@link #BEZIER} + the index of the Bezier segments.

Parameters:

frame

Between 0 and frameCount - 1, inclusive.

Returns:

{

shrink(bezierCount:Int):Void

Shrinks the storage for Bezier curves, for use when bezierCount (specified in the constructor) was larger than the actual number of Bezier curves.

getBezierValue(time:Float, frameIndex:Int, valueOffset:Int, i:Int):Float

Returns the Bezier interpolated value for the specified time. @link #getFrames()} for the values of the frame before time. @link #getCurveType(int)}.

Parameters:

frameIndex

The index into {

valueOffset

The offset from frameIndex to the value this curve is used for.

i

The index of the Bezier segments. See {

Defined by Timeline

getPropertyIds():StringArray

Uniquely encodes both the type of this timeline and the skeleton properties that it affects.

getFrames():FloatArray

The time in seconds and any other values for each frame.

getFrameEntries():Int

The number of entries stored per frame.