ID3DX10SkinInfo::SetBoneInfluence method
Set the amount of influence a given bone has over a given vertex.
Syntax
HRESULT SetBoneInfluence(
[in] UINT BoneIndex,
[in] UINT InfluenceIndex,
[in] float Weight
);
Parameters
-
BoneIndex [in]
-
Type: UINT
An index that specifies an existing bone. Must be between 0 and the value returned by ID3DX10SkinInfo::GetNumBones.
-
InfluenceIndex [in]
-
Type: UINT
An index into the bone's list of vertices that it influences.
-
Weight [in]
-
Type: float
The amount of influence, between 0 and 1, that the bone has over the vertex.
Return value
Type: HRESULT
If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be E_INVALIDARG.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also