?/TD>
Microsoft DirectX 9.0

ID3DXAnimationController::KeyPriorityBlend Method


Blends together the low priority and high priority blended tracks.

Syntax

HRESULT KeyPriorityBlend(      

    FLOAT BlendWeight,     DOUBLE StartTime,     DOUBLE Duration,     DWORD Method );

Parameters

BlendWeight
[in] Number between 0 and 1 that is used to blend tracks together.
StartTime
[in] Global time to start the blend.
Duration
[in] Global time duration of the blend.
Method
[in] Specifies the transition type between tracks. For more information, see D3DXTRANSITIONTYPE.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be one of the following values.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


Remarks

The animation controller blends in three phases: low priority tracks are blended first, high priority tracks are blended second, and then the results of both are blended.

See Also

ID3DXAnimationController::SetPriorityBlend


© 2002 Microsoft Corporation. All rights reserved.