xcb_glx_get_floatv(3)
β¨ xcb_glx_get_floatv β¨
okay bestie, welcome to the xcb_glx_get_floatv page from the XCB Requests crew π
this is one of those GLX request pages, and honestly? it's giving "short but mysterious". we're gonna go through it together, no cap.
πΈ NAME πΈ
xcb_glx_get_floatv β literally no description in the source, bestie. the manpage just left it blank, so that's what we're working with. iconic in a "the author said figure it out" way fr fr π«Ά
π SYNOPSIS π
first up, the include, because everything starts with the include:
#include <xcb/glx.h>
π Request function π
xcb_glx_get_floatv_cookie_t xcb_glx_get_floatv(xcb_connection_t *conn,
xcb_glx_context_tag_t context_tag, uint32_t pname);
π¦ Reply datastructure π¦
here's the struct, and yes you read it right, there's padding, there's always padding, it's giving "structs need to be aligned and we respect that" β¨
typedef struct xcb_glx_get_floatv_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_floatv_reply_t;
π Reply function π
xcb_glx_get_floatv_reply_t
*xcb_glx_get_floatv_reply(xcb_connection_t *conn,
xcb_glx_get_floatv_cookie_t cookie, xcb_generic_error_t **e);
π Reply accessors π
these are your lil helpers for poking at the reply, bestie:
xcb_glx_float32_t *xcb_glx_get_floatv_data(const
xcb_glx_get_floatv_request_t *reply);
int xcb_glx_get_floatv_data_length(const xcb_glx_get_floatv_reply_t
*reply);
xcb_generic_iterator_t xcb_glx_get_floatv_data_end(const
xcb_glx_get_floatv_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil phone line to the server, basically πcontext_tagβ TODO: NOT YET DOCUMENTED. yeah. the manpage said "we'll get to it" and then never got to it πpnameβ TODO: NOT YET DOCUMENTED. same energy. also undocumented. we're all just vibing here π
β REPLY FIELDS β
response_typeβ the type of this reply, which in this case isXCB_GLX_GET_FLOATV. this field is also chillin' insidexcb_generic_reply_t, and you can use it to tell replies apart from each other. it's the name tag at the party πsequenceβ the sequence number of the last request processed by the X11 server. lowkey the receipt number of the conversation π§Ύlengthβ the length of the reply, in words. and reminder bestie: a word is 4 bytes. don't forget or the math will betray you πnβ TODO: NOT YET DOCUMENTED. another mystery field, we love that for us πdatumβ TODO: NOT YET DOCUMENTED. yes queen, also undocumented. the lore is simply missing π₯
π DESCRIPTION π
nothing here. the DESCRIPTION section is empty. that's it. that's the section. we move π¦
πΈ RETURN VALUE πΈ
it returns an xcb_glx_get_floatv_cookie_t. and here's the important part, bestie: errors have to be handled when you call the reply function xcb_glx_get_floatv_reply π
if you'd rather handle errors in the event loop instead, use xcb_glx_get_floatv_unchecked. see xcb-requests(3) for the deets. pick your fighter, both are valid π
π ERRORS π
this request does never generate any errors.
no error drama. none. zero. it's the chillest request in the group chat π«Ά
π₯ SEE ALSO π₯
empty. nothing linked. the SEE ALSO section said "no thoughts, head empty". π§
π AUTHOR π
generated from glx.xml. for corrections and improvements, hit up xcb@lists.freedesktop.org π§ they're the ones who'd actually know what pname is, ngl.
and that's the whole page, bestie!! this was libxcb 1.17.0, from X Version 11, and the page itself is dated the same era, brought to you by the XCB Requests girlies. slay, stay padded (the structs are), and go read xcb-requests(3) if you haven't π
β¨π
π¦ 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