Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > eee00533ac83fd7ebbf9846dc6d3b77b > files > 246

Io-language-graphics-and-sound-20080330-6.fc15.i686.rpm


<HTML><HEAD><TITLE>Manpage of glutEnterGameMode</TITLE>
</HEAD><BODY>
<H1>glutEnterGameMode</H1>
Section: GLUT (3GLUT)<BR>Updated: 3.7<BR><A HREF="#index">Index</A>
<A HREF="">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

glutEnterGameMode, glutLeaveGameMode - enters and leaves GLUT's game mode.
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>

<PRE>

void glutEnterGameMode(void);
void glutLeaveGameMode(void);
</PRE>

<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>


glutEnterGameMode is designed to enable high-performance fullscreen GLUT rendering, possibly
at a different screen display format.  Calling glutEnterGameMode creates a
special fullscreen GLUT window (with its own callbacks and OpenGL rendering context
state).  If the game mode string describes a possible screen display format,
GLUT also changes the screen display format to the one described by the
game mode string.  glutLeaveGameMode leaves the GLUT game mode and returns the
screen display format to its default format.

When game mode is entered, certain GLUT functionality is disable to facilitate
high-performance fullscreen rendering.  GLUT pop-up menus are not available
while in game mode.  Other created windows and subwindows are not displayed
in GLUT game mode.  Game mode will also hide all other applications running
on the computer's display screen.
The intent of these restrictions is to eliminate window
clipping issues, permit screen display format changes,
and permit fullscreen
rendering optimization such as page flipping for fullscreen buffer swaps.

After leaving game mode, the GLUT functionality disabled in game mode is
available again.  The game mode window (and its OpenGL rendering state) is
destroyed when leaving game mode.  Any windows and subwindows created before
entering the game mode are displayed in their previous locations.  The OpenGL
state of normal GLUT windows and subwindows is not disturbed by entering
and/or leaving game mode.

The following GLUT routines are ignored in game mode:  glutFullScreen,
glutSetWindowTitle, glutSetIconTitle, glutPositionWindow, glutReshapeWindow,
glutPopWindow, glutPushWindow, glutIconifyWindow, glutShowWindow,
glutHideWindow.

glutEnterGameMode can be called when already in game mode.  This will destroy
the previous game mode window (including any OpenGL rendering state) and
create a new game mode window with a new OpenGL rendering context.
Also if glutEnterGameMode is called when already in game mode and if the game mode
string has changed and describes a possible screen display format, the new
screen display format takes effect.  A reshape callback is generated if the 
game mode window changes size due to a screen display format change.

Re-entering game mode provides a mechanism for changing the screen display
format while already in game mode.  Note though that the game mode window's
OpenGL state is lost in this process and the application is responsible for
re-initializing the newly created game mode window OpenGL state when
re-entering game mode.

Game mode cannot be entered while pop-up menus are in use.

Note that the glutEnterGameMode and glutFullScreen routines operate differently.
glutFullScreen simply makes the current window match the size of the screen.
glutFullScreen does not change the screen display format and does not disable
any GLUT features such as pop-up menus; glutFullScreen continues to operate
in a &quot;windowed&quot; mode of operation.  glutEnterGameMode creates a new window
style, possibly changes the screen display mode, limits GLUT functionality,
and hides other applications.

<A NAME="lbAE">&nbsp;</A>
<H2>SEE ALSO</H2>

glutGameModeGet, glutGameModeString, glutInitDisplayString
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>

Mark J. Kilgard (<A HREF="mailto:mjk@nvidia.com">mjk@nvidia.com</A>)
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNTAX</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">SEE ALSO</A><DD>
<DT><A HREF="#lbAF">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="">man2html</A>,
using the manual pages.<BR>
Time: 19:05:09 GMT, September 15, 2003
</BODY>
</HTML>