GLXGETCLIENTSTRING(3G)
β¨ 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 ofGLX_VENDOR,GLX_VERSION, orGLX_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.
glXGetClientStringonly returns information about GLX extensions supported by the client. If you want the list of GL extensions supported by the server, you gotta callglGetStringinstead. Different queen, different job π
π¦ SEE ALSO π¦
glXQueryVersionglXQueryExtensionsStringglXQueryServerString
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
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms