Advertisement

Glut and fullscreen

Started by May 31, 2000 12:10 PM
1 comment, last by Khorn 24 years, 5 months 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?
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...
Advertisement
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