ID3DXKeyframedAnimationSet::GetTranslationKeys method

Fills an array with translational key data used for key frame animation.

Syntax

HRESULT GetTranslationKeys(
  [in] UINT              Animation,
  [in] LPD3DXKEY_VECTOR3 pTranslationKeys
);

Parameters

Animation [in]

Type: UINT

Animation index.

pTranslationKeys [in]

Type: LPD3DXKEY_VECTOR3

Pointer to a user-allocated array of D3DXKEY_VECTOR3 vectors that the method is to fill with animation translation data.

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

Requirement Value
Header
D3dx9anim.h
Library
D3dx9.lib

See also

ID3DXKeyframedAnimationSet

ID3DXKeyframedAnimationSet::GetNumTranslationKeys