xcb_glx_make_context_current(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 is XCB_GLX_MAKE_CONTEXT_CURRENT. this field also lives in the xcb_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 is 4 bytes, 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 🫢✨