ID3DXAnimationController::CloneAnimationController method

Clones, or copies, an animation controller.

Syntax

HRESULT CloneAnimationController(
  [in] UINT                      MaxNumAnimationOutputs,
  [in] UINT                      MaxNumAnimationSets,
  [in] UINT                      MaxNumTracks,
  [in] UINT                      MaxNumEvents,
  [in] 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 the controller can support.

MaxNumTracks [in]

Type: UINT

Maximum number of tracks the controller can support.

MaxNumEvents [in]

Type: UINT

Maximum number of events the controller can support.

ppAnimController [in]

Type: LPD3DXANIMATIONCONTROLLER*

Address of a pointer to the cloned ID3DXAnimationController animation controller.

Return value

Type: HRESULT

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

Requirements

Requirement Value
Header
D3dx9anim.h
Library
D3dx9.lib

See also

ID3DXAnimationController