glutGameModeGet (3) - Linux Manuals

glutGameModeGet: Return the value of a game mode parameter

NAME

glutGameModeGet - Return the value of a game mode parameter

LIBRARY

OpenGLUT - gamemode

SYNOPSIS

In openglut.h Ft int Fn glutGameModeGet GLenum pname

PARAMETERS

Bf Em
 pname Ef
     The parameter value to be returned

DESCRIPTION

Bf Sy
 pname Ef
 is one of:


  Bf Sy
 GLUT_GAME_MODE_ACTIVE Ef
 
Return non-zero if we are presently in gamemode.


  Bf Sy
 GLUT_GAME_MODE_POSSIBLE Ef
 
Return whether the requested gamemode settings are viable. (May also actually change the mode?) Does not necessarily tell you whether entering gamemode will have any effect.


  Bf Sy
 GLUT_GAME_MODE_WIDTH Ef
 
Return the game mode width. (in pixels)


  Bf Sy
 GLUT_GAME_MODE_HEIGHT Ef
 
Return the game mode height. (in pixels)


  Bf Sy
 GLUT_GAME_MODE_PIXEL_DEPTH Ef
 
Return the game mode pixel depth. (in bits)


  Bf Sy
 GLUT_GAME_MODE_REFRESH_RATE Ef
 
Return the game mode vertical refresh frequency. (in Hz)


  Bf Sy
 GLUT_GAME_MODE_DISPLAY_CHANGED Ef
 
Return non-zero if we are presently in gamemode. (Same as Bf Sy
 GLUT_GAME_MODE_ACTIVE.) Ef
 

If Bf Sy
 pname Ef
 is unknown, a warning is printed and a value of
 -1 is returned.

TODO

Documentation

OpenGLUT intrepretation of GLUT_GAME_MODE_DISPLAY_CHANGED