D3DXSavePRTCompBufferToFile
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXSavePRTCompBufferToFile Function


Saves a compressed precomputed radiance transfer (PRT) buffer to disk.

Syntax

HRESULT WINAPI D3DXSavePRTCompBufferToFile(      

    LPCSTR pFileName,     LPD3DXPRTCOMPBUFFER pBuffer );

Parameters

pFileName
[in] Name of the file to which the compressed buffer is to be saved.
pBuffer
[in] Address of a pointer to the input ID3DXPRTCompBuffer object.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.



Remarks

The compiler setting also determines the function version. If Unicode is defined, the function call resolves to D3DXSavePRTCompBufferToFileW. Otherwise, the function call resolves to D3DXSavePRTCompBufferToFileA.

Function Information

Headerd3dx9mesh.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.