D3DXCreateAnimationController function
Creates an animation controller object.
Syntax
HRESULT D3DXCreateAnimationController(
_In_ UINT MaxNumAnimationOutputs,
_In_ UINT MaxNumAnimationSets,
_In_ UINT MaxNumTracks,
_In_ UINT MaxNumEvents,
_Out_ LPD3DXANIMATIONCONTROLLER *ppAnimController
);
Parameters
-
MaxNumAnimationOutputs [in]
-
Type: UINT
Maximum number of animation outputs the controller can support.
-
MaxNumAnimationSets [in]
-
Type: UINT
Maximum number of animation sets that can be mixed.
-
MaxNumTracks [in]
-
Type: UINT
Maximum number of animation sets that can be mixed simultaneously.
-
MaxNumEvents [in]
-
Type: UINT
Maximum number of outstanding events that the controller will support.
-
ppAnimController [out]
-
Type: LPD3DXANIMATIONCONTROLLER*
Pointer to the animation controller object created. See ID3DXAnimationController.
Return value
Type: HRESULT
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
Requirement | Value |
---|---|
Header |
|
Library |
|
See also