Microsoft DirectX 8.1 (Visual Basic)

D3DXSkinMesh.GetNumBoneInfluences

Returns the number of influences (weights) on a given bone.

object.GetNumBoneInfluences( _ 
    Bone As Long) As Long

Parts

object
Object expression that resolves to a D3DXSkinMesh object.
Bone
The bone to query.

Return Values

Returns the number of weights on the given bone. If Bone is an invalid bone number, GetNumBoneInfluences returns 0.

Error Codes

If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.