xcb_glx_create_new_context(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_new_context(3) ✨

okay bestie, welcome to the XCB Requests corner of the manual, where we vibe with xcb_glx_create_new_context. it's giving very "make me a new GLX context" energy, and honestly? iconic. πŸŽ€


🌸 NAME 🌸

xcb_glx_create_new_context β€” (the original page leaves this blank, so like… it's a mystery wrapped in a syscall, no cap πŸ’€)


πŸ¦‹ SYNOPSIS πŸ¦‹

first things first, you gotta let the compiler know you're in:

#include <xcb/glx.h>

✨ Request function ✨

xcb_void_cookie_t xcb_glx_create_new_context(xcb_connection_t *conn,
       xcb_glx_context_t context, xcb_glx_fbconfig_t fbconfig,
       uint32_t screen, uint32_t render_type,
       xcb_glx_context_t share_list, uint8_t is_direct);

look at that signature. she's long. she's lowercase. she's perfect. πŸ’…


πŸ‘‘ REQUEST ARGUMENTS πŸ‘‘

one bullet per arg, and yes we're going in order, because we are nothing if not organized:

  • conn β€” the XCB connection to X11. your lil hotline to the X server, fr fr. 🫢
  • context β€” TODO: NOT YET DOCUMENTED. (bestie the docs really said "πŸ™ˆ")
  • fbconfig β€” TODO: NOT YET DOCUMENTED.
  • screen β€” TODO: NOT YET DOCUMENTED.
  • render_type β€” TODO: NOT YET DOCUMENTED.
  • share_list β€” TODO: NOT YET DOCUMENTED.
  • is_direct β€” TODO: NOT YET DOCUMENTED.
okay so half of these are literally TODO: NOT YET DOCUMENTED. and i need you to know that i am NOT making that up, that is genuinely what the page says, i would never do you like that 😭

🌈 DESCRIPTION 🌈

…it's empty. the DESCRIPTION section is empty. we have no description. we are describing the void. main character energy but make it mysterious βœ¨πŸ’€


πŸ’– RETURN VALUE πŸ’–

she returns an xcb_void_cookie_t. and because it's a void cookie, any errors (if any show up at all) have to be handled over in the event loop, not right here. so don't be out here waiting for a return value, she has none to give. πŸ™ˆ

if you'd rather deal with errors directly using xcb_request_check instead, then use:

xcb_glx_create_new_context_checked

and peek at xcb-requests(3) for the details, iykyk. πŸ“š


πŸ’€ ERRORS πŸ’€

This request does never generate any errors.

yes bestie, that is the actual wording, "does never," and honestly? she ate. zero errors, zero drama, zero problems. slay. 🌿


🧚 SEE ALSO 🧚

(nothing listed here on the original page β€” it's just vibes and an empty section, no cap 🌸)


⭐ AUTHOR ⭐

Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. 🫢


and that's the whole page!! this was xcb_glx_create_new_context(3) from X Version 11, brought to you by libxcb 1.17.0, and the manual page footer also waves the title xcb_glx_create_new_context(3) around again like a little encore. thanks for reading bestie, go create a context, i believe in you πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’