D3DXCreateAnimationController
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXCreateAnimationController Function


Creates an animation controller object.

Syntax

HRESULT WINAPI 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 Value

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_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.


Remarks

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

Function Information

Headerd3dx9anim.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.