xcb_glx_render_mode(3)
π xcb_glx_render_mode β the manual page, bestie edition
okay so this is a page from the XCB Requests corner of the X world β it's xcb_glx_render_mode, living in section 3 of the manual. pull up a chair, grab a strawberry π, and let's get into it.
β¨ NAME β¨
xcb_glx_render_mode β
(yeah bestie, the original really does just leave it blank like that. iconic mystery behaviour, honestly π)
πΈ SYNOPSIS πΈ
first things first, you gotta bring in the header:
#include <xcb/glx.h>
π¦ Request function
xcb_glx_render_mode_cookie_t xcb_glx_render_mode(xcb_connection_t *conn,
xcb_glx_context_tag_t context_tag, uint32_t mode);
π¦ Reply datastructure
typedef struct xcb_glx_render_mode_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t ret_val;
uint32_t n;
uint32_t new_mode;
uint8_t pad1[12];
} xcb_glx_render_mode_reply_t;
π¦ Reply function
xcb_glx_render_mode_reply_t
*xcb_glx_render_mode_reply(xcb_connection_t *conn,
xcb_glx_render_mode_cookie_t cookie, xcb_generic_error_t **e);
π¦ Reply accessors
uint32_t *xcb_glx_render_mode_data(const xcb_glx_render_mode_request_t
*reply);
int xcb_glx_render_mode_data_length(const xcb_glx_render_mode_reply_t
*reply);
xcb_generic_iterator_t xcb_glx_render_mode_data_end(const
xcb_glx_render_mode_reply_t *reply);
π«Ά REQUEST ARGUMENTS π«Ά
connβ your XCB connection to X11. the whole reason we're here πcontext_tagβ TODO: NOT YET DOCUMENTED. (ngl, the docs left us on read on this one π)modeβ TODO: NOT YET DOCUMENTED. (same bestie, same. no cap, nobody wrote it up π)
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_GLX_RENDER_MODE. this field is also chilling insidexcb_generic_reply_t, and you can use it to tell replies apart from each other. lowkey the little name tag of the reply world π·οΈsequenceβ the sequence number of the last request the X11 server processed.lengthβ the length of the reply, measured in words (and a word is 4 bytes, periodt).ret_valβ TODO: NOT YET DOCUMENTED.nβ TODO: NOT YET DOCUMENTED.new_modeβ TODO: NOT YET DOCUMENTED.
π DESCRIPTION π
(that's it. that's the section. it's giving minimalism, it's giving silence, it's giving absolutely nothing πβ¨ the original page ships this section empty, so we're honouring the void.)
β RETURN VALUE β
it hands you back an xcb_glx_render_mode_cookie_t. πͺ
errors have to be handled when you call the reply function xcb_glx_render_mode_reply.
but if you'd rather handle errors over in the event loop instead, use xcb_glx_render_mode_unchecked. see xcb-requests(3) for the full tea on how that works.
π ERRORS π
this request never generates any errors. not one. zero. it's the chillest request in the function, fr fr. π§
π₯ SEE ALSO π₯
(empty, bestie. nothing linked here. a whole section with nothing in it β we love a minimalist queen π)
π AUTHOR π
generated from glx.xml. got corrections or improvements? hit up xcb@lists.freedesktop.org and tell them, they'd love that for us π«Ά
and that's the whole page! this lil cutie came to you from libxcb 1.17.0, under X Version 11, dated in the classic xcb_glx_render_mode(3) style. slay, stay hydrated, and go read your docs bestie π
β¨π
π¦ 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