ID3DXKeyframedAnimationSet::GetRotationKey method

Get rotation information for a specific key frame in the animation set.

Syntax

HRESULT GetRotationKey(
  [in] UINT                 Animation,
  [in] UINT                 Key,
  [in] LPD3DXKEY_QUATERNION pRotationKeys
);

Parameters

Animation [in]

Type: UINT

Animation index.

Key [in]

Type: UINT

Key frame.

pRotationKeys [in]

Type: LPD3DXKEY_QUATERNION

Pointer to the rotation data. See D3DXKEY_QUATERNION.

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.

Requirements

Header
D3dx9anim.h
Library
D3dx9.lib

See also

ID3DXKeyframedAnimationSet