![]() |
![]() |
![]() |
Creates a ID3DXKeyframedAnimationSet key framed animation set interface.
Syntax
HRESULT WINAPI D3DXCreateKeyframedAnimationSet(
LPCSTR pName, DOUBLE TicksPerSecond, D3DXPLAYBACK_TYPE Playback, UINT NumAnimations, UINT NumCallbackKeys, CONST LPD3DXKEY_CALLBACK *pCallKeys, LPD3DXKEYFRAMEDANIMATIONSET *ppAnimationSet );
Parameters
- pName
- [in] Pointer to the name of the animation set.
- TicksPerSecond
- [in] Number of key frame ticks that elapse per second.
- Playback
- [in] Type of the animation set playback loop. See D3DXPLAYBACK_TYPE.
- NumAnimations
- [in] Number of scale, rotate, and translate (SRT) animation sets.
- NumCallbackKeys
- [in] Number of callback keys.
- pCallKeys
- [in] Pointer to a D3DXKEY_CALLBACK structure that stores user callback data.
- ppAnimationSet
- [out] Address of a pointer to the ID3DXKeyframedAnimationSet key framed animation set interface.
Return Value
If the function succeeds, the return value is S_OK.
If the function fails, the return value can be one of the following values.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft Direct3D could not allocate sufficient memory to complete the call.
Function Information
Header d3dx9anim.h Import library d3dx9.lib Minimum operating systems Windows 98