xcb_glx_get_materialfv(3)
π xcb_glx_get_materialfv π
okay bestie, welcome to the libxcb corner of the X universe β this one's a section 3 manpage from XCB Requests, and yeah the NAME line is literally just... empty. iconic of it, honestly. so let's get into it π«Ά
β¨ NAME β¨
xcb_glx_get_materialfv β
not me leaving the description blank π the original manpage genuinely has nothing after that dash. no cap. it's giving mystery, it's giving "figure it out", it's giving the docs are a vibe, not a contract π
πΈ SYNOPSIS πΈ
first things first, you gotta pull in the header:
#include <xcb/glx.h>
π Request function π
xcb_glx_get_materialfv_cookie_t
xcb_glx_get_materialfv(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 reply comes back in, and yes every single field matters:
typedef struct xcb_glx_get_materialfv_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t pad1[4];
uint32_t n;
xcb_glx_float32_t datum;
uint8_t pad2[12];
} xcb_glx_get_materialfv_reply_t;
π Reply function π
xcb_glx_get_materialfv_reply_t
*xcb_glx_get_materialfv_reply(xcb_connection_t *conn,
xcb_glx_get_materialfv_cookie_t cookie, xcb_generic_error_t **e);
β Reply accessors β
these are your lil helpers for digging into the reply, bestie:
xcb_glx_float32_t *xcb_glx_get_materialfv_data(const
xcb_glx_get_materialfv_request_t *reply);
int xcb_glx_get_materialfv_data_length(const
xcb_glx_get_materialfv_reply_t *reply);
xcb_generic_iterator_t xcb_glx_get_materialfv_data_end(const
xcb_glx_get_materialfv_reply_t *reply);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. the whole line to the server, yk?context_tagβ TODO: NOT YET DOCUMENTED. yeah. the docs said "we'll get to it". they did not get to it πfaceβ TODO: NOT YET DOCUMENTED. same energy, same mysterypnameβ TODO: NOT YET DOCUMENTED. the trio of "trust me bro" fields, fr fr
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_GLX_GET_MATERIALFV. this field is also present in thexcb_generic_reply_t, so you can use it to tell replies apart from each other πsequenceβ the sequence number of the last request processed by the X11 server. lowkey your receipt numberlengthβ the length of the reply, in words. and a word here is 4 bytes, so do the math before you go indexing anythingnβ TODO: NOT YET DOCUMENTED.datumβ TODO: NOT YET DOCUMENTED.
π§ DESCRIPTION π§
literally nothing here, bestie. the original DESCRIPTION section is empty. the void. the silence. and honestly? that's just how some of these generated pages be π
π RETURN VALUE π
Returns an xcb_glx_get_materialfv_cookie_t. errors have to be handled when calling the reply function xcb_glx_get_materialfv_reply.
if you'd rather handle errors in the event loop instead, use xcb_glx_get_materialfv_unchecked. see xcb-requests(3) for details β¨
π₯ ERRORS π₯
this request does never generate any errors. not one. zero. she's unproblematic, she ate, periodt π
πΈ SEE ALSO πΈ
okay so the SEE ALSO section is empty in the original. no references listed. just vibes and open space π
π«Ά AUTHOR π«Ά
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie π this was page xcb_glx_get_materialfv(3) from the XCB Requests manual, shipped as part of libxcb 1.17.0 under X Version 11 π go forth, write good GLX code, and remember: if a field says TODO: NOT YET DOCUMENTED, that's not on you, that's on the docs ππ
π¦ 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