ID3DXSkinInfo::GetBoneVertexInfluence method

Retrieves the blend factor and vertex affected by a specified bone influence.

Syntax

HRESULT GetBoneVertexInfluence(
  [in]      DWORD boneNum,
  [in]      DWORD influenceNum,
  [in, out] FLOAT *pWeight,
  [in, out] DWORD *pVertexNum
);

Parameters

boneNum [in]

Type: DWORD

Index of the bone. Must be between 0 and the number of bones.

influenceNum [in]

Type: DWORD

Index of the influence array of the specified bone.

pWeight [in, out]

Type: FLOAT*

Pointer to the blend factor influenced by influenceNum.

pVertexNum [in, out]

Type: DWORD*

Pointer to the vertex influenced by influenceNum.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXSkinInfo

ID3DXSkinInfo::SetBoneVertexInfluence

ID3DXSkinInfo::FindBoneVertexInfluenceIndex

ID3DXSkinInfo::GetBoneInfluence