DXUTSetCallbackDeviceReset
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTSetCallbackDeviceReset Function


Sets the Microsoft Direct3D device reset callback function.

Syntax

VOID DXUTSetCallbackDeviceReset(      

    LPDXUTCALLBACKDEVICERESET pCallbackDeviceReset );

Parameters

pCallbackDeviceReset
[in] Pointer to a LPDXUTCALLBACKDEVICERESET callback function. If the callback function is supplied, it will be called when the Direct3D device has been reset, which will happen after a lost-device scenario.

If NULL, the sample framework will not notify the application about device reset events.

Return Value

No return value.

Remarks

The LPDXUTCALLBACKDEVICERESET callback function is the appropriate location for the application to create default pool resources, in D3DPOOL_DEFAULT memory, because these resources need to be reloaded whenever the device is reset. Resources created in the LPDXUTCALLBACKDEVICERESET callback function should be deleted in the LPDXUTCALLBACKDEVICELOST callback function.

Function Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Device Events, LPDXUTCALLBACKDEVICERESET, LPDXUTCALLBACKDEVICELOST, DXUTSetCallbackDeviceLost, Lost Devices


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.