?/TD>
Microsoft DirectX 9.0

ID3DXSkinInfo::Remap Method


Update bone influence information to match vertices after they are reordered. This should be called if the target vertex buffer has been reordered externally.

Syntax

HRESULT Remap(      

    DWORD NumVertices,     DWORD *pVertexRemap );

Parameters

NumVertices
[in] Number of vertices to remap.
pVertexRemap
[in] Array of DWORDS whose length is specified by NumVertices.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.



Remarks

Each element in pVertexRemap specifies the previous vertex index for that position. For example, if a vertex was in position 3 but has been remapped to position 5, then the fifth element of pVertexRemap should contain 3. The vertex remap array returned by ID3DXMesh::Optimize can be used.



© 2002 Microsoft Corporation. All rights reserved.