GLXQUERYCONTEXTINFOEXT(3G)
β¨ NAME β¨
glXQueryContextInfoEXT β bestie, this is the one that queries context information. that's it, that's the whole job π
okay so real quick, we're in section 3G of the manual, this is the GLX corner of the world, and this little function is your go-to when you wanna peek at what a rendering context is actually made of. let's get into it π¦
πΈ C SPECIFICATION πΈ
int glXQueryContextInfoEXT( Display *dpy,
GLXContext ctx,
int attribute,
int *value )
and also, straight from the source, this line right here:
delim $$
yep, that's in there too. iconic formatting business, we don't question it β¨
π PARAMETERS π
dpyβ the connection to the X server. your lil phone line to the display, basically πctxβ a GLX rendering context. the main character we're interrogating πattributeβ the visual ID that the context was created with.valueβ the X screen that the context was created for._param5β the context with which this context shares display lists, orNULLif this context does not share display lists. yes bestie, that's literally the parameter name in the docs. we move on π«Ά
π DESCRIPTION π
glXQueryContextInfoEXT returns the visual id, the screen number, and the share list of ctx. that's the whole vibe check on your context π§
heads up bestie: this call may cause a round trip to the server. so like, it's not free, okurrr? use it with intention π
glXQueryContextInfoEXT is part of the EXT_import_context extension β it is not part of the core GLX command set. so if you go looking for it in core GLX and it's not there, that's why, don't panic π
if GLX_EXT_import_context shows up in the string returned by glXQueryExtensionsString β and you call that with the argument GLX_EXTENSIONS β then the EXT_import_context extension is supported. that's your confirmation bestie, that's the receipts π§Ύβ¨
π₯ ERRORS π₯
GLXBadContextgets generated ifctxdoes not refer to a valid context.
so if you hand it a context that isn't a real context, it's gonna be like "girl what" and throw that at you. feed it a valid one, fr fr π
π SEE ALSO π
glXCreateContextglXQueryVersionglXQueryExtensionsString
and that's the whole page, bestie π«Ά this was GLXQUERYCONTEXTINFOEXT in section 3G of the manual β the same name up top and down at the bottom, because it's giving symmetry, it's giving consistency, it's giving main character energy ππ go query some context, you absolute icon β
π¦ 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