?/TD>
Microsoft DirectX 9.0

D3DXCreateAnimationController Function


Create an animation controller object.

Syntax

HRESULT D3DXCreateAnimationController(      

    UINT MaxNumMatrices,     UINT MaxNumAnimationSets,     UINT MaxNumTracks,     UINT MaxNumEvents,     LPD3DXANIMATIONCONTROLLER* ppAnimController );

Parameters

MaxNumMatrices
[in] Maximum number of matrices that can be animated.
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


© 2002 Microsoft Corporation. All rights reserved.