GLUTGAMEMODEGET(3)
π glutGameModeGet β bestie, lemme hand you a game mode value π
okay so this is glutGameModeGet, and it lives in the OpenGLUT fam, specifically in the gamemode corner of it. You ask it for a game mode parameter, it gives you the number back. That's the whole vibe. π
β¨ SYNOPSIS β¨
#include <openglut.h>
int
glutGameModeGet(GLenum pname);
πΈ PARAMETERS πΈ
- pname β the parameter value you want back, girl. that's the ask.
π DESCRIPTION π
so pname has to be one of these bad boys, no substitutes:
GLUT_GAME_MODE_ACTIVEβ returns non-zero if we are presently in gamemode. like, are we in it rn? yes or no energy.GLUT_GAME_MODE_POSSIBLEβ returns whether the requested gamemode settings are viable. (it may also actually change the mode?? π) and jsyk, it doesn't necessarily tell you whether entering gamemode will have any effect. so don't read too much into it, bestie.GLUT_GAME_MODE_WIDTHβ returns the game mode width. (in pixels π)GLUT_GAME_MODE_HEIGHTβ returns the game mode height. (in pixels π)GLUT_GAME_MODE_PIXEL_DEPTHβ returns the game mode pixel depth. (in bits β¨)GLUT_GAME_MODE_REFRESH_RATEβ returns the game mode vertical refresh frequency. (in Hz π)GLUT_GAME_MODE_DISPLAY_CHANGEDβ returns non-zero if we are presently in gamemode. (same asGLUT_GAME_MODE_ACTIVE, literally the same thing fr fr π«Ά)
β οΈ and if pname is unknown?? a warning gets printed and a value of-1comes back at you. so if you see-1just know that's the "idk her" response. π
π§ TODO π§
- Documentation
- OpenGLUT intrepretation of
GLUT_GAME_MODE_DISPLAY_CHANGED
(not me just copying the to-do list verbatim, but like, it IS the to-do list π the maintainers said what they said)
π SEE ALSO π
and that's the whole page, bestie π¦ go forth and query your game mode. this icon was served up by OpenGLUT - gamemode, and the lil footer gremlins left it as UNDATED and UNTITLED() β mysterious, iconic, no notes. periodt. ππ
π¦ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- Copyright 2004, the OpenGLUT contributors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms