Jump to content
  • Advertisement
Sign in to follow this  
derek7

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

This topic is 4752 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

if delete device and reset ,the device data will lost? and game running will corrupt?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!