Advertisement

fullscreen with glut.h library

Started by September 25, 2003 02:48 PM
3 comments, last by RIDE 21 years, 5 months ago
hi @all how can i make my openGL program in fullscreen mode? i have the glut-commands: void display(void) { ... } int main(int argc, char** argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(500, 500); glutInitWindowPosition(0, 0); glutCreateWindow("..."); glutDisplayFunc(display); glutMainLoop(); return 0; } can i get fullscreen-mode with any glut-commands? - or must i do it with the Win API? any example code would not be wrong *gg* (with explanation please) thx, for usefull answers
Im not sure about glut, but I use the win api

take a look at the ChangeDisplaySettings(...) function
Advertisement
Try to search for
glutGameMode();
That is exactly what u need.
glutFullScreen();
hi,

thx for the answers... i will try it soon, ciau

This topic is closed to new replies.

Advertisement