Scroll to navigation

GLUTGAMEMODEGET(3) Library Functions Manual (local) GLUTGAMEMODEGET(3)

NAME

glutGameModeGetReturn the value of a game mode parameter

LIBRARY

OpenGLUT - gamemode

SYNOPSIS

#include <openglut.h>

int
glutGameModeGet(GLenum pname);

PARAMETERS


pname

The parameter value to be returned

DESCRIPTION


pname

is one of:


-


GLUT_GAME_MODE_ACTIVE

Return non-zero if we are presently in gamemode.


-


GLUT_GAME_MODE_POSSIBLE

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.


-


GLUT_GAME_MODE_WIDTH

Return the game mode width. (in pixels)


-


GLUT_GAME_MODE_HEIGHT

Return the game mode height. (in pixels)


-


GLUT_GAME_MODE_PIXEL_DEPTH

Return the game mode pixel depth. (in bits)


-


GLUT_GAME_MODE_REFRESH_RATE

Return the game mode vertical refresh frequency. (in Hz)


-


GLUT_GAME_MODE_DISPLAY_CHANGED

Return non-zero if we are presently in gamemode. (Same as


GLUT_GAME_MODE_ACTIVE.)

If


pname

is unknown, a warning is printed and a value of
-1 is returned.

TODO

Documentation

OpenGLUT intrepretation of GLUT_GAME_MODE_DISPLAY_CHANGED

SEE ALSO

glutGameModeString(3) glutEnterGameMode(3) glutLeaveGameMode(3) glutGameModeGet(3)