GLXQUERYEXTENSION(3G)

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

✨ glXQueryExtension ✨

okay bestie, welcome to section 3G of the manual β€” this is glXQueryExtension, and it's literally just one tiny question: does your X server speak GLX or not? πŸ¦‹


πŸ’… NAME πŸ’…

glXQueryExtension β€” indicate whether the GLX extension is supported

fr fr, that's the whole job. one question, one answer, no drama. 🌸


🌈 C SPECIFICATION 🌈

Bool glXQueryExtension( Display *dpy,
                        int *errorBase,
                        int *eventBase )

delim $$

yes, delim $$ is in there too, we keep it exactly as it is, no cap. πŸŽ€


πŸ“ PARAMETERS πŸ“

  • dpy β€” Specifies the connection to the X server. this is your lil link to the server, the group chat you're sliding into. πŸ’Œ
  • errorBase β€” Returns the base error code of the GLX server extension. it hands you back where GLX's error codes start.
  • eventBase β€” Returns the base event code of the GLX server extension. same energy, but for events.

πŸ‘‘ DESCRIPTION πŸ‘‘

so glXQueryExtension returns True if the X server of connection dpy supports the GLX extension, and False otherwise. that's it. that's the vibe check. πŸ”₯

if True is returned, then errorBase and eventBase return the error base and event base of the GLX extension. so you get the receipts. 🧾✨

otherwise β€” like, if it's False β€” errorBase and eventBase are unchanged. not zeroed, not cleared, just... left alone. untouched. icon behavior honestly. πŸ™ˆ

also! errorBase and eventBase do not return values if they are specified as NULL. so if you pass NULL, nothing comes back, because there's nowhere for it to go. makes sense, periodt. πŸ’…


πŸŽ€ NOTES πŸŽ€

eventBase is included for future extensions. GLX does not currently define any events.

so yeah, eventBase is lowkey the friend who came along just in case β€” they're here for what's coming later, not for right now. 🫢


πŸ” SEE ALSO πŸ”

  • glXQueryVersion

and that's the whole page bestie, you ate it. πŸ’–

the footer of this lil manual page is just GLXQUERYEXTENSION(), all caps, no date, no version, just the name staring back at you like main character energy. slay. πŸ‘‘βœ¨

πŸ“¦ where this page comes from