FullScreen Toggle

Hello;

What’s the opposite command for glutFullScreen(), i’d like to toggle between full and windowed screen. The only way i found was when i’m in fullscreen mode to kkill the current window and re-create it in windowed mode. There must be a better way i swear.

Thanks.

Daniel Diligent.

Make sure you have the latest glut libraries. Then use:
glutGameModeString(“800x600:32@75”);
to define your fullscreen resolution/colordepth/refresh rate. Enter the game mode with this call:

glutEnterGameMode();

Then leave fullscreen with this call:
glutLeaveGameMode();

Most Nvidia drivers handle this well, but watch out for ATI and Intel i810 chipsets, as that they don’t like those calls.

Glossifah

[This message has been edited by Glossifah (edited 10-02-2000).]