GLUTGAMEMODEGET(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

πŸ’– 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 as GLUT_GAME_MODE_ACTIVE, literally the same thing fr fr 🫢)
⚠️ and if pname is unknown?? a warning gets printed and a value of -1 comes back at you. so if you see -1 just 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. πŸ‘‘πŸ’œ