ID3DX10SkinInfo::RemapVertices method
Change which vertices are influenced by which bones.
Syntax
HRESULT RemapVertices(
[in] UINT NewVertexCount,
[in] UINT *pVertexRemap
);
Parameters
-
NewVertexCount [in]
-
Type: UINT
The new number of vertices.
-
pVertexRemap [in]
-
Type: UINT*
A pointer to an array of vertex indices, which describe the remapping. For example, say SkinInfo contains some vertices such that bone0 is mapped to v0, bone1 to v1, and bone2 to v2, and array with 2,1,0 is specified for pBoneRemap. This will cause bone0 to be mapped to v2, bone1 to v1, and bone2 to v0.
Return value
Type: HRESULT
If the method succeeds, the return value is S_OK. If the method fails, the return value can be: E_OUTOFMEMORY or E_INVALIDARG.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also