ID3DXSkinInfo::GetBoneInfluence

Gets the vertices and weights that a bone influences.

HRESULT GetBoneInfluence(
  DWORD Bone,
  DWORD * vertices,
  FLOAT * weights
);

Parameters

Bone
[in] Bone number.
vertices
[in, out] Get the array of vertices influenced by a bone.
weights
[in, out] Get the array of weights influenced by a bone.

Return Values

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

Remarks

Use ID3DXSkinInfo::GetNumBoneInfluences to find out how many vertices the bone influences.

Requirements

Header: Declared in D3dx9mesh.h.

See Also

ID3DXSkinInfo::SetBoneInfluence