Jump to content
  • Advertisement
Sign in to follow this  
webjeff

OpenGL Fullscreen with opengl

This topic is 4727 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

I'm trying to make an app which can go into fullscreen mode, change modes while in fullscreen, lets say from 640x480 to 800x600 and then can go back to windowed mode as well. I am using ChangeDisplaySettings to get the valid display modes as well as set them. It works on almost every computer except a new hp laptop with an ATI x600 card. It changes into the 640x480 mode, and then every mode after that returns a (DISP_CHANGE_RESTART) meaning "must reboot for change to take effect" error code from "ChangeDisplaySettings". So, is there a solution that will work on all machines? The code I have works on most, but I can't find anyone (searching) that is having similar problems. Thanks Jeff.

Share this post


Link to post
Share on other sites
Advertisement
I just started last night using GLUT and I found a website with LOADS of good examples for starting out. Infact, what you're wanting was in one of the examples.

While(In-game) sorta speak, changing resolution and windowed mode on/off.

Hopefully this is what you're looking for (As I said, I'm new, but it seems using GLUT I was able to do the same thing you're wanting to do, via this example).

http://www.lighthouse3d.com/opengl/glut/index.php?gameglut

Sample VC++ Source Project.
http://www.lighthouse3d.com/opengl/glut/examples/glutgm.zip

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!