DXUTSetCallbackDeviceCreated
Microsoft DirectX 9.0 SDK Update (October 2004)

DXUTSetCallbackDeviceCreated Function


Sets the Microsoft Direct3D device-created callback function.

Syntax

VOID DXUTSetCallbackDeviceCreated(      

    LPDXUTCALLBACKDEVICECREATED pCallbackDeviceCreated );

Parameters

pCallbackDeviceCreated
[in] Pointer to a LPDXUTCALLBACKDEVICECREATED callback function. If the callback function is supplied, it will be called after the Direct3D device has been created. Device creation will happen during application initialization and if the device is changed.

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

Return Value

No return value.

Remarks

The LPDXUTCALLBACKDEVICECREATED callback function is the appropriate location for the application to create resources in D3DPOOL_MANAGED or D3DPOOL_SYSTEMMEM memory, because these resources do not need to be reloaded whenever the device is reset. Resources created in the LPDXUTCALLBACKDEVICECREATED callback function should be deleted in the LPDXUTCALLBACKDEVICEDESTROYED callback function.

Function Information

Headerdxut.h
Import libraryNone
Minimum operating systems Windows 98

See Also

Device Events, LPDXUTCALLBACKDEVICECREATED, LPDXUTCALLBACKDEVICEDESTROYED, DXUTSetCallbackDeviceDestroyed


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