xcb_glx_get_tex_gendv(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… xcb_glx_get_tex_gendv β€” from the XCB Requests manual, bestie πŸ’–

okay so. this is a page from the XCB Requests manual, and it's giving "the documentation writer was on their lunch break" energy because half of it literally just says TODO. but we move. here's everything, no cap, nothing skipped. ✨


🌸 NAME 🌸

xcb_glx_get_tex_gendv β€” and that's it. that's the whole name section. the original is out here with zero description, main character with no backstory. iconic of it honestly. πŸ’€


✨ SYNOPSIS ✨

first up, the include, don't forget it:

#include <xcb/glx.h>

πŸŽ€ Request function

xcb_glx_get_tex_gendv_cookie_t
       xcb_glx_get_tex_gendv(xcb_connection_t *conn,
       xcb_glx_context_tag_t context_tag, uint32_t coord,
       uint32_t pname);

πŸ¦‹ Reply datastructure

this is the struct you get back, look at her:

typedef struct xcb_glx_get_tex_gendv_reply_t {
    uint8_t           response_type;
    uint8_t           pad0;
    uint16_t          sequence;
    uint32_t          length;
    uint8_t           pad1[4];
    uint32_t          n;
    xcb_glx_float64_t datum;
    uint8_t           pad2[8];
} xcb_glx_get_tex_gendv_reply_t;

🌈 Reply function

xcb_glx_get_tex_gendv_reply_t
       *xcb_glx_get_tex_gendv_reply(xcb_connection_t *conn,
       xcb_glx_get_tex_gendv_cookie_t cookie, xcb_generic_error_t **e);

πŸ“ Reply accessors

three little helpers for digging through the reply, obsessed with them:

xcb_glx_float64_t *xcb_glx_get_tex_gendv_data(const
       xcb_glx_get_tex_gendv_request_t *reply);
int xcb_glx_get_tex_gendv_data_length(const
       xcb_glx_get_tex_gendv_reply_t *reply);
xcb_generic_iterator_t xcb_glx_get_tex_gendv_data_end(const
       xcb_glx_get_tex_gendv_reply_t *reply);

πŸ’œ REQUEST ARGUMENTS πŸ’œ

  • conn β€” your XCB connection to X11, the whole reason we're here bestie, she's the bridge 🫢
  • context_tag β€” TODO: NOT YET DOCUMENTED. (yeah. the manpage just said that. we're all just living in the mystery ✨)
  • coord β€” TODO: NOT YET DOCUMENTED. (same energy, truly nothing πŸ’€)
  • pname β€” TODO: NOT YET DOCUMENTED. (third time's the charm and still no info πŸ™ˆ)

πŸ‘‘ REPLY FIELDS πŸ‘‘

  • response_type β€” the type of this reply, and in this case it's XCB_GLX_GET_TEX_GENDV. this field is also chilling in the xcb_generic_reply_t, so you can use it to tell your replies apart from each other. very "which one of y'all is this" πŸ’…
  • sequence β€” the sequence number of the last request that got processed by the X11 server. it's the receipt, basically 🧾
  • length β€” the length of the reply, in words. and before you ask: a word is 4 bytes. periodt. πŸ“
  • n β€” TODO: NOT YET DOCUMENTED. (the manpage's favourite sentence fr fr 😭)
  • datum β€” TODO: NOT YET DOCUMENTED. (and there it is again 🌸)

πŸ’€ DESCRIPTION πŸ’€

okay bestie, brace yourself: the DESCRIPTION section is empty. there is literally nothing here. the original page has the heading and then just... vibes. silence. a moment of reflection. πŸ•―οΈ

no cap, i can't invent lore that isn't there, so i'm just gonna be honest with you: this section contains no text in the original. moving on. πŸ’–


πŸ”₯ RETURN VALUE πŸ”₯

it returns an xcb_glx_get_tex_gendv_cookie_t. cute little cookie, but here's the thing β€” errors have to be handled when you call the reply function xcb_glx_get_tex_gendv_reply. so you don't get to ignore them, bestie, you go get that cookie redeemed. πŸͺ

but wait β€” if you'd rather handle errors in the event loop instead, use xcb_glx_get_tex_gendv_unchecked. see xcb-requests(3) for the details. different strategy, same drama. ✨


🌸 ERRORS 🌸

this request does never generate any errors. πŸ’…βœ¨

not a single one. she's unproblematic. she's the low-drama friend. we love her for that honestly.


πŸ¦‹ SEE ALSO πŸ¦‹

...nothing. the SEE ALSO section is empty too. no cross-references, no friends, no nothing. she's on her solo era. 🌈


πŸŽ€ AUTHOR πŸŽ€

generated from glx.xml. if you've got corrections or improvements, hit up xcb@lists.freedesktop.org. they're accepting feedback, so slide into their inbox politely. πŸ’Œ


and that's the whole page, bestie! stay hydrated, read your manpages, and remember: X Version 11, libxcb 1.17.0 β€” go forth and slay those GLX requests. mwah! πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈ