D3DXCreateAnimationController

Creates an animation controller object.

HRESULT D3DXCreateAnimationController(
  UINT MaxNumAnimationOutputs,
  UINT MaxNumAnimationSets,
  UINT MaxNumTracks,
  UINT MaxNumEvents,
  LPD3DXANIMATIONCONTROLLER* ppAnimController
);

Parameters

MaxNumAnimationOutputs
[in] Maximum number of animation outputs the controller can support.
MaxNumAnimationSets
[in] Maximum number of animation sets that can be mixed.
MaxNumTracks
[in] Maximum number of animation sets that can be mixed simultaneously.
MaxNumEvents
[in] Maximum number of outstanding events that the controller will support.
ppAnimController
[out, retval] Pointer to the animation controller object created. See ID3DXAnimationController.

Return Values

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following values: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Remarks

An animation controller controls an animation mixer. The controller adds methods to modify blending parameters over time to enable smooth transitions.

Requirements

Header: Declared in D3dx9anim.h.