GLXQUERYSERVERSTRING(3G)
π 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 ofGLX_VENDOR,GLX_VERSION, orGLX_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
glGetStringinstead π - Wanna know about GLX extensions supported by the client? Call
glXGetClientStringπ
Different girl, different job. iykyk β¨
π¦ SEE ALSO π¦
glXQueryVersionglXGetClientStringglXQueryExtensionsString
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
- 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