glutGameModeGet - Man Page

Return 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)

Referenced By

glutEnterGameMode(3), glutGameModeString(3), glutLeaveGameMode(3).