glutInitWindowPosition(0,0);
glutInitWindowSize(width, height);
glutCreateWindow(title);
glutMainLoop();
GLUT does not change the screen resolution
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
What could be wrong? Are any differences between GLUT and free glut when changing resolution?
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
Popular Topics
Advertisement