• Advertisement
Sign in to follow this  

GLUT does not change the screen resolution

This topic is 3796 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
Advertisement
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
Sign in to follow this  

  • Advertisement