ID3DXAnimationController::KeyPriorityBlend method

Sets blending event keys for the specified animation track.

Syntax

D3DXEVENTHANDLE KeyPriorityBlend(
  [in] FLOAT               NewBlendWeight,
  [in] DOUBLE              StartTime,
  [in] DOUBLE              Duration,
  [in] D3DXTRANSITION_TYPE Transition
);

Parameters

NewBlendWeight [in]

Type: FLOAT

Number between 0 and 1 that is used to blend tracks together.

StartTime [in]

Type: DOUBLE

Global time to start the blend.

Duration [in]

Type: DOUBLE

Global time duration of the blend.

Transition [in]

Type: D3DXTRANSITION_TYPE

Specifies the transition type used for the duration of the blend. See D3DXTRANSITION_TYPE.

Return value

Type: D3DXEVENTHANDLE

Event handle to the priority blend event. NULL is returned if one or more of the input parameters is invalid, or no free event is available.

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.

Requirements

Requirement Value
Header
D3dx9anim.h
Library
D3dx9.lib

See also

ID3DXAnimationController

SetPriorityBlend