C# Class Axiom.Animating.Pose

A pose is a linked set of vertex offsets applying to one set of vertex data.
The target index referred to by the pose has a meaning set by the user of this class; but for example when used by Mesh it refers to either the Mesh shared geometry (0) or a SubMesh dedicated geometry (1+). Pose instances can be referred to by keyframes in VertexAnimationTrack in order to animate based on blending poses together.
Exibir arquivo Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method Description
AddVertex ( int index, Vector3 offset ) : void

Adds an offset to a vertex for this pose.

ClearVertexOffsets ( ) : void

Clear all vertex offsets.

GetHardwareVertexBuffer ( int numVertices ) : HardwareVertexBuffer

Get a hardware vertex buffer version of the vertex offsets.

Pose ( ushort target, string name ) : System

Constructor

RemoveVertex ( int index ) : void

Remove a vertex offset.

Protected Methods

Method Description
DisposeVertexBuffer ( ) : void

Method Details

AddVertex() public method

Adds an offset to a vertex for this pose.
public AddVertex ( int index, Vector3 offset ) : void
index int The vertex index
offset Vector3 The position offset for this pose
return void

ClearVertexOffsets() public method

Clear all vertex offsets.
public ClearVertexOffsets ( ) : void
return void

DisposeVertexBuffer() protected method

protected DisposeVertexBuffer ( ) : void
return void

GetHardwareVertexBuffer() public method

Get a hardware vertex buffer version of the vertex offsets.
public GetHardwareVertexBuffer ( int numVertices ) : HardwareVertexBuffer
numVertices int
return Axiom.Graphics.HardwareVertexBuffer

Pose() public method

Constructor
public Pose ( ushort target, string name ) : System
target ushort The target vertexdata index (0 for shared, 1+ for /// dedicated at the submesh index + 1
name string
return System

RemoveVertex() public method

Remove a vertex offset.
public RemoveVertex ( int index ) : void
index int
return void