Full screen in 800*600

Hi.
I use the instruction “glutFullScreen” to toggle in Full Screen mode, but this function hasn’t the parameter “resolution”, so when the instruction is done, the resolution of the FullScreen is the “active” resolution.
I want the video game I programm to be run in 800*600 on every machine. How can I do?
I programm with VC++.

Kisses!

Try this, instead of glutFullscreen():

glutGameModeString(“800x600”);
glutEnterGameMode();

Edit: if you want to define the bit color, for instance 32 bits, do the following:

glutGameModeString(“800x600:32”);
glutEnterGameMode();

  • VC6-OGL

[This message has been edited by VC6-OGL (edited 01-23-2003).]

It works…thx, you’re a God

BTW, I have problems returning from fullscreen mode. When I swith to it I can call glutPostRedisplay();, but after glutLeaveGameMode(); I can’t. I get referenced at xxxxxxx error.
And why I must rebuild all the lists when I change display mode?

[This message has been edited by M/\dm/
(edited 01-24-2003).]

When you change display settings, you must also destroy and recreate the rendering context.