ID3DXSkinInfo::GetBoneInfluence method

Gets the vertices and weights that a bone influences.

Syntax

HRESULT GetBoneInfluence(
  [in]      DWORD Bone,
  [in, out] DWORD *vertices,
  [in, out] FLOAT *weights
);

Parameters

Bone [in]

Type: DWORD

Bone number.

vertices [in, out]

Type: DWORD*

Get the array of vertices influenced by a bone.

weights [in, out]

Type: FLOAT*

Get the array of weights influenced by a bone.

Return value

Type: HRESULT

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

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

ID3DXSkinInfo

ID3DXSkinInfo::SetBoneInfluence