C# Class Spine.VertexAttachment

>An attachment with vertices that are transformed by one or more bones and can be deformed by a slot's vertices.
Inheritance: Attachment
Mostra file Open project: EsotericSoftware/spine-runtimes Class Usage Examples

Public Methods

Method Description
ApplyDeform ( VertexAttachment sourceAttachment ) : bool

Returns true if a deform originally applied to the specified attachment should be applied to this attachment.

ComputeWorldVertices ( Slot slot, float worldVertices ) : void
ComputeWorldVertices ( Slot slot, int start, int count, float worldVertices, int offset ) : void

Transforms local vertices to world coordinates.

VertexAttachment ( String name ) : System

Method Details

ApplyDeform() public method

Returns true if a deform originally applied to the specified attachment should be applied to this attachment.
public ApplyDeform ( VertexAttachment sourceAttachment ) : bool
sourceAttachment VertexAttachment
return bool

ComputeWorldVertices() public method

public ComputeWorldVertices ( Slot slot, float worldVertices ) : void
slot Slot
worldVertices float
return void

ComputeWorldVertices() public method

Transforms local vertices to world coordinates.
public ComputeWorldVertices ( Slot slot, int start, int count, float worldVertices, int offset ) : void
slot Slot
start int The index of the first value to transform. Each vertex has 2 values, x and y.
count int The number of world vertex values to output. Must be less than or equal to - start.
worldVertices float The output world vertices. Must have a length greater than or equal to + .
offset int The index to begin writing values.
return void

VertexAttachment() public method

public VertexAttachment ( String name ) : System
name String
return System