GLXGETCLIENTSTRING(3gl)

πŸ“¦ version 24.3.3, in opensuse-leap 16.0

✨ NAME ✨

glXGetClientString β€” bestie, it hands you back a string that describes the client πŸ’…


πŸŽ€ C SPECIFICATION πŸŽ€

const char * glXGetClientString( Display *dpy,
                                 int name )

also chillin' in the raw page: delim $$ (troff math-mode vibes, not your problem, ignore her 🫢)


🌸 PARAMETERS 🌸

  • dpy β€” the connection to the X server, aka the plug you're talking through πŸ”Œ
  • name β€” which string you want back, girl. Pick exactly one of GLX_VENDOR, GLX_VERSION, or GLX_EXTENSIONS.

πŸ’– DESCRIPTION πŸ’–

glXGetClientString returns a string describing some aspect of the client library. The possible values for name are GLX_VENDOR, GLX_VERSION, and GLX_EXTENSIONS. And if name is not set to one of those values? It returns NULL. That's it. Nothing. Ghosted. πŸ’€ The format and contents of the vendor string is implementation dependent β€” so whatever it gives you is what it gives you, no cap.

The extensions string is null-terminated and contains a space-separated list of extension names. (The extension names never contain spaces β€” not even once, so don't worry about parsing drama.) And if there are literally no extensions to GLX? Then the empty string is returned. Empty. Blank. A whole lot of nothing 🌈

The version string is laid out like this, bestie:

<major_version.minor_version><space><vendor-specific info>

Both the major and minor portions of the version number are of arbitrary length β€” so don't go assuming they're one digit, okay? πŸ‘‘ The vendor-specific information is optional. However, if it is present, the format and contents are implementation specific. So it's giving "mystery box" energy πŸ™ˆ


πŸ”₯ NOTES πŸ”₯

glXGetClientString is available only if the GLX version is 1.1 or greater. Like, that's the entry fee, babe.

If the GLX version is 1.1 or 1.0, the GL version must be 1.0. If the GLX version is 1.2, then the GL version must be 1.1. Those are the rules, periodt.

glXGetClientString only returns information about GLX extensions supported by the client. If you want the list of GL extensions supported by the server, you gotta call glGetString instead. Different queen, different job πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

  • glXQueryVersion
  • glXQueryExtensionsString
  • glXQueryServerString

and that's the whole page, bestie!! πŸ’– this was GLXGETCLIENTSTRING in the 3G manual β€” the source/version and date bits at the bottom of the original just say GLXGETCLIENTSTRING() and nothing else, so consider this your little sign-off instead πŸŽ€βœ¨ mwah, go read your extensions responsibly 🫢

πŸ“¦ where this page comes from