🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Glut and fullscreen

Started by
1 comment, last by Khorn 24 years, 1 month ago
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?
Advertisement
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:

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...
Thanx.
It was almost as I wrote, but with some small diffs.
I''ll try it.. thanx.
Me....!? What more can I say?

This topic is closed to new replies.

Advertisement