Glut and fullscreen
Hi.
How can I get a fullscreen with glut??
All I get with glutFullscreen is to maximize the window, and not to open it up in a screen of its own. (Windows)
Me....!? What more can I say?
Hi Khorn,
I''m a bit surprised by that behaviour (maximising instead of going to proper fullscreen). Here''s what I do to get a fullscreen mode going with GLUT:
... this always seems to work for me.
Hope that helped
-------------
squirrels are a remarkable source of protein...
I''m a bit surprised by that behaviour (maximising instead of going to proper fullscreen). Here''s what I do to get a fullscreen mode going with GLUT:
int main(int argc, char *argv){ int MAIN_WINDOW; glutInit(argc, argv); glutInitDisplayMode(GLUT_DOUBLE); //for double buffering MAIN_WINDOW = glutCreateWindow("doesn''t matter"); glutSetWindow(MAIN_WINDOW); glutFullScreen(); //whatever for rest of program... //.... // register callbacks, go into glut main loop etc return 0;}
... this always seems to work for me.
Hope that helped
-------------
squirrels are a remarkable source of protein...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement