xcb_glx_get_materialiv(3)
xcb_glx_get_materialiv π β¨
okay bestie, welcome to the XCB Requests corner of the manual, section 3, and today's main character is xcb_glx_get_materialiv(3) β a lil GLX request that goes and fetches some material values for you. it's giving "quiet request, loud reply energy" π«Ά
πΈ NAME πΈ
xcb_glx_get_materialiv β no cap, the original literally left this one blank. it's the GLX "get material, but integers" request. that's the vibe. π
β¨ SYNOPSIS β¨
first things first, you gotta bring the header along:
#include <xcb/glx.h>
π Request function π
xcb_glx_get_materialiv_cookie_t
xcb_glx_get_materialiv(xcb_connection_t *conn,
xcb_glx_context_tag_t context_tag, uint32_t face,
uint32_t pname);
π¦ Reply datastructure π¦
here's the lil struct the server hands back to you, literally every field:
typedef struct xcb_glx_get_materialiv_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t pad1[4];
uint32_t n;
int32_t datum;
uint8_t pad2[12];
} xcb_glx_get_materialiv_reply_t;
π Reply function π
xcb_glx_get_materialiv_reply_t
*xcb_glx_get_materialiv_reply(xcb_connection_t *conn,
xcb_glx_get_materialiv_cookie_t cookie, xcb_generic_error_t **e);
β Reply accessors β
these are the lil helpers that reach into the reply for you, so you don't gotta do pointer math yourself (iconic behaviour, honestly):
int32_t *xcb_glx_get_materialiv_data(const
xcb_glx_get_materialiv_request_t *reply);
int xcb_glx_get_materialiv_data_length(const
xcb_glx_get_materialiv_reply_t *reply);
xcb_generic_iterator_t xcb_glx_get_materialiv_data_end(const
xcb_glx_get_materialiv_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your whole link to the server, your bestie fr.context_tagβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "not yet" and honestly same πfaceβ TODO: NOT YET DOCUMENTED. no notes, no description, just vibes πpnameβ TODO: NOT YET DOCUMENTED. mysterious. elusive. we love a cryptic king π
π REPLY FIELDS π
response_typeβ the type of this reply, in this caseXCB_GLX_GET_MATERIALIV. this field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other, which is lowkey essential when you're juggling a million requests.sequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words. reminder: a word is 4 bytes, periodt.nβ TODO: NOT YET DOCUMENTED. another mystery, another slay πΈdatumβ TODO: NOT YET DOCUMENTED. the datum remains undocumented. we respect its privacy π«Ά
π§ DESCRIPTION π§
the original DESCRIPTION section is empty. truly nothing. a blank canvas. an empty group chat. we simply must live with that πβ¨
π RETURN VALUE π
Returns an xcb_glx_get_materialiv_cookie_t. Errors have to be handled when calling the reply function xcb_glx_get_materialiv_reply.
If you want to handle errors in the event loop instead, use xcb_glx_get_materialiv_unchecked. See xcb-requests(3) for details. (yes bestie, that's a whole other manual page, go read it, it's giving homework but make it cute π)
π ERRORS π
This request does never generate any errors.
like. zero. none. the error-free icon we all aspire to be. no drama, no tea, no error codes. we love that for it π
π₯ SEE ALSO π₯
nothing here in the original, bestie β the section exists, the references do not. an empty SEE ALSO is its own kind of aesthetic π
π AUTHOR π
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie π this was xcb_glx_get_materialiv(3) from X Version 11, libxcb 1.17.0 β go forth, call your cookie, handle your errors, and remember: a word is 4 bytes. mwah πβ¨π¦
π¦ 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