d3d9.dllFindBoneVertexInfluenceIndex
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXSkinInfo::FindBoneVertexInfluenceIndex Method


Retrieves the index of the bone influence affecting a single vertex.

Syntax

HRESULT FindBoneVertexInfluenceIndex(      

    DWORD boneNum,     DWORD vertexNum,     DWORD *pInfluenceIndex );

Parameters

boneNum
[in] Index of the bone. Must be between 0 and the number of bones.
vertexNum
[in] Index of the vertex for which the bone influence is to be found. Must be between 0 and the number of vertices in the mesh.
pInfluenceIndex
[in, out] Pointer to the index of the bone influence that affects vertexNum.

Return Value

If the method succeeds, the return value is S_OK. If the specified bone does not influence the given vertex, S_FALSE is returned.

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



See Also

ID3DXSkinInfo::GetBoneVertexInfluence, ID3DXSkinInfo::SetBoneVertexInfluence, ID3DXSkinInfo::GetBoneInfluence


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.