ID3DX10SkinInfo::GetBoneInfluences method
Get a list of vertices that a given bone influences and a list of the amount of influence that bone has on each vertex.
Syntax
HRESULT GetBoneInfluences(
[in] UINT BoneIndex,
[in] UINT Offset,
[in] UINT Count,
[in, out] UINT *pDestIndices,
[in, out] float *pDestWeights
);
Parameters
-
BoneIndex [in]
-
Type: UINT
An index that specifies an existing bone. Must be between 0 and the value returned by ID3DX10SkinInfo::GetNumBones.
-
Offset [in]
-
Type: UINT
An offset from the top of the bone's list of influenced vertices. This must be between 0 and the value returned by ID3DX10SkinInfo::GetBoneInfluenceCount.
-
Count [in]
-
Type: UINT
The number of indices and weights to retrieve. Must be between 0 and the value returned by ID3DX10SkinInfo::GetBoneInfluenceCount.
-
pDestIndices [in, out]
-
Type: UINT*
A list of indices into the vertex buffer, each one representing a vertex influenced by the bone. These values correspond to the values in pDestWeights, such that pDestIndices[i] corresponds to pDestWeights[i].
-
pDestWeights [in, out]
-
Type: float*
A list of the amount of influence the bone has on each vertex. These values correspond to the values in pDestIndices, such that pDestWeights[i] corresponds to pDestIndices[i].f
Return value
Type: HRESULT
If the method succeeds, the return value is S_OK. If the method fails, the return value can be: E_INVALIDARG or E_OUTOFMEMORY.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also