xcb_glx_creat...t_attribs_arb(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_create_context_attribs_arb ✨

okay bestie, sit down, hydrate, and let me tell you about xcb_glx_create_context_attribs_arb πŸ’–

this one lives in the XCB Requests corner of the manual, section 3, and it's giving very GLX, very ARB, very "i make a context with attribs, obviously" πŸ’…


🌸 SYNOPSIS 🌸

first things first, you gotta let it in:

#include <xcb/glx.h>

πŸŽ€ Request function

and here's the whole girl. look at her. so many arguments. so much main character energy:

xcb_void_cookie_t
       xcb_glx_create_context_attribs_arb(xcb_connection_t *conn,
       xcb_glx_context_t context, xcb_glx_fbconfig_t fbconfig,
       uint32_t screen, xcb_glx_context_t share_list, uint8_t is_direct,
       uint32_t num_attribs, const uint32_t *attribs);
no cap, that's the exact signature. type it exactly like that or the compiler will simply not.

πŸ¦‹ REQUEST ARGUMENTS πŸ¦‹

every single one, explained with love 🫢

  • conn β€” your XCB connection to X11. the group chat, basically. everything goes through her.
  • context β€” TODO: NOT YET DOCUMENTED. (not me being left on read by the docs 😭)
  • fbconfig β€” TODO: NOT YET DOCUMENTED. (same bestie, same πŸ’€)
  • screen β€” TODO: NOT YET DOCUMENTED. (the docs said "no thoughts, head empty" πŸ™ˆ)
  • share_list β€” TODO: NOT YET DOCUMENTED. (sharing is caring but apparently also undocumented ✨)
  • is_direct β€” TODO: NOT YET DOCUMENTED. (direct? indirect? the mystery is the moment 🌈)
  • num_attribs β€” TODO: NOT YET DOCUMENTED. (count your blessings, or your attribs, idk πŸ“)
  • attribs β€” TODO: NOT YET DOCUMENTED. (the main event and yet, silence πŸ’œ)
fr fr, that's what the page says β€” TODO: NOT YET DOCUMENTED. i'm not gatekeeping anything, the source itself is gatekeeping. iykyk.

🌈 DESCRIPTION 🌈

...and that's it. that's the description. the original literally has nothing under this heading, which is such a vibe honestly β€” it said "i'm a heading, i don't owe you an explanation" πŸ’…βœ¨


⭐ RETURN VALUE ⭐

she returns an xcb_void_cookie_t. that's it, that's the tea 🍡

errors (if any) do not come back to you directly β€” you have to handle them in the event loop, like a grown-up.

if you'd rather deal with errors immediately with xcb_request_check instead, use xcb_glx_create_context_attribs_arb_checked (the _checked variant, the responsible sister πŸ‘‘). see xcb-requests(3) for all the deets.


πŸ’€ ERRORS πŸ’€

this request does never generate any errors.

iconic. flawless. zero drama. not one single error, ever. periodt πŸŽ€


πŸ’– SEE ALSO πŸ’–

(nothing here β€” the original section is empty, so we're just... standing here, being cute, saying nothing 🧚)


🌸 AUTHOR 🌸

generated from glx.xml. got corrections or improvements? contact xcb@lists.freedesktop.org β€” they're literally asking, bestie, go tell them 🫢


and that's the whole page, no crumbs left πŸ’… X Version 11, libxcb 1.17.0 β€” stay slaying, stay linking, and may your cookies always be void βœ¨πŸ¦‹πŸ’–