This manual page is for Mac OS X version 10.6.3

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



glutGameModeGet(3GLUT)                              GLUT                              glutGameModeGet(3GLUT)



NAME
       glutGameModeGet - retrieves GLUT device information represented by integers.

SYNTAX
       int glutGameModeGet(GLenum info);

ARGUMENTS
       info      Name of game mode information to retrieve.

       GLUT_GAME_MODE_ACTIVE
               Non-zero  if  GLUT's  game  mode is active; zero if not active.  Game mode is not active ini-tially. initially.
               tially.  Game mode becomes active when glutEnterGameMode is called.  Game mode becomes  inac-tive inactive
               tive when glutLeaveGameMode is called.

       GLUT_GAME_MODE_POSSIBLE
               Non-zero if the game mode string last specified to glutGameModeString is a possible game mode
               configuration; zero otherwise.  Being "possible" does not guarantee  that  if  game  mode  is
               entered   with   glutEnterGameMode   that   the   display  settings  will  actually  changed.
               GLUT_GAME_MODE_DISPLAY_CHANGED should be called once game mode is entered to determine if the
               display mode is actually changed.

       GLUT_GAME_MODE_WIDTH
               Width in pixels of the screen when game mode is activated.

       GLUT_GAME_MODE_HEIGHT
               Height in pixels of the screen when game mode is activated.

       GLUT_GAME_MODE_PIXEL_DEPTH
               Pixel depth of the screen when game mode is activiated.

       GLUT_GAME_MODE_REFRESH_RATE
               Screen  refresh  rate  in  cyles  per  second  (hertz)  when game mode is activated.  Zero is
               returned if the refresh rate is unknown or cannot be queried.

       GLUT_GAME_MODE_DISPLAY_CHANGED
               Non-zero if entering game mode actually changed the  display  settings.   If  the  game  mode
               string is not possible or the display mode could not be changed for any other reason, zero is
               returned.

DESCRIPTION
       glutGameModeGet retrieves GLUT game mode information represented  by  integers.  The  info  parameter
       determines  what  type  of  game  mode information to return. Requesting game mode information for an
       invalid GLUT game mode information name returns negative one.

SEE ALSO
       glutGet(3G), glutDeviceGet(3G), glutLayerGet(3G), glutGameModeString(3G), glutEnterGameMode(3G), glutLeaveGameMode(3G)


AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)



GLUT                                                 3.7                              glutGameModeGet(3GLUT)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...