Sign in to follow this  

GLUT does not change the screen resolution

This topic is 3723 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, I'm trying to make a program go fullscreen and change the screen resolution while at it. The problems is: it does not change the resolution. Here's the code
glutInitWindowPosition(0,0);
glutInitWindowSize(width, height);	
glutCreateWindow(title);
glutMainLoop();	

What could be wrong? Are any differences between GLUT and free glut when changing resolution?

Share this post


Link to post
Share on other sites
That code, by itself, will create a window with size width×height located at (0, 0). There's nothing there saying anything about full screen or chaning resolution. Either create some arbitrary window and call glutFullScreen to get a maximized and undecorated window, or use GLUT game mode to change resolution if the default one isn't what you want.

Share this post


Link to post
Share on other sites

This topic is 3723 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this