![]() |
![]() |
![]() |
Sets the Microsoft Direct3D lost-device callback function.
Syntax
VOID DXUTSetCallbackDeviceLost(
LPDXUTCALLBACKDEVICELOST pCallbackDeviceLost );
Parameters
- pCallbackDeviceLost
- [in] Pointer to a LPDXUTCALLBACKDEVICELOST callback function. If the callback function is supplied, it will be called when the Direct3D device has been lost, which will happen after a lost-device scenario.If NULL, the sample framework will not notify the application about lost-device events.
Return Value
No return value.
Remarks
Resources created in the LPDXUTCALLBACKDEVICERESET callback function should be deleted in the LPDXUTCALLBACKDEVICELOST callback function. The deleted resources will generally include all resources created in D3DPOOL_DEFAULT memory.
Function Information
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
Device Events, LPDXUTCALLBACKDEVICELOST, LPDXUTCALLBACKDEVICERESET, DXUTSetCallbackDeviceReset, Lost Devices