Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Get the amount of influence a given bone has over a given vertex.
Syntax
HRESULT GetBoneInfluence(
[in] UINT BoneIndex,
[in] UINT InfluenceIndex,
[in] float *pWeight
);
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.
-
pWeight [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.
Remarks
Use ID3DX10SkinInfo::GetBoneInfluenceCount to find out how many vertices the bone influences.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also