ID3DXAnimationController::GetAnimationSet method

Gets an animation set.

Syntax

HRESULT GetAnimationSet(
  [in]  UINT               Index,
  [out] LPD3DXANIMATIONSET *ppAnimSet
);

Parameters

Index [in]

Type: UINT

Index of the animation set.

ppAnimSet [out]

Type: LPD3DXANIMATIONSET*

Pointer to the ID3DXAnimationSet animation set.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned: D3DERR_INVALIDCALL.

Remarks

The animation controller contains an array of animation sets. This method returns one of them at the given index.

Requirements

Requirement Value
Header
D3dx9anim.h
Library
D3dx9.lib

See also

ID3DXAnimationController