![]() |
![]() |
![]() |
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
Header dxut.h Import library None Minimum operating systems Windows 98
See Also
Device Events, LPDXUTCALLBACKDEVICECREATED, LPDXUTCALLBACKDEVICEDESTROYED, DXUTSetCallbackDeviceDestroyed