glutGameModeGet(3GLUT) GLUT glutGameModeGet(3GLUT)NAME
glutGameModeGet - retrieves GLUT device information represented by integers.
SYNTAX
#include <GLUT/glut.h>
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 initially. Game mode becomes active when glu-
tEnterGameMode is called. Game mode becomes inactive 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 informa-
tion to return. Requesting game mode information for an invalid GLUT game mode information name returns negative one.
SEE ALSO
glutGet, glutDeviceGet, glutLayerGet, glutGameModeString, glutEnterGameMode, glutLeaveGameMode
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutGameModeGet(3GLUT)
Check Out this Related Man Page
UNTITLED LOCAL UNTITLED
NAME
glutGameModeGet -- 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)
Epoch
Ok i am looking to start coding for an online text game, The game is called Ansalon for those who are interested *The original, not to be confused with the newer Ansalon* And i was wondering if anyone could point me in the right direction of where i can go to start looking at information for that.... (3 Replies)
So I am making a Reversi program, and I found that a function doesn't work correctly as it should.
int check_file(int x, int y, int xinc, int yinc, int xmax, int ymax, int xmin,
int ymin, char board, char piece, int ai)
{
char opponent = flipped(piece);
int valid = 0;
int x1 =... (2 Replies)
Discussion started by: Octal
2 Replies
5. Post Here to Contact Site Administrators and Moderators
For example I am creating a file with 646 mode and then later I changed to 767 mode .after some time I want to see what was the initial permission mode .
Here it's 646.. Can we retrieve this info from anywhere ?
Thanks (1 Reply)
Okay so I'm making a simple text based game that branches into different scenarios. By branching I mean branching off into whole different files with that part of the game in it. I got tired of working on scenario 1 so I'm working on scenario 2. As I get started and try to test it, I get an... (3 Replies)
I am having problems with another exercise from a website to learn Java.
I am supposed to create classes for a game called cat and mouse.
Basically, there is a grid 5x5 (representing the island) surrounded by water and has 6 bridges off the grid. The cat is hungry and wants the mouse, but the... (4 Replies)
Hi everyone, I need some help seriously. The game is in text mode. It will be based on questions and answers and simple commands. A menu containing options of the game including:
1-Create a new player.
2-Identify as existing player.
3-Launch a new game: this action opens a new game for an... (1 Reply)
Hello, everyone. I hope it's okay to post again. I'm having an issue with a game called I Wanna Be the Boshy.
I looked at winehq for the game and found that it has a platinum rating. However, that was for wine version 2.4.
When I try to start the game with wine 4.0 or 2.4, I just get a screen... (2 Replies)