xcb_glx_get_tex_enviv(3)
π xcb_glx_get_tex_enviv β bestie, we're pulling texenv values from GLX π
okay so this page lives in the XCB Requests section of the libxcb manual (that's the libxcb 1.17.0 girlies, X Version 11 energy β¨). It's giving "GLX, but make it a request you can actually fire off from C" and I'm obsessed.
β¨ NAME β¨
xcb_glx_get_tex_enviv β ngl the original leaves this blank, so here's the vibe: it's the XCB request that asks the X11 server for GLX texture environment values. Periodt.
π¦ SYNOPSIS π¦
#include <xcb/glx.h>
Request function πΈ
xcb_glx_get_tex_enviv_cookie_t
xcb_glx_get_tex_enviv(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_enviv_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_enviv_reply_t;
Reply function π
xcb_glx_get_tex_enviv_reply_t
*xcb_glx_get_tex_enviv_reply(xcb_connection_t *conn,
xcb_glx_get_tex_enviv_cookie_t cookie, xcb_generic_error_t **e);
Reply accessors π
int32_t *xcb_glx_get_tex_enviv_data(const
xcb_glx_get_tex_enviv_request_t *reply);
int xcb_glx_get_tex_enviv_data_length(const
xcb_glx_get_tex_enviv_reply_t *reply);
xcb_generic_iterator_t xcb_glx_get_tex_enviv_data_end(const
xcb_glx_get_tex_enviv_reply_t *reply);
not me squinting at that first accessor β yes, it literally takes an xcb_glx_get_tex_enviv_request_t *reply, that's what the original says, I'm just the messenger bestie π
π REQUEST ARGUMENTS π
connβ The XCB connection to X11. Your lil phone line to the server, fr fr.context_tagβ TODO: NOT YET DOCUMENTED. (the original really said "we'll get to it" π)targetβ TODO: NOT YET DOCUMENTED.pnameβ TODO: NOT YET DOCUMENTED.
β REPLY FIELDS β
response_typeβ The type of this reply, in this caseXCB_GLX_GET_TEX_ENVIV. This field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. Basically the reply's lil name tag so you know which one walked in π«Άsequenceβ The sequence number of the last request processed by the X11 server.lengthβ The length of the reply, in words (a word is 4 bytes). Yes bestie, four bytes = one word, write that down.nβ TODO: NOT YET DOCUMENTED.datumβ TODO: NOT YET DOCUMENTED.
π DESCRIPTION π
so... the original page leaves this section empty. no description, no lore, nothing. it's giving mystery, it's giving "figure it out", and honestly? iconic. π
π RETURN VALUE π
Returns an xcb_glx_get_tex_enviv_cookie_t. Errors have to be handled when calling the reply function xcb_glx_get_tex_enviv_reply.
If you want to handle errors in the event loop instead, use xcb_glx_get_tex_enviv_unchecked. See xcb-requests(3) for details. (that's the "check the receipt later" route, lowkey valid β¨)
π§ ERRORS π§
This request does never generate any errors. Clean. Flawless. No drama, no notes. π
π SEE ALSO π
the original section is empty here too β nothing to see, nothing to follow. we love a minimalist queen. π
πΈ AUTHOR πΈ
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (so if something's off, that's the group chat to slide into π«Ά)
okay bestie that's the whole page!! sign-off time: this was X Version 11, libxcb 1.17.0, and it's the xcb_glx_get_tex_enviv(3) moment. go forth and query those tex envs, you absolute main character πβ¨π
π¦ 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