Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

g7tommyB

OpenGL Changing resolution in OpenGL

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

Hi All, I was wondering how I would go about changing the resolution for my OpenGL scene. Currently I am running at 640x480 and the graphics look pretty crappy when I go full-screen (animation slows down in full-screen too). The graphics look better in partial screen mode, but how can I control the resolution in OpenGL. Most games run in higher resolution than 640x480 - don''t they? Thanks in advance! TommyB

Share this post


Link to post
Share on other sites
Advertisement
Changing resolution isn''t something handled by OpenGL. It''s platform specific.

On Windows, the ChangeDisplaySettings call will change the resoulution of your desktop allowing a fullscreen OpenGL app to render with a higher resolution.

The nehe tutorials (nehe.gamedev.net) give a pretty good explaintions on how to setup a full screen OpenGL window at the resolution you want for a couple different platforms (Window, Mac0S, SunSolaris).

Share this post


Link to post
Share on other sites

  • 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!