xcb_glx_make_context_current(3)
β¨ xcb_glx_make_context_current β¨
okay so bestie, welcome to the XCB Requests corner of the manual, page xcb_glx_make_context_current(3). this is a GLX request, it's giving "tell the server which GL context is the main character now" energy. let's get into it π
NAME π
xcb_glx_make_context_current -
ngl the original left this one blank, so we're leaving it blank too. no notes. π«Ά
SYNOPSIS πΈ
#include <xcb/glx.h>
Request function π¦
xcb_glx_make_context_current_cookie_t
xcb_glx_make_context_current(xcb_connection_t *conn,
xcb_glx_context_tag_t old_context_tag,
xcb_glx_drawable_t drawable, xcb_glx_drawable_t read_drawable,
xcb_glx_context_t context);
Reply datastructure π
typedef struct xcb_glx_make_context_current_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
xcb_glx_context_tag_t context_tag;
uint8_t pad1[20];
} xcb_glx_make_context_current_reply_t;
Reply function π
xcb_glx_make_context_current_reply_t
*xcb_glx_make_context_current_reply(xcb_connection_t *conn,
xcb_glx_make_context_current_cookie_t cookie,
xcb_generic_error_t **e);
REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, fr fr.old_context_tagβ TODO: NOT YET DOCUMENTED.drawableβ TODO: NOT YET DOCUMENTED.read_drawableβ TODO: NOT YET DOCUMENTED.contextβ TODO: NOT YET DOCUMENTED.
not the docs ghosting us on four whole arguments π that's literally what the original says though, so we're not making stuff up. periodt.
REPLY FIELDS β
response_typeβ the type of this reply, which in this case isXCB_GLX_MAKE_CONTEXT_CURRENT. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's basically the reply's little name tag π·οΈsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words. and a word is4bytes, iykyk.context_tagβ TODO: NOT YET DOCUMENTED.
DESCRIPTION π
...yeah. the original description section is empty. we are simply not going to invent lore, bestie. moving on π§
RETURN VALUE π
Returns an xcb_glx_make_context_current_cookie_t. Errors have to be handled when calling the reply function xcb_glx_make_context_current_reply.
If you want to handle errors in the event loop instead, use xcb_glx_make_context_current_unchecked. See xcb-requests(3) for details.
cookie first, then you go back for the reply. it's giving "order your drink, then pick it up at the counter" β
ERRORS π
This request does never generate any errors. zero drama, zero chaos, she's well-behaved π
SEE ALSO π
the original lists nothing here. nothing!! we're honoring the void π³οΈβ¨
AUTHOR π
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
okay that's the whole page, you ate that π this was X Version 11, libxcb 1.17.0, and the page is xcb_glx_make_context_current(3). go make that context current, bestie, no cap π«Άβ¨
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms