GLXQUERYSERVERSTRING(3G)

πŸ“¦ version 1.1, in centos-stream 9, fedora 43, fedora 44

πŸ’– NAME πŸ’–

glXQueryServerString β€” bestie, it hands you a lil string all about the server 🫢


✨ C SPECIFICATION ✨

const char * glXQueryServerString( Display *dpy,
                                   int screen,
                                   int name )

delim $$

(yes the delim $$ line lives there too, she's part of the family πŸ’œ)


πŸŽ€ PARAMETERS πŸŽ€

  • dpy β€” the connection to the X server. your link-up, your group chat with the server basically πŸ’…
  • screen β€” which screen number we're talking about πŸ‘€
  • name β€” tells it which string you want back. pick exactly one of GLX_VENDOR, GLX_VERSION, or GLX_EXTENSIONS. no mixing, no vibes-based guessing ✨

🌸 DESCRIPTION 🌸

So glXQueryServerString returns a pointer to a static, null-terminated string that describes some aspect of the server's GLX extension. It's giving "here's the tea about this one specific thing" πŸ“

The possible values for name, and the format of the strings you get back, are the exact same as for glXGetClientString. Consistency queen πŸ‘‘

And if name is not set to a recognized value? You get NULL. That's it. No string, no drama, just NULL 😭


πŸ’€ NOTES πŸ’€

Heads up bestie, glXQueryServerString is available only if the GLX version is 1.1 or greater. If you're on something older, she simply does not exist for you πŸ™ˆ
  • If the GLX version is 1.1 or 1.0, the GL version must be 1.0.
  • If the GLX version is 1.2, the GL version must be 1.1.

Also, super important, don't get it twisted: glXQueryServerString only returns info about GLX extensions supported by the server. That's it. That's her whole lane 🚫

  • Wanna know about GL extensions? Call glGetString instead 🌈
  • Wanna know about GLX extensions supported by the client? Call glXGetClientString πŸ’–

Different girl, different job. iykyk ✨


πŸ¦‹ SEE ALSO πŸ¦‹

  • glXQueryVersion
  • glXGetClientString
  • glXQueryExtensionsString

okay that's the whole page, you absolutely ate that read, mwah πŸ’‹ the footer just says GLXQUERYSERVERSTRING() again (that's the source/version + date line doing its lil signature move), so consider this your cute sign-off β€” go forth and query those server strings, main character πŸ‘‘βœ¨πŸ’…

πŸ“¦ where this page comes from