3、stDevice →OnDestroyDevice***///--------------------------------------------------------------------------------------// Rejects any devices that aren't acceptable by returning false//--------------------------------------------------------------------------------------bool CALLBACK Is
4、DeviceAcceptable( D3DCAPS9* pCaps, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat, bool bWindowed, void* pUserContext )...{ // Typically want to skip backbuffer formats that don't support alpha blending IDirect3D9* pD3D = DXUTGetD3DObject()
6、-------------------------------------------------------------// Create any D3DPOOL_MANAGED resources here //--------------------------------------------------------------------------------------// 当Directx3D设备被创建后,这个回调函数马上被调用,因为D3DPOOL_MANAGED资源在设备被销毁后// 需要重新装载,这里是最佳创建D3DPOOL_MANAGED资