xcb_glx_is_direct(3)
β¨ xcb_glx_is_direct(3) β¨
okay bestie, so this is the manual page for xcb_glx_is_direct from the XCB Requests crew π
it lives in section 3, it's part of the XCB GLX family, and it's here to answer one very specific little question for you. let's get into it π«Ά
πΈ NAME πΈ
xcb_glx_is_direct β (the original page leaves this blank, so like... the name is the name, iykyk π)
π¦ SYNOPSIS π¦
First, you gotta bring in the header:
#include <xcb/glx.h>
β¨ Request function β¨
xcb_glx_is_direct_cookie_t xcb_glx_is_direct(xcb_connection_t *conn,
xcb_glx_context_t context);
π Reply datastructure π
typedef struct xcb_glx_is_direct_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t is_direct;
uint8_t pad1[23];
} xcb_glx_is_direct_reply_t;
π Reply function π
xcb_glx_is_direct_reply_t
*xcb_glx_is_direct_reply(xcb_connection_t *conn,
xcb_glx_is_direct_cookie_t cookie, xcb_generic_error_t **e);
π₯ REQUEST ARGUMENTS π₯
connβ the XCB connection to X11, your little hotline to the server πcontextβ TODO: NOT YET DOCUMENTED. yeah babe, they just never wrote it π
π REPLY FIELDS π
response_typeβ what kind of reply this is. In this case it'sXCB_GLX_IS_DIRECT. Fun fact: this field also shows up in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other πsequenceβ the sequence number of the last request the X11 server actually processed. it's giving receipt number π§Ύlengthβ how long the reply is, measured in words (and a word here = 4 bytes, periodt) βis_directβ TODO: NOT YET DOCUMENTED. the mystery continues π
π DESCRIPTION π
(yeah... the original page just leaves this one empty. not me noticing that π)
β¨ RETURN VALUE β¨
It hands you back an xcb_glx_is_direct_cookie_t πͺ and here's the tea: errors have to be handled when you call the reply function xcb_glx_is_direct_reply.
But if you'd rather handle your errors in the event loop instead, use xcb_glx_is_direct_unchecked β and check out xcb-requests(3) for all the details on that whole situation π«Ά
π ERRORS π
Good news bestie: this request never generates any errors. not a single one. flawless behavior, honestly π
π SEE ALSO π
(the original page lists nothing here β nothing to see, literally π)
π¦ AUTHOR π¦
Generated from glx.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org β they want your feedback fr fr π
okay that's the whole page!! π this lil writeup came to you courtesy of X Version 11 and libxcb 1.17.0, so go forth and check if your GLX context is direct, queen πβ¨
π¦ 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