D3DXCreateCompressedAnimationSet
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXCreateCompressedAnimationSet Function


Creates a ID3DXCompressedAnimationSet key framed animation set interface that stores key frame data in a compressed format.

Syntax

HRESULT WINAPI D3DXCreateCompressedAnimationSet(      

    LPCSTR pName,     DOUBLE TicksPerSecond,     D3DXPLAYBACK_TYPE Playback,     LPD3DXBUFFER pCompressedData,     UINT NumCallbackKeys,     CONST LPD3DXKEY_CALLBACK *pCallKeys,     LPD3DXCOMPRESSEDANIMATIONSET *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.
pCompressedData
[in] Pointer to the ID3DXBuffer buffer that stores the animation set as compressed data.
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 ID3DXCompressedAnimationSet interface that stores key framed animation set data in a compressed format.

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_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.


Function Information

Headerd3dx9anim.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.