GLXQUERYEXTENSIONSSTRING(3G)

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

πŸ’– GLXQUERYEXTENSIONSSTRING πŸ’–

okay bestie, gather round, because today we're talking about glXQueryExtensionsString β€” it's a GLX function, manual section 3G, and it is literally the "so what can this thing even do" girlie of the GLX world. no cap.


✨ NAME ✨

glXQueryExtensionsString β€” return list of supported extensions πŸ¦‹


✨ C SPECIFICATION ✨

like, here's the exact shape of it, don't freestyle this:

const char * glXQueryExtensionsString( Display *dpy,
                                       int screen )
delim $$

(yes that delim $$ line is really in there, it's a troff thing, we keep it, we respect it πŸ’…)


✨ PARAMETERS ✨

  • dpy β€” Specifies the connection to the X server. it's the link-up, the group chat you're pulling info from 🫢
  • screen β€” Specifies the screen. which one tho. you gotta say which one.

✨ DESCRIPTION ✨

so glXQueryExtensionsString hands you back a pointer to a string that describes which GLX extensions are supported on the connection. icon behaviour honestly.

that string is null-terminated and it's a space-separated list of extension names. the extension names themselves never contain spaces β€” not even once, not even for drama. so spaces = the dividers, always.

and if there are like... no extensions to GLX at all? you get the empty string. it's giving nothing because there IS nothing. 😭


✨ NOTES ✨

heads up bestie: glXQueryExtensionsString is available only if the GLX version is 1.1 or greater. check first or you're gonna have a bad time.

also, super important, don't get it twisted: glXQueryExtensionsString only returns info about GLX extensions. if you want the GL extensions list, you gotta call glGetString. different function, different vibe, different list. ✨


✨ SEE ALSO ✨

  • glGetString
  • glXQueryVersion
  • glXQueryServerString
  • glXGetClientString

and that's the whole page, bestie!! 🌈 this was the GLXQUERYEXTENSIONSSTRING manual page, hanging out in section 3G of your friendly neighbourhood Unix manuals β€” the header up top and the footer down bottom both say the same thing because it's that girl, and she said it twice for emphasis. πŸ‘‘πŸ’– mwah, go query some extensions, you got this πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from