xcb_glx_get_tex_parameteriv(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_parameteriv πŸ’…

okay so bestie, welcome to the libxcb corner of the X world 🌸 this little page is from the XCB Requests manual, section 3 β€” so yeah, it's xcb_glx_get_tex_parameteriv(3), and it's giving very GLX, very texture-parameter, very "I need info back from the server" energy. ✨


πŸŽ€ NAME πŸŽ€

xcb_glx_get_tex_parameteriv β€” and that's literally it, bestie. The original manpage left this one blank. No description. Empty. Iconic of it, honestly. πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

First things first, you gotta pull in the header:

#include <xcb/glx.h>

✨ Request function ✨

xcb_glx_get_tex_parameteriv_cookie_t
       xcb_glx_get_tex_parameteriv(xcb_connection_t *conn,
       xcb_glx_context_tag_t context_tag, uint32_t target,
       uint32_t pname);

🫢 Reply datastructure 🫢

typedef struct xcb_glx_get_tex_parameteriv_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_tex_parameteriv_reply_t;

πŸ’– Reply function πŸ’–

xcb_glx_get_tex_parameteriv_reply_t
       *xcb_glx_get_tex_parameteriv_reply(xcb_connection_t *conn,
       xcb_glx_get_tex_parameteriv_cookie_t cookie,
       xcb_generic_error_t **e);

🌈 Reply accessors 🌈

int32_t *xcb_glx_get_tex_parameteriv_data(const
       xcb_glx_get_tex_parameteriv_request_t *reply);
int xcb_glx_get_tex_parameteriv_data_length(const
       xcb_glx_get_tex_parameteriv_reply_t *reply);
xcb_generic_iterator_t xcb_glx_get_tex_parameteriv_data_end(const
       xcb_glx_get_tex_parameteriv_reply_t *reply);

πŸ’… REQUEST ARGUMENTS πŸ’…

  • conn β€” your XCB connection to X11, aka your little hotline to the server. No conn, no vibes.
  • context_tag β€” TODO: NOT YET DOCUMENTED. yeah bestie, they left us on read for this one 😭
  • target β€” TODO: NOT YET DOCUMENTED. also a mystery πŸ•΅οΈ
  • pname β€” TODO: NOT YET DOCUMENTED. same energy. We simply do not know. πŸ’€

🌸 REPLY FIELDS 🌸

  • response_type β€” the type of this reply, and in this case it's XCB_GLX_GET_TEX_PARAMETERIV. She's also hanging out in the xcb_generic_reply_t, which is lowkey so useful because you can use it to tell replies apart from each other. vibe check: passed. ✨
  • sequence β€” the sequence number of the last request that got processed by the X11 server. Receipts, basically. 🧾
  • length β€” how long the reply is, counted in words. And a word is 4 bytes, no cap. πŸ“
  • n β€” TODO: NOT YET DOCUMENTED. the mystery continues 🫠
  • datum β€” TODO: NOT YET DOCUMENTED. also undocumented, also unexplained, also serving cunt πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

…nothing. This section is literally empty in the original. The description said "I'm not doing that" and left. Respect the boundaries, bestie. πŸŽ€


⭐ RETURN VALUE ⭐

So here's the tea: this gives you back an xcb_glx_get_tex_parameteriv_cookie_t. πŸͺ

Errors? You do not handle them here. You handle them when you call the reply function xcb_glx_get_tex_parameteriv_reply. That's where the drama goes down.

And if you'd rather catch errors in the event loop instead β€” very main character of you β€” use xcb_glx_get_tex_parameteriv_unchecked. Peep xcb-requests(3) for the details, iykyk. πŸ’œ


πŸ”₯ ERRORS πŸ”₯

This request does never generate any errors. πŸŽ‰

fr fr, she's chill like that. No error drama, no red flags, just vibes. πŸ¦‹


πŸ’€ SEE ALSO πŸ’€

Nothing here either, bestie. The original page lists no references. Empty. A whole mood. πŸ™ˆ


🌈 AUTHOR 🌈

Generated from glx.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org β€” they're literally asking, so slide into those inboxes. πŸ’Œ


okay and one final cute sign-off: this page came to you from X Version 11, riding with libxcb 1.17.0 β€” the whole xcb_glx_get_tex_parameteriv(3) situation, documented and delivered. πŸŽ€βœ¨ take care of her, she's sensitive about her undocumented fields. πŸ’–