how to change display mode from fullscreen to windowed?vice versa.

Started by
1 comment, last by Evil Steve 18 years, 11 months ago
if delete device and reset ,the device data will lost? and game running will corrupt?
Advertisement
You do, effectively, need to shutdown and restart your graphics components to do what you want.

It's not quite the same, as you don't have to worry about the D3DPOOL_MANAGED resources..

I suggest you check out the SDK's sample framework code - it's the best possible reference for this sort of mechanism [smile]

hth
Jack

<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>

If you entirely delete your device (Release()ing it), you'll lose all data (including managed resources). If you Reset() it, you lose all data except managed resources. You lose all renderstates, lights, materials, shaders, textures, etc etc.
If you have a managed resource, D3D keeps a system memory copy of it, so it can use that to recreate the resource after your device is reset.

This topic is closed to new replies.

Advertisement