Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutgamemodeget(3glut) [suse man page]

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 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
Man Page

14 More Discussions You Might Find Interesting

1. Programming

OK another question...

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)
Discussion started by: Corrail
3 Replies

2. UNIX for Dummies Questions & Answers

plz help me

how i can download the game plz tell me ????? ty :) :) :) (3 Replies)
Discussion started by: Sora21
3 Replies

3. Programming

Reversi Game - Function help

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

4. Post Here to Contact Site Administrators and Moderators

My game scores are not recording

Hi. I scored 38 on the hex game and it would not record my score. Strange. (2 Replies)
Discussion started by: MokoMoko
2 Replies

5. AIX

Question about HACMP for active-active mode

Hi all, I am new to HACMP. So sorry for the newie question. But I did search the forum and it seems that no one asks this before. So if a 2-node cluster runs in active-active mode (and the same application), what is the benefit of using HACMP ? If it runs in active-stanby, it is easy to... (9 Replies)
Discussion started by: qiulang
9 Replies

6. UNIX for Dummies Questions & Answers

text based football game?

Is there a textbased football game (American) that I can download through ubuntu server edition? (1 Reply)
Discussion started by: dadoprso
1 Replies

7. UNIX for Dummies Questions & Answers

Viewing the permissions history

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)
Discussion started by: pandeesh
1 Replies

8. Programming

This Makes NO sense. I'm making a game and getting an error, need help.

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 error... (1 Reply)
Discussion started by: lemonoid
1 Replies

9. Shell Programming and Scripting

Shell Text Based Game, This Error Makes NO sense. Please help

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)
Discussion started by: lemonoid
3 Replies

10. Shell Programming and Scripting

Snake and ladder game

Hi, I am designing snake and ladder game in unix. I am writing my script in bash shell in Solaris version. This game is designed by me for which I would like to give access to two players. When these players execute the game, there should be communication between the three participants(game... (7 Replies)
Discussion started by: ayarlaga
7 Replies

11. Programming

Java Cat and Mouse Game

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)
Discussion started by: totoro125
4 Replies

12. UNIX for Beginners Questions & Answers

Change text color from echo command?

I have a bash script that starts and stops a game among other things through in.fifo and out.fifo In game the text comes out gray . Kinda hard to see in game window . I would like to change it to purple and maybe capitalize it. #!/bin/bash #nwservctl.sh cd... (5 Replies)
Discussion started by: 222222quick
5 Replies

13. Programming

Game script

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)
Discussion started by: NaimZero
1 Replies

14. UNIX for Beginners Questions & Answers

Help with running a game on wine

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)
Discussion started by: Develon
2 Replies