Callback function for Precomputed Radiance Transfer (PRT) simulation and compression.


    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.

Return Value

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.

Header d3dx9mesh.h
Import Library d3dx9.lib
Minimum Operating System Windows 98


Callback Functions