Callback function for Precomputed Radiance Transfer (PRT) simulation and compression.
typedef HRESULT (WINAPI *LPD3DXSHPRTSIMCB)( FLOAT fPercentDone, LPVOID lpUserContext );
fPercentDone - Floating point number between 0 and 1.0 that represents the percentage of calculations completed (between 0 and 100 percent).
lpUserContext - Pointer to a user-defined value which is passed to the callback function; typically used by an application to pass a pointer to a data structure that provides context information for the callback function.
This function must be implemented to return S_OK to keep running the simulator. Any other value will halt the simulator.
Be sure to specify the Windows Data Types calling convention when declaring the callback function. Otherwise, stack overflows can occur.
|Minimum Operating System||Windows 98|