GLXQUERYSERVERSTRING(3gl)
π 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
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms