PDA

View Full Version : Full screen in 800*600



01-23-2003, 11:42 AM
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!

Stack Overflow
01-23-2003, 11:47 AM
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).]

01-23-2003, 12:42 PM
It works...thx, you're a God

M/\dm/\n
01-24-2003, 03:56 AM
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/\n (edited 01-24-2003).]

Bob
01-24-2003, 05:13 AM
When you change display settings, you must also destroy and recreate the rendering context.