ID3DXKeyframedAnimationSet::RegisterAnimationSRTKeys method

Register the scale, rotate, and translate (SRT) key frame data for an animation.

Syntax

HRESULT RegisterAnimationSRTKeys(
  [in]        LPCSTR               pName,
  [in]        UINT                 NumScaleKeys,
  [in]        UINT                 NumRotationKeys,
  [in]        UINT                 NumTranslationKeys,
  [in]  const LPD3DXKEY_VECTOR3    *pScaleKeys,
  [in]  const LPD3DXKEY_QUATERNION *pRotationKeys,
  [in]  const LPD3DXKEY_VECTOR3    *pTranslationKeys,
  [out]       DWORD                *pAnimationIndex
);

Parameters

pName [in]

Type: LPCSTR

Pointer to the animation name.

NumScaleKeys [in]

Type: UINT

Number of scale keys.

NumRotationKeys [in]

Type: UINT

Number of rotation keys.

NumTranslationKeys [in]

Type: UINT

Number of translation keys.

pScaleKeys [in]

Type: const LPD3DXKEY_VECTOR3*

Address of a pointer to a user-allocated array of D3DXKEY_VECTOR3 vectors that the method fills with scale data.

pRotationKeys [in]

Type: const LPD3DXKEY_QUATERNION*

Address of a pointer to a user-allocated array of D3DXKEY_QUATERNION quaternions that the method fills with rotation data.

pTranslationKeys [in]

Type: const LPD3DXKEY_VECTOR3*

Address of a pointer to a user-allocated array of D3DXKEY_VECTOR3 vectors that the method fills with translation data.

pAnimationIndex [out]

Type: DWORD*

Returns the animation index.

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::GetNumScaleKeys

ID3DXKeyframedAnimationSet::GetNumRotationKeys

ID3DXKeyframedAnimationSet::GetNumTranslationKeys