LPD3DXSHPRTSIMCB
Microsoft DirectX 9.0 SDK Update (October 2004)

LPD3DXSHPRTSIMCB


Note: This documentation is preliminary and is subject to change.

Callback function for precomputed radiance transfer (PRT) simulation and compression.

Syntax

typedef HRESULT (WINAPI *LPD3DXSHPRTSIMCB)(
    FLOAT fPercentDone,
    LPVOID lpUserContext
);

Parameters

fPercentDone - Floating point number between 0 and 1.0 that represents the percentage of spherical harmonics (SH) 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 abort the simulator.

Remarks

Be sure to specify the WINAPI World Wide Web link calling convention when declaring the callback function. Otherwise, stack overflows can occur.

Headerd3dx9mesh.h
Import Libraryd3dx9.lib
Minimum Operating SystemWindows 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.