D3DXCreateCompressedAnimationSet function
Creates a ID3DXCompressedAnimationSet key framed animation set interface that stores key frame data in a compressed format.
Syntax
HRESULT D3DXCreateCompressedAnimationSet(
_In_ LPCSTR pName,
_In_ DOUBLE TicksPerSecond,
_In_ D3DXPLAYBACK_TYPE Playback,
_In_ LPD3DXBUFFER pCompressedData,
_In_ UINT NumCallbackKeys,
_In_ const LPD3DXKEY_CALLBACK *pCallKeys,
_Out_ LPD3DXCOMPRESSEDANIMATIONSET *ppAnimationSet
);
Parameters
-
pName [in]
-
Type: LPCSTR
Pointer to the name of the animation set.
-
TicksPerSecond [in]
-
Type: DOUBLE
Number of key frame ticks that elapse per second.
-
Playback [in]
-
Type: D3DXPLAYBACK_TYPE
Type of the animation set playback loop. See D3DXPLAYBACK_TYPE.
-
pCompressedData [in]
-
Type: LPD3DXBUFFER
Pointer to the ID3DXBuffer buffer that stores the animation set as compressed data.
-
NumCallbackKeys [in]
-
Type: UINT
Number of callback keys.
-
pCallKeys [in]
-
Type: const LPD3DXKEY_CALLBACK*
Pointer to a D3DXKEY_CALLBACK structure that stores user callback data.
-
ppAnimationSet [out]
-
Type: LPD3DXCOMPRESSEDANIMATIONSET*
Address of a pointer to the ID3DXCompressedAnimationSet interface that stores key framed animation set data in a compressed format.
Return value
Type: HRESULT
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, E_OUTOFMEMORY.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also