![]() |
![]() |
![]() |
Register the scale, rotate, and translate (SRT) key frame data for an animation.
Syntax
HRESULT RegisterAnimationSRTKeys(
LPCSTR pName, UINT NumScaleKeys, UINT NumRotationKeys, UINT NumTranslationKeys, CONST LPD3DXKEY_VECTOR3 *pScaleKeys, CONST LPD3DXKEY_QUATERNION *pRotationKeys, CONST LPD3DXKEY_VECTOR3 *pTranslationKeys, DWORD *pAnimationIndex );
Parameters
- pName
- [in] Pointer to the animation name.
- NumScaleKeys
- [in] Number of scale keys.
- NumRotationKeys
- [in] Number of rotation keys.
- NumTranslationKeys
- [in] Number of translation keys.
- pScaleKeys
- [in] Address of a pointer to a user-allocated array of D3DXKEY_VECTOR3 vectors that the method fills with scale data.
- pRotationKeys
- [in] Address of a pointer to a user-allocated array of D3DXKEY_QUATERNION quaternions that the method fills with rotation data.
- pTranslationKeys
- [in] Address of a pointer to a user-allocated array of D3DXKEY_VECTOR3 vectors that the method fills with translation data.
- pAnimationIndex
- [out] Returns the animation index.
Return Value
If the method succeeds, the return value is S_OK.
If the method fails, the following value will be returned:
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.
See Also
ID3DXKeyframedAnimationSet::GetNumScaleKeys, ID3DXKeyframedAnimationSet::GetNumRotationKeys, ID3DXKeyframedAnimationSet::GetNumTranslationKeys