GLUT does not change the screen resolution

Started by
0 comments, last by Brother Bob 16 years, 6 months ago
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?
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.

This topic is closed to new replies.

Advertisement