1xcb_glx_make_context_current(3) XCB Requests xcb_glx_make_context_current(3)
2
3
4
6 xcb_glx_make_context_current -
7
9 #include <xcb/glx.h>
10
11 Request function
12 xcb_glx_make_context_current_cookie_t
13 xcb_glx_make_context_current(xcb_connection_t *conn,
14 xcb_glx_context_tag_t old_context_tag,
15 xcb_glx_drawable_t drawable, xcb_glx_drawable_t read_drawable,
16 xcb_glx_context_t context);
17
18 Reply datastructure
19 typedef struct xcb_glx_make_context_current_reply_t {
20 uint8_t response_type;
21 uint8_t pad0;
22 uint16_t sequence;
23 uint32_t length;
24 xcb_glx_context_tag_t context_tag;
25 uint8_t pad1[20];
26 } xcb_glx_make_context_current_reply_t;
27
28 Reply function
29 xcb_glx_make_context_current_reply_t
30 *xcb_glx_make_context_current_reply(xcb_connection_t *conn,
31 xcb_glx_make_context_current_cookie_t cookie,
32 xcb_generic_error_t **e);
33
35 conn The XCB connection to X11.
36
37 old_context_tag
38 TODO: NOT YET DOCUMENTED.
39
40 drawable TODO: NOT YET DOCUMENTED.
41
42 read_drawable
43 TODO: NOT YET DOCUMENTED.
44
45 context TODO: NOT YET DOCUMENTED.
46
48 response_type
49 The type of this reply, in this case XCB_GLX_MAKE_CON‐
50 TEXT_CURRENT. This field is also present in the xcb_gener‐
51 ic_reply_t and can be used to tell replies apart from each
52 other.
53
54 sequence The sequence number of the last request processed by the X11
55 server.
56
57 length The length of the reply, in words (a word is 4 bytes).
58
59 context_tag
60 TODO: NOT YET DOCUMENTED.
61
64 Returns an xcb_glx_make_context_current_cookie_t. Errors have to be
65 handled when calling the reply function xcb_glx_make_context_cur‐
66 rent_reply.
67
68 If you want to handle errors in the event loop instead, use
69 xcb_glx_make_context_current_unchecked. See xcb-requests(3) for de‐
70 tails.
71
73 This request does never generate any errors.
74
77 Generated from glx.xml. Contact xcb@lists.freedesktop.org for correc‐
78 tions and improvements.
79
80
81
82X Version 11 libxcb 1.13 xcb_glx_make_context_current(3)