Share via


AnimationController.SetTrackWeight(Int32,Single) Method (Microsoft.DirectX.Direct3D)

Sets the track weight, which is used to determine how to blend multiple tracks together.

Definition

Visual Basic Public Sub SetTrackWeight( _
    ByVal track As Integer, _
    ByVal weight As Single _
)
C# public void SetTrackWeight(
    int track,
    float weight
);
C++ public:
void SetTrackWeight(
    int track,
    float weight
);
JScript public function SetTrackWeight(
    track : int,
    weight : float
);

Parameters

track System.Int32
Identifier of the track for which to set the weight.
weight System.Single
Weight value.

Remarks

Exceptions

InvalidCallException

The method call is invalid. For example, a method's parameter might contain an invalid value.

OutOfMemoryExceptionLeave Site

Microsoft Direct3D could not allocate sufficient memory to complete the call.