ID3DXSkinInfo::SetBoneVertexInfluence

Sets an influence value of a bone on a single vertex.

HRESULT SetBoneVertexInfluence(
  DWORD boneNum,
  DWORD influenceNum,
  FLOAT weight
);

Parameters

boneNum
[in] Index of the bone. Must be between 0 and the number of bones.
influenceNum
[in] Index of the influence array of the specified bone.
weight
[in] Blend factor of the specified bone influence.

Return Values

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

Requirements

Header: Declared in D3dx9mesh.h.

See Also

ID3DXSkinInfo::GetBoneVertexInfluence, ID3DXSkinInfo::FindBoneVertexInfluenceIndex, ID3DXSkinInfo::GetBoneInfluence