ID3DXSkinInfo::FindBoneVertexInfluenceIndex method
Retrieves the index of the bone influence affecting a single vertex.
Syntax
HRESULT FindBoneVertexInfluenceIndex(
[in] DWORD boneNum,
[in] DWORD vertexNum,
[in, out] DWORD *pInfluenceIndex
);
Parameters
-
boneNum [in]
-
Type: DWORD
Index of the bone. Must be between 0 and the number of bones.
-
vertexNum [in]
-
Type: DWORD
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]
-
Type: DWORD*
Pointer to the index of the bone influence that affects vertexNum.
Return value
Type: HRESULT
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.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also