etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / lib / libxcb / files / glx.c
blob33db8d48b77c25ed7b20a3fe0031f11a0d13464d
1 /*
2 * This file generated automatically from glx.xml by c_client.py.
3 * Edit at your peril.
4 */
6 #ifdef HAVE_CONFIG_H
7 #include "config.h"
8 #endif
9 #include <stdlib.h>
10 #include <string.h>
11 #include <assert.h>
12 #include <stddef.h> /* for offsetof() */
13 #include "xcbext.h"
14 #include "glx.h"
16 #define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)
17 #include "xproto.h"
19 xcb_extension_t xcb_glx_id = { "GLX", 0 };
21 void
22 xcb_glx_pixmap_next (xcb_glx_pixmap_iterator_t *i /**< */)
24 --i->rem;
25 ++i->data;
26 i->index += sizeof(xcb_glx_pixmap_t);
29 xcb_generic_iterator_t
30 xcb_glx_pixmap_end (xcb_glx_pixmap_iterator_t i /**< */)
32 xcb_generic_iterator_t ret;
33 ret.data = i.data + i.rem;
34 ret.index = i.index + ((char *) ret.data - (char *) i.data);
35 ret.rem = 0;
36 return ret;
39 void
40 xcb_glx_context_next (xcb_glx_context_iterator_t *i /**< */)
42 --i->rem;
43 ++i->data;
44 i->index += sizeof(xcb_glx_context_t);
47 xcb_generic_iterator_t
48 xcb_glx_context_end (xcb_glx_context_iterator_t i /**< */)
50 xcb_generic_iterator_t ret;
51 ret.data = i.data + i.rem;
52 ret.index = i.index + ((char *) ret.data - (char *) i.data);
53 ret.rem = 0;
54 return ret;
57 void
58 xcb_glx_pbuffer_next (xcb_glx_pbuffer_iterator_t *i /**< */)
60 --i->rem;
61 ++i->data;
62 i->index += sizeof(xcb_glx_pbuffer_t);
65 xcb_generic_iterator_t
66 xcb_glx_pbuffer_end (xcb_glx_pbuffer_iterator_t i /**< */)
68 xcb_generic_iterator_t ret;
69 ret.data = i.data + i.rem;
70 ret.index = i.index + ((char *) ret.data - (char *) i.data);
71 ret.rem = 0;
72 return ret;
75 void
76 xcb_glx_window_next (xcb_glx_window_iterator_t *i /**< */)
78 --i->rem;
79 ++i->data;
80 i->index += sizeof(xcb_glx_window_t);
83 xcb_generic_iterator_t
84 xcb_glx_window_end (xcb_glx_window_iterator_t i /**< */)
86 xcb_generic_iterator_t ret;
87 ret.data = i.data + i.rem;
88 ret.index = i.index + ((char *) ret.data - (char *) i.data);
89 ret.rem = 0;
90 return ret;
93 void
94 xcb_glx_fbconfig_next (xcb_glx_fbconfig_iterator_t *i /**< */)
96 --i->rem;
97 ++i->data;
98 i->index += sizeof(xcb_glx_fbconfig_t);
101 xcb_generic_iterator_t
102 xcb_glx_fbconfig_end (xcb_glx_fbconfig_iterator_t i /**< */)
104 xcb_generic_iterator_t ret;
105 ret.data = i.data + i.rem;
106 ret.index = i.index + ((char *) ret.data - (char *) i.data);
107 ret.rem = 0;
108 return ret;
111 void
112 xcb_glx_drawable_next (xcb_glx_drawable_iterator_t *i /**< */)
114 --i->rem;
115 ++i->data;
116 i->index += sizeof(xcb_glx_drawable_t);
119 xcb_generic_iterator_t
120 xcb_glx_drawable_end (xcb_glx_drawable_iterator_t i /**< */)
122 xcb_generic_iterator_t ret;
123 ret.data = i.data + i.rem;
124 ret.index = i.index + ((char *) ret.data - (char *) i.data);
125 ret.rem = 0;
126 return ret;
129 void
130 xcb_glx_float32_next (xcb_glx_float32_iterator_t *i /**< */)
132 --i->rem;
133 ++i->data;
134 i->index += sizeof(xcb_glx_float32_t);
137 xcb_generic_iterator_t
138 xcb_glx_float32_end (xcb_glx_float32_iterator_t i /**< */)
140 xcb_generic_iterator_t ret;
141 ret.data = i.data + i.rem;
142 ret.index = i.index + ((char *) ret.data - (char *) i.data);
143 ret.rem = 0;
144 return ret;
147 void
148 xcb_glx_float64_next (xcb_glx_float64_iterator_t *i /**< */)
150 --i->rem;
151 ++i->data;
152 i->index += sizeof(xcb_glx_float64_t);
155 xcb_generic_iterator_t
156 xcb_glx_float64_end (xcb_glx_float64_iterator_t i /**< */)
158 xcb_generic_iterator_t ret;
159 ret.data = i.data + i.rem;
160 ret.index = i.index + ((char *) ret.data - (char *) i.data);
161 ret.rem = 0;
162 return ret;
165 void
166 xcb_glx_bool32_next (xcb_glx_bool32_iterator_t *i /**< */)
168 --i->rem;
169 ++i->data;
170 i->index += sizeof(xcb_glx_bool32_t);
173 xcb_generic_iterator_t
174 xcb_glx_bool32_end (xcb_glx_bool32_iterator_t i /**< */)
176 xcb_generic_iterator_t ret;
177 ret.data = i.data + i.rem;
178 ret.index = i.index + ((char *) ret.data - (char *) i.data);
179 ret.rem = 0;
180 return ret;
183 void
184 xcb_glx_context_tag_next (xcb_glx_context_tag_iterator_t *i /**< */)
186 --i->rem;
187 ++i->data;
188 i->index += sizeof(xcb_glx_context_tag_t);
191 xcb_generic_iterator_t
192 xcb_glx_context_tag_end (xcb_glx_context_tag_iterator_t i /**< */)
194 xcb_generic_iterator_t ret;
195 ret.data = i.data + i.rem;
196 ret.index = i.index + ((char *) ret.data - (char *) i.data);
197 ret.rem = 0;
198 return ret;
202 xcb_glx_render_sizeof (const void *_buffer /**< */,
203 uint32_t data_len /**< */)
205 char *xcb_tmp = (char *)_buffer;
206 unsigned int xcb_buffer_len = 0;
207 unsigned int xcb_block_len = 0;
208 unsigned int xcb_pad = 0;
209 unsigned int xcb_align_to = 0;
212 xcb_block_len += sizeof(xcb_glx_render_request_t);
213 xcb_tmp += xcb_block_len;
214 xcb_buffer_len += xcb_block_len;
215 xcb_block_len = 0;
216 /* data */
217 xcb_block_len += data_len * sizeof(uint8_t);
218 xcb_tmp += xcb_block_len;
219 xcb_align_to = ALIGNOF(uint8_t);
220 /* insert padding */
221 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
222 xcb_buffer_len += xcb_block_len + xcb_pad;
223 if (0 != xcb_pad) {
224 xcb_tmp += xcb_pad;
225 xcb_pad = 0;
227 xcb_block_len = 0;
229 return xcb_buffer_len;
232 xcb_void_cookie_t
233 xcb_glx_render_checked (xcb_connection_t *c /**< */,
234 xcb_glx_context_tag_t context_tag /**< */,
235 uint32_t data_len /**< */,
236 const uint8_t *data /**< */)
238 static const xcb_protocol_request_t xcb_req = {
239 /* count */ 4,
240 /* ext */ &xcb_glx_id,
241 /* opcode */ XCB_GLX_RENDER,
242 /* isvoid */ 1
245 struct iovec xcb_parts[6];
246 xcb_void_cookie_t xcb_ret;
247 xcb_glx_render_request_t xcb_out;
249 xcb_out.context_tag = context_tag;
251 xcb_parts[2].iov_base = (char *) &xcb_out;
252 xcb_parts[2].iov_len = sizeof(xcb_out);
253 xcb_parts[3].iov_base = 0;
254 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
255 /* uint8_t data */
256 xcb_parts[4].iov_base = (char *) data;
257 xcb_parts[4].iov_len = data_len * sizeof(uint8_t);
258 xcb_parts[5].iov_base = 0;
259 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
261 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
262 return xcb_ret;
265 xcb_void_cookie_t
266 xcb_glx_render (xcb_connection_t *c /**< */,
267 xcb_glx_context_tag_t context_tag /**< */,
268 uint32_t data_len /**< */,
269 const uint8_t *data /**< */)
271 static const xcb_protocol_request_t xcb_req = {
272 /* count */ 4,
273 /* ext */ &xcb_glx_id,
274 /* opcode */ XCB_GLX_RENDER,
275 /* isvoid */ 1
278 struct iovec xcb_parts[6];
279 xcb_void_cookie_t xcb_ret;
280 xcb_glx_render_request_t xcb_out;
282 xcb_out.context_tag = context_tag;
284 xcb_parts[2].iov_base = (char *) &xcb_out;
285 xcb_parts[2].iov_len = sizeof(xcb_out);
286 xcb_parts[3].iov_base = 0;
287 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
288 /* uint8_t data */
289 xcb_parts[4].iov_base = (char *) data;
290 xcb_parts[4].iov_len = data_len * sizeof(uint8_t);
291 xcb_parts[5].iov_base = 0;
292 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
294 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
295 return xcb_ret;
299 xcb_glx_render_large_sizeof (const void *_buffer /**< */)
301 char *xcb_tmp = (char *)_buffer;
302 const xcb_glx_render_large_request_t *_aux = (xcb_glx_render_large_request_t *)_buffer;
303 unsigned int xcb_buffer_len = 0;
304 unsigned int xcb_block_len = 0;
305 unsigned int xcb_pad = 0;
306 unsigned int xcb_align_to = 0;
309 xcb_block_len += sizeof(xcb_glx_render_large_request_t);
310 xcb_tmp += xcb_block_len;
311 xcb_buffer_len += xcb_block_len;
312 xcb_block_len = 0;
313 /* data */
314 xcb_block_len += _aux->data_len * sizeof(uint8_t);
315 xcb_tmp += xcb_block_len;
316 xcb_align_to = ALIGNOF(uint8_t);
317 /* insert padding */
318 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
319 xcb_buffer_len += xcb_block_len + xcb_pad;
320 if (0 != xcb_pad) {
321 xcb_tmp += xcb_pad;
322 xcb_pad = 0;
324 xcb_block_len = 0;
326 return xcb_buffer_len;
329 xcb_void_cookie_t
330 xcb_glx_render_large_checked (xcb_connection_t *c /**< */,
331 xcb_glx_context_tag_t context_tag /**< */,
332 uint16_t request_num /**< */,
333 uint16_t request_total /**< */,
334 uint32_t data_len /**< */,
335 const uint8_t *data /**< */)
337 static const xcb_protocol_request_t xcb_req = {
338 /* count */ 4,
339 /* ext */ &xcb_glx_id,
340 /* opcode */ XCB_GLX_RENDER_LARGE,
341 /* isvoid */ 1
344 struct iovec xcb_parts[6];
345 xcb_void_cookie_t xcb_ret;
346 xcb_glx_render_large_request_t xcb_out;
348 xcb_out.context_tag = context_tag;
349 xcb_out.request_num = request_num;
350 xcb_out.request_total = request_total;
351 xcb_out.data_len = data_len;
353 xcb_parts[2].iov_base = (char *) &xcb_out;
354 xcb_parts[2].iov_len = sizeof(xcb_out);
355 xcb_parts[3].iov_base = 0;
356 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
357 /* uint8_t data */
358 xcb_parts[4].iov_base = (char *) data;
359 xcb_parts[4].iov_len = data_len * sizeof(uint8_t);
360 xcb_parts[5].iov_base = 0;
361 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
363 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
364 return xcb_ret;
367 xcb_void_cookie_t
368 xcb_glx_render_large (xcb_connection_t *c /**< */,
369 xcb_glx_context_tag_t context_tag /**< */,
370 uint16_t request_num /**< */,
371 uint16_t request_total /**< */,
372 uint32_t data_len /**< */,
373 const uint8_t *data /**< */)
375 static const xcb_protocol_request_t xcb_req = {
376 /* count */ 4,
377 /* ext */ &xcb_glx_id,
378 /* opcode */ XCB_GLX_RENDER_LARGE,
379 /* isvoid */ 1
382 struct iovec xcb_parts[6];
383 xcb_void_cookie_t xcb_ret;
384 xcb_glx_render_large_request_t xcb_out;
386 xcb_out.context_tag = context_tag;
387 xcb_out.request_num = request_num;
388 xcb_out.request_total = request_total;
389 xcb_out.data_len = data_len;
391 xcb_parts[2].iov_base = (char *) &xcb_out;
392 xcb_parts[2].iov_len = sizeof(xcb_out);
393 xcb_parts[3].iov_base = 0;
394 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
395 /* uint8_t data */
396 xcb_parts[4].iov_base = (char *) data;
397 xcb_parts[4].iov_len = data_len * sizeof(uint8_t);
398 xcb_parts[5].iov_base = 0;
399 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
401 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
402 return xcb_ret;
405 xcb_void_cookie_t
406 xcb_glx_create_context_checked (xcb_connection_t *c /**< */,
407 xcb_glx_context_t context /**< */,
408 xcb_visualid_t visual /**< */,
409 uint32_t screen /**< */,
410 xcb_glx_context_t share_list /**< */,
411 uint8_t is_direct /**< */)
413 static const xcb_protocol_request_t xcb_req = {
414 /* count */ 2,
415 /* ext */ &xcb_glx_id,
416 /* opcode */ XCB_GLX_CREATE_CONTEXT,
417 /* isvoid */ 1
420 struct iovec xcb_parts[4];
421 xcb_void_cookie_t xcb_ret;
422 xcb_glx_create_context_request_t xcb_out;
424 xcb_out.context = context;
425 xcb_out.visual = visual;
426 xcb_out.screen = screen;
427 xcb_out.share_list = share_list;
428 xcb_out.is_direct = is_direct;
429 memset(xcb_out.pad0, 0, 3);
431 xcb_parts[2].iov_base = (char *) &xcb_out;
432 xcb_parts[2].iov_len = sizeof(xcb_out);
433 xcb_parts[3].iov_base = 0;
434 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
436 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
437 return xcb_ret;
440 xcb_void_cookie_t
441 xcb_glx_create_context (xcb_connection_t *c /**< */,
442 xcb_glx_context_t context /**< */,
443 xcb_visualid_t visual /**< */,
444 uint32_t screen /**< */,
445 xcb_glx_context_t share_list /**< */,
446 uint8_t is_direct /**< */)
448 static const xcb_protocol_request_t xcb_req = {
449 /* count */ 2,
450 /* ext */ &xcb_glx_id,
451 /* opcode */ XCB_GLX_CREATE_CONTEXT,
452 /* isvoid */ 1
455 struct iovec xcb_parts[4];
456 xcb_void_cookie_t xcb_ret;
457 xcb_glx_create_context_request_t xcb_out;
459 xcb_out.context = context;
460 xcb_out.visual = visual;
461 xcb_out.screen = screen;
462 xcb_out.share_list = share_list;
463 xcb_out.is_direct = is_direct;
464 memset(xcb_out.pad0, 0, 3);
466 xcb_parts[2].iov_base = (char *) &xcb_out;
467 xcb_parts[2].iov_len = sizeof(xcb_out);
468 xcb_parts[3].iov_base = 0;
469 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
471 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
472 return xcb_ret;
475 xcb_void_cookie_t
476 xcb_glx_destroy_context_checked (xcb_connection_t *c /**< */,
477 xcb_glx_context_t context /**< */)
479 static const xcb_protocol_request_t xcb_req = {
480 /* count */ 2,
481 /* ext */ &xcb_glx_id,
482 /* opcode */ XCB_GLX_DESTROY_CONTEXT,
483 /* isvoid */ 1
486 struct iovec xcb_parts[4];
487 xcb_void_cookie_t xcb_ret;
488 xcb_glx_destroy_context_request_t xcb_out;
490 xcb_out.context = context;
492 xcb_parts[2].iov_base = (char *) &xcb_out;
493 xcb_parts[2].iov_len = sizeof(xcb_out);
494 xcb_parts[3].iov_base = 0;
495 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
497 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
498 return xcb_ret;
501 xcb_void_cookie_t
502 xcb_glx_destroy_context (xcb_connection_t *c /**< */,
503 xcb_glx_context_t context /**< */)
505 static const xcb_protocol_request_t xcb_req = {
506 /* count */ 2,
507 /* ext */ &xcb_glx_id,
508 /* opcode */ XCB_GLX_DESTROY_CONTEXT,
509 /* isvoid */ 1
512 struct iovec xcb_parts[4];
513 xcb_void_cookie_t xcb_ret;
514 xcb_glx_destroy_context_request_t xcb_out;
516 xcb_out.context = context;
518 xcb_parts[2].iov_base = (char *) &xcb_out;
519 xcb_parts[2].iov_len = sizeof(xcb_out);
520 xcb_parts[3].iov_base = 0;
521 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
523 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
524 return xcb_ret;
527 xcb_glx_make_current_cookie_t
528 xcb_glx_make_current (xcb_connection_t *c /**< */,
529 xcb_glx_drawable_t drawable /**< */,
530 xcb_glx_context_t context /**< */,
531 xcb_glx_context_tag_t old_context_tag /**< */)
533 static const xcb_protocol_request_t xcb_req = {
534 /* count */ 2,
535 /* ext */ &xcb_glx_id,
536 /* opcode */ XCB_GLX_MAKE_CURRENT,
537 /* isvoid */ 0
540 struct iovec xcb_parts[4];
541 xcb_glx_make_current_cookie_t xcb_ret;
542 xcb_glx_make_current_request_t xcb_out;
544 xcb_out.drawable = drawable;
545 xcb_out.context = context;
546 xcb_out.old_context_tag = old_context_tag;
548 xcb_parts[2].iov_base = (char *) &xcb_out;
549 xcb_parts[2].iov_len = sizeof(xcb_out);
550 xcb_parts[3].iov_base = 0;
551 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
553 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
554 return xcb_ret;
557 xcb_glx_make_current_cookie_t
558 xcb_glx_make_current_unchecked (xcb_connection_t *c /**< */,
559 xcb_glx_drawable_t drawable /**< */,
560 xcb_glx_context_t context /**< */,
561 xcb_glx_context_tag_t old_context_tag /**< */)
563 static const xcb_protocol_request_t xcb_req = {
564 /* count */ 2,
565 /* ext */ &xcb_glx_id,
566 /* opcode */ XCB_GLX_MAKE_CURRENT,
567 /* isvoid */ 0
570 struct iovec xcb_parts[4];
571 xcb_glx_make_current_cookie_t xcb_ret;
572 xcb_glx_make_current_request_t xcb_out;
574 xcb_out.drawable = drawable;
575 xcb_out.context = context;
576 xcb_out.old_context_tag = old_context_tag;
578 xcb_parts[2].iov_base = (char *) &xcb_out;
579 xcb_parts[2].iov_len = sizeof(xcb_out);
580 xcb_parts[3].iov_base = 0;
581 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
583 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
584 return xcb_ret;
587 xcb_glx_make_current_reply_t *
588 xcb_glx_make_current_reply (xcb_connection_t *c /**< */,
589 xcb_glx_make_current_cookie_t cookie /**< */,
590 xcb_generic_error_t **e /**< */)
592 return (xcb_glx_make_current_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
595 xcb_glx_is_direct_cookie_t
596 xcb_glx_is_direct (xcb_connection_t *c /**< */,
597 xcb_glx_context_t context /**< */)
599 static const xcb_protocol_request_t xcb_req = {
600 /* count */ 2,
601 /* ext */ &xcb_glx_id,
602 /* opcode */ XCB_GLX_IS_DIRECT,
603 /* isvoid */ 0
606 struct iovec xcb_parts[4];
607 xcb_glx_is_direct_cookie_t xcb_ret;
608 xcb_glx_is_direct_request_t xcb_out;
610 xcb_out.context = context;
612 xcb_parts[2].iov_base = (char *) &xcb_out;
613 xcb_parts[2].iov_len = sizeof(xcb_out);
614 xcb_parts[3].iov_base = 0;
615 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
617 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
618 return xcb_ret;
621 xcb_glx_is_direct_cookie_t
622 xcb_glx_is_direct_unchecked (xcb_connection_t *c /**< */,
623 xcb_glx_context_t context /**< */)
625 static const xcb_protocol_request_t xcb_req = {
626 /* count */ 2,
627 /* ext */ &xcb_glx_id,
628 /* opcode */ XCB_GLX_IS_DIRECT,
629 /* isvoid */ 0
632 struct iovec xcb_parts[4];
633 xcb_glx_is_direct_cookie_t xcb_ret;
634 xcb_glx_is_direct_request_t xcb_out;
636 xcb_out.context = context;
638 xcb_parts[2].iov_base = (char *) &xcb_out;
639 xcb_parts[2].iov_len = sizeof(xcb_out);
640 xcb_parts[3].iov_base = 0;
641 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
643 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
644 return xcb_ret;
647 xcb_glx_is_direct_reply_t *
648 xcb_glx_is_direct_reply (xcb_connection_t *c /**< */,
649 xcb_glx_is_direct_cookie_t cookie /**< */,
650 xcb_generic_error_t **e /**< */)
652 return (xcb_glx_is_direct_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
655 xcb_glx_query_version_cookie_t
656 xcb_glx_query_version (xcb_connection_t *c /**< */,
657 uint32_t major_version /**< */,
658 uint32_t minor_version /**< */)
660 static const xcb_protocol_request_t xcb_req = {
661 /* count */ 2,
662 /* ext */ &xcb_glx_id,
663 /* opcode */ XCB_GLX_QUERY_VERSION,
664 /* isvoid */ 0
667 struct iovec xcb_parts[4];
668 xcb_glx_query_version_cookie_t xcb_ret;
669 xcb_glx_query_version_request_t xcb_out;
671 xcb_out.major_version = major_version;
672 xcb_out.minor_version = minor_version;
674 xcb_parts[2].iov_base = (char *) &xcb_out;
675 xcb_parts[2].iov_len = sizeof(xcb_out);
676 xcb_parts[3].iov_base = 0;
677 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
679 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
680 return xcb_ret;
683 xcb_glx_query_version_cookie_t
684 xcb_glx_query_version_unchecked (xcb_connection_t *c /**< */,
685 uint32_t major_version /**< */,
686 uint32_t minor_version /**< */)
688 static const xcb_protocol_request_t xcb_req = {
689 /* count */ 2,
690 /* ext */ &xcb_glx_id,
691 /* opcode */ XCB_GLX_QUERY_VERSION,
692 /* isvoid */ 0
695 struct iovec xcb_parts[4];
696 xcb_glx_query_version_cookie_t xcb_ret;
697 xcb_glx_query_version_request_t xcb_out;
699 xcb_out.major_version = major_version;
700 xcb_out.minor_version = minor_version;
702 xcb_parts[2].iov_base = (char *) &xcb_out;
703 xcb_parts[2].iov_len = sizeof(xcb_out);
704 xcb_parts[3].iov_base = 0;
705 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
707 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
708 return xcb_ret;
711 xcb_glx_query_version_reply_t *
712 xcb_glx_query_version_reply (xcb_connection_t *c /**< */,
713 xcb_glx_query_version_cookie_t cookie /**< */,
714 xcb_generic_error_t **e /**< */)
716 return (xcb_glx_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
719 xcb_void_cookie_t
720 xcb_glx_wait_gl_checked (xcb_connection_t *c /**< */,
721 xcb_glx_context_tag_t context_tag /**< */)
723 static const xcb_protocol_request_t xcb_req = {
724 /* count */ 2,
725 /* ext */ &xcb_glx_id,
726 /* opcode */ XCB_GLX_WAIT_GL,
727 /* isvoid */ 1
730 struct iovec xcb_parts[4];
731 xcb_void_cookie_t xcb_ret;
732 xcb_glx_wait_gl_request_t xcb_out;
734 xcb_out.context_tag = context_tag;
736 xcb_parts[2].iov_base = (char *) &xcb_out;
737 xcb_parts[2].iov_len = sizeof(xcb_out);
738 xcb_parts[3].iov_base = 0;
739 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
741 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
742 return xcb_ret;
745 xcb_void_cookie_t
746 xcb_glx_wait_gl (xcb_connection_t *c /**< */,
747 xcb_glx_context_tag_t context_tag /**< */)
749 static const xcb_protocol_request_t xcb_req = {
750 /* count */ 2,
751 /* ext */ &xcb_glx_id,
752 /* opcode */ XCB_GLX_WAIT_GL,
753 /* isvoid */ 1
756 struct iovec xcb_parts[4];
757 xcb_void_cookie_t xcb_ret;
758 xcb_glx_wait_gl_request_t xcb_out;
760 xcb_out.context_tag = context_tag;
762 xcb_parts[2].iov_base = (char *) &xcb_out;
763 xcb_parts[2].iov_len = sizeof(xcb_out);
764 xcb_parts[3].iov_base = 0;
765 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
767 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
768 return xcb_ret;
771 xcb_void_cookie_t
772 xcb_glx_wait_x_checked (xcb_connection_t *c /**< */,
773 xcb_glx_context_tag_t context_tag /**< */)
775 static const xcb_protocol_request_t xcb_req = {
776 /* count */ 2,
777 /* ext */ &xcb_glx_id,
778 /* opcode */ XCB_GLX_WAIT_X,
779 /* isvoid */ 1
782 struct iovec xcb_parts[4];
783 xcb_void_cookie_t xcb_ret;
784 xcb_glx_wait_x_request_t xcb_out;
786 xcb_out.context_tag = context_tag;
788 xcb_parts[2].iov_base = (char *) &xcb_out;
789 xcb_parts[2].iov_len = sizeof(xcb_out);
790 xcb_parts[3].iov_base = 0;
791 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
793 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
794 return xcb_ret;
797 xcb_void_cookie_t
798 xcb_glx_wait_x (xcb_connection_t *c /**< */,
799 xcb_glx_context_tag_t context_tag /**< */)
801 static const xcb_protocol_request_t xcb_req = {
802 /* count */ 2,
803 /* ext */ &xcb_glx_id,
804 /* opcode */ XCB_GLX_WAIT_X,
805 /* isvoid */ 1
808 struct iovec xcb_parts[4];
809 xcb_void_cookie_t xcb_ret;
810 xcb_glx_wait_x_request_t xcb_out;
812 xcb_out.context_tag = context_tag;
814 xcb_parts[2].iov_base = (char *) &xcb_out;
815 xcb_parts[2].iov_len = sizeof(xcb_out);
816 xcb_parts[3].iov_base = 0;
817 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
819 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
820 return xcb_ret;
823 xcb_void_cookie_t
824 xcb_glx_copy_context_checked (xcb_connection_t *c /**< */,
825 xcb_glx_context_t src /**< */,
826 xcb_glx_context_t dest /**< */,
827 uint32_t mask /**< */,
828 xcb_glx_context_tag_t src_context_tag /**< */)
830 static const xcb_protocol_request_t xcb_req = {
831 /* count */ 2,
832 /* ext */ &xcb_glx_id,
833 /* opcode */ XCB_GLX_COPY_CONTEXT,
834 /* isvoid */ 1
837 struct iovec xcb_parts[4];
838 xcb_void_cookie_t xcb_ret;
839 xcb_glx_copy_context_request_t xcb_out;
841 xcb_out.src = src;
842 xcb_out.dest = dest;
843 xcb_out.mask = mask;
844 xcb_out.src_context_tag = src_context_tag;
846 xcb_parts[2].iov_base = (char *) &xcb_out;
847 xcb_parts[2].iov_len = sizeof(xcb_out);
848 xcb_parts[3].iov_base = 0;
849 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
851 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
852 return xcb_ret;
855 xcb_void_cookie_t
856 xcb_glx_copy_context (xcb_connection_t *c /**< */,
857 xcb_glx_context_t src /**< */,
858 xcb_glx_context_t dest /**< */,
859 uint32_t mask /**< */,
860 xcb_glx_context_tag_t src_context_tag /**< */)
862 static const xcb_protocol_request_t xcb_req = {
863 /* count */ 2,
864 /* ext */ &xcb_glx_id,
865 /* opcode */ XCB_GLX_COPY_CONTEXT,
866 /* isvoid */ 1
869 struct iovec xcb_parts[4];
870 xcb_void_cookie_t xcb_ret;
871 xcb_glx_copy_context_request_t xcb_out;
873 xcb_out.src = src;
874 xcb_out.dest = dest;
875 xcb_out.mask = mask;
876 xcb_out.src_context_tag = src_context_tag;
878 xcb_parts[2].iov_base = (char *) &xcb_out;
879 xcb_parts[2].iov_len = sizeof(xcb_out);
880 xcb_parts[3].iov_base = 0;
881 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
883 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
884 return xcb_ret;
887 xcb_void_cookie_t
888 xcb_glx_swap_buffers_checked (xcb_connection_t *c /**< */,
889 xcb_glx_context_tag_t context_tag /**< */,
890 xcb_glx_drawable_t drawable /**< */)
892 static const xcb_protocol_request_t xcb_req = {
893 /* count */ 2,
894 /* ext */ &xcb_glx_id,
895 /* opcode */ XCB_GLX_SWAP_BUFFERS,
896 /* isvoid */ 1
899 struct iovec xcb_parts[4];
900 xcb_void_cookie_t xcb_ret;
901 xcb_glx_swap_buffers_request_t xcb_out;
903 xcb_out.context_tag = context_tag;
904 xcb_out.drawable = drawable;
906 xcb_parts[2].iov_base = (char *) &xcb_out;
907 xcb_parts[2].iov_len = sizeof(xcb_out);
908 xcb_parts[3].iov_base = 0;
909 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
911 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
912 return xcb_ret;
915 xcb_void_cookie_t
916 xcb_glx_swap_buffers (xcb_connection_t *c /**< */,
917 xcb_glx_context_tag_t context_tag /**< */,
918 xcb_glx_drawable_t drawable /**< */)
920 static const xcb_protocol_request_t xcb_req = {
921 /* count */ 2,
922 /* ext */ &xcb_glx_id,
923 /* opcode */ XCB_GLX_SWAP_BUFFERS,
924 /* isvoid */ 1
927 struct iovec xcb_parts[4];
928 xcb_void_cookie_t xcb_ret;
929 xcb_glx_swap_buffers_request_t xcb_out;
931 xcb_out.context_tag = context_tag;
932 xcb_out.drawable = drawable;
934 xcb_parts[2].iov_base = (char *) &xcb_out;
935 xcb_parts[2].iov_len = sizeof(xcb_out);
936 xcb_parts[3].iov_base = 0;
937 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
939 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
940 return xcb_ret;
943 xcb_void_cookie_t
944 xcb_glx_use_x_font_checked (xcb_connection_t *c /**< */,
945 xcb_glx_context_tag_t context_tag /**< */,
946 xcb_font_t font /**< */,
947 uint32_t first /**< */,
948 uint32_t count /**< */,
949 uint32_t list_base /**< */)
951 static const xcb_protocol_request_t xcb_req = {
952 /* count */ 2,
953 /* ext */ &xcb_glx_id,
954 /* opcode */ XCB_GLX_USE_X_FONT,
955 /* isvoid */ 1
958 struct iovec xcb_parts[4];
959 xcb_void_cookie_t xcb_ret;
960 xcb_glx_use_x_font_request_t xcb_out;
962 xcb_out.context_tag = context_tag;
963 xcb_out.font = font;
964 xcb_out.first = first;
965 xcb_out.count = count;
966 xcb_out.list_base = list_base;
968 xcb_parts[2].iov_base = (char *) &xcb_out;
969 xcb_parts[2].iov_len = sizeof(xcb_out);
970 xcb_parts[3].iov_base = 0;
971 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
973 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
974 return xcb_ret;
977 xcb_void_cookie_t
978 xcb_glx_use_x_font (xcb_connection_t *c /**< */,
979 xcb_glx_context_tag_t context_tag /**< */,
980 xcb_font_t font /**< */,
981 uint32_t first /**< */,
982 uint32_t count /**< */,
983 uint32_t list_base /**< */)
985 static const xcb_protocol_request_t xcb_req = {
986 /* count */ 2,
987 /* ext */ &xcb_glx_id,
988 /* opcode */ XCB_GLX_USE_X_FONT,
989 /* isvoid */ 1
992 struct iovec xcb_parts[4];
993 xcb_void_cookie_t xcb_ret;
994 xcb_glx_use_x_font_request_t xcb_out;
996 xcb_out.context_tag = context_tag;
997 xcb_out.font = font;
998 xcb_out.first = first;
999 xcb_out.count = count;
1000 xcb_out.list_base = list_base;
1002 xcb_parts[2].iov_base = (char *) &xcb_out;
1003 xcb_parts[2].iov_len = sizeof(xcb_out);
1004 xcb_parts[3].iov_base = 0;
1005 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1007 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1008 return xcb_ret;
1011 xcb_void_cookie_t
1012 xcb_glx_create_glx_pixmap_checked (xcb_connection_t *c /**< */,
1013 uint32_t screen /**< */,
1014 xcb_visualid_t visual /**< */,
1015 xcb_pixmap_t pixmap /**< */,
1016 xcb_glx_pixmap_t glx_pixmap /**< */)
1018 static const xcb_protocol_request_t xcb_req = {
1019 /* count */ 2,
1020 /* ext */ &xcb_glx_id,
1021 /* opcode */ XCB_GLX_CREATE_GLX_PIXMAP,
1022 /* isvoid */ 1
1025 struct iovec xcb_parts[4];
1026 xcb_void_cookie_t xcb_ret;
1027 xcb_glx_create_glx_pixmap_request_t xcb_out;
1029 xcb_out.screen = screen;
1030 xcb_out.visual = visual;
1031 xcb_out.pixmap = pixmap;
1032 xcb_out.glx_pixmap = glx_pixmap;
1034 xcb_parts[2].iov_base = (char *) &xcb_out;
1035 xcb_parts[2].iov_len = sizeof(xcb_out);
1036 xcb_parts[3].iov_base = 0;
1037 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1039 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1040 return xcb_ret;
1043 xcb_void_cookie_t
1044 xcb_glx_create_glx_pixmap (xcb_connection_t *c /**< */,
1045 uint32_t screen /**< */,
1046 xcb_visualid_t visual /**< */,
1047 xcb_pixmap_t pixmap /**< */,
1048 xcb_glx_pixmap_t glx_pixmap /**< */)
1050 static const xcb_protocol_request_t xcb_req = {
1051 /* count */ 2,
1052 /* ext */ &xcb_glx_id,
1053 /* opcode */ XCB_GLX_CREATE_GLX_PIXMAP,
1054 /* isvoid */ 1
1057 struct iovec xcb_parts[4];
1058 xcb_void_cookie_t xcb_ret;
1059 xcb_glx_create_glx_pixmap_request_t xcb_out;
1061 xcb_out.screen = screen;
1062 xcb_out.visual = visual;
1063 xcb_out.pixmap = pixmap;
1064 xcb_out.glx_pixmap = glx_pixmap;
1066 xcb_parts[2].iov_base = (char *) &xcb_out;
1067 xcb_parts[2].iov_len = sizeof(xcb_out);
1068 xcb_parts[3].iov_base = 0;
1069 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1071 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1072 return xcb_ret;
1076 xcb_glx_get_visual_configs_sizeof (const void *_buffer /**< */)
1078 char *xcb_tmp = (char *)_buffer;
1079 const xcb_glx_get_visual_configs_reply_t *_aux = (xcb_glx_get_visual_configs_reply_t *)_buffer;
1080 unsigned int xcb_buffer_len = 0;
1081 unsigned int xcb_block_len = 0;
1082 unsigned int xcb_pad = 0;
1083 unsigned int xcb_align_to = 0;
1086 xcb_block_len += sizeof(xcb_glx_get_visual_configs_reply_t);
1087 xcb_tmp += xcb_block_len;
1088 xcb_buffer_len += xcb_block_len;
1089 xcb_block_len = 0;
1090 /* property_list */
1091 xcb_block_len += _aux->length * sizeof(uint32_t);
1092 xcb_tmp += xcb_block_len;
1093 xcb_align_to = ALIGNOF(uint32_t);
1094 /* insert padding */
1095 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
1096 xcb_buffer_len += xcb_block_len + xcb_pad;
1097 if (0 != xcb_pad) {
1098 xcb_tmp += xcb_pad;
1099 xcb_pad = 0;
1101 xcb_block_len = 0;
1103 return xcb_buffer_len;
1106 xcb_glx_get_visual_configs_cookie_t
1107 xcb_glx_get_visual_configs (xcb_connection_t *c /**< */,
1108 uint32_t screen /**< */)
1110 static const xcb_protocol_request_t xcb_req = {
1111 /* count */ 2,
1112 /* ext */ &xcb_glx_id,
1113 /* opcode */ XCB_GLX_GET_VISUAL_CONFIGS,
1114 /* isvoid */ 0
1117 struct iovec xcb_parts[4];
1118 xcb_glx_get_visual_configs_cookie_t xcb_ret;
1119 xcb_glx_get_visual_configs_request_t xcb_out;
1121 xcb_out.screen = screen;
1123 xcb_parts[2].iov_base = (char *) &xcb_out;
1124 xcb_parts[2].iov_len = sizeof(xcb_out);
1125 xcb_parts[3].iov_base = 0;
1126 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1128 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1129 return xcb_ret;
1132 xcb_glx_get_visual_configs_cookie_t
1133 xcb_glx_get_visual_configs_unchecked (xcb_connection_t *c /**< */,
1134 uint32_t screen /**< */)
1136 static const xcb_protocol_request_t xcb_req = {
1137 /* count */ 2,
1138 /* ext */ &xcb_glx_id,
1139 /* opcode */ XCB_GLX_GET_VISUAL_CONFIGS,
1140 /* isvoid */ 0
1143 struct iovec xcb_parts[4];
1144 xcb_glx_get_visual_configs_cookie_t xcb_ret;
1145 xcb_glx_get_visual_configs_request_t xcb_out;
1147 xcb_out.screen = screen;
1149 xcb_parts[2].iov_base = (char *) &xcb_out;
1150 xcb_parts[2].iov_len = sizeof(xcb_out);
1151 xcb_parts[3].iov_base = 0;
1152 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1154 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1155 return xcb_ret;
1158 uint32_t *
1159 xcb_glx_get_visual_configs_property_list (const xcb_glx_get_visual_configs_reply_t *R /**< */)
1161 return (uint32_t *) (R + 1);
1165 xcb_glx_get_visual_configs_property_list_length (const xcb_glx_get_visual_configs_reply_t *R /**< */)
1167 return R->length;
1170 xcb_generic_iterator_t
1171 xcb_glx_get_visual_configs_property_list_end (const xcb_glx_get_visual_configs_reply_t *R /**< */)
1173 xcb_generic_iterator_t i;
1174 i.data = ((uint32_t *) (R + 1)) + (R->length);
1175 i.rem = 0;
1176 i.index = (char *) i.data - (char *) R;
1177 return i;
1180 xcb_glx_get_visual_configs_reply_t *
1181 xcb_glx_get_visual_configs_reply (xcb_connection_t *c /**< */,
1182 xcb_glx_get_visual_configs_cookie_t cookie /**< */,
1183 xcb_generic_error_t **e /**< */)
1185 return (xcb_glx_get_visual_configs_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
1188 xcb_void_cookie_t
1189 xcb_glx_destroy_glx_pixmap_checked (xcb_connection_t *c /**< */,
1190 xcb_glx_pixmap_t glx_pixmap /**< */)
1192 static const xcb_protocol_request_t xcb_req = {
1193 /* count */ 2,
1194 /* ext */ &xcb_glx_id,
1195 /* opcode */ XCB_GLX_DESTROY_GLX_PIXMAP,
1196 /* isvoid */ 1
1199 struct iovec xcb_parts[4];
1200 xcb_void_cookie_t xcb_ret;
1201 xcb_glx_destroy_glx_pixmap_request_t xcb_out;
1203 xcb_out.glx_pixmap = glx_pixmap;
1205 xcb_parts[2].iov_base = (char *) &xcb_out;
1206 xcb_parts[2].iov_len = sizeof(xcb_out);
1207 xcb_parts[3].iov_base = 0;
1208 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1210 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1211 return xcb_ret;
1214 xcb_void_cookie_t
1215 xcb_glx_destroy_glx_pixmap (xcb_connection_t *c /**< */,
1216 xcb_glx_pixmap_t glx_pixmap /**< */)
1218 static const xcb_protocol_request_t xcb_req = {
1219 /* count */ 2,
1220 /* ext */ &xcb_glx_id,
1221 /* opcode */ XCB_GLX_DESTROY_GLX_PIXMAP,
1222 /* isvoid */ 1
1225 struct iovec xcb_parts[4];
1226 xcb_void_cookie_t xcb_ret;
1227 xcb_glx_destroy_glx_pixmap_request_t xcb_out;
1229 xcb_out.glx_pixmap = glx_pixmap;
1231 xcb_parts[2].iov_base = (char *) &xcb_out;
1232 xcb_parts[2].iov_len = sizeof(xcb_out);
1233 xcb_parts[3].iov_base = 0;
1234 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1236 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1237 return xcb_ret;
1241 xcb_glx_vendor_private_sizeof (const void *_buffer /**< */,
1242 uint32_t data_len /**< */)
1244 char *xcb_tmp = (char *)_buffer;
1245 unsigned int xcb_buffer_len = 0;
1246 unsigned int xcb_block_len = 0;
1247 unsigned int xcb_pad = 0;
1248 unsigned int xcb_align_to = 0;
1251 xcb_block_len += sizeof(xcb_glx_vendor_private_request_t);
1252 xcb_tmp += xcb_block_len;
1253 xcb_buffer_len += xcb_block_len;
1254 xcb_block_len = 0;
1255 /* data */
1256 xcb_block_len += data_len * sizeof(uint8_t);
1257 xcb_tmp += xcb_block_len;
1258 xcb_align_to = ALIGNOF(uint8_t);
1259 /* insert padding */
1260 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
1261 xcb_buffer_len += xcb_block_len + xcb_pad;
1262 if (0 != xcb_pad) {
1263 xcb_tmp += xcb_pad;
1264 xcb_pad = 0;
1266 xcb_block_len = 0;
1268 return xcb_buffer_len;
1271 xcb_void_cookie_t
1272 xcb_glx_vendor_private_checked (xcb_connection_t *c /**< */,
1273 uint32_t vendor_code /**< */,
1274 xcb_glx_context_tag_t context_tag /**< */,
1275 uint32_t data_len /**< */,
1276 const uint8_t *data /**< */)
1278 static const xcb_protocol_request_t xcb_req = {
1279 /* count */ 4,
1280 /* ext */ &xcb_glx_id,
1281 /* opcode */ XCB_GLX_VENDOR_PRIVATE,
1282 /* isvoid */ 1
1285 struct iovec xcb_parts[6];
1286 xcb_void_cookie_t xcb_ret;
1287 xcb_glx_vendor_private_request_t xcb_out;
1289 xcb_out.vendor_code = vendor_code;
1290 xcb_out.context_tag = context_tag;
1292 xcb_parts[2].iov_base = (char *) &xcb_out;
1293 xcb_parts[2].iov_len = sizeof(xcb_out);
1294 xcb_parts[3].iov_base = 0;
1295 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1296 /* uint8_t data */
1297 xcb_parts[4].iov_base = (char *) data;
1298 xcb_parts[4].iov_len = data_len * sizeof(uint8_t);
1299 xcb_parts[5].iov_base = 0;
1300 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
1302 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1303 return xcb_ret;
1306 xcb_void_cookie_t
1307 xcb_glx_vendor_private (xcb_connection_t *c /**< */,
1308 uint32_t vendor_code /**< */,
1309 xcb_glx_context_tag_t context_tag /**< */,
1310 uint32_t data_len /**< */,
1311 const uint8_t *data /**< */)
1313 static const xcb_protocol_request_t xcb_req = {
1314 /* count */ 4,
1315 /* ext */ &xcb_glx_id,
1316 /* opcode */ XCB_GLX_VENDOR_PRIVATE,
1317 /* isvoid */ 1
1320 struct iovec xcb_parts[6];
1321 xcb_void_cookie_t xcb_ret;
1322 xcb_glx_vendor_private_request_t xcb_out;
1324 xcb_out.vendor_code = vendor_code;
1325 xcb_out.context_tag = context_tag;
1327 xcb_parts[2].iov_base = (char *) &xcb_out;
1328 xcb_parts[2].iov_len = sizeof(xcb_out);
1329 xcb_parts[3].iov_base = 0;
1330 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1331 /* uint8_t data */
1332 xcb_parts[4].iov_base = (char *) data;
1333 xcb_parts[4].iov_len = data_len * sizeof(uint8_t);
1334 xcb_parts[5].iov_base = 0;
1335 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
1337 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1338 return xcb_ret;
1342 xcb_glx_vendor_private_with_reply_sizeof (const void *_buffer /**< */,
1343 uint32_t data_len /**< */)
1345 char *xcb_tmp = (char *)_buffer;
1346 unsigned int xcb_buffer_len = 0;
1347 unsigned int xcb_block_len = 0;
1348 unsigned int xcb_pad = 0;
1349 unsigned int xcb_align_to = 0;
1352 xcb_block_len += sizeof(xcb_glx_vendor_private_with_reply_request_t);
1353 xcb_tmp += xcb_block_len;
1354 xcb_buffer_len += xcb_block_len;
1355 xcb_block_len = 0;
1356 /* data */
1357 xcb_block_len += data_len * sizeof(uint8_t);
1358 xcb_tmp += xcb_block_len;
1359 xcb_align_to = ALIGNOF(uint8_t);
1360 /* insert padding */
1361 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
1362 xcb_buffer_len += xcb_block_len + xcb_pad;
1363 if (0 != xcb_pad) {
1364 xcb_tmp += xcb_pad;
1365 xcb_pad = 0;
1367 xcb_block_len = 0;
1369 return xcb_buffer_len;
1372 xcb_glx_vendor_private_with_reply_cookie_t
1373 xcb_glx_vendor_private_with_reply (xcb_connection_t *c /**< */,
1374 uint32_t vendor_code /**< */,
1375 xcb_glx_context_tag_t context_tag /**< */,
1376 uint32_t data_len /**< */,
1377 const uint8_t *data /**< */)
1379 static const xcb_protocol_request_t xcb_req = {
1380 /* count */ 4,
1381 /* ext */ &xcb_glx_id,
1382 /* opcode */ XCB_GLX_VENDOR_PRIVATE_WITH_REPLY,
1383 /* isvoid */ 0
1386 struct iovec xcb_parts[6];
1387 xcb_glx_vendor_private_with_reply_cookie_t xcb_ret;
1388 xcb_glx_vendor_private_with_reply_request_t xcb_out;
1390 xcb_out.vendor_code = vendor_code;
1391 xcb_out.context_tag = context_tag;
1393 xcb_parts[2].iov_base = (char *) &xcb_out;
1394 xcb_parts[2].iov_len = sizeof(xcb_out);
1395 xcb_parts[3].iov_base = 0;
1396 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1397 /* uint8_t data */
1398 xcb_parts[4].iov_base = (char *) data;
1399 xcb_parts[4].iov_len = data_len * sizeof(uint8_t);
1400 xcb_parts[5].iov_base = 0;
1401 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
1403 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1404 return xcb_ret;
1407 xcb_glx_vendor_private_with_reply_cookie_t
1408 xcb_glx_vendor_private_with_reply_unchecked (xcb_connection_t *c /**< */,
1409 uint32_t vendor_code /**< */,
1410 xcb_glx_context_tag_t context_tag /**< */,
1411 uint32_t data_len /**< */,
1412 const uint8_t *data /**< */)
1414 static const xcb_protocol_request_t xcb_req = {
1415 /* count */ 4,
1416 /* ext */ &xcb_glx_id,
1417 /* opcode */ XCB_GLX_VENDOR_PRIVATE_WITH_REPLY,
1418 /* isvoid */ 0
1421 struct iovec xcb_parts[6];
1422 xcb_glx_vendor_private_with_reply_cookie_t xcb_ret;
1423 xcb_glx_vendor_private_with_reply_request_t xcb_out;
1425 xcb_out.vendor_code = vendor_code;
1426 xcb_out.context_tag = context_tag;
1428 xcb_parts[2].iov_base = (char *) &xcb_out;
1429 xcb_parts[2].iov_len = sizeof(xcb_out);
1430 xcb_parts[3].iov_base = 0;
1431 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1432 /* uint8_t data */
1433 xcb_parts[4].iov_base = (char *) data;
1434 xcb_parts[4].iov_len = data_len * sizeof(uint8_t);
1435 xcb_parts[5].iov_base = 0;
1436 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
1438 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1439 return xcb_ret;
1442 uint8_t *
1443 xcb_glx_vendor_private_with_reply_data_2 (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */)
1445 return (uint8_t *) (R + 1);
1449 xcb_glx_vendor_private_with_reply_data_2_length (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */)
1451 return (R->length * 4);
1454 xcb_generic_iterator_t
1455 xcb_glx_vendor_private_with_reply_data_2_end (const xcb_glx_vendor_private_with_reply_reply_t *R /**< */)
1457 xcb_generic_iterator_t i;
1458 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
1459 i.rem = 0;
1460 i.index = (char *) i.data - (char *) R;
1461 return i;
1464 xcb_glx_vendor_private_with_reply_reply_t *
1465 xcb_glx_vendor_private_with_reply_reply (xcb_connection_t *c /**< */,
1466 xcb_glx_vendor_private_with_reply_cookie_t cookie /**< */,
1467 xcb_generic_error_t **e /**< */)
1469 return (xcb_glx_vendor_private_with_reply_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
1472 xcb_glx_query_extensions_string_cookie_t
1473 xcb_glx_query_extensions_string (xcb_connection_t *c /**< */,
1474 uint32_t screen /**< */)
1476 static const xcb_protocol_request_t xcb_req = {
1477 /* count */ 2,
1478 /* ext */ &xcb_glx_id,
1479 /* opcode */ XCB_GLX_QUERY_EXTENSIONS_STRING,
1480 /* isvoid */ 0
1483 struct iovec xcb_parts[4];
1484 xcb_glx_query_extensions_string_cookie_t xcb_ret;
1485 xcb_glx_query_extensions_string_request_t xcb_out;
1487 xcb_out.screen = screen;
1489 xcb_parts[2].iov_base = (char *) &xcb_out;
1490 xcb_parts[2].iov_len = sizeof(xcb_out);
1491 xcb_parts[3].iov_base = 0;
1492 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1494 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1495 return xcb_ret;
1498 xcb_glx_query_extensions_string_cookie_t
1499 xcb_glx_query_extensions_string_unchecked (xcb_connection_t *c /**< */,
1500 uint32_t screen /**< */)
1502 static const xcb_protocol_request_t xcb_req = {
1503 /* count */ 2,
1504 /* ext */ &xcb_glx_id,
1505 /* opcode */ XCB_GLX_QUERY_EXTENSIONS_STRING,
1506 /* isvoid */ 0
1509 struct iovec xcb_parts[4];
1510 xcb_glx_query_extensions_string_cookie_t xcb_ret;
1511 xcb_glx_query_extensions_string_request_t xcb_out;
1513 xcb_out.screen = screen;
1515 xcb_parts[2].iov_base = (char *) &xcb_out;
1516 xcb_parts[2].iov_len = sizeof(xcb_out);
1517 xcb_parts[3].iov_base = 0;
1518 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1520 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1521 return xcb_ret;
1524 xcb_glx_query_extensions_string_reply_t *
1525 xcb_glx_query_extensions_string_reply (xcb_connection_t *c /**< */,
1526 xcb_glx_query_extensions_string_cookie_t cookie /**< */,
1527 xcb_generic_error_t **e /**< */)
1529 return (xcb_glx_query_extensions_string_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
1533 xcb_glx_query_server_string_sizeof (const void *_buffer /**< */)
1535 char *xcb_tmp = (char *)_buffer;
1536 const xcb_glx_query_server_string_reply_t *_aux = (xcb_glx_query_server_string_reply_t *)_buffer;
1537 unsigned int xcb_buffer_len = 0;
1538 unsigned int xcb_block_len = 0;
1539 unsigned int xcb_pad = 0;
1540 unsigned int xcb_align_to = 0;
1543 xcb_block_len += sizeof(xcb_glx_query_server_string_reply_t);
1544 xcb_tmp += xcb_block_len;
1545 xcb_buffer_len += xcb_block_len;
1546 xcb_block_len = 0;
1547 /* string */
1548 xcb_block_len += _aux->str_len * sizeof(char);
1549 xcb_tmp += xcb_block_len;
1550 xcb_align_to = ALIGNOF(char);
1551 /* insert padding */
1552 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
1553 xcb_buffer_len += xcb_block_len + xcb_pad;
1554 if (0 != xcb_pad) {
1555 xcb_tmp += xcb_pad;
1556 xcb_pad = 0;
1558 xcb_block_len = 0;
1560 return xcb_buffer_len;
1563 xcb_glx_query_server_string_cookie_t
1564 xcb_glx_query_server_string (xcb_connection_t *c /**< */,
1565 uint32_t screen /**< */,
1566 uint32_t name /**< */)
1568 static const xcb_protocol_request_t xcb_req = {
1569 /* count */ 2,
1570 /* ext */ &xcb_glx_id,
1571 /* opcode */ XCB_GLX_QUERY_SERVER_STRING,
1572 /* isvoid */ 0
1575 struct iovec xcb_parts[4];
1576 xcb_glx_query_server_string_cookie_t xcb_ret;
1577 xcb_glx_query_server_string_request_t xcb_out;
1579 xcb_out.screen = screen;
1580 xcb_out.name = name;
1582 xcb_parts[2].iov_base = (char *) &xcb_out;
1583 xcb_parts[2].iov_len = sizeof(xcb_out);
1584 xcb_parts[3].iov_base = 0;
1585 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1587 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1588 return xcb_ret;
1591 xcb_glx_query_server_string_cookie_t
1592 xcb_glx_query_server_string_unchecked (xcb_connection_t *c /**< */,
1593 uint32_t screen /**< */,
1594 uint32_t name /**< */)
1596 static const xcb_protocol_request_t xcb_req = {
1597 /* count */ 2,
1598 /* ext */ &xcb_glx_id,
1599 /* opcode */ XCB_GLX_QUERY_SERVER_STRING,
1600 /* isvoid */ 0
1603 struct iovec xcb_parts[4];
1604 xcb_glx_query_server_string_cookie_t xcb_ret;
1605 xcb_glx_query_server_string_request_t xcb_out;
1607 xcb_out.screen = screen;
1608 xcb_out.name = name;
1610 xcb_parts[2].iov_base = (char *) &xcb_out;
1611 xcb_parts[2].iov_len = sizeof(xcb_out);
1612 xcb_parts[3].iov_base = 0;
1613 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1615 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1616 return xcb_ret;
1619 char *
1620 xcb_glx_query_server_string_string (const xcb_glx_query_server_string_reply_t *R /**< */)
1622 return (char *) (R + 1);
1626 xcb_glx_query_server_string_string_length (const xcb_glx_query_server_string_reply_t *R /**< */)
1628 return R->str_len;
1631 xcb_generic_iterator_t
1632 xcb_glx_query_server_string_string_end (const xcb_glx_query_server_string_reply_t *R /**< */)
1634 xcb_generic_iterator_t i;
1635 i.data = ((char *) (R + 1)) + (R->str_len);
1636 i.rem = 0;
1637 i.index = (char *) i.data - (char *) R;
1638 return i;
1641 xcb_glx_query_server_string_reply_t *
1642 xcb_glx_query_server_string_reply (xcb_connection_t *c /**< */,
1643 xcb_glx_query_server_string_cookie_t cookie /**< */,
1644 xcb_generic_error_t **e /**< */)
1646 return (xcb_glx_query_server_string_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
1650 xcb_glx_client_info_sizeof (const void *_buffer /**< */)
1652 char *xcb_tmp = (char *)_buffer;
1653 const xcb_glx_client_info_request_t *_aux = (xcb_glx_client_info_request_t *)_buffer;
1654 unsigned int xcb_buffer_len = 0;
1655 unsigned int xcb_block_len = 0;
1656 unsigned int xcb_pad = 0;
1657 unsigned int xcb_align_to = 0;
1660 xcb_block_len += sizeof(xcb_glx_client_info_request_t);
1661 xcb_tmp += xcb_block_len;
1662 xcb_buffer_len += xcb_block_len;
1663 xcb_block_len = 0;
1664 /* string */
1665 xcb_block_len += _aux->str_len * sizeof(char);
1666 xcb_tmp += xcb_block_len;
1667 xcb_align_to = ALIGNOF(char);
1668 /* insert padding */
1669 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
1670 xcb_buffer_len += xcb_block_len + xcb_pad;
1671 if (0 != xcb_pad) {
1672 xcb_tmp += xcb_pad;
1673 xcb_pad = 0;
1675 xcb_block_len = 0;
1677 return xcb_buffer_len;
1680 xcb_void_cookie_t
1681 xcb_glx_client_info_checked (xcb_connection_t *c /**< */,
1682 uint32_t major_version /**< */,
1683 uint32_t minor_version /**< */,
1684 uint32_t str_len /**< */,
1685 const char *string /**< */)
1687 static const xcb_protocol_request_t xcb_req = {
1688 /* count */ 4,
1689 /* ext */ &xcb_glx_id,
1690 /* opcode */ XCB_GLX_CLIENT_INFO,
1691 /* isvoid */ 1
1694 struct iovec xcb_parts[6];
1695 xcb_void_cookie_t xcb_ret;
1696 xcb_glx_client_info_request_t xcb_out;
1698 xcb_out.major_version = major_version;
1699 xcb_out.minor_version = minor_version;
1700 xcb_out.str_len = str_len;
1702 xcb_parts[2].iov_base = (char *) &xcb_out;
1703 xcb_parts[2].iov_len = sizeof(xcb_out);
1704 xcb_parts[3].iov_base = 0;
1705 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1706 /* char string */
1707 xcb_parts[4].iov_base = (char *) string;
1708 xcb_parts[4].iov_len = str_len * sizeof(char);
1709 xcb_parts[5].iov_base = 0;
1710 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
1712 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1713 return xcb_ret;
1716 xcb_void_cookie_t
1717 xcb_glx_client_info (xcb_connection_t *c /**< */,
1718 uint32_t major_version /**< */,
1719 uint32_t minor_version /**< */,
1720 uint32_t str_len /**< */,
1721 const char *string /**< */)
1723 static const xcb_protocol_request_t xcb_req = {
1724 /* count */ 4,
1725 /* ext */ &xcb_glx_id,
1726 /* opcode */ XCB_GLX_CLIENT_INFO,
1727 /* isvoid */ 1
1730 struct iovec xcb_parts[6];
1731 xcb_void_cookie_t xcb_ret;
1732 xcb_glx_client_info_request_t xcb_out;
1734 xcb_out.major_version = major_version;
1735 xcb_out.minor_version = minor_version;
1736 xcb_out.str_len = str_len;
1738 xcb_parts[2].iov_base = (char *) &xcb_out;
1739 xcb_parts[2].iov_len = sizeof(xcb_out);
1740 xcb_parts[3].iov_base = 0;
1741 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1742 /* char string */
1743 xcb_parts[4].iov_base = (char *) string;
1744 xcb_parts[4].iov_len = str_len * sizeof(char);
1745 xcb_parts[5].iov_base = 0;
1746 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
1748 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1749 return xcb_ret;
1753 xcb_glx_get_fb_configs_sizeof (const void *_buffer /**< */)
1755 char *xcb_tmp = (char *)_buffer;
1756 const xcb_glx_get_fb_configs_reply_t *_aux = (xcb_glx_get_fb_configs_reply_t *)_buffer;
1757 unsigned int xcb_buffer_len = 0;
1758 unsigned int xcb_block_len = 0;
1759 unsigned int xcb_pad = 0;
1760 unsigned int xcb_align_to = 0;
1763 xcb_block_len += sizeof(xcb_glx_get_fb_configs_reply_t);
1764 xcb_tmp += xcb_block_len;
1765 xcb_buffer_len += xcb_block_len;
1766 xcb_block_len = 0;
1767 /* property_list */
1768 xcb_block_len += _aux->length * sizeof(uint32_t);
1769 xcb_tmp += xcb_block_len;
1770 xcb_align_to = ALIGNOF(uint32_t);
1771 /* insert padding */
1772 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
1773 xcb_buffer_len += xcb_block_len + xcb_pad;
1774 if (0 != xcb_pad) {
1775 xcb_tmp += xcb_pad;
1776 xcb_pad = 0;
1778 xcb_block_len = 0;
1780 return xcb_buffer_len;
1783 xcb_glx_get_fb_configs_cookie_t
1784 xcb_glx_get_fb_configs (xcb_connection_t *c /**< */,
1785 uint32_t screen /**< */)
1787 static const xcb_protocol_request_t xcb_req = {
1788 /* count */ 2,
1789 /* ext */ &xcb_glx_id,
1790 /* opcode */ XCB_GLX_GET_FB_CONFIGS,
1791 /* isvoid */ 0
1794 struct iovec xcb_parts[4];
1795 xcb_glx_get_fb_configs_cookie_t xcb_ret;
1796 xcb_glx_get_fb_configs_request_t xcb_out;
1798 xcb_out.screen = screen;
1800 xcb_parts[2].iov_base = (char *) &xcb_out;
1801 xcb_parts[2].iov_len = sizeof(xcb_out);
1802 xcb_parts[3].iov_base = 0;
1803 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1805 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1806 return xcb_ret;
1809 xcb_glx_get_fb_configs_cookie_t
1810 xcb_glx_get_fb_configs_unchecked (xcb_connection_t *c /**< */,
1811 uint32_t screen /**< */)
1813 static const xcb_protocol_request_t xcb_req = {
1814 /* count */ 2,
1815 /* ext */ &xcb_glx_id,
1816 /* opcode */ XCB_GLX_GET_FB_CONFIGS,
1817 /* isvoid */ 0
1820 struct iovec xcb_parts[4];
1821 xcb_glx_get_fb_configs_cookie_t xcb_ret;
1822 xcb_glx_get_fb_configs_request_t xcb_out;
1824 xcb_out.screen = screen;
1826 xcb_parts[2].iov_base = (char *) &xcb_out;
1827 xcb_parts[2].iov_len = sizeof(xcb_out);
1828 xcb_parts[3].iov_base = 0;
1829 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1831 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1832 return xcb_ret;
1835 uint32_t *
1836 xcb_glx_get_fb_configs_property_list (const xcb_glx_get_fb_configs_reply_t *R /**< */)
1838 return (uint32_t *) (R + 1);
1842 xcb_glx_get_fb_configs_property_list_length (const xcb_glx_get_fb_configs_reply_t *R /**< */)
1844 return R->length;
1847 xcb_generic_iterator_t
1848 xcb_glx_get_fb_configs_property_list_end (const xcb_glx_get_fb_configs_reply_t *R /**< */)
1850 xcb_generic_iterator_t i;
1851 i.data = ((uint32_t *) (R + 1)) + (R->length);
1852 i.rem = 0;
1853 i.index = (char *) i.data - (char *) R;
1854 return i;
1857 xcb_glx_get_fb_configs_reply_t *
1858 xcb_glx_get_fb_configs_reply (xcb_connection_t *c /**< */,
1859 xcb_glx_get_fb_configs_cookie_t cookie /**< */,
1860 xcb_generic_error_t **e /**< */)
1862 return (xcb_glx_get_fb_configs_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
1866 xcb_glx_create_pixmap_sizeof (const void *_buffer /**< */)
1868 char *xcb_tmp = (char *)_buffer;
1869 const xcb_glx_create_pixmap_request_t *_aux = (xcb_glx_create_pixmap_request_t *)_buffer;
1870 unsigned int xcb_buffer_len = 0;
1871 unsigned int xcb_block_len = 0;
1872 unsigned int xcb_pad = 0;
1873 unsigned int xcb_align_to = 0;
1876 xcb_block_len += sizeof(xcb_glx_create_pixmap_request_t);
1877 xcb_tmp += xcb_block_len;
1878 xcb_buffer_len += xcb_block_len;
1879 xcb_block_len = 0;
1880 /* attribs */
1881 xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t);
1882 xcb_tmp += xcb_block_len;
1883 xcb_align_to = ALIGNOF(uint32_t);
1884 /* insert padding */
1885 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
1886 xcb_buffer_len += xcb_block_len + xcb_pad;
1887 if (0 != xcb_pad) {
1888 xcb_tmp += xcb_pad;
1889 xcb_pad = 0;
1891 xcb_block_len = 0;
1893 return xcb_buffer_len;
1896 xcb_void_cookie_t
1897 xcb_glx_create_pixmap_checked (xcb_connection_t *c /**< */,
1898 uint32_t screen /**< */,
1899 xcb_glx_fbconfig_t fbconfig /**< */,
1900 xcb_pixmap_t pixmap /**< */,
1901 xcb_glx_pixmap_t glx_pixmap /**< */,
1902 uint32_t num_attribs /**< */,
1903 const uint32_t *attribs /**< */)
1905 static const xcb_protocol_request_t xcb_req = {
1906 /* count */ 4,
1907 /* ext */ &xcb_glx_id,
1908 /* opcode */ XCB_GLX_CREATE_PIXMAP,
1909 /* isvoid */ 1
1912 struct iovec xcb_parts[6];
1913 xcb_void_cookie_t xcb_ret;
1914 xcb_glx_create_pixmap_request_t xcb_out;
1916 xcb_out.screen = screen;
1917 xcb_out.fbconfig = fbconfig;
1918 xcb_out.pixmap = pixmap;
1919 xcb_out.glx_pixmap = glx_pixmap;
1920 xcb_out.num_attribs = num_attribs;
1922 xcb_parts[2].iov_base = (char *) &xcb_out;
1923 xcb_parts[2].iov_len = sizeof(xcb_out);
1924 xcb_parts[3].iov_base = 0;
1925 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1926 /* uint32_t attribs */
1927 xcb_parts[4].iov_base = (char *) attribs;
1928 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
1929 xcb_parts[5].iov_base = 0;
1930 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
1932 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1933 return xcb_ret;
1936 xcb_void_cookie_t
1937 xcb_glx_create_pixmap (xcb_connection_t *c /**< */,
1938 uint32_t screen /**< */,
1939 xcb_glx_fbconfig_t fbconfig /**< */,
1940 xcb_pixmap_t pixmap /**< */,
1941 xcb_glx_pixmap_t glx_pixmap /**< */,
1942 uint32_t num_attribs /**< */,
1943 const uint32_t *attribs /**< */)
1945 static const xcb_protocol_request_t xcb_req = {
1946 /* count */ 4,
1947 /* ext */ &xcb_glx_id,
1948 /* opcode */ XCB_GLX_CREATE_PIXMAP,
1949 /* isvoid */ 1
1952 struct iovec xcb_parts[6];
1953 xcb_void_cookie_t xcb_ret;
1954 xcb_glx_create_pixmap_request_t xcb_out;
1956 xcb_out.screen = screen;
1957 xcb_out.fbconfig = fbconfig;
1958 xcb_out.pixmap = pixmap;
1959 xcb_out.glx_pixmap = glx_pixmap;
1960 xcb_out.num_attribs = num_attribs;
1962 xcb_parts[2].iov_base = (char *) &xcb_out;
1963 xcb_parts[2].iov_len = sizeof(xcb_out);
1964 xcb_parts[3].iov_base = 0;
1965 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1966 /* uint32_t attribs */
1967 xcb_parts[4].iov_base = (char *) attribs;
1968 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
1969 xcb_parts[5].iov_base = 0;
1970 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
1972 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
1973 return xcb_ret;
1976 xcb_void_cookie_t
1977 xcb_glx_destroy_pixmap_checked (xcb_connection_t *c /**< */,
1978 xcb_glx_pixmap_t glx_pixmap /**< */)
1980 static const xcb_protocol_request_t xcb_req = {
1981 /* count */ 2,
1982 /* ext */ &xcb_glx_id,
1983 /* opcode */ XCB_GLX_DESTROY_PIXMAP,
1984 /* isvoid */ 1
1987 struct iovec xcb_parts[4];
1988 xcb_void_cookie_t xcb_ret;
1989 xcb_glx_destroy_pixmap_request_t xcb_out;
1991 xcb_out.glx_pixmap = glx_pixmap;
1993 xcb_parts[2].iov_base = (char *) &xcb_out;
1994 xcb_parts[2].iov_len = sizeof(xcb_out);
1995 xcb_parts[3].iov_base = 0;
1996 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
1998 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
1999 return xcb_ret;
2002 xcb_void_cookie_t
2003 xcb_glx_destroy_pixmap (xcb_connection_t *c /**< */,
2004 xcb_glx_pixmap_t glx_pixmap /**< */)
2006 static const xcb_protocol_request_t xcb_req = {
2007 /* count */ 2,
2008 /* ext */ &xcb_glx_id,
2009 /* opcode */ XCB_GLX_DESTROY_PIXMAP,
2010 /* isvoid */ 1
2013 struct iovec xcb_parts[4];
2014 xcb_void_cookie_t xcb_ret;
2015 xcb_glx_destroy_pixmap_request_t xcb_out;
2017 xcb_out.glx_pixmap = glx_pixmap;
2019 xcb_parts[2].iov_base = (char *) &xcb_out;
2020 xcb_parts[2].iov_len = sizeof(xcb_out);
2021 xcb_parts[3].iov_base = 0;
2022 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2024 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2025 return xcb_ret;
2028 xcb_void_cookie_t
2029 xcb_glx_create_new_context_checked (xcb_connection_t *c /**< */,
2030 xcb_glx_context_t context /**< */,
2031 xcb_glx_fbconfig_t fbconfig /**< */,
2032 uint32_t screen /**< */,
2033 uint32_t render_type /**< */,
2034 xcb_glx_context_t share_list /**< */,
2035 uint8_t is_direct /**< */)
2037 static const xcb_protocol_request_t xcb_req = {
2038 /* count */ 2,
2039 /* ext */ &xcb_glx_id,
2040 /* opcode */ XCB_GLX_CREATE_NEW_CONTEXT,
2041 /* isvoid */ 1
2044 struct iovec xcb_parts[4];
2045 xcb_void_cookie_t xcb_ret;
2046 xcb_glx_create_new_context_request_t xcb_out;
2048 xcb_out.context = context;
2049 xcb_out.fbconfig = fbconfig;
2050 xcb_out.screen = screen;
2051 xcb_out.render_type = render_type;
2052 xcb_out.share_list = share_list;
2053 xcb_out.is_direct = is_direct;
2054 memset(xcb_out.pad0, 0, 3);
2056 xcb_parts[2].iov_base = (char *) &xcb_out;
2057 xcb_parts[2].iov_len = sizeof(xcb_out);
2058 xcb_parts[3].iov_base = 0;
2059 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2061 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2062 return xcb_ret;
2065 xcb_void_cookie_t
2066 xcb_glx_create_new_context (xcb_connection_t *c /**< */,
2067 xcb_glx_context_t context /**< */,
2068 xcb_glx_fbconfig_t fbconfig /**< */,
2069 uint32_t screen /**< */,
2070 uint32_t render_type /**< */,
2071 xcb_glx_context_t share_list /**< */,
2072 uint8_t is_direct /**< */)
2074 static const xcb_protocol_request_t xcb_req = {
2075 /* count */ 2,
2076 /* ext */ &xcb_glx_id,
2077 /* opcode */ XCB_GLX_CREATE_NEW_CONTEXT,
2078 /* isvoid */ 1
2081 struct iovec xcb_parts[4];
2082 xcb_void_cookie_t xcb_ret;
2083 xcb_glx_create_new_context_request_t xcb_out;
2085 xcb_out.context = context;
2086 xcb_out.fbconfig = fbconfig;
2087 xcb_out.screen = screen;
2088 xcb_out.render_type = render_type;
2089 xcb_out.share_list = share_list;
2090 xcb_out.is_direct = is_direct;
2091 memset(xcb_out.pad0, 0, 3);
2093 xcb_parts[2].iov_base = (char *) &xcb_out;
2094 xcb_parts[2].iov_len = sizeof(xcb_out);
2095 xcb_parts[3].iov_base = 0;
2096 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2098 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2099 return xcb_ret;
2103 xcb_glx_query_context_sizeof (const void *_buffer /**< */)
2105 char *xcb_tmp = (char *)_buffer;
2106 const xcb_glx_query_context_reply_t *_aux = (xcb_glx_query_context_reply_t *)_buffer;
2107 unsigned int xcb_buffer_len = 0;
2108 unsigned int xcb_block_len = 0;
2109 unsigned int xcb_pad = 0;
2110 unsigned int xcb_align_to = 0;
2113 xcb_block_len += sizeof(xcb_glx_query_context_reply_t);
2114 xcb_tmp += xcb_block_len;
2115 xcb_buffer_len += xcb_block_len;
2116 xcb_block_len = 0;
2117 /* attribs */
2118 xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t);
2119 xcb_tmp += xcb_block_len;
2120 xcb_align_to = ALIGNOF(uint32_t);
2121 /* insert padding */
2122 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
2123 xcb_buffer_len += xcb_block_len + xcb_pad;
2124 if (0 != xcb_pad) {
2125 xcb_tmp += xcb_pad;
2126 xcb_pad = 0;
2128 xcb_block_len = 0;
2130 return xcb_buffer_len;
2133 xcb_glx_query_context_cookie_t
2134 xcb_glx_query_context (xcb_connection_t *c /**< */,
2135 xcb_glx_context_t context /**< */)
2137 static const xcb_protocol_request_t xcb_req = {
2138 /* count */ 2,
2139 /* ext */ &xcb_glx_id,
2140 /* opcode */ XCB_GLX_QUERY_CONTEXT,
2141 /* isvoid */ 0
2144 struct iovec xcb_parts[4];
2145 xcb_glx_query_context_cookie_t xcb_ret;
2146 xcb_glx_query_context_request_t xcb_out;
2148 xcb_out.context = context;
2150 xcb_parts[2].iov_base = (char *) &xcb_out;
2151 xcb_parts[2].iov_len = sizeof(xcb_out);
2152 xcb_parts[3].iov_base = 0;
2153 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2155 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2156 return xcb_ret;
2159 xcb_glx_query_context_cookie_t
2160 xcb_glx_query_context_unchecked (xcb_connection_t *c /**< */,
2161 xcb_glx_context_t context /**< */)
2163 static const xcb_protocol_request_t xcb_req = {
2164 /* count */ 2,
2165 /* ext */ &xcb_glx_id,
2166 /* opcode */ XCB_GLX_QUERY_CONTEXT,
2167 /* isvoid */ 0
2170 struct iovec xcb_parts[4];
2171 xcb_glx_query_context_cookie_t xcb_ret;
2172 xcb_glx_query_context_request_t xcb_out;
2174 xcb_out.context = context;
2176 xcb_parts[2].iov_base = (char *) &xcb_out;
2177 xcb_parts[2].iov_len = sizeof(xcb_out);
2178 xcb_parts[3].iov_base = 0;
2179 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2181 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2182 return xcb_ret;
2185 uint32_t *
2186 xcb_glx_query_context_attribs (const xcb_glx_query_context_reply_t *R /**< */)
2188 return (uint32_t *) (R + 1);
2192 xcb_glx_query_context_attribs_length (const xcb_glx_query_context_reply_t *R /**< */)
2194 return (R->num_attribs * 2);
2197 xcb_generic_iterator_t
2198 xcb_glx_query_context_attribs_end (const xcb_glx_query_context_reply_t *R /**< */)
2200 xcb_generic_iterator_t i;
2201 i.data = ((uint32_t *) (R + 1)) + ((R->num_attribs * 2));
2202 i.rem = 0;
2203 i.index = (char *) i.data - (char *) R;
2204 return i;
2207 xcb_glx_query_context_reply_t *
2208 xcb_glx_query_context_reply (xcb_connection_t *c /**< */,
2209 xcb_glx_query_context_cookie_t cookie /**< */,
2210 xcb_generic_error_t **e /**< */)
2212 return (xcb_glx_query_context_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
2215 xcb_glx_make_context_current_cookie_t
2216 xcb_glx_make_context_current (xcb_connection_t *c /**< */,
2217 xcb_glx_context_tag_t old_context_tag /**< */,
2218 xcb_glx_drawable_t drawable /**< */,
2219 xcb_glx_drawable_t read_drawable /**< */,
2220 xcb_glx_context_t context /**< */)
2222 static const xcb_protocol_request_t xcb_req = {
2223 /* count */ 2,
2224 /* ext */ &xcb_glx_id,
2225 /* opcode */ XCB_GLX_MAKE_CONTEXT_CURRENT,
2226 /* isvoid */ 0
2229 struct iovec xcb_parts[4];
2230 xcb_glx_make_context_current_cookie_t xcb_ret;
2231 xcb_glx_make_context_current_request_t xcb_out;
2233 xcb_out.old_context_tag = old_context_tag;
2234 xcb_out.drawable = drawable;
2235 xcb_out.read_drawable = read_drawable;
2236 xcb_out.context = context;
2238 xcb_parts[2].iov_base = (char *) &xcb_out;
2239 xcb_parts[2].iov_len = sizeof(xcb_out);
2240 xcb_parts[3].iov_base = 0;
2241 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2243 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2244 return xcb_ret;
2247 xcb_glx_make_context_current_cookie_t
2248 xcb_glx_make_context_current_unchecked (xcb_connection_t *c /**< */,
2249 xcb_glx_context_tag_t old_context_tag /**< */,
2250 xcb_glx_drawable_t drawable /**< */,
2251 xcb_glx_drawable_t read_drawable /**< */,
2252 xcb_glx_context_t context /**< */)
2254 static const xcb_protocol_request_t xcb_req = {
2255 /* count */ 2,
2256 /* ext */ &xcb_glx_id,
2257 /* opcode */ XCB_GLX_MAKE_CONTEXT_CURRENT,
2258 /* isvoid */ 0
2261 struct iovec xcb_parts[4];
2262 xcb_glx_make_context_current_cookie_t xcb_ret;
2263 xcb_glx_make_context_current_request_t xcb_out;
2265 xcb_out.old_context_tag = old_context_tag;
2266 xcb_out.drawable = drawable;
2267 xcb_out.read_drawable = read_drawable;
2268 xcb_out.context = context;
2270 xcb_parts[2].iov_base = (char *) &xcb_out;
2271 xcb_parts[2].iov_len = sizeof(xcb_out);
2272 xcb_parts[3].iov_base = 0;
2273 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2275 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2276 return xcb_ret;
2279 xcb_glx_make_context_current_reply_t *
2280 xcb_glx_make_context_current_reply (xcb_connection_t *c /**< */,
2281 xcb_glx_make_context_current_cookie_t cookie /**< */,
2282 xcb_generic_error_t **e /**< */)
2284 return (xcb_glx_make_context_current_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
2288 xcb_glx_create_pbuffer_sizeof (const void *_buffer /**< */)
2290 char *xcb_tmp = (char *)_buffer;
2291 const xcb_glx_create_pbuffer_request_t *_aux = (xcb_glx_create_pbuffer_request_t *)_buffer;
2292 unsigned int xcb_buffer_len = 0;
2293 unsigned int xcb_block_len = 0;
2294 unsigned int xcb_pad = 0;
2295 unsigned int xcb_align_to = 0;
2298 xcb_block_len += sizeof(xcb_glx_create_pbuffer_request_t);
2299 xcb_tmp += xcb_block_len;
2300 xcb_buffer_len += xcb_block_len;
2301 xcb_block_len = 0;
2302 /* attribs */
2303 xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t);
2304 xcb_tmp += xcb_block_len;
2305 xcb_align_to = ALIGNOF(uint32_t);
2306 /* insert padding */
2307 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
2308 xcb_buffer_len += xcb_block_len + xcb_pad;
2309 if (0 != xcb_pad) {
2310 xcb_tmp += xcb_pad;
2311 xcb_pad = 0;
2313 xcb_block_len = 0;
2315 return xcb_buffer_len;
2318 xcb_void_cookie_t
2319 xcb_glx_create_pbuffer_checked (xcb_connection_t *c /**< */,
2320 uint32_t screen /**< */,
2321 xcb_glx_fbconfig_t fbconfig /**< */,
2322 xcb_glx_pbuffer_t pbuffer /**< */,
2323 uint32_t num_attribs /**< */,
2324 const uint32_t *attribs /**< */)
2326 static const xcb_protocol_request_t xcb_req = {
2327 /* count */ 4,
2328 /* ext */ &xcb_glx_id,
2329 /* opcode */ XCB_GLX_CREATE_PBUFFER,
2330 /* isvoid */ 1
2333 struct iovec xcb_parts[6];
2334 xcb_void_cookie_t xcb_ret;
2335 xcb_glx_create_pbuffer_request_t xcb_out;
2337 xcb_out.screen = screen;
2338 xcb_out.fbconfig = fbconfig;
2339 xcb_out.pbuffer = pbuffer;
2340 xcb_out.num_attribs = num_attribs;
2342 xcb_parts[2].iov_base = (char *) &xcb_out;
2343 xcb_parts[2].iov_len = sizeof(xcb_out);
2344 xcb_parts[3].iov_base = 0;
2345 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2346 /* uint32_t attribs */
2347 xcb_parts[4].iov_base = (char *) attribs;
2348 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
2349 xcb_parts[5].iov_base = 0;
2350 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
2352 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2353 return xcb_ret;
2356 xcb_void_cookie_t
2357 xcb_glx_create_pbuffer (xcb_connection_t *c /**< */,
2358 uint32_t screen /**< */,
2359 xcb_glx_fbconfig_t fbconfig /**< */,
2360 xcb_glx_pbuffer_t pbuffer /**< */,
2361 uint32_t num_attribs /**< */,
2362 const uint32_t *attribs /**< */)
2364 static const xcb_protocol_request_t xcb_req = {
2365 /* count */ 4,
2366 /* ext */ &xcb_glx_id,
2367 /* opcode */ XCB_GLX_CREATE_PBUFFER,
2368 /* isvoid */ 1
2371 struct iovec xcb_parts[6];
2372 xcb_void_cookie_t xcb_ret;
2373 xcb_glx_create_pbuffer_request_t xcb_out;
2375 xcb_out.screen = screen;
2376 xcb_out.fbconfig = fbconfig;
2377 xcb_out.pbuffer = pbuffer;
2378 xcb_out.num_attribs = num_attribs;
2380 xcb_parts[2].iov_base = (char *) &xcb_out;
2381 xcb_parts[2].iov_len = sizeof(xcb_out);
2382 xcb_parts[3].iov_base = 0;
2383 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2384 /* uint32_t attribs */
2385 xcb_parts[4].iov_base = (char *) attribs;
2386 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
2387 xcb_parts[5].iov_base = 0;
2388 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
2390 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2391 return xcb_ret;
2394 xcb_void_cookie_t
2395 xcb_glx_destroy_pbuffer_checked (xcb_connection_t *c /**< */,
2396 xcb_glx_pbuffer_t pbuffer /**< */)
2398 static const xcb_protocol_request_t xcb_req = {
2399 /* count */ 2,
2400 /* ext */ &xcb_glx_id,
2401 /* opcode */ XCB_GLX_DESTROY_PBUFFER,
2402 /* isvoid */ 1
2405 struct iovec xcb_parts[4];
2406 xcb_void_cookie_t xcb_ret;
2407 xcb_glx_destroy_pbuffer_request_t xcb_out;
2409 xcb_out.pbuffer = pbuffer;
2411 xcb_parts[2].iov_base = (char *) &xcb_out;
2412 xcb_parts[2].iov_len = sizeof(xcb_out);
2413 xcb_parts[3].iov_base = 0;
2414 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2416 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2417 return xcb_ret;
2420 xcb_void_cookie_t
2421 xcb_glx_destroy_pbuffer (xcb_connection_t *c /**< */,
2422 xcb_glx_pbuffer_t pbuffer /**< */)
2424 static const xcb_protocol_request_t xcb_req = {
2425 /* count */ 2,
2426 /* ext */ &xcb_glx_id,
2427 /* opcode */ XCB_GLX_DESTROY_PBUFFER,
2428 /* isvoid */ 1
2431 struct iovec xcb_parts[4];
2432 xcb_void_cookie_t xcb_ret;
2433 xcb_glx_destroy_pbuffer_request_t xcb_out;
2435 xcb_out.pbuffer = pbuffer;
2437 xcb_parts[2].iov_base = (char *) &xcb_out;
2438 xcb_parts[2].iov_len = sizeof(xcb_out);
2439 xcb_parts[3].iov_base = 0;
2440 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2442 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2443 return xcb_ret;
2447 xcb_glx_get_drawable_attributes_sizeof (const void *_buffer /**< */)
2449 char *xcb_tmp = (char *)_buffer;
2450 const xcb_glx_get_drawable_attributes_reply_t *_aux = (xcb_glx_get_drawable_attributes_reply_t *)_buffer;
2451 unsigned int xcb_buffer_len = 0;
2452 unsigned int xcb_block_len = 0;
2453 unsigned int xcb_pad = 0;
2454 unsigned int xcb_align_to = 0;
2457 xcb_block_len += sizeof(xcb_glx_get_drawable_attributes_reply_t);
2458 xcb_tmp += xcb_block_len;
2459 xcb_buffer_len += xcb_block_len;
2460 xcb_block_len = 0;
2461 /* attribs */
2462 xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t);
2463 xcb_tmp += xcb_block_len;
2464 xcb_align_to = ALIGNOF(uint32_t);
2465 /* insert padding */
2466 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
2467 xcb_buffer_len += xcb_block_len + xcb_pad;
2468 if (0 != xcb_pad) {
2469 xcb_tmp += xcb_pad;
2470 xcb_pad = 0;
2472 xcb_block_len = 0;
2474 return xcb_buffer_len;
2477 xcb_glx_get_drawable_attributes_cookie_t
2478 xcb_glx_get_drawable_attributes (xcb_connection_t *c /**< */,
2479 xcb_glx_drawable_t drawable /**< */)
2481 static const xcb_protocol_request_t xcb_req = {
2482 /* count */ 2,
2483 /* ext */ &xcb_glx_id,
2484 /* opcode */ XCB_GLX_GET_DRAWABLE_ATTRIBUTES,
2485 /* isvoid */ 0
2488 struct iovec xcb_parts[4];
2489 xcb_glx_get_drawable_attributes_cookie_t xcb_ret;
2490 xcb_glx_get_drawable_attributes_request_t xcb_out;
2492 xcb_out.drawable = drawable;
2494 xcb_parts[2].iov_base = (char *) &xcb_out;
2495 xcb_parts[2].iov_len = sizeof(xcb_out);
2496 xcb_parts[3].iov_base = 0;
2497 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2499 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2500 return xcb_ret;
2503 xcb_glx_get_drawable_attributes_cookie_t
2504 xcb_glx_get_drawable_attributes_unchecked (xcb_connection_t *c /**< */,
2505 xcb_glx_drawable_t drawable /**< */)
2507 static const xcb_protocol_request_t xcb_req = {
2508 /* count */ 2,
2509 /* ext */ &xcb_glx_id,
2510 /* opcode */ XCB_GLX_GET_DRAWABLE_ATTRIBUTES,
2511 /* isvoid */ 0
2514 struct iovec xcb_parts[4];
2515 xcb_glx_get_drawable_attributes_cookie_t xcb_ret;
2516 xcb_glx_get_drawable_attributes_request_t xcb_out;
2518 xcb_out.drawable = drawable;
2520 xcb_parts[2].iov_base = (char *) &xcb_out;
2521 xcb_parts[2].iov_len = sizeof(xcb_out);
2522 xcb_parts[3].iov_base = 0;
2523 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2525 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2526 return xcb_ret;
2529 uint32_t *
2530 xcb_glx_get_drawable_attributes_attribs (const xcb_glx_get_drawable_attributes_reply_t *R /**< */)
2532 return (uint32_t *) (R + 1);
2536 xcb_glx_get_drawable_attributes_attribs_length (const xcb_glx_get_drawable_attributes_reply_t *R /**< */)
2538 return (R->num_attribs * 2);
2541 xcb_generic_iterator_t
2542 xcb_glx_get_drawable_attributes_attribs_end (const xcb_glx_get_drawable_attributes_reply_t *R /**< */)
2544 xcb_generic_iterator_t i;
2545 i.data = ((uint32_t *) (R + 1)) + ((R->num_attribs * 2));
2546 i.rem = 0;
2547 i.index = (char *) i.data - (char *) R;
2548 return i;
2551 xcb_glx_get_drawable_attributes_reply_t *
2552 xcb_glx_get_drawable_attributes_reply (xcb_connection_t *c /**< */,
2553 xcb_glx_get_drawable_attributes_cookie_t cookie /**< */,
2554 xcb_generic_error_t **e /**< */)
2556 return (xcb_glx_get_drawable_attributes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
2560 xcb_glx_change_drawable_attributes_sizeof (const void *_buffer /**< */)
2562 char *xcb_tmp = (char *)_buffer;
2563 const xcb_glx_change_drawable_attributes_request_t *_aux = (xcb_glx_change_drawable_attributes_request_t *)_buffer;
2564 unsigned int xcb_buffer_len = 0;
2565 unsigned int xcb_block_len = 0;
2566 unsigned int xcb_pad = 0;
2567 unsigned int xcb_align_to = 0;
2570 xcb_block_len += sizeof(xcb_glx_change_drawable_attributes_request_t);
2571 xcb_tmp += xcb_block_len;
2572 xcb_buffer_len += xcb_block_len;
2573 xcb_block_len = 0;
2574 /* attribs */
2575 xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t);
2576 xcb_tmp += xcb_block_len;
2577 xcb_align_to = ALIGNOF(uint32_t);
2578 /* insert padding */
2579 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
2580 xcb_buffer_len += xcb_block_len + xcb_pad;
2581 if (0 != xcb_pad) {
2582 xcb_tmp += xcb_pad;
2583 xcb_pad = 0;
2585 xcb_block_len = 0;
2587 return xcb_buffer_len;
2590 xcb_void_cookie_t
2591 xcb_glx_change_drawable_attributes_checked (xcb_connection_t *c /**< */,
2592 xcb_glx_drawable_t drawable /**< */,
2593 uint32_t num_attribs /**< */,
2594 const uint32_t *attribs /**< */)
2596 static const xcb_protocol_request_t xcb_req = {
2597 /* count */ 4,
2598 /* ext */ &xcb_glx_id,
2599 /* opcode */ XCB_GLX_CHANGE_DRAWABLE_ATTRIBUTES,
2600 /* isvoid */ 1
2603 struct iovec xcb_parts[6];
2604 xcb_void_cookie_t xcb_ret;
2605 xcb_glx_change_drawable_attributes_request_t xcb_out;
2607 xcb_out.drawable = drawable;
2608 xcb_out.num_attribs = num_attribs;
2610 xcb_parts[2].iov_base = (char *) &xcb_out;
2611 xcb_parts[2].iov_len = sizeof(xcb_out);
2612 xcb_parts[3].iov_base = 0;
2613 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2614 /* uint32_t attribs */
2615 xcb_parts[4].iov_base = (char *) attribs;
2616 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
2617 xcb_parts[5].iov_base = 0;
2618 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
2620 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2621 return xcb_ret;
2624 xcb_void_cookie_t
2625 xcb_glx_change_drawable_attributes (xcb_connection_t *c /**< */,
2626 xcb_glx_drawable_t drawable /**< */,
2627 uint32_t num_attribs /**< */,
2628 const uint32_t *attribs /**< */)
2630 static const xcb_protocol_request_t xcb_req = {
2631 /* count */ 4,
2632 /* ext */ &xcb_glx_id,
2633 /* opcode */ XCB_GLX_CHANGE_DRAWABLE_ATTRIBUTES,
2634 /* isvoid */ 1
2637 struct iovec xcb_parts[6];
2638 xcb_void_cookie_t xcb_ret;
2639 xcb_glx_change_drawable_attributes_request_t xcb_out;
2641 xcb_out.drawable = drawable;
2642 xcb_out.num_attribs = num_attribs;
2644 xcb_parts[2].iov_base = (char *) &xcb_out;
2645 xcb_parts[2].iov_len = sizeof(xcb_out);
2646 xcb_parts[3].iov_base = 0;
2647 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2648 /* uint32_t attribs */
2649 xcb_parts[4].iov_base = (char *) attribs;
2650 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
2651 xcb_parts[5].iov_base = 0;
2652 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
2654 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2655 return xcb_ret;
2659 xcb_glx_create_window_sizeof (const void *_buffer /**< */)
2661 char *xcb_tmp = (char *)_buffer;
2662 const xcb_glx_create_window_request_t *_aux = (xcb_glx_create_window_request_t *)_buffer;
2663 unsigned int xcb_buffer_len = 0;
2664 unsigned int xcb_block_len = 0;
2665 unsigned int xcb_pad = 0;
2666 unsigned int xcb_align_to = 0;
2669 xcb_block_len += sizeof(xcb_glx_create_window_request_t);
2670 xcb_tmp += xcb_block_len;
2671 xcb_buffer_len += xcb_block_len;
2672 xcb_block_len = 0;
2673 /* attribs */
2674 xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t);
2675 xcb_tmp += xcb_block_len;
2676 xcb_align_to = ALIGNOF(uint32_t);
2677 /* insert padding */
2678 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
2679 xcb_buffer_len += xcb_block_len + xcb_pad;
2680 if (0 != xcb_pad) {
2681 xcb_tmp += xcb_pad;
2682 xcb_pad = 0;
2684 xcb_block_len = 0;
2686 return xcb_buffer_len;
2689 xcb_void_cookie_t
2690 xcb_glx_create_window_checked (xcb_connection_t *c /**< */,
2691 uint32_t screen /**< */,
2692 xcb_glx_fbconfig_t fbconfig /**< */,
2693 xcb_window_t window /**< */,
2694 xcb_glx_window_t glx_window /**< */,
2695 uint32_t num_attribs /**< */,
2696 const uint32_t *attribs /**< */)
2698 static const xcb_protocol_request_t xcb_req = {
2699 /* count */ 4,
2700 /* ext */ &xcb_glx_id,
2701 /* opcode */ XCB_GLX_CREATE_WINDOW,
2702 /* isvoid */ 1
2705 struct iovec xcb_parts[6];
2706 xcb_void_cookie_t xcb_ret;
2707 xcb_glx_create_window_request_t xcb_out;
2709 xcb_out.screen = screen;
2710 xcb_out.fbconfig = fbconfig;
2711 xcb_out.window = window;
2712 xcb_out.glx_window = glx_window;
2713 xcb_out.num_attribs = num_attribs;
2715 xcb_parts[2].iov_base = (char *) &xcb_out;
2716 xcb_parts[2].iov_len = sizeof(xcb_out);
2717 xcb_parts[3].iov_base = 0;
2718 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2719 /* uint32_t attribs */
2720 xcb_parts[4].iov_base = (char *) attribs;
2721 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
2722 xcb_parts[5].iov_base = 0;
2723 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
2725 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2726 return xcb_ret;
2729 xcb_void_cookie_t
2730 xcb_glx_create_window (xcb_connection_t *c /**< */,
2731 uint32_t screen /**< */,
2732 xcb_glx_fbconfig_t fbconfig /**< */,
2733 xcb_window_t window /**< */,
2734 xcb_glx_window_t glx_window /**< */,
2735 uint32_t num_attribs /**< */,
2736 const uint32_t *attribs /**< */)
2738 static const xcb_protocol_request_t xcb_req = {
2739 /* count */ 4,
2740 /* ext */ &xcb_glx_id,
2741 /* opcode */ XCB_GLX_CREATE_WINDOW,
2742 /* isvoid */ 1
2745 struct iovec xcb_parts[6];
2746 xcb_void_cookie_t xcb_ret;
2747 xcb_glx_create_window_request_t xcb_out;
2749 xcb_out.screen = screen;
2750 xcb_out.fbconfig = fbconfig;
2751 xcb_out.window = window;
2752 xcb_out.glx_window = glx_window;
2753 xcb_out.num_attribs = num_attribs;
2755 xcb_parts[2].iov_base = (char *) &xcb_out;
2756 xcb_parts[2].iov_len = sizeof(xcb_out);
2757 xcb_parts[3].iov_base = 0;
2758 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2759 /* uint32_t attribs */
2760 xcb_parts[4].iov_base = (char *) attribs;
2761 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
2762 xcb_parts[5].iov_base = 0;
2763 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
2765 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2766 return xcb_ret;
2769 xcb_void_cookie_t
2770 xcb_glx_delete_window_checked (xcb_connection_t *c /**< */,
2771 xcb_glx_window_t glxwindow /**< */)
2773 static const xcb_protocol_request_t xcb_req = {
2774 /* count */ 2,
2775 /* ext */ &xcb_glx_id,
2776 /* opcode */ XCB_GLX_DELETE_WINDOW,
2777 /* isvoid */ 1
2780 struct iovec xcb_parts[4];
2781 xcb_void_cookie_t xcb_ret;
2782 xcb_glx_delete_window_request_t xcb_out;
2784 xcb_out.glxwindow = glxwindow;
2786 xcb_parts[2].iov_base = (char *) &xcb_out;
2787 xcb_parts[2].iov_len = sizeof(xcb_out);
2788 xcb_parts[3].iov_base = 0;
2789 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2791 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2792 return xcb_ret;
2795 xcb_void_cookie_t
2796 xcb_glx_delete_window (xcb_connection_t *c /**< */,
2797 xcb_glx_window_t glxwindow /**< */)
2799 static const xcb_protocol_request_t xcb_req = {
2800 /* count */ 2,
2801 /* ext */ &xcb_glx_id,
2802 /* opcode */ XCB_GLX_DELETE_WINDOW,
2803 /* isvoid */ 1
2806 struct iovec xcb_parts[4];
2807 xcb_void_cookie_t xcb_ret;
2808 xcb_glx_delete_window_request_t xcb_out;
2810 xcb_out.glxwindow = glxwindow;
2812 xcb_parts[2].iov_base = (char *) &xcb_out;
2813 xcb_parts[2].iov_len = sizeof(xcb_out);
2814 xcb_parts[3].iov_base = 0;
2815 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2817 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2818 return xcb_ret;
2822 xcb_glx_set_client_info_arb_sizeof (const void *_buffer /**< */)
2824 char *xcb_tmp = (char *)_buffer;
2825 const xcb_glx_set_client_info_arb_request_t *_aux = (xcb_glx_set_client_info_arb_request_t *)_buffer;
2826 unsigned int xcb_buffer_len = 0;
2827 unsigned int xcb_block_len = 0;
2828 unsigned int xcb_pad = 0;
2829 unsigned int xcb_align_to = 0;
2832 xcb_block_len += sizeof(xcb_glx_set_client_info_arb_request_t);
2833 xcb_tmp += xcb_block_len;
2834 xcb_buffer_len += xcb_block_len;
2835 xcb_block_len = 0;
2836 /* gl_versions */
2837 xcb_block_len += (_aux->num_versions * 2) * sizeof(uint32_t);
2838 xcb_tmp += xcb_block_len;
2839 xcb_align_to = ALIGNOF(uint32_t);
2840 /* insert padding */
2841 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
2842 xcb_buffer_len += xcb_block_len + xcb_pad;
2843 if (0 != xcb_pad) {
2844 xcb_tmp += xcb_pad;
2845 xcb_pad = 0;
2847 xcb_block_len = 0;
2848 /* gl_extension_string */
2849 xcb_block_len += _aux->gl_str_len * sizeof(char);
2850 xcb_tmp += xcb_block_len;
2851 xcb_align_to = ALIGNOF(char);
2852 /* insert padding */
2853 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
2854 xcb_buffer_len += xcb_block_len + xcb_pad;
2855 if (0 != xcb_pad) {
2856 xcb_tmp += xcb_pad;
2857 xcb_pad = 0;
2859 xcb_block_len = 0;
2860 /* glx_extension_string */
2861 xcb_block_len += _aux->glx_str_len * sizeof(char);
2862 xcb_tmp += xcb_block_len;
2863 xcb_align_to = ALIGNOF(char);
2864 /* insert padding */
2865 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
2866 xcb_buffer_len += xcb_block_len + xcb_pad;
2867 if (0 != xcb_pad) {
2868 xcb_tmp += xcb_pad;
2869 xcb_pad = 0;
2871 xcb_block_len = 0;
2873 return xcb_buffer_len;
2876 xcb_void_cookie_t
2877 xcb_glx_set_client_info_arb_checked (xcb_connection_t *c /**< */,
2878 uint32_t major_version /**< */,
2879 uint32_t minor_version /**< */,
2880 uint32_t num_versions /**< */,
2881 uint32_t gl_str_len /**< */,
2882 uint32_t glx_str_len /**< */,
2883 const uint32_t *gl_versions /**< */,
2884 const char *gl_extension_string /**< */,
2885 const char *glx_extension_string /**< */)
2887 static const xcb_protocol_request_t xcb_req = {
2888 /* count */ 8,
2889 /* ext */ &xcb_glx_id,
2890 /* opcode */ XCB_GLX_SET_CLIENT_INFO_ARB,
2891 /* isvoid */ 1
2894 struct iovec xcb_parts[10];
2895 xcb_void_cookie_t xcb_ret;
2896 xcb_glx_set_client_info_arb_request_t xcb_out;
2898 xcb_out.major_version = major_version;
2899 xcb_out.minor_version = minor_version;
2900 xcb_out.num_versions = num_versions;
2901 xcb_out.gl_str_len = gl_str_len;
2902 xcb_out.glx_str_len = glx_str_len;
2904 xcb_parts[2].iov_base = (char *) &xcb_out;
2905 xcb_parts[2].iov_len = sizeof(xcb_out);
2906 xcb_parts[3].iov_base = 0;
2907 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2908 /* uint32_t gl_versions */
2909 xcb_parts[4].iov_base = (char *) gl_versions;
2910 xcb_parts[4].iov_len = (num_versions * 2) * sizeof(uint32_t);
2911 xcb_parts[5].iov_base = 0;
2912 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
2913 /* char gl_extension_string */
2914 xcb_parts[6].iov_base = (char *) gl_extension_string;
2915 xcb_parts[6].iov_len = gl_str_len * sizeof(char);
2916 xcb_parts[7].iov_base = 0;
2917 xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3;
2918 /* char glx_extension_string */
2919 xcb_parts[8].iov_base = (char *) glx_extension_string;
2920 xcb_parts[8].iov_len = glx_str_len * sizeof(char);
2921 xcb_parts[9].iov_base = 0;
2922 xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3;
2924 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
2925 return xcb_ret;
2928 xcb_void_cookie_t
2929 xcb_glx_set_client_info_arb (xcb_connection_t *c /**< */,
2930 uint32_t major_version /**< */,
2931 uint32_t minor_version /**< */,
2932 uint32_t num_versions /**< */,
2933 uint32_t gl_str_len /**< */,
2934 uint32_t glx_str_len /**< */,
2935 const uint32_t *gl_versions /**< */,
2936 const char *gl_extension_string /**< */,
2937 const char *glx_extension_string /**< */)
2939 static const xcb_protocol_request_t xcb_req = {
2940 /* count */ 8,
2941 /* ext */ &xcb_glx_id,
2942 /* opcode */ XCB_GLX_SET_CLIENT_INFO_ARB,
2943 /* isvoid */ 1
2946 struct iovec xcb_parts[10];
2947 xcb_void_cookie_t xcb_ret;
2948 xcb_glx_set_client_info_arb_request_t xcb_out;
2950 xcb_out.major_version = major_version;
2951 xcb_out.minor_version = minor_version;
2952 xcb_out.num_versions = num_versions;
2953 xcb_out.gl_str_len = gl_str_len;
2954 xcb_out.glx_str_len = glx_str_len;
2956 xcb_parts[2].iov_base = (char *) &xcb_out;
2957 xcb_parts[2].iov_len = sizeof(xcb_out);
2958 xcb_parts[3].iov_base = 0;
2959 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
2960 /* uint32_t gl_versions */
2961 xcb_parts[4].iov_base = (char *) gl_versions;
2962 xcb_parts[4].iov_len = (num_versions * 2) * sizeof(uint32_t);
2963 xcb_parts[5].iov_base = 0;
2964 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
2965 /* char gl_extension_string */
2966 xcb_parts[6].iov_base = (char *) gl_extension_string;
2967 xcb_parts[6].iov_len = gl_str_len * sizeof(char);
2968 xcb_parts[7].iov_base = 0;
2969 xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3;
2970 /* char glx_extension_string */
2971 xcb_parts[8].iov_base = (char *) glx_extension_string;
2972 xcb_parts[8].iov_len = glx_str_len * sizeof(char);
2973 xcb_parts[9].iov_base = 0;
2974 xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3;
2976 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
2977 return xcb_ret;
2981 xcb_glx_create_context_attribs_arb_sizeof (const void *_buffer /**< */)
2983 char *xcb_tmp = (char *)_buffer;
2984 const xcb_glx_create_context_attribs_arb_request_t *_aux = (xcb_glx_create_context_attribs_arb_request_t *)_buffer;
2985 unsigned int xcb_buffer_len = 0;
2986 unsigned int xcb_block_len = 0;
2987 unsigned int xcb_pad = 0;
2988 unsigned int xcb_align_to = 0;
2991 xcb_block_len += sizeof(xcb_glx_create_context_attribs_arb_request_t);
2992 xcb_tmp += xcb_block_len;
2993 xcb_buffer_len += xcb_block_len;
2994 xcb_block_len = 0;
2995 /* attribs */
2996 xcb_block_len += (_aux->num_attribs * 2) * sizeof(uint32_t);
2997 xcb_tmp += xcb_block_len;
2998 xcb_align_to = ALIGNOF(uint32_t);
2999 /* insert padding */
3000 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
3001 xcb_buffer_len += xcb_block_len + xcb_pad;
3002 if (0 != xcb_pad) {
3003 xcb_tmp += xcb_pad;
3004 xcb_pad = 0;
3006 xcb_block_len = 0;
3008 return xcb_buffer_len;
3011 xcb_void_cookie_t
3012 xcb_glx_create_context_attribs_arb_checked (xcb_connection_t *c /**< */,
3013 xcb_glx_context_t context /**< */,
3014 xcb_glx_fbconfig_t fbconfig /**< */,
3015 uint32_t screen /**< */,
3016 xcb_glx_context_t share_list /**< */,
3017 uint8_t is_direct /**< */,
3018 uint32_t num_attribs /**< */,
3019 const uint32_t *attribs /**< */)
3021 static const xcb_protocol_request_t xcb_req = {
3022 /* count */ 4,
3023 /* ext */ &xcb_glx_id,
3024 /* opcode */ XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB,
3025 /* isvoid */ 1
3028 struct iovec xcb_parts[6];
3029 xcb_void_cookie_t xcb_ret;
3030 xcb_glx_create_context_attribs_arb_request_t xcb_out;
3032 xcb_out.context = context;
3033 xcb_out.fbconfig = fbconfig;
3034 xcb_out.screen = screen;
3035 xcb_out.share_list = share_list;
3036 xcb_out.is_direct = is_direct;
3037 memset(xcb_out.pad0, 0, 3);
3038 xcb_out.num_attribs = num_attribs;
3040 xcb_parts[2].iov_base = (char *) &xcb_out;
3041 xcb_parts[2].iov_len = sizeof(xcb_out);
3042 xcb_parts[3].iov_base = 0;
3043 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3044 /* uint32_t attribs */
3045 xcb_parts[4].iov_base = (char *) attribs;
3046 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
3047 xcb_parts[5].iov_base = 0;
3048 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
3050 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3051 return xcb_ret;
3054 xcb_void_cookie_t
3055 xcb_glx_create_context_attribs_arb (xcb_connection_t *c /**< */,
3056 xcb_glx_context_t context /**< */,
3057 xcb_glx_fbconfig_t fbconfig /**< */,
3058 uint32_t screen /**< */,
3059 xcb_glx_context_t share_list /**< */,
3060 uint8_t is_direct /**< */,
3061 uint32_t num_attribs /**< */,
3062 const uint32_t *attribs /**< */)
3064 static const xcb_protocol_request_t xcb_req = {
3065 /* count */ 4,
3066 /* ext */ &xcb_glx_id,
3067 /* opcode */ XCB_GLX_CREATE_CONTEXT_ATTRIBS_ARB,
3068 /* isvoid */ 1
3071 struct iovec xcb_parts[6];
3072 xcb_void_cookie_t xcb_ret;
3073 xcb_glx_create_context_attribs_arb_request_t xcb_out;
3075 xcb_out.context = context;
3076 xcb_out.fbconfig = fbconfig;
3077 xcb_out.screen = screen;
3078 xcb_out.share_list = share_list;
3079 xcb_out.is_direct = is_direct;
3080 memset(xcb_out.pad0, 0, 3);
3081 xcb_out.num_attribs = num_attribs;
3083 xcb_parts[2].iov_base = (char *) &xcb_out;
3084 xcb_parts[2].iov_len = sizeof(xcb_out);
3085 xcb_parts[3].iov_base = 0;
3086 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3087 /* uint32_t attribs */
3088 xcb_parts[4].iov_base = (char *) attribs;
3089 xcb_parts[4].iov_len = (num_attribs * 2) * sizeof(uint32_t);
3090 xcb_parts[5].iov_base = 0;
3091 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
3093 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3094 return xcb_ret;
3098 xcb_glx_set_client_info_2arb_sizeof (const void *_buffer /**< */)
3100 char *xcb_tmp = (char *)_buffer;
3101 const xcb_glx_set_client_info_2arb_request_t *_aux = (xcb_glx_set_client_info_2arb_request_t *)_buffer;
3102 unsigned int xcb_buffer_len = 0;
3103 unsigned int xcb_block_len = 0;
3104 unsigned int xcb_pad = 0;
3105 unsigned int xcb_align_to = 0;
3108 xcb_block_len += sizeof(xcb_glx_set_client_info_2arb_request_t);
3109 xcb_tmp += xcb_block_len;
3110 xcb_buffer_len += xcb_block_len;
3111 xcb_block_len = 0;
3112 /* gl_versions */
3113 xcb_block_len += (_aux->num_versions * 3) * sizeof(uint32_t);
3114 xcb_tmp += xcb_block_len;
3115 xcb_align_to = ALIGNOF(uint32_t);
3116 /* insert padding */
3117 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
3118 xcb_buffer_len += xcb_block_len + xcb_pad;
3119 if (0 != xcb_pad) {
3120 xcb_tmp += xcb_pad;
3121 xcb_pad = 0;
3123 xcb_block_len = 0;
3124 /* gl_extension_string */
3125 xcb_block_len += _aux->gl_str_len * sizeof(char);
3126 xcb_tmp += xcb_block_len;
3127 xcb_align_to = ALIGNOF(char);
3128 /* insert padding */
3129 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
3130 xcb_buffer_len += xcb_block_len + xcb_pad;
3131 if (0 != xcb_pad) {
3132 xcb_tmp += xcb_pad;
3133 xcb_pad = 0;
3135 xcb_block_len = 0;
3136 /* glx_extension_string */
3137 xcb_block_len += _aux->glx_str_len * sizeof(char);
3138 xcb_tmp += xcb_block_len;
3139 xcb_align_to = ALIGNOF(char);
3140 /* insert padding */
3141 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
3142 xcb_buffer_len += xcb_block_len + xcb_pad;
3143 if (0 != xcb_pad) {
3144 xcb_tmp += xcb_pad;
3145 xcb_pad = 0;
3147 xcb_block_len = 0;
3149 return xcb_buffer_len;
3152 xcb_void_cookie_t
3153 xcb_glx_set_client_info_2arb_checked (xcb_connection_t *c /**< */,
3154 uint32_t major_version /**< */,
3155 uint32_t minor_version /**< */,
3156 uint32_t num_versions /**< */,
3157 uint32_t gl_str_len /**< */,
3158 uint32_t glx_str_len /**< */,
3159 const uint32_t *gl_versions /**< */,
3160 const char *gl_extension_string /**< */,
3161 const char *glx_extension_string /**< */)
3163 static const xcb_protocol_request_t xcb_req = {
3164 /* count */ 8,
3165 /* ext */ &xcb_glx_id,
3166 /* opcode */ XCB_GLX_SET_CLIENT_INFO_2ARB,
3167 /* isvoid */ 1
3170 struct iovec xcb_parts[10];
3171 xcb_void_cookie_t xcb_ret;
3172 xcb_glx_set_client_info_2arb_request_t xcb_out;
3174 xcb_out.major_version = major_version;
3175 xcb_out.minor_version = minor_version;
3176 xcb_out.num_versions = num_versions;
3177 xcb_out.gl_str_len = gl_str_len;
3178 xcb_out.glx_str_len = glx_str_len;
3180 xcb_parts[2].iov_base = (char *) &xcb_out;
3181 xcb_parts[2].iov_len = sizeof(xcb_out);
3182 xcb_parts[3].iov_base = 0;
3183 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3184 /* uint32_t gl_versions */
3185 xcb_parts[4].iov_base = (char *) gl_versions;
3186 xcb_parts[4].iov_len = (num_versions * 3) * sizeof(uint32_t);
3187 xcb_parts[5].iov_base = 0;
3188 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
3189 /* char gl_extension_string */
3190 xcb_parts[6].iov_base = (char *) gl_extension_string;
3191 xcb_parts[6].iov_len = gl_str_len * sizeof(char);
3192 xcb_parts[7].iov_base = 0;
3193 xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3;
3194 /* char glx_extension_string */
3195 xcb_parts[8].iov_base = (char *) glx_extension_string;
3196 xcb_parts[8].iov_len = glx_str_len * sizeof(char);
3197 xcb_parts[9].iov_base = 0;
3198 xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3;
3200 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3201 return xcb_ret;
3204 xcb_void_cookie_t
3205 xcb_glx_set_client_info_2arb (xcb_connection_t *c /**< */,
3206 uint32_t major_version /**< */,
3207 uint32_t minor_version /**< */,
3208 uint32_t num_versions /**< */,
3209 uint32_t gl_str_len /**< */,
3210 uint32_t glx_str_len /**< */,
3211 const uint32_t *gl_versions /**< */,
3212 const char *gl_extension_string /**< */,
3213 const char *glx_extension_string /**< */)
3215 static const xcb_protocol_request_t xcb_req = {
3216 /* count */ 8,
3217 /* ext */ &xcb_glx_id,
3218 /* opcode */ XCB_GLX_SET_CLIENT_INFO_2ARB,
3219 /* isvoid */ 1
3222 struct iovec xcb_parts[10];
3223 xcb_void_cookie_t xcb_ret;
3224 xcb_glx_set_client_info_2arb_request_t xcb_out;
3226 xcb_out.major_version = major_version;
3227 xcb_out.minor_version = minor_version;
3228 xcb_out.num_versions = num_versions;
3229 xcb_out.gl_str_len = gl_str_len;
3230 xcb_out.glx_str_len = glx_str_len;
3232 xcb_parts[2].iov_base = (char *) &xcb_out;
3233 xcb_parts[2].iov_len = sizeof(xcb_out);
3234 xcb_parts[3].iov_base = 0;
3235 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3236 /* uint32_t gl_versions */
3237 xcb_parts[4].iov_base = (char *) gl_versions;
3238 xcb_parts[4].iov_len = (num_versions * 3) * sizeof(uint32_t);
3239 xcb_parts[5].iov_base = 0;
3240 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
3241 /* char gl_extension_string */
3242 xcb_parts[6].iov_base = (char *) gl_extension_string;
3243 xcb_parts[6].iov_len = gl_str_len * sizeof(char);
3244 xcb_parts[7].iov_base = 0;
3245 xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3;
3246 /* char glx_extension_string */
3247 xcb_parts[8].iov_base = (char *) glx_extension_string;
3248 xcb_parts[8].iov_len = glx_str_len * sizeof(char);
3249 xcb_parts[9].iov_base = 0;
3250 xcb_parts[9].iov_len = -xcb_parts[8].iov_len & 3;
3252 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3253 return xcb_ret;
3256 xcb_void_cookie_t
3257 xcb_glx_new_list_checked (xcb_connection_t *c /**< */,
3258 xcb_glx_context_tag_t context_tag /**< */,
3259 uint32_t list /**< */,
3260 uint32_t mode /**< */)
3262 static const xcb_protocol_request_t xcb_req = {
3263 /* count */ 2,
3264 /* ext */ &xcb_glx_id,
3265 /* opcode */ XCB_GLX_NEW_LIST,
3266 /* isvoid */ 1
3269 struct iovec xcb_parts[4];
3270 xcb_void_cookie_t xcb_ret;
3271 xcb_glx_new_list_request_t xcb_out;
3273 xcb_out.context_tag = context_tag;
3274 xcb_out.list = list;
3275 xcb_out.mode = mode;
3277 xcb_parts[2].iov_base = (char *) &xcb_out;
3278 xcb_parts[2].iov_len = sizeof(xcb_out);
3279 xcb_parts[3].iov_base = 0;
3280 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3282 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3283 return xcb_ret;
3286 xcb_void_cookie_t
3287 xcb_glx_new_list (xcb_connection_t *c /**< */,
3288 xcb_glx_context_tag_t context_tag /**< */,
3289 uint32_t list /**< */,
3290 uint32_t mode /**< */)
3292 static const xcb_protocol_request_t xcb_req = {
3293 /* count */ 2,
3294 /* ext */ &xcb_glx_id,
3295 /* opcode */ XCB_GLX_NEW_LIST,
3296 /* isvoid */ 1
3299 struct iovec xcb_parts[4];
3300 xcb_void_cookie_t xcb_ret;
3301 xcb_glx_new_list_request_t xcb_out;
3303 xcb_out.context_tag = context_tag;
3304 xcb_out.list = list;
3305 xcb_out.mode = mode;
3307 xcb_parts[2].iov_base = (char *) &xcb_out;
3308 xcb_parts[2].iov_len = sizeof(xcb_out);
3309 xcb_parts[3].iov_base = 0;
3310 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3312 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3313 return xcb_ret;
3316 xcb_void_cookie_t
3317 xcb_glx_end_list_checked (xcb_connection_t *c /**< */,
3318 xcb_glx_context_tag_t context_tag /**< */)
3320 static const xcb_protocol_request_t xcb_req = {
3321 /* count */ 2,
3322 /* ext */ &xcb_glx_id,
3323 /* opcode */ XCB_GLX_END_LIST,
3324 /* isvoid */ 1
3327 struct iovec xcb_parts[4];
3328 xcb_void_cookie_t xcb_ret;
3329 xcb_glx_end_list_request_t xcb_out;
3331 xcb_out.context_tag = context_tag;
3333 xcb_parts[2].iov_base = (char *) &xcb_out;
3334 xcb_parts[2].iov_len = sizeof(xcb_out);
3335 xcb_parts[3].iov_base = 0;
3336 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3338 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3339 return xcb_ret;
3342 xcb_void_cookie_t
3343 xcb_glx_end_list (xcb_connection_t *c /**< */,
3344 xcb_glx_context_tag_t context_tag /**< */)
3346 static const xcb_protocol_request_t xcb_req = {
3347 /* count */ 2,
3348 /* ext */ &xcb_glx_id,
3349 /* opcode */ XCB_GLX_END_LIST,
3350 /* isvoid */ 1
3353 struct iovec xcb_parts[4];
3354 xcb_void_cookie_t xcb_ret;
3355 xcb_glx_end_list_request_t xcb_out;
3357 xcb_out.context_tag = context_tag;
3359 xcb_parts[2].iov_base = (char *) &xcb_out;
3360 xcb_parts[2].iov_len = sizeof(xcb_out);
3361 xcb_parts[3].iov_base = 0;
3362 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3364 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3365 return xcb_ret;
3368 xcb_void_cookie_t
3369 xcb_glx_delete_lists_checked (xcb_connection_t *c /**< */,
3370 xcb_glx_context_tag_t context_tag /**< */,
3371 uint32_t list /**< */,
3372 int32_t range /**< */)
3374 static const xcb_protocol_request_t xcb_req = {
3375 /* count */ 2,
3376 /* ext */ &xcb_glx_id,
3377 /* opcode */ XCB_GLX_DELETE_LISTS,
3378 /* isvoid */ 1
3381 struct iovec xcb_parts[4];
3382 xcb_void_cookie_t xcb_ret;
3383 xcb_glx_delete_lists_request_t xcb_out;
3385 xcb_out.context_tag = context_tag;
3386 xcb_out.list = list;
3387 xcb_out.range = range;
3389 xcb_parts[2].iov_base = (char *) &xcb_out;
3390 xcb_parts[2].iov_len = sizeof(xcb_out);
3391 xcb_parts[3].iov_base = 0;
3392 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3394 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3395 return xcb_ret;
3398 xcb_void_cookie_t
3399 xcb_glx_delete_lists (xcb_connection_t *c /**< */,
3400 xcb_glx_context_tag_t context_tag /**< */,
3401 uint32_t list /**< */,
3402 int32_t range /**< */)
3404 static const xcb_protocol_request_t xcb_req = {
3405 /* count */ 2,
3406 /* ext */ &xcb_glx_id,
3407 /* opcode */ XCB_GLX_DELETE_LISTS,
3408 /* isvoid */ 1
3411 struct iovec xcb_parts[4];
3412 xcb_void_cookie_t xcb_ret;
3413 xcb_glx_delete_lists_request_t xcb_out;
3415 xcb_out.context_tag = context_tag;
3416 xcb_out.list = list;
3417 xcb_out.range = range;
3419 xcb_parts[2].iov_base = (char *) &xcb_out;
3420 xcb_parts[2].iov_len = sizeof(xcb_out);
3421 xcb_parts[3].iov_base = 0;
3422 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3424 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3425 return xcb_ret;
3428 xcb_glx_gen_lists_cookie_t
3429 xcb_glx_gen_lists (xcb_connection_t *c /**< */,
3430 xcb_glx_context_tag_t context_tag /**< */,
3431 int32_t range /**< */)
3433 static const xcb_protocol_request_t xcb_req = {
3434 /* count */ 2,
3435 /* ext */ &xcb_glx_id,
3436 /* opcode */ XCB_GLX_GEN_LISTS,
3437 /* isvoid */ 0
3440 struct iovec xcb_parts[4];
3441 xcb_glx_gen_lists_cookie_t xcb_ret;
3442 xcb_glx_gen_lists_request_t xcb_out;
3444 xcb_out.context_tag = context_tag;
3445 xcb_out.range = range;
3447 xcb_parts[2].iov_base = (char *) &xcb_out;
3448 xcb_parts[2].iov_len = sizeof(xcb_out);
3449 xcb_parts[3].iov_base = 0;
3450 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3452 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3453 return xcb_ret;
3456 xcb_glx_gen_lists_cookie_t
3457 xcb_glx_gen_lists_unchecked (xcb_connection_t *c /**< */,
3458 xcb_glx_context_tag_t context_tag /**< */,
3459 int32_t range /**< */)
3461 static const xcb_protocol_request_t xcb_req = {
3462 /* count */ 2,
3463 /* ext */ &xcb_glx_id,
3464 /* opcode */ XCB_GLX_GEN_LISTS,
3465 /* isvoid */ 0
3468 struct iovec xcb_parts[4];
3469 xcb_glx_gen_lists_cookie_t xcb_ret;
3470 xcb_glx_gen_lists_request_t xcb_out;
3472 xcb_out.context_tag = context_tag;
3473 xcb_out.range = range;
3475 xcb_parts[2].iov_base = (char *) &xcb_out;
3476 xcb_parts[2].iov_len = sizeof(xcb_out);
3477 xcb_parts[3].iov_base = 0;
3478 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3480 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3481 return xcb_ret;
3484 xcb_glx_gen_lists_reply_t *
3485 xcb_glx_gen_lists_reply (xcb_connection_t *c /**< */,
3486 xcb_glx_gen_lists_cookie_t cookie /**< */,
3487 xcb_generic_error_t **e /**< */)
3489 return (xcb_glx_gen_lists_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
3492 xcb_void_cookie_t
3493 xcb_glx_feedback_buffer_checked (xcb_connection_t *c /**< */,
3494 xcb_glx_context_tag_t context_tag /**< */,
3495 int32_t size /**< */,
3496 int32_t type /**< */)
3498 static const xcb_protocol_request_t xcb_req = {
3499 /* count */ 2,
3500 /* ext */ &xcb_glx_id,
3501 /* opcode */ XCB_GLX_FEEDBACK_BUFFER,
3502 /* isvoid */ 1
3505 struct iovec xcb_parts[4];
3506 xcb_void_cookie_t xcb_ret;
3507 xcb_glx_feedback_buffer_request_t xcb_out;
3509 xcb_out.context_tag = context_tag;
3510 xcb_out.size = size;
3511 xcb_out.type = type;
3513 xcb_parts[2].iov_base = (char *) &xcb_out;
3514 xcb_parts[2].iov_len = sizeof(xcb_out);
3515 xcb_parts[3].iov_base = 0;
3516 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3518 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3519 return xcb_ret;
3522 xcb_void_cookie_t
3523 xcb_glx_feedback_buffer (xcb_connection_t *c /**< */,
3524 xcb_glx_context_tag_t context_tag /**< */,
3525 int32_t size /**< */,
3526 int32_t type /**< */)
3528 static const xcb_protocol_request_t xcb_req = {
3529 /* count */ 2,
3530 /* ext */ &xcb_glx_id,
3531 /* opcode */ XCB_GLX_FEEDBACK_BUFFER,
3532 /* isvoid */ 1
3535 struct iovec xcb_parts[4];
3536 xcb_void_cookie_t xcb_ret;
3537 xcb_glx_feedback_buffer_request_t xcb_out;
3539 xcb_out.context_tag = context_tag;
3540 xcb_out.size = size;
3541 xcb_out.type = type;
3543 xcb_parts[2].iov_base = (char *) &xcb_out;
3544 xcb_parts[2].iov_len = sizeof(xcb_out);
3545 xcb_parts[3].iov_base = 0;
3546 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3548 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3549 return xcb_ret;
3552 xcb_void_cookie_t
3553 xcb_glx_select_buffer_checked (xcb_connection_t *c /**< */,
3554 xcb_glx_context_tag_t context_tag /**< */,
3555 int32_t size /**< */)
3557 static const xcb_protocol_request_t xcb_req = {
3558 /* count */ 2,
3559 /* ext */ &xcb_glx_id,
3560 /* opcode */ XCB_GLX_SELECT_BUFFER,
3561 /* isvoid */ 1
3564 struct iovec xcb_parts[4];
3565 xcb_void_cookie_t xcb_ret;
3566 xcb_glx_select_buffer_request_t xcb_out;
3568 xcb_out.context_tag = context_tag;
3569 xcb_out.size = size;
3571 xcb_parts[2].iov_base = (char *) &xcb_out;
3572 xcb_parts[2].iov_len = sizeof(xcb_out);
3573 xcb_parts[3].iov_base = 0;
3574 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3576 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3577 return xcb_ret;
3580 xcb_void_cookie_t
3581 xcb_glx_select_buffer (xcb_connection_t *c /**< */,
3582 xcb_glx_context_tag_t context_tag /**< */,
3583 int32_t size /**< */)
3585 static const xcb_protocol_request_t xcb_req = {
3586 /* count */ 2,
3587 /* ext */ &xcb_glx_id,
3588 /* opcode */ XCB_GLX_SELECT_BUFFER,
3589 /* isvoid */ 1
3592 struct iovec xcb_parts[4];
3593 xcb_void_cookie_t xcb_ret;
3594 xcb_glx_select_buffer_request_t xcb_out;
3596 xcb_out.context_tag = context_tag;
3597 xcb_out.size = size;
3599 xcb_parts[2].iov_base = (char *) &xcb_out;
3600 xcb_parts[2].iov_len = sizeof(xcb_out);
3601 xcb_parts[3].iov_base = 0;
3602 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3604 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3605 return xcb_ret;
3609 xcb_glx_render_mode_sizeof (const void *_buffer /**< */)
3611 char *xcb_tmp = (char *)_buffer;
3612 const xcb_glx_render_mode_reply_t *_aux = (xcb_glx_render_mode_reply_t *)_buffer;
3613 unsigned int xcb_buffer_len = 0;
3614 unsigned int xcb_block_len = 0;
3615 unsigned int xcb_pad = 0;
3616 unsigned int xcb_align_to = 0;
3619 xcb_block_len += sizeof(xcb_glx_render_mode_reply_t);
3620 xcb_tmp += xcb_block_len;
3621 xcb_buffer_len += xcb_block_len;
3622 xcb_block_len = 0;
3623 /* data */
3624 xcb_block_len += _aux->n * sizeof(uint32_t);
3625 xcb_tmp += xcb_block_len;
3626 xcb_align_to = ALIGNOF(uint32_t);
3627 /* insert padding */
3628 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
3629 xcb_buffer_len += xcb_block_len + xcb_pad;
3630 if (0 != xcb_pad) {
3631 xcb_tmp += xcb_pad;
3632 xcb_pad = 0;
3634 xcb_block_len = 0;
3636 return xcb_buffer_len;
3639 xcb_glx_render_mode_cookie_t
3640 xcb_glx_render_mode (xcb_connection_t *c /**< */,
3641 xcb_glx_context_tag_t context_tag /**< */,
3642 uint32_t mode /**< */)
3644 static const xcb_protocol_request_t xcb_req = {
3645 /* count */ 2,
3646 /* ext */ &xcb_glx_id,
3647 /* opcode */ XCB_GLX_RENDER_MODE,
3648 /* isvoid */ 0
3651 struct iovec xcb_parts[4];
3652 xcb_glx_render_mode_cookie_t xcb_ret;
3653 xcb_glx_render_mode_request_t xcb_out;
3655 xcb_out.context_tag = context_tag;
3656 xcb_out.mode = mode;
3658 xcb_parts[2].iov_base = (char *) &xcb_out;
3659 xcb_parts[2].iov_len = sizeof(xcb_out);
3660 xcb_parts[3].iov_base = 0;
3661 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3663 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3664 return xcb_ret;
3667 xcb_glx_render_mode_cookie_t
3668 xcb_glx_render_mode_unchecked (xcb_connection_t *c /**< */,
3669 xcb_glx_context_tag_t context_tag /**< */,
3670 uint32_t mode /**< */)
3672 static const xcb_protocol_request_t xcb_req = {
3673 /* count */ 2,
3674 /* ext */ &xcb_glx_id,
3675 /* opcode */ XCB_GLX_RENDER_MODE,
3676 /* isvoid */ 0
3679 struct iovec xcb_parts[4];
3680 xcb_glx_render_mode_cookie_t xcb_ret;
3681 xcb_glx_render_mode_request_t xcb_out;
3683 xcb_out.context_tag = context_tag;
3684 xcb_out.mode = mode;
3686 xcb_parts[2].iov_base = (char *) &xcb_out;
3687 xcb_parts[2].iov_len = sizeof(xcb_out);
3688 xcb_parts[3].iov_base = 0;
3689 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3691 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3692 return xcb_ret;
3695 uint32_t *
3696 xcb_glx_render_mode_data (const xcb_glx_render_mode_reply_t *R /**< */)
3698 return (uint32_t *) (R + 1);
3702 xcb_glx_render_mode_data_length (const xcb_glx_render_mode_reply_t *R /**< */)
3704 return R->n;
3707 xcb_generic_iterator_t
3708 xcb_glx_render_mode_data_end (const xcb_glx_render_mode_reply_t *R /**< */)
3710 xcb_generic_iterator_t i;
3711 i.data = ((uint32_t *) (R + 1)) + (R->n);
3712 i.rem = 0;
3713 i.index = (char *) i.data - (char *) R;
3714 return i;
3717 xcb_glx_render_mode_reply_t *
3718 xcb_glx_render_mode_reply (xcb_connection_t *c /**< */,
3719 xcb_glx_render_mode_cookie_t cookie /**< */,
3720 xcb_generic_error_t **e /**< */)
3722 return (xcb_glx_render_mode_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
3725 xcb_glx_finish_cookie_t
3726 xcb_glx_finish (xcb_connection_t *c /**< */,
3727 xcb_glx_context_tag_t context_tag /**< */)
3729 static const xcb_protocol_request_t xcb_req = {
3730 /* count */ 2,
3731 /* ext */ &xcb_glx_id,
3732 /* opcode */ XCB_GLX_FINISH,
3733 /* isvoid */ 0
3736 struct iovec xcb_parts[4];
3737 xcb_glx_finish_cookie_t xcb_ret;
3738 xcb_glx_finish_request_t xcb_out;
3740 xcb_out.context_tag = context_tag;
3742 xcb_parts[2].iov_base = (char *) &xcb_out;
3743 xcb_parts[2].iov_len = sizeof(xcb_out);
3744 xcb_parts[3].iov_base = 0;
3745 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3747 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3748 return xcb_ret;
3751 xcb_glx_finish_cookie_t
3752 xcb_glx_finish_unchecked (xcb_connection_t *c /**< */,
3753 xcb_glx_context_tag_t context_tag /**< */)
3755 static const xcb_protocol_request_t xcb_req = {
3756 /* count */ 2,
3757 /* ext */ &xcb_glx_id,
3758 /* opcode */ XCB_GLX_FINISH,
3759 /* isvoid */ 0
3762 struct iovec xcb_parts[4];
3763 xcb_glx_finish_cookie_t xcb_ret;
3764 xcb_glx_finish_request_t xcb_out;
3766 xcb_out.context_tag = context_tag;
3768 xcb_parts[2].iov_base = (char *) &xcb_out;
3769 xcb_parts[2].iov_len = sizeof(xcb_out);
3770 xcb_parts[3].iov_base = 0;
3771 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3773 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3774 return xcb_ret;
3777 xcb_glx_finish_reply_t *
3778 xcb_glx_finish_reply (xcb_connection_t *c /**< */,
3779 xcb_glx_finish_cookie_t cookie /**< */,
3780 xcb_generic_error_t **e /**< */)
3782 return (xcb_glx_finish_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
3785 xcb_void_cookie_t
3786 xcb_glx_pixel_storef_checked (xcb_connection_t *c /**< */,
3787 xcb_glx_context_tag_t context_tag /**< */,
3788 uint32_t pname /**< */,
3789 xcb_glx_float32_t datum /**< */)
3791 static const xcb_protocol_request_t xcb_req = {
3792 /* count */ 2,
3793 /* ext */ &xcb_glx_id,
3794 /* opcode */ XCB_GLX_PIXEL_STOREF,
3795 /* isvoid */ 1
3798 struct iovec xcb_parts[4];
3799 xcb_void_cookie_t xcb_ret;
3800 xcb_glx_pixel_storef_request_t xcb_out;
3802 xcb_out.context_tag = context_tag;
3803 xcb_out.pname = pname;
3804 xcb_out.datum = datum;
3806 xcb_parts[2].iov_base = (char *) &xcb_out;
3807 xcb_parts[2].iov_len = sizeof(xcb_out);
3808 xcb_parts[3].iov_base = 0;
3809 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3811 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3812 return xcb_ret;
3815 xcb_void_cookie_t
3816 xcb_glx_pixel_storef (xcb_connection_t *c /**< */,
3817 xcb_glx_context_tag_t context_tag /**< */,
3818 uint32_t pname /**< */,
3819 xcb_glx_float32_t datum /**< */)
3821 static const xcb_protocol_request_t xcb_req = {
3822 /* count */ 2,
3823 /* ext */ &xcb_glx_id,
3824 /* opcode */ XCB_GLX_PIXEL_STOREF,
3825 /* isvoid */ 1
3828 struct iovec xcb_parts[4];
3829 xcb_void_cookie_t xcb_ret;
3830 xcb_glx_pixel_storef_request_t xcb_out;
3832 xcb_out.context_tag = context_tag;
3833 xcb_out.pname = pname;
3834 xcb_out.datum = datum;
3836 xcb_parts[2].iov_base = (char *) &xcb_out;
3837 xcb_parts[2].iov_len = sizeof(xcb_out);
3838 xcb_parts[3].iov_base = 0;
3839 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3841 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3842 return xcb_ret;
3845 xcb_void_cookie_t
3846 xcb_glx_pixel_storei_checked (xcb_connection_t *c /**< */,
3847 xcb_glx_context_tag_t context_tag /**< */,
3848 uint32_t pname /**< */,
3849 int32_t datum /**< */)
3851 static const xcb_protocol_request_t xcb_req = {
3852 /* count */ 2,
3853 /* ext */ &xcb_glx_id,
3854 /* opcode */ XCB_GLX_PIXEL_STOREI,
3855 /* isvoid */ 1
3858 struct iovec xcb_parts[4];
3859 xcb_void_cookie_t xcb_ret;
3860 xcb_glx_pixel_storei_request_t xcb_out;
3862 xcb_out.context_tag = context_tag;
3863 xcb_out.pname = pname;
3864 xcb_out.datum = datum;
3866 xcb_parts[2].iov_base = (char *) &xcb_out;
3867 xcb_parts[2].iov_len = sizeof(xcb_out);
3868 xcb_parts[3].iov_base = 0;
3869 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3871 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3872 return xcb_ret;
3875 xcb_void_cookie_t
3876 xcb_glx_pixel_storei (xcb_connection_t *c /**< */,
3877 xcb_glx_context_tag_t context_tag /**< */,
3878 uint32_t pname /**< */,
3879 int32_t datum /**< */)
3881 static const xcb_protocol_request_t xcb_req = {
3882 /* count */ 2,
3883 /* ext */ &xcb_glx_id,
3884 /* opcode */ XCB_GLX_PIXEL_STOREI,
3885 /* isvoid */ 1
3888 struct iovec xcb_parts[4];
3889 xcb_void_cookie_t xcb_ret;
3890 xcb_glx_pixel_storei_request_t xcb_out;
3892 xcb_out.context_tag = context_tag;
3893 xcb_out.pname = pname;
3894 xcb_out.datum = datum;
3896 xcb_parts[2].iov_base = (char *) &xcb_out;
3897 xcb_parts[2].iov_len = sizeof(xcb_out);
3898 xcb_parts[3].iov_base = 0;
3899 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3901 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
3902 return xcb_ret;
3906 xcb_glx_read_pixels_sizeof (const void *_buffer /**< */)
3908 char *xcb_tmp = (char *)_buffer;
3909 const xcb_glx_read_pixels_reply_t *_aux = (xcb_glx_read_pixels_reply_t *)_buffer;
3910 unsigned int xcb_buffer_len = 0;
3911 unsigned int xcb_block_len = 0;
3912 unsigned int xcb_pad = 0;
3913 unsigned int xcb_align_to = 0;
3916 xcb_block_len += sizeof(xcb_glx_read_pixels_reply_t);
3917 xcb_tmp += xcb_block_len;
3918 xcb_buffer_len += xcb_block_len;
3919 xcb_block_len = 0;
3920 /* data */
3921 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
3922 xcb_tmp += xcb_block_len;
3923 xcb_align_to = ALIGNOF(uint8_t);
3924 /* insert padding */
3925 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
3926 xcb_buffer_len += xcb_block_len + xcb_pad;
3927 if (0 != xcb_pad) {
3928 xcb_tmp += xcb_pad;
3929 xcb_pad = 0;
3931 xcb_block_len = 0;
3933 return xcb_buffer_len;
3936 xcb_glx_read_pixels_cookie_t
3937 xcb_glx_read_pixels (xcb_connection_t *c /**< */,
3938 xcb_glx_context_tag_t context_tag /**< */,
3939 int32_t x /**< */,
3940 int32_t y /**< */,
3941 int32_t width /**< */,
3942 int32_t height /**< */,
3943 uint32_t format /**< */,
3944 uint32_t type /**< */,
3945 uint8_t swap_bytes /**< */,
3946 uint8_t lsb_first /**< */)
3948 static const xcb_protocol_request_t xcb_req = {
3949 /* count */ 2,
3950 /* ext */ &xcb_glx_id,
3951 /* opcode */ XCB_GLX_READ_PIXELS,
3952 /* isvoid */ 0
3955 struct iovec xcb_parts[4];
3956 xcb_glx_read_pixels_cookie_t xcb_ret;
3957 xcb_glx_read_pixels_request_t xcb_out;
3959 xcb_out.context_tag = context_tag;
3960 xcb_out.x = x;
3961 xcb_out.y = y;
3962 xcb_out.width = width;
3963 xcb_out.height = height;
3964 xcb_out.format = format;
3965 xcb_out.type = type;
3966 xcb_out.swap_bytes = swap_bytes;
3967 xcb_out.lsb_first = lsb_first;
3969 xcb_parts[2].iov_base = (char *) &xcb_out;
3970 xcb_parts[2].iov_len = sizeof(xcb_out);
3971 xcb_parts[3].iov_base = 0;
3972 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
3974 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
3975 return xcb_ret;
3978 xcb_glx_read_pixels_cookie_t
3979 xcb_glx_read_pixels_unchecked (xcb_connection_t *c /**< */,
3980 xcb_glx_context_tag_t context_tag /**< */,
3981 int32_t x /**< */,
3982 int32_t y /**< */,
3983 int32_t width /**< */,
3984 int32_t height /**< */,
3985 uint32_t format /**< */,
3986 uint32_t type /**< */,
3987 uint8_t swap_bytes /**< */,
3988 uint8_t lsb_first /**< */)
3990 static const xcb_protocol_request_t xcb_req = {
3991 /* count */ 2,
3992 /* ext */ &xcb_glx_id,
3993 /* opcode */ XCB_GLX_READ_PIXELS,
3994 /* isvoid */ 0
3997 struct iovec xcb_parts[4];
3998 xcb_glx_read_pixels_cookie_t xcb_ret;
3999 xcb_glx_read_pixels_request_t xcb_out;
4001 xcb_out.context_tag = context_tag;
4002 xcb_out.x = x;
4003 xcb_out.y = y;
4004 xcb_out.width = width;
4005 xcb_out.height = height;
4006 xcb_out.format = format;
4007 xcb_out.type = type;
4008 xcb_out.swap_bytes = swap_bytes;
4009 xcb_out.lsb_first = lsb_first;
4011 xcb_parts[2].iov_base = (char *) &xcb_out;
4012 xcb_parts[2].iov_len = sizeof(xcb_out);
4013 xcb_parts[3].iov_base = 0;
4014 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4016 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4017 return xcb_ret;
4020 uint8_t *
4021 xcb_glx_read_pixels_data (const xcb_glx_read_pixels_reply_t *R /**< */)
4023 return (uint8_t *) (R + 1);
4027 xcb_glx_read_pixels_data_length (const xcb_glx_read_pixels_reply_t *R /**< */)
4029 return (R->length * 4);
4032 xcb_generic_iterator_t
4033 xcb_glx_read_pixels_data_end (const xcb_glx_read_pixels_reply_t *R /**< */)
4035 xcb_generic_iterator_t i;
4036 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
4037 i.rem = 0;
4038 i.index = (char *) i.data - (char *) R;
4039 return i;
4042 xcb_glx_read_pixels_reply_t *
4043 xcb_glx_read_pixels_reply (xcb_connection_t *c /**< */,
4044 xcb_glx_read_pixels_cookie_t cookie /**< */,
4045 xcb_generic_error_t **e /**< */)
4047 return (xcb_glx_read_pixels_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4051 xcb_glx_get_booleanv_sizeof (const void *_buffer /**< */)
4053 char *xcb_tmp = (char *)_buffer;
4054 const xcb_glx_get_booleanv_reply_t *_aux = (xcb_glx_get_booleanv_reply_t *)_buffer;
4055 unsigned int xcb_buffer_len = 0;
4056 unsigned int xcb_block_len = 0;
4057 unsigned int xcb_pad = 0;
4058 unsigned int xcb_align_to = 0;
4061 xcb_block_len += sizeof(xcb_glx_get_booleanv_reply_t);
4062 xcb_tmp += xcb_block_len;
4063 xcb_buffer_len += xcb_block_len;
4064 xcb_block_len = 0;
4065 /* data */
4066 xcb_block_len += _aux->n * sizeof(uint8_t);
4067 xcb_tmp += xcb_block_len;
4068 xcb_align_to = ALIGNOF(uint8_t);
4069 /* insert padding */
4070 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
4071 xcb_buffer_len += xcb_block_len + xcb_pad;
4072 if (0 != xcb_pad) {
4073 xcb_tmp += xcb_pad;
4074 xcb_pad = 0;
4076 xcb_block_len = 0;
4078 return xcb_buffer_len;
4081 xcb_glx_get_booleanv_cookie_t
4082 xcb_glx_get_booleanv (xcb_connection_t *c /**< */,
4083 xcb_glx_context_tag_t context_tag /**< */,
4084 int32_t pname /**< */)
4086 static const xcb_protocol_request_t xcb_req = {
4087 /* count */ 2,
4088 /* ext */ &xcb_glx_id,
4089 /* opcode */ XCB_GLX_GET_BOOLEANV,
4090 /* isvoid */ 0
4093 struct iovec xcb_parts[4];
4094 xcb_glx_get_booleanv_cookie_t xcb_ret;
4095 xcb_glx_get_booleanv_request_t xcb_out;
4097 xcb_out.context_tag = context_tag;
4098 xcb_out.pname = pname;
4100 xcb_parts[2].iov_base = (char *) &xcb_out;
4101 xcb_parts[2].iov_len = sizeof(xcb_out);
4102 xcb_parts[3].iov_base = 0;
4103 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4105 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4106 return xcb_ret;
4109 xcb_glx_get_booleanv_cookie_t
4110 xcb_glx_get_booleanv_unchecked (xcb_connection_t *c /**< */,
4111 xcb_glx_context_tag_t context_tag /**< */,
4112 int32_t pname /**< */)
4114 static const xcb_protocol_request_t xcb_req = {
4115 /* count */ 2,
4116 /* ext */ &xcb_glx_id,
4117 /* opcode */ XCB_GLX_GET_BOOLEANV,
4118 /* isvoid */ 0
4121 struct iovec xcb_parts[4];
4122 xcb_glx_get_booleanv_cookie_t xcb_ret;
4123 xcb_glx_get_booleanv_request_t xcb_out;
4125 xcb_out.context_tag = context_tag;
4126 xcb_out.pname = pname;
4128 xcb_parts[2].iov_base = (char *) &xcb_out;
4129 xcb_parts[2].iov_len = sizeof(xcb_out);
4130 xcb_parts[3].iov_base = 0;
4131 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4133 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4134 return xcb_ret;
4137 uint8_t *
4138 xcb_glx_get_booleanv_data (const xcb_glx_get_booleanv_reply_t *R /**< */)
4140 return (uint8_t *) (R + 1);
4144 xcb_glx_get_booleanv_data_length (const xcb_glx_get_booleanv_reply_t *R /**< */)
4146 return R->n;
4149 xcb_generic_iterator_t
4150 xcb_glx_get_booleanv_data_end (const xcb_glx_get_booleanv_reply_t *R /**< */)
4152 xcb_generic_iterator_t i;
4153 i.data = ((uint8_t *) (R + 1)) + (R->n);
4154 i.rem = 0;
4155 i.index = (char *) i.data - (char *) R;
4156 return i;
4159 xcb_glx_get_booleanv_reply_t *
4160 xcb_glx_get_booleanv_reply (xcb_connection_t *c /**< */,
4161 xcb_glx_get_booleanv_cookie_t cookie /**< */,
4162 xcb_generic_error_t **e /**< */)
4164 return (xcb_glx_get_booleanv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4168 xcb_glx_get_clip_plane_sizeof (const void *_buffer /**< */)
4170 char *xcb_tmp = (char *)_buffer;
4171 const xcb_glx_get_clip_plane_reply_t *_aux = (xcb_glx_get_clip_plane_reply_t *)_buffer;
4172 unsigned int xcb_buffer_len = 0;
4173 unsigned int xcb_block_len = 0;
4174 unsigned int xcb_pad = 0;
4175 unsigned int xcb_align_to = 0;
4178 xcb_block_len += sizeof(xcb_glx_get_clip_plane_reply_t);
4179 xcb_tmp += xcb_block_len;
4180 xcb_buffer_len += xcb_block_len;
4181 xcb_block_len = 0;
4182 /* data */
4183 xcb_block_len += (_aux->length / 2) * sizeof(xcb_glx_float64_t);
4184 xcb_tmp += xcb_block_len;
4185 xcb_align_to = ALIGNOF(xcb_glx_float64_t);
4186 /* insert padding */
4187 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
4188 xcb_buffer_len += xcb_block_len + xcb_pad;
4189 if (0 != xcb_pad) {
4190 xcb_tmp += xcb_pad;
4191 xcb_pad = 0;
4193 xcb_block_len = 0;
4195 return xcb_buffer_len;
4198 xcb_glx_get_clip_plane_cookie_t
4199 xcb_glx_get_clip_plane (xcb_connection_t *c /**< */,
4200 xcb_glx_context_tag_t context_tag /**< */,
4201 int32_t plane /**< */)
4203 static const xcb_protocol_request_t xcb_req = {
4204 /* count */ 2,
4205 /* ext */ &xcb_glx_id,
4206 /* opcode */ XCB_GLX_GET_CLIP_PLANE,
4207 /* isvoid */ 0
4210 struct iovec xcb_parts[4];
4211 xcb_glx_get_clip_plane_cookie_t xcb_ret;
4212 xcb_glx_get_clip_plane_request_t xcb_out;
4214 xcb_out.context_tag = context_tag;
4215 xcb_out.plane = plane;
4217 xcb_parts[2].iov_base = (char *) &xcb_out;
4218 xcb_parts[2].iov_len = sizeof(xcb_out);
4219 xcb_parts[3].iov_base = 0;
4220 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4222 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4223 return xcb_ret;
4226 xcb_glx_get_clip_plane_cookie_t
4227 xcb_glx_get_clip_plane_unchecked (xcb_connection_t *c /**< */,
4228 xcb_glx_context_tag_t context_tag /**< */,
4229 int32_t plane /**< */)
4231 static const xcb_protocol_request_t xcb_req = {
4232 /* count */ 2,
4233 /* ext */ &xcb_glx_id,
4234 /* opcode */ XCB_GLX_GET_CLIP_PLANE,
4235 /* isvoid */ 0
4238 struct iovec xcb_parts[4];
4239 xcb_glx_get_clip_plane_cookie_t xcb_ret;
4240 xcb_glx_get_clip_plane_request_t xcb_out;
4242 xcb_out.context_tag = context_tag;
4243 xcb_out.plane = plane;
4245 xcb_parts[2].iov_base = (char *) &xcb_out;
4246 xcb_parts[2].iov_len = sizeof(xcb_out);
4247 xcb_parts[3].iov_base = 0;
4248 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4250 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4251 return xcb_ret;
4254 xcb_glx_float64_t *
4255 xcb_glx_get_clip_plane_data (const xcb_glx_get_clip_plane_reply_t *R /**< */)
4257 return (xcb_glx_float64_t *) (R + 1);
4261 xcb_glx_get_clip_plane_data_length (const xcb_glx_get_clip_plane_reply_t *R /**< */)
4263 return (R->length / 2);
4266 xcb_generic_iterator_t
4267 xcb_glx_get_clip_plane_data_end (const xcb_glx_get_clip_plane_reply_t *R /**< */)
4269 xcb_generic_iterator_t i;
4270 i.data = ((xcb_glx_float64_t *) (R + 1)) + ((R->length / 2));
4271 i.rem = 0;
4272 i.index = (char *) i.data - (char *) R;
4273 return i;
4276 xcb_glx_get_clip_plane_reply_t *
4277 xcb_glx_get_clip_plane_reply (xcb_connection_t *c /**< */,
4278 xcb_glx_get_clip_plane_cookie_t cookie /**< */,
4279 xcb_generic_error_t **e /**< */)
4281 return (xcb_glx_get_clip_plane_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4285 xcb_glx_get_doublev_sizeof (const void *_buffer /**< */)
4287 char *xcb_tmp = (char *)_buffer;
4288 const xcb_glx_get_doublev_reply_t *_aux = (xcb_glx_get_doublev_reply_t *)_buffer;
4289 unsigned int xcb_buffer_len = 0;
4290 unsigned int xcb_block_len = 0;
4291 unsigned int xcb_pad = 0;
4292 unsigned int xcb_align_to = 0;
4295 xcb_block_len += sizeof(xcb_glx_get_doublev_reply_t);
4296 xcb_tmp += xcb_block_len;
4297 xcb_buffer_len += xcb_block_len;
4298 xcb_block_len = 0;
4299 /* data */
4300 xcb_block_len += _aux->n * sizeof(xcb_glx_float64_t);
4301 xcb_tmp += xcb_block_len;
4302 xcb_align_to = ALIGNOF(xcb_glx_float64_t);
4303 /* insert padding */
4304 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
4305 xcb_buffer_len += xcb_block_len + xcb_pad;
4306 if (0 != xcb_pad) {
4307 xcb_tmp += xcb_pad;
4308 xcb_pad = 0;
4310 xcb_block_len = 0;
4312 return xcb_buffer_len;
4315 xcb_glx_get_doublev_cookie_t
4316 xcb_glx_get_doublev (xcb_connection_t *c /**< */,
4317 xcb_glx_context_tag_t context_tag /**< */,
4318 uint32_t pname /**< */)
4320 static const xcb_protocol_request_t xcb_req = {
4321 /* count */ 2,
4322 /* ext */ &xcb_glx_id,
4323 /* opcode */ XCB_GLX_GET_DOUBLEV,
4324 /* isvoid */ 0
4327 struct iovec xcb_parts[4];
4328 xcb_glx_get_doublev_cookie_t xcb_ret;
4329 xcb_glx_get_doublev_request_t xcb_out;
4331 xcb_out.context_tag = context_tag;
4332 xcb_out.pname = pname;
4334 xcb_parts[2].iov_base = (char *) &xcb_out;
4335 xcb_parts[2].iov_len = sizeof(xcb_out);
4336 xcb_parts[3].iov_base = 0;
4337 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4339 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4340 return xcb_ret;
4343 xcb_glx_get_doublev_cookie_t
4344 xcb_glx_get_doublev_unchecked (xcb_connection_t *c /**< */,
4345 xcb_glx_context_tag_t context_tag /**< */,
4346 uint32_t pname /**< */)
4348 static const xcb_protocol_request_t xcb_req = {
4349 /* count */ 2,
4350 /* ext */ &xcb_glx_id,
4351 /* opcode */ XCB_GLX_GET_DOUBLEV,
4352 /* isvoid */ 0
4355 struct iovec xcb_parts[4];
4356 xcb_glx_get_doublev_cookie_t xcb_ret;
4357 xcb_glx_get_doublev_request_t xcb_out;
4359 xcb_out.context_tag = context_tag;
4360 xcb_out.pname = pname;
4362 xcb_parts[2].iov_base = (char *) &xcb_out;
4363 xcb_parts[2].iov_len = sizeof(xcb_out);
4364 xcb_parts[3].iov_base = 0;
4365 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4367 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4368 return xcb_ret;
4371 xcb_glx_float64_t *
4372 xcb_glx_get_doublev_data (const xcb_glx_get_doublev_reply_t *R /**< */)
4374 return (xcb_glx_float64_t *) (R + 1);
4378 xcb_glx_get_doublev_data_length (const xcb_glx_get_doublev_reply_t *R /**< */)
4380 return R->n;
4383 xcb_generic_iterator_t
4384 xcb_glx_get_doublev_data_end (const xcb_glx_get_doublev_reply_t *R /**< */)
4386 xcb_generic_iterator_t i;
4387 i.data = ((xcb_glx_float64_t *) (R + 1)) + (R->n);
4388 i.rem = 0;
4389 i.index = (char *) i.data - (char *) R;
4390 return i;
4393 xcb_glx_get_doublev_reply_t *
4394 xcb_glx_get_doublev_reply (xcb_connection_t *c /**< */,
4395 xcb_glx_get_doublev_cookie_t cookie /**< */,
4396 xcb_generic_error_t **e /**< */)
4398 return (xcb_glx_get_doublev_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4401 xcb_glx_get_error_cookie_t
4402 xcb_glx_get_error (xcb_connection_t *c /**< */,
4403 xcb_glx_context_tag_t context_tag /**< */)
4405 static const xcb_protocol_request_t xcb_req = {
4406 /* count */ 2,
4407 /* ext */ &xcb_glx_id,
4408 /* opcode */ XCB_GLX_GET_ERROR,
4409 /* isvoid */ 0
4412 struct iovec xcb_parts[4];
4413 xcb_glx_get_error_cookie_t xcb_ret;
4414 xcb_glx_get_error_request_t xcb_out;
4416 xcb_out.context_tag = context_tag;
4418 xcb_parts[2].iov_base = (char *) &xcb_out;
4419 xcb_parts[2].iov_len = sizeof(xcb_out);
4420 xcb_parts[3].iov_base = 0;
4421 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4423 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4424 return xcb_ret;
4427 xcb_glx_get_error_cookie_t
4428 xcb_glx_get_error_unchecked (xcb_connection_t *c /**< */,
4429 xcb_glx_context_tag_t context_tag /**< */)
4431 static const xcb_protocol_request_t xcb_req = {
4432 /* count */ 2,
4433 /* ext */ &xcb_glx_id,
4434 /* opcode */ XCB_GLX_GET_ERROR,
4435 /* isvoid */ 0
4438 struct iovec xcb_parts[4];
4439 xcb_glx_get_error_cookie_t xcb_ret;
4440 xcb_glx_get_error_request_t xcb_out;
4442 xcb_out.context_tag = context_tag;
4444 xcb_parts[2].iov_base = (char *) &xcb_out;
4445 xcb_parts[2].iov_len = sizeof(xcb_out);
4446 xcb_parts[3].iov_base = 0;
4447 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4449 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4450 return xcb_ret;
4453 xcb_glx_get_error_reply_t *
4454 xcb_glx_get_error_reply (xcb_connection_t *c /**< */,
4455 xcb_glx_get_error_cookie_t cookie /**< */,
4456 xcb_generic_error_t **e /**< */)
4458 return (xcb_glx_get_error_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4462 xcb_glx_get_floatv_sizeof (const void *_buffer /**< */)
4464 char *xcb_tmp = (char *)_buffer;
4465 const xcb_glx_get_floatv_reply_t *_aux = (xcb_glx_get_floatv_reply_t *)_buffer;
4466 unsigned int xcb_buffer_len = 0;
4467 unsigned int xcb_block_len = 0;
4468 unsigned int xcb_pad = 0;
4469 unsigned int xcb_align_to = 0;
4472 xcb_block_len += sizeof(xcb_glx_get_floatv_reply_t);
4473 xcb_tmp += xcb_block_len;
4474 xcb_buffer_len += xcb_block_len;
4475 xcb_block_len = 0;
4476 /* data */
4477 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
4478 xcb_tmp += xcb_block_len;
4479 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
4480 /* insert padding */
4481 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
4482 xcb_buffer_len += xcb_block_len + xcb_pad;
4483 if (0 != xcb_pad) {
4484 xcb_tmp += xcb_pad;
4485 xcb_pad = 0;
4487 xcb_block_len = 0;
4489 return xcb_buffer_len;
4492 xcb_glx_get_floatv_cookie_t
4493 xcb_glx_get_floatv (xcb_connection_t *c /**< */,
4494 xcb_glx_context_tag_t context_tag /**< */,
4495 uint32_t pname /**< */)
4497 static const xcb_protocol_request_t xcb_req = {
4498 /* count */ 2,
4499 /* ext */ &xcb_glx_id,
4500 /* opcode */ XCB_GLX_GET_FLOATV,
4501 /* isvoid */ 0
4504 struct iovec xcb_parts[4];
4505 xcb_glx_get_floatv_cookie_t xcb_ret;
4506 xcb_glx_get_floatv_request_t xcb_out;
4508 xcb_out.context_tag = context_tag;
4509 xcb_out.pname = pname;
4511 xcb_parts[2].iov_base = (char *) &xcb_out;
4512 xcb_parts[2].iov_len = sizeof(xcb_out);
4513 xcb_parts[3].iov_base = 0;
4514 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4516 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4517 return xcb_ret;
4520 xcb_glx_get_floatv_cookie_t
4521 xcb_glx_get_floatv_unchecked (xcb_connection_t *c /**< */,
4522 xcb_glx_context_tag_t context_tag /**< */,
4523 uint32_t pname /**< */)
4525 static const xcb_protocol_request_t xcb_req = {
4526 /* count */ 2,
4527 /* ext */ &xcb_glx_id,
4528 /* opcode */ XCB_GLX_GET_FLOATV,
4529 /* isvoid */ 0
4532 struct iovec xcb_parts[4];
4533 xcb_glx_get_floatv_cookie_t xcb_ret;
4534 xcb_glx_get_floatv_request_t xcb_out;
4536 xcb_out.context_tag = context_tag;
4537 xcb_out.pname = pname;
4539 xcb_parts[2].iov_base = (char *) &xcb_out;
4540 xcb_parts[2].iov_len = sizeof(xcb_out);
4541 xcb_parts[3].iov_base = 0;
4542 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4544 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4545 return xcb_ret;
4548 xcb_glx_float32_t *
4549 xcb_glx_get_floatv_data (const xcb_glx_get_floatv_reply_t *R /**< */)
4551 return (xcb_glx_float32_t *) (R + 1);
4555 xcb_glx_get_floatv_data_length (const xcb_glx_get_floatv_reply_t *R /**< */)
4557 return R->n;
4560 xcb_generic_iterator_t
4561 xcb_glx_get_floatv_data_end (const xcb_glx_get_floatv_reply_t *R /**< */)
4563 xcb_generic_iterator_t i;
4564 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
4565 i.rem = 0;
4566 i.index = (char *) i.data - (char *) R;
4567 return i;
4570 xcb_glx_get_floatv_reply_t *
4571 xcb_glx_get_floatv_reply (xcb_connection_t *c /**< */,
4572 xcb_glx_get_floatv_cookie_t cookie /**< */,
4573 xcb_generic_error_t **e /**< */)
4575 return (xcb_glx_get_floatv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4579 xcb_glx_get_integerv_sizeof (const void *_buffer /**< */)
4581 char *xcb_tmp = (char *)_buffer;
4582 const xcb_glx_get_integerv_reply_t *_aux = (xcb_glx_get_integerv_reply_t *)_buffer;
4583 unsigned int xcb_buffer_len = 0;
4584 unsigned int xcb_block_len = 0;
4585 unsigned int xcb_pad = 0;
4586 unsigned int xcb_align_to = 0;
4589 xcb_block_len += sizeof(xcb_glx_get_integerv_reply_t);
4590 xcb_tmp += xcb_block_len;
4591 xcb_buffer_len += xcb_block_len;
4592 xcb_block_len = 0;
4593 /* data */
4594 xcb_block_len += _aux->n * sizeof(int32_t);
4595 xcb_tmp += xcb_block_len;
4596 xcb_align_to = ALIGNOF(int32_t);
4597 /* insert padding */
4598 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
4599 xcb_buffer_len += xcb_block_len + xcb_pad;
4600 if (0 != xcb_pad) {
4601 xcb_tmp += xcb_pad;
4602 xcb_pad = 0;
4604 xcb_block_len = 0;
4606 return xcb_buffer_len;
4609 xcb_glx_get_integerv_cookie_t
4610 xcb_glx_get_integerv (xcb_connection_t *c /**< */,
4611 xcb_glx_context_tag_t context_tag /**< */,
4612 uint32_t pname /**< */)
4614 static const xcb_protocol_request_t xcb_req = {
4615 /* count */ 2,
4616 /* ext */ &xcb_glx_id,
4617 /* opcode */ XCB_GLX_GET_INTEGERV,
4618 /* isvoid */ 0
4621 struct iovec xcb_parts[4];
4622 xcb_glx_get_integerv_cookie_t xcb_ret;
4623 xcb_glx_get_integerv_request_t xcb_out;
4625 xcb_out.context_tag = context_tag;
4626 xcb_out.pname = pname;
4628 xcb_parts[2].iov_base = (char *) &xcb_out;
4629 xcb_parts[2].iov_len = sizeof(xcb_out);
4630 xcb_parts[3].iov_base = 0;
4631 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4633 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4634 return xcb_ret;
4637 xcb_glx_get_integerv_cookie_t
4638 xcb_glx_get_integerv_unchecked (xcb_connection_t *c /**< */,
4639 xcb_glx_context_tag_t context_tag /**< */,
4640 uint32_t pname /**< */)
4642 static const xcb_protocol_request_t xcb_req = {
4643 /* count */ 2,
4644 /* ext */ &xcb_glx_id,
4645 /* opcode */ XCB_GLX_GET_INTEGERV,
4646 /* isvoid */ 0
4649 struct iovec xcb_parts[4];
4650 xcb_glx_get_integerv_cookie_t xcb_ret;
4651 xcb_glx_get_integerv_request_t xcb_out;
4653 xcb_out.context_tag = context_tag;
4654 xcb_out.pname = pname;
4656 xcb_parts[2].iov_base = (char *) &xcb_out;
4657 xcb_parts[2].iov_len = sizeof(xcb_out);
4658 xcb_parts[3].iov_base = 0;
4659 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4661 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4662 return xcb_ret;
4665 int32_t *
4666 xcb_glx_get_integerv_data (const xcb_glx_get_integerv_reply_t *R /**< */)
4668 return (int32_t *) (R + 1);
4672 xcb_glx_get_integerv_data_length (const xcb_glx_get_integerv_reply_t *R /**< */)
4674 return R->n;
4677 xcb_generic_iterator_t
4678 xcb_glx_get_integerv_data_end (const xcb_glx_get_integerv_reply_t *R /**< */)
4680 xcb_generic_iterator_t i;
4681 i.data = ((int32_t *) (R + 1)) + (R->n);
4682 i.rem = 0;
4683 i.index = (char *) i.data - (char *) R;
4684 return i;
4687 xcb_glx_get_integerv_reply_t *
4688 xcb_glx_get_integerv_reply (xcb_connection_t *c /**< */,
4689 xcb_glx_get_integerv_cookie_t cookie /**< */,
4690 xcb_generic_error_t **e /**< */)
4692 return (xcb_glx_get_integerv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4696 xcb_glx_get_lightfv_sizeof (const void *_buffer /**< */)
4698 char *xcb_tmp = (char *)_buffer;
4699 const xcb_glx_get_lightfv_reply_t *_aux = (xcb_glx_get_lightfv_reply_t *)_buffer;
4700 unsigned int xcb_buffer_len = 0;
4701 unsigned int xcb_block_len = 0;
4702 unsigned int xcb_pad = 0;
4703 unsigned int xcb_align_to = 0;
4706 xcb_block_len += sizeof(xcb_glx_get_lightfv_reply_t);
4707 xcb_tmp += xcb_block_len;
4708 xcb_buffer_len += xcb_block_len;
4709 xcb_block_len = 0;
4710 /* data */
4711 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
4712 xcb_tmp += xcb_block_len;
4713 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
4714 /* insert padding */
4715 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
4716 xcb_buffer_len += xcb_block_len + xcb_pad;
4717 if (0 != xcb_pad) {
4718 xcb_tmp += xcb_pad;
4719 xcb_pad = 0;
4721 xcb_block_len = 0;
4723 return xcb_buffer_len;
4726 xcb_glx_get_lightfv_cookie_t
4727 xcb_glx_get_lightfv (xcb_connection_t *c /**< */,
4728 xcb_glx_context_tag_t context_tag /**< */,
4729 uint32_t light /**< */,
4730 uint32_t pname /**< */)
4732 static const xcb_protocol_request_t xcb_req = {
4733 /* count */ 2,
4734 /* ext */ &xcb_glx_id,
4735 /* opcode */ XCB_GLX_GET_LIGHTFV,
4736 /* isvoid */ 0
4739 struct iovec xcb_parts[4];
4740 xcb_glx_get_lightfv_cookie_t xcb_ret;
4741 xcb_glx_get_lightfv_request_t xcb_out;
4743 xcb_out.context_tag = context_tag;
4744 xcb_out.light = light;
4745 xcb_out.pname = pname;
4747 xcb_parts[2].iov_base = (char *) &xcb_out;
4748 xcb_parts[2].iov_len = sizeof(xcb_out);
4749 xcb_parts[3].iov_base = 0;
4750 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4752 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4753 return xcb_ret;
4756 xcb_glx_get_lightfv_cookie_t
4757 xcb_glx_get_lightfv_unchecked (xcb_connection_t *c /**< */,
4758 xcb_glx_context_tag_t context_tag /**< */,
4759 uint32_t light /**< */,
4760 uint32_t pname /**< */)
4762 static const xcb_protocol_request_t xcb_req = {
4763 /* count */ 2,
4764 /* ext */ &xcb_glx_id,
4765 /* opcode */ XCB_GLX_GET_LIGHTFV,
4766 /* isvoid */ 0
4769 struct iovec xcb_parts[4];
4770 xcb_glx_get_lightfv_cookie_t xcb_ret;
4771 xcb_glx_get_lightfv_request_t xcb_out;
4773 xcb_out.context_tag = context_tag;
4774 xcb_out.light = light;
4775 xcb_out.pname = pname;
4777 xcb_parts[2].iov_base = (char *) &xcb_out;
4778 xcb_parts[2].iov_len = sizeof(xcb_out);
4779 xcb_parts[3].iov_base = 0;
4780 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4782 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4783 return xcb_ret;
4786 xcb_glx_float32_t *
4787 xcb_glx_get_lightfv_data (const xcb_glx_get_lightfv_reply_t *R /**< */)
4789 return (xcb_glx_float32_t *) (R + 1);
4793 xcb_glx_get_lightfv_data_length (const xcb_glx_get_lightfv_reply_t *R /**< */)
4795 return R->n;
4798 xcb_generic_iterator_t
4799 xcb_glx_get_lightfv_data_end (const xcb_glx_get_lightfv_reply_t *R /**< */)
4801 xcb_generic_iterator_t i;
4802 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
4803 i.rem = 0;
4804 i.index = (char *) i.data - (char *) R;
4805 return i;
4808 xcb_glx_get_lightfv_reply_t *
4809 xcb_glx_get_lightfv_reply (xcb_connection_t *c /**< */,
4810 xcb_glx_get_lightfv_cookie_t cookie /**< */,
4811 xcb_generic_error_t **e /**< */)
4813 return (xcb_glx_get_lightfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4817 xcb_glx_get_lightiv_sizeof (const void *_buffer /**< */)
4819 char *xcb_tmp = (char *)_buffer;
4820 const xcb_glx_get_lightiv_reply_t *_aux = (xcb_glx_get_lightiv_reply_t *)_buffer;
4821 unsigned int xcb_buffer_len = 0;
4822 unsigned int xcb_block_len = 0;
4823 unsigned int xcb_pad = 0;
4824 unsigned int xcb_align_to = 0;
4827 xcb_block_len += sizeof(xcb_glx_get_lightiv_reply_t);
4828 xcb_tmp += xcb_block_len;
4829 xcb_buffer_len += xcb_block_len;
4830 xcb_block_len = 0;
4831 /* data */
4832 xcb_block_len += _aux->n * sizeof(int32_t);
4833 xcb_tmp += xcb_block_len;
4834 xcb_align_to = ALIGNOF(int32_t);
4835 /* insert padding */
4836 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
4837 xcb_buffer_len += xcb_block_len + xcb_pad;
4838 if (0 != xcb_pad) {
4839 xcb_tmp += xcb_pad;
4840 xcb_pad = 0;
4842 xcb_block_len = 0;
4844 return xcb_buffer_len;
4847 xcb_glx_get_lightiv_cookie_t
4848 xcb_glx_get_lightiv (xcb_connection_t *c /**< */,
4849 xcb_glx_context_tag_t context_tag /**< */,
4850 uint32_t light /**< */,
4851 uint32_t pname /**< */)
4853 static const xcb_protocol_request_t xcb_req = {
4854 /* count */ 2,
4855 /* ext */ &xcb_glx_id,
4856 /* opcode */ XCB_GLX_GET_LIGHTIV,
4857 /* isvoid */ 0
4860 struct iovec xcb_parts[4];
4861 xcb_glx_get_lightiv_cookie_t xcb_ret;
4862 xcb_glx_get_lightiv_request_t xcb_out;
4864 xcb_out.context_tag = context_tag;
4865 xcb_out.light = light;
4866 xcb_out.pname = pname;
4868 xcb_parts[2].iov_base = (char *) &xcb_out;
4869 xcb_parts[2].iov_len = sizeof(xcb_out);
4870 xcb_parts[3].iov_base = 0;
4871 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4873 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4874 return xcb_ret;
4877 xcb_glx_get_lightiv_cookie_t
4878 xcb_glx_get_lightiv_unchecked (xcb_connection_t *c /**< */,
4879 xcb_glx_context_tag_t context_tag /**< */,
4880 uint32_t light /**< */,
4881 uint32_t pname /**< */)
4883 static const xcb_protocol_request_t xcb_req = {
4884 /* count */ 2,
4885 /* ext */ &xcb_glx_id,
4886 /* opcode */ XCB_GLX_GET_LIGHTIV,
4887 /* isvoid */ 0
4890 struct iovec xcb_parts[4];
4891 xcb_glx_get_lightiv_cookie_t xcb_ret;
4892 xcb_glx_get_lightiv_request_t xcb_out;
4894 xcb_out.context_tag = context_tag;
4895 xcb_out.light = light;
4896 xcb_out.pname = pname;
4898 xcb_parts[2].iov_base = (char *) &xcb_out;
4899 xcb_parts[2].iov_len = sizeof(xcb_out);
4900 xcb_parts[3].iov_base = 0;
4901 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4903 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
4904 return xcb_ret;
4907 int32_t *
4908 xcb_glx_get_lightiv_data (const xcb_glx_get_lightiv_reply_t *R /**< */)
4910 return (int32_t *) (R + 1);
4914 xcb_glx_get_lightiv_data_length (const xcb_glx_get_lightiv_reply_t *R /**< */)
4916 return R->n;
4919 xcb_generic_iterator_t
4920 xcb_glx_get_lightiv_data_end (const xcb_glx_get_lightiv_reply_t *R /**< */)
4922 xcb_generic_iterator_t i;
4923 i.data = ((int32_t *) (R + 1)) + (R->n);
4924 i.rem = 0;
4925 i.index = (char *) i.data - (char *) R;
4926 return i;
4929 xcb_glx_get_lightiv_reply_t *
4930 xcb_glx_get_lightiv_reply (xcb_connection_t *c /**< */,
4931 xcb_glx_get_lightiv_cookie_t cookie /**< */,
4932 xcb_generic_error_t **e /**< */)
4934 return (xcb_glx_get_lightiv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
4938 xcb_glx_get_mapdv_sizeof (const void *_buffer /**< */)
4940 char *xcb_tmp = (char *)_buffer;
4941 const xcb_glx_get_mapdv_reply_t *_aux = (xcb_glx_get_mapdv_reply_t *)_buffer;
4942 unsigned int xcb_buffer_len = 0;
4943 unsigned int xcb_block_len = 0;
4944 unsigned int xcb_pad = 0;
4945 unsigned int xcb_align_to = 0;
4948 xcb_block_len += sizeof(xcb_glx_get_mapdv_reply_t);
4949 xcb_tmp += xcb_block_len;
4950 xcb_buffer_len += xcb_block_len;
4951 xcb_block_len = 0;
4952 /* data */
4953 xcb_block_len += _aux->n * sizeof(xcb_glx_float64_t);
4954 xcb_tmp += xcb_block_len;
4955 xcb_align_to = ALIGNOF(xcb_glx_float64_t);
4956 /* insert padding */
4957 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
4958 xcb_buffer_len += xcb_block_len + xcb_pad;
4959 if (0 != xcb_pad) {
4960 xcb_tmp += xcb_pad;
4961 xcb_pad = 0;
4963 xcb_block_len = 0;
4965 return xcb_buffer_len;
4968 xcb_glx_get_mapdv_cookie_t
4969 xcb_glx_get_mapdv (xcb_connection_t *c /**< */,
4970 xcb_glx_context_tag_t context_tag /**< */,
4971 uint32_t target /**< */,
4972 uint32_t query /**< */)
4974 static const xcb_protocol_request_t xcb_req = {
4975 /* count */ 2,
4976 /* ext */ &xcb_glx_id,
4977 /* opcode */ XCB_GLX_GET_MAPDV,
4978 /* isvoid */ 0
4981 struct iovec xcb_parts[4];
4982 xcb_glx_get_mapdv_cookie_t xcb_ret;
4983 xcb_glx_get_mapdv_request_t xcb_out;
4985 xcb_out.context_tag = context_tag;
4986 xcb_out.target = target;
4987 xcb_out.query = query;
4989 xcb_parts[2].iov_base = (char *) &xcb_out;
4990 xcb_parts[2].iov_len = sizeof(xcb_out);
4991 xcb_parts[3].iov_base = 0;
4992 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
4994 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
4995 return xcb_ret;
4998 xcb_glx_get_mapdv_cookie_t
4999 xcb_glx_get_mapdv_unchecked (xcb_connection_t *c /**< */,
5000 xcb_glx_context_tag_t context_tag /**< */,
5001 uint32_t target /**< */,
5002 uint32_t query /**< */)
5004 static const xcb_protocol_request_t xcb_req = {
5005 /* count */ 2,
5006 /* ext */ &xcb_glx_id,
5007 /* opcode */ XCB_GLX_GET_MAPDV,
5008 /* isvoid */ 0
5011 struct iovec xcb_parts[4];
5012 xcb_glx_get_mapdv_cookie_t xcb_ret;
5013 xcb_glx_get_mapdv_request_t xcb_out;
5015 xcb_out.context_tag = context_tag;
5016 xcb_out.target = target;
5017 xcb_out.query = query;
5019 xcb_parts[2].iov_base = (char *) &xcb_out;
5020 xcb_parts[2].iov_len = sizeof(xcb_out);
5021 xcb_parts[3].iov_base = 0;
5022 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5024 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5025 return xcb_ret;
5028 xcb_glx_float64_t *
5029 xcb_glx_get_mapdv_data (const xcb_glx_get_mapdv_reply_t *R /**< */)
5031 return (xcb_glx_float64_t *) (R + 1);
5035 xcb_glx_get_mapdv_data_length (const xcb_glx_get_mapdv_reply_t *R /**< */)
5037 return R->n;
5040 xcb_generic_iterator_t
5041 xcb_glx_get_mapdv_data_end (const xcb_glx_get_mapdv_reply_t *R /**< */)
5043 xcb_generic_iterator_t i;
5044 i.data = ((xcb_glx_float64_t *) (R + 1)) + (R->n);
5045 i.rem = 0;
5046 i.index = (char *) i.data - (char *) R;
5047 return i;
5050 xcb_glx_get_mapdv_reply_t *
5051 xcb_glx_get_mapdv_reply (xcb_connection_t *c /**< */,
5052 xcb_glx_get_mapdv_cookie_t cookie /**< */,
5053 xcb_generic_error_t **e /**< */)
5055 return (xcb_glx_get_mapdv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
5059 xcb_glx_get_mapfv_sizeof (const void *_buffer /**< */)
5061 char *xcb_tmp = (char *)_buffer;
5062 const xcb_glx_get_mapfv_reply_t *_aux = (xcb_glx_get_mapfv_reply_t *)_buffer;
5063 unsigned int xcb_buffer_len = 0;
5064 unsigned int xcb_block_len = 0;
5065 unsigned int xcb_pad = 0;
5066 unsigned int xcb_align_to = 0;
5069 xcb_block_len += sizeof(xcb_glx_get_mapfv_reply_t);
5070 xcb_tmp += xcb_block_len;
5071 xcb_buffer_len += xcb_block_len;
5072 xcb_block_len = 0;
5073 /* data */
5074 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
5075 xcb_tmp += xcb_block_len;
5076 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
5077 /* insert padding */
5078 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
5079 xcb_buffer_len += xcb_block_len + xcb_pad;
5080 if (0 != xcb_pad) {
5081 xcb_tmp += xcb_pad;
5082 xcb_pad = 0;
5084 xcb_block_len = 0;
5086 return xcb_buffer_len;
5089 xcb_glx_get_mapfv_cookie_t
5090 xcb_glx_get_mapfv (xcb_connection_t *c /**< */,
5091 xcb_glx_context_tag_t context_tag /**< */,
5092 uint32_t target /**< */,
5093 uint32_t query /**< */)
5095 static const xcb_protocol_request_t xcb_req = {
5096 /* count */ 2,
5097 /* ext */ &xcb_glx_id,
5098 /* opcode */ XCB_GLX_GET_MAPFV,
5099 /* isvoid */ 0
5102 struct iovec xcb_parts[4];
5103 xcb_glx_get_mapfv_cookie_t xcb_ret;
5104 xcb_glx_get_mapfv_request_t xcb_out;
5106 xcb_out.context_tag = context_tag;
5107 xcb_out.target = target;
5108 xcb_out.query = query;
5110 xcb_parts[2].iov_base = (char *) &xcb_out;
5111 xcb_parts[2].iov_len = sizeof(xcb_out);
5112 xcb_parts[3].iov_base = 0;
5113 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5115 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
5116 return xcb_ret;
5119 xcb_glx_get_mapfv_cookie_t
5120 xcb_glx_get_mapfv_unchecked (xcb_connection_t *c /**< */,
5121 xcb_glx_context_tag_t context_tag /**< */,
5122 uint32_t target /**< */,
5123 uint32_t query /**< */)
5125 static const xcb_protocol_request_t xcb_req = {
5126 /* count */ 2,
5127 /* ext */ &xcb_glx_id,
5128 /* opcode */ XCB_GLX_GET_MAPFV,
5129 /* isvoid */ 0
5132 struct iovec xcb_parts[4];
5133 xcb_glx_get_mapfv_cookie_t xcb_ret;
5134 xcb_glx_get_mapfv_request_t xcb_out;
5136 xcb_out.context_tag = context_tag;
5137 xcb_out.target = target;
5138 xcb_out.query = query;
5140 xcb_parts[2].iov_base = (char *) &xcb_out;
5141 xcb_parts[2].iov_len = sizeof(xcb_out);
5142 xcb_parts[3].iov_base = 0;
5143 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5145 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5146 return xcb_ret;
5149 xcb_glx_float32_t *
5150 xcb_glx_get_mapfv_data (const xcb_glx_get_mapfv_reply_t *R /**< */)
5152 return (xcb_glx_float32_t *) (R + 1);
5156 xcb_glx_get_mapfv_data_length (const xcb_glx_get_mapfv_reply_t *R /**< */)
5158 return R->n;
5161 xcb_generic_iterator_t
5162 xcb_glx_get_mapfv_data_end (const xcb_glx_get_mapfv_reply_t *R /**< */)
5164 xcb_generic_iterator_t i;
5165 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
5166 i.rem = 0;
5167 i.index = (char *) i.data - (char *) R;
5168 return i;
5171 xcb_glx_get_mapfv_reply_t *
5172 xcb_glx_get_mapfv_reply (xcb_connection_t *c /**< */,
5173 xcb_glx_get_mapfv_cookie_t cookie /**< */,
5174 xcb_generic_error_t **e /**< */)
5176 return (xcb_glx_get_mapfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
5180 xcb_glx_get_mapiv_sizeof (const void *_buffer /**< */)
5182 char *xcb_tmp = (char *)_buffer;
5183 const xcb_glx_get_mapiv_reply_t *_aux = (xcb_glx_get_mapiv_reply_t *)_buffer;
5184 unsigned int xcb_buffer_len = 0;
5185 unsigned int xcb_block_len = 0;
5186 unsigned int xcb_pad = 0;
5187 unsigned int xcb_align_to = 0;
5190 xcb_block_len += sizeof(xcb_glx_get_mapiv_reply_t);
5191 xcb_tmp += xcb_block_len;
5192 xcb_buffer_len += xcb_block_len;
5193 xcb_block_len = 0;
5194 /* data */
5195 xcb_block_len += _aux->n * sizeof(int32_t);
5196 xcb_tmp += xcb_block_len;
5197 xcb_align_to = ALIGNOF(int32_t);
5198 /* insert padding */
5199 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
5200 xcb_buffer_len += xcb_block_len + xcb_pad;
5201 if (0 != xcb_pad) {
5202 xcb_tmp += xcb_pad;
5203 xcb_pad = 0;
5205 xcb_block_len = 0;
5207 return xcb_buffer_len;
5210 xcb_glx_get_mapiv_cookie_t
5211 xcb_glx_get_mapiv (xcb_connection_t *c /**< */,
5212 xcb_glx_context_tag_t context_tag /**< */,
5213 uint32_t target /**< */,
5214 uint32_t query /**< */)
5216 static const xcb_protocol_request_t xcb_req = {
5217 /* count */ 2,
5218 /* ext */ &xcb_glx_id,
5219 /* opcode */ XCB_GLX_GET_MAPIV,
5220 /* isvoid */ 0
5223 struct iovec xcb_parts[4];
5224 xcb_glx_get_mapiv_cookie_t xcb_ret;
5225 xcb_glx_get_mapiv_request_t xcb_out;
5227 xcb_out.context_tag = context_tag;
5228 xcb_out.target = target;
5229 xcb_out.query = query;
5231 xcb_parts[2].iov_base = (char *) &xcb_out;
5232 xcb_parts[2].iov_len = sizeof(xcb_out);
5233 xcb_parts[3].iov_base = 0;
5234 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5236 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
5237 return xcb_ret;
5240 xcb_glx_get_mapiv_cookie_t
5241 xcb_glx_get_mapiv_unchecked (xcb_connection_t *c /**< */,
5242 xcb_glx_context_tag_t context_tag /**< */,
5243 uint32_t target /**< */,
5244 uint32_t query /**< */)
5246 static const xcb_protocol_request_t xcb_req = {
5247 /* count */ 2,
5248 /* ext */ &xcb_glx_id,
5249 /* opcode */ XCB_GLX_GET_MAPIV,
5250 /* isvoid */ 0
5253 struct iovec xcb_parts[4];
5254 xcb_glx_get_mapiv_cookie_t xcb_ret;
5255 xcb_glx_get_mapiv_request_t xcb_out;
5257 xcb_out.context_tag = context_tag;
5258 xcb_out.target = target;
5259 xcb_out.query = query;
5261 xcb_parts[2].iov_base = (char *) &xcb_out;
5262 xcb_parts[2].iov_len = sizeof(xcb_out);
5263 xcb_parts[3].iov_base = 0;
5264 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5266 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5267 return xcb_ret;
5270 int32_t *
5271 xcb_glx_get_mapiv_data (const xcb_glx_get_mapiv_reply_t *R /**< */)
5273 return (int32_t *) (R + 1);
5277 xcb_glx_get_mapiv_data_length (const xcb_glx_get_mapiv_reply_t *R /**< */)
5279 return R->n;
5282 xcb_generic_iterator_t
5283 xcb_glx_get_mapiv_data_end (const xcb_glx_get_mapiv_reply_t *R /**< */)
5285 xcb_generic_iterator_t i;
5286 i.data = ((int32_t *) (R + 1)) + (R->n);
5287 i.rem = 0;
5288 i.index = (char *) i.data - (char *) R;
5289 return i;
5292 xcb_glx_get_mapiv_reply_t *
5293 xcb_glx_get_mapiv_reply (xcb_connection_t *c /**< */,
5294 xcb_glx_get_mapiv_cookie_t cookie /**< */,
5295 xcb_generic_error_t **e /**< */)
5297 return (xcb_glx_get_mapiv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
5301 xcb_glx_get_materialfv_sizeof (const void *_buffer /**< */)
5303 char *xcb_tmp = (char *)_buffer;
5304 const xcb_glx_get_materialfv_reply_t *_aux = (xcb_glx_get_materialfv_reply_t *)_buffer;
5305 unsigned int xcb_buffer_len = 0;
5306 unsigned int xcb_block_len = 0;
5307 unsigned int xcb_pad = 0;
5308 unsigned int xcb_align_to = 0;
5311 xcb_block_len += sizeof(xcb_glx_get_materialfv_reply_t);
5312 xcb_tmp += xcb_block_len;
5313 xcb_buffer_len += xcb_block_len;
5314 xcb_block_len = 0;
5315 /* data */
5316 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
5317 xcb_tmp += xcb_block_len;
5318 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
5319 /* insert padding */
5320 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
5321 xcb_buffer_len += xcb_block_len + xcb_pad;
5322 if (0 != xcb_pad) {
5323 xcb_tmp += xcb_pad;
5324 xcb_pad = 0;
5326 xcb_block_len = 0;
5328 return xcb_buffer_len;
5331 xcb_glx_get_materialfv_cookie_t
5332 xcb_glx_get_materialfv (xcb_connection_t *c /**< */,
5333 xcb_glx_context_tag_t context_tag /**< */,
5334 uint32_t face /**< */,
5335 uint32_t pname /**< */)
5337 static const xcb_protocol_request_t xcb_req = {
5338 /* count */ 2,
5339 /* ext */ &xcb_glx_id,
5340 /* opcode */ XCB_GLX_GET_MATERIALFV,
5341 /* isvoid */ 0
5344 struct iovec xcb_parts[4];
5345 xcb_glx_get_materialfv_cookie_t xcb_ret;
5346 xcb_glx_get_materialfv_request_t xcb_out;
5348 xcb_out.context_tag = context_tag;
5349 xcb_out.face = face;
5350 xcb_out.pname = pname;
5352 xcb_parts[2].iov_base = (char *) &xcb_out;
5353 xcb_parts[2].iov_len = sizeof(xcb_out);
5354 xcb_parts[3].iov_base = 0;
5355 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5357 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
5358 return xcb_ret;
5361 xcb_glx_get_materialfv_cookie_t
5362 xcb_glx_get_materialfv_unchecked (xcb_connection_t *c /**< */,
5363 xcb_glx_context_tag_t context_tag /**< */,
5364 uint32_t face /**< */,
5365 uint32_t pname /**< */)
5367 static const xcb_protocol_request_t xcb_req = {
5368 /* count */ 2,
5369 /* ext */ &xcb_glx_id,
5370 /* opcode */ XCB_GLX_GET_MATERIALFV,
5371 /* isvoid */ 0
5374 struct iovec xcb_parts[4];
5375 xcb_glx_get_materialfv_cookie_t xcb_ret;
5376 xcb_glx_get_materialfv_request_t xcb_out;
5378 xcb_out.context_tag = context_tag;
5379 xcb_out.face = face;
5380 xcb_out.pname = pname;
5382 xcb_parts[2].iov_base = (char *) &xcb_out;
5383 xcb_parts[2].iov_len = sizeof(xcb_out);
5384 xcb_parts[3].iov_base = 0;
5385 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5387 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5388 return xcb_ret;
5391 xcb_glx_float32_t *
5392 xcb_glx_get_materialfv_data (const xcb_glx_get_materialfv_reply_t *R /**< */)
5394 return (xcb_glx_float32_t *) (R + 1);
5398 xcb_glx_get_materialfv_data_length (const xcb_glx_get_materialfv_reply_t *R /**< */)
5400 return R->n;
5403 xcb_generic_iterator_t
5404 xcb_glx_get_materialfv_data_end (const xcb_glx_get_materialfv_reply_t *R /**< */)
5406 xcb_generic_iterator_t i;
5407 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
5408 i.rem = 0;
5409 i.index = (char *) i.data - (char *) R;
5410 return i;
5413 xcb_glx_get_materialfv_reply_t *
5414 xcb_glx_get_materialfv_reply (xcb_connection_t *c /**< */,
5415 xcb_glx_get_materialfv_cookie_t cookie /**< */,
5416 xcb_generic_error_t **e /**< */)
5418 return (xcb_glx_get_materialfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
5422 xcb_glx_get_materialiv_sizeof (const void *_buffer /**< */)
5424 char *xcb_tmp = (char *)_buffer;
5425 const xcb_glx_get_materialiv_reply_t *_aux = (xcb_glx_get_materialiv_reply_t *)_buffer;
5426 unsigned int xcb_buffer_len = 0;
5427 unsigned int xcb_block_len = 0;
5428 unsigned int xcb_pad = 0;
5429 unsigned int xcb_align_to = 0;
5432 xcb_block_len += sizeof(xcb_glx_get_materialiv_reply_t);
5433 xcb_tmp += xcb_block_len;
5434 xcb_buffer_len += xcb_block_len;
5435 xcb_block_len = 0;
5436 /* data */
5437 xcb_block_len += _aux->n * sizeof(int32_t);
5438 xcb_tmp += xcb_block_len;
5439 xcb_align_to = ALIGNOF(int32_t);
5440 /* insert padding */
5441 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
5442 xcb_buffer_len += xcb_block_len + xcb_pad;
5443 if (0 != xcb_pad) {
5444 xcb_tmp += xcb_pad;
5445 xcb_pad = 0;
5447 xcb_block_len = 0;
5449 return xcb_buffer_len;
5452 xcb_glx_get_materialiv_cookie_t
5453 xcb_glx_get_materialiv (xcb_connection_t *c /**< */,
5454 xcb_glx_context_tag_t context_tag /**< */,
5455 uint32_t face /**< */,
5456 uint32_t pname /**< */)
5458 static const xcb_protocol_request_t xcb_req = {
5459 /* count */ 2,
5460 /* ext */ &xcb_glx_id,
5461 /* opcode */ XCB_GLX_GET_MATERIALIV,
5462 /* isvoid */ 0
5465 struct iovec xcb_parts[4];
5466 xcb_glx_get_materialiv_cookie_t xcb_ret;
5467 xcb_glx_get_materialiv_request_t xcb_out;
5469 xcb_out.context_tag = context_tag;
5470 xcb_out.face = face;
5471 xcb_out.pname = pname;
5473 xcb_parts[2].iov_base = (char *) &xcb_out;
5474 xcb_parts[2].iov_len = sizeof(xcb_out);
5475 xcb_parts[3].iov_base = 0;
5476 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5478 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
5479 return xcb_ret;
5482 xcb_glx_get_materialiv_cookie_t
5483 xcb_glx_get_materialiv_unchecked (xcb_connection_t *c /**< */,
5484 xcb_glx_context_tag_t context_tag /**< */,
5485 uint32_t face /**< */,
5486 uint32_t pname /**< */)
5488 static const xcb_protocol_request_t xcb_req = {
5489 /* count */ 2,
5490 /* ext */ &xcb_glx_id,
5491 /* opcode */ XCB_GLX_GET_MATERIALIV,
5492 /* isvoid */ 0
5495 struct iovec xcb_parts[4];
5496 xcb_glx_get_materialiv_cookie_t xcb_ret;
5497 xcb_glx_get_materialiv_request_t xcb_out;
5499 xcb_out.context_tag = context_tag;
5500 xcb_out.face = face;
5501 xcb_out.pname = pname;
5503 xcb_parts[2].iov_base = (char *) &xcb_out;
5504 xcb_parts[2].iov_len = sizeof(xcb_out);
5505 xcb_parts[3].iov_base = 0;
5506 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5508 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5509 return xcb_ret;
5512 int32_t *
5513 xcb_glx_get_materialiv_data (const xcb_glx_get_materialiv_reply_t *R /**< */)
5515 return (int32_t *) (R + 1);
5519 xcb_glx_get_materialiv_data_length (const xcb_glx_get_materialiv_reply_t *R /**< */)
5521 return R->n;
5524 xcb_generic_iterator_t
5525 xcb_glx_get_materialiv_data_end (const xcb_glx_get_materialiv_reply_t *R /**< */)
5527 xcb_generic_iterator_t i;
5528 i.data = ((int32_t *) (R + 1)) + (R->n);
5529 i.rem = 0;
5530 i.index = (char *) i.data - (char *) R;
5531 return i;
5534 xcb_glx_get_materialiv_reply_t *
5535 xcb_glx_get_materialiv_reply (xcb_connection_t *c /**< */,
5536 xcb_glx_get_materialiv_cookie_t cookie /**< */,
5537 xcb_generic_error_t **e /**< */)
5539 return (xcb_glx_get_materialiv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
5543 xcb_glx_get_pixel_mapfv_sizeof (const void *_buffer /**< */)
5545 char *xcb_tmp = (char *)_buffer;
5546 const xcb_glx_get_pixel_mapfv_reply_t *_aux = (xcb_glx_get_pixel_mapfv_reply_t *)_buffer;
5547 unsigned int xcb_buffer_len = 0;
5548 unsigned int xcb_block_len = 0;
5549 unsigned int xcb_pad = 0;
5550 unsigned int xcb_align_to = 0;
5553 xcb_block_len += sizeof(xcb_glx_get_pixel_mapfv_reply_t);
5554 xcb_tmp += xcb_block_len;
5555 xcb_buffer_len += xcb_block_len;
5556 xcb_block_len = 0;
5557 /* data */
5558 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
5559 xcb_tmp += xcb_block_len;
5560 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
5561 /* insert padding */
5562 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
5563 xcb_buffer_len += xcb_block_len + xcb_pad;
5564 if (0 != xcb_pad) {
5565 xcb_tmp += xcb_pad;
5566 xcb_pad = 0;
5568 xcb_block_len = 0;
5570 return xcb_buffer_len;
5573 xcb_glx_get_pixel_mapfv_cookie_t
5574 xcb_glx_get_pixel_mapfv (xcb_connection_t *c /**< */,
5575 xcb_glx_context_tag_t context_tag /**< */,
5576 uint32_t map /**< */)
5578 static const xcb_protocol_request_t xcb_req = {
5579 /* count */ 2,
5580 /* ext */ &xcb_glx_id,
5581 /* opcode */ XCB_GLX_GET_PIXEL_MAPFV,
5582 /* isvoid */ 0
5585 struct iovec xcb_parts[4];
5586 xcb_glx_get_pixel_mapfv_cookie_t xcb_ret;
5587 xcb_glx_get_pixel_mapfv_request_t xcb_out;
5589 xcb_out.context_tag = context_tag;
5590 xcb_out.map = map;
5592 xcb_parts[2].iov_base = (char *) &xcb_out;
5593 xcb_parts[2].iov_len = sizeof(xcb_out);
5594 xcb_parts[3].iov_base = 0;
5595 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5597 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
5598 return xcb_ret;
5601 xcb_glx_get_pixel_mapfv_cookie_t
5602 xcb_glx_get_pixel_mapfv_unchecked (xcb_connection_t *c /**< */,
5603 xcb_glx_context_tag_t context_tag /**< */,
5604 uint32_t map /**< */)
5606 static const xcb_protocol_request_t xcb_req = {
5607 /* count */ 2,
5608 /* ext */ &xcb_glx_id,
5609 /* opcode */ XCB_GLX_GET_PIXEL_MAPFV,
5610 /* isvoid */ 0
5613 struct iovec xcb_parts[4];
5614 xcb_glx_get_pixel_mapfv_cookie_t xcb_ret;
5615 xcb_glx_get_pixel_mapfv_request_t xcb_out;
5617 xcb_out.context_tag = context_tag;
5618 xcb_out.map = map;
5620 xcb_parts[2].iov_base = (char *) &xcb_out;
5621 xcb_parts[2].iov_len = sizeof(xcb_out);
5622 xcb_parts[3].iov_base = 0;
5623 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5625 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5626 return xcb_ret;
5629 xcb_glx_float32_t *
5630 xcb_glx_get_pixel_mapfv_data (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */)
5632 return (xcb_glx_float32_t *) (R + 1);
5636 xcb_glx_get_pixel_mapfv_data_length (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */)
5638 return R->n;
5641 xcb_generic_iterator_t
5642 xcb_glx_get_pixel_mapfv_data_end (const xcb_glx_get_pixel_mapfv_reply_t *R /**< */)
5644 xcb_generic_iterator_t i;
5645 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
5646 i.rem = 0;
5647 i.index = (char *) i.data - (char *) R;
5648 return i;
5651 xcb_glx_get_pixel_mapfv_reply_t *
5652 xcb_glx_get_pixel_mapfv_reply (xcb_connection_t *c /**< */,
5653 xcb_glx_get_pixel_mapfv_cookie_t cookie /**< */,
5654 xcb_generic_error_t **e /**< */)
5656 return (xcb_glx_get_pixel_mapfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
5660 xcb_glx_get_pixel_mapuiv_sizeof (const void *_buffer /**< */)
5662 char *xcb_tmp = (char *)_buffer;
5663 const xcb_glx_get_pixel_mapuiv_reply_t *_aux = (xcb_glx_get_pixel_mapuiv_reply_t *)_buffer;
5664 unsigned int xcb_buffer_len = 0;
5665 unsigned int xcb_block_len = 0;
5666 unsigned int xcb_pad = 0;
5667 unsigned int xcb_align_to = 0;
5670 xcb_block_len += sizeof(xcb_glx_get_pixel_mapuiv_reply_t);
5671 xcb_tmp += xcb_block_len;
5672 xcb_buffer_len += xcb_block_len;
5673 xcb_block_len = 0;
5674 /* data */
5675 xcb_block_len += _aux->n * sizeof(uint32_t);
5676 xcb_tmp += xcb_block_len;
5677 xcb_align_to = ALIGNOF(uint32_t);
5678 /* insert padding */
5679 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
5680 xcb_buffer_len += xcb_block_len + xcb_pad;
5681 if (0 != xcb_pad) {
5682 xcb_tmp += xcb_pad;
5683 xcb_pad = 0;
5685 xcb_block_len = 0;
5687 return xcb_buffer_len;
5690 xcb_glx_get_pixel_mapuiv_cookie_t
5691 xcb_glx_get_pixel_mapuiv (xcb_connection_t *c /**< */,
5692 xcb_glx_context_tag_t context_tag /**< */,
5693 uint32_t map /**< */)
5695 static const xcb_protocol_request_t xcb_req = {
5696 /* count */ 2,
5697 /* ext */ &xcb_glx_id,
5698 /* opcode */ XCB_GLX_GET_PIXEL_MAPUIV,
5699 /* isvoid */ 0
5702 struct iovec xcb_parts[4];
5703 xcb_glx_get_pixel_mapuiv_cookie_t xcb_ret;
5704 xcb_glx_get_pixel_mapuiv_request_t xcb_out;
5706 xcb_out.context_tag = context_tag;
5707 xcb_out.map = map;
5709 xcb_parts[2].iov_base = (char *) &xcb_out;
5710 xcb_parts[2].iov_len = sizeof(xcb_out);
5711 xcb_parts[3].iov_base = 0;
5712 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5714 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
5715 return xcb_ret;
5718 xcb_glx_get_pixel_mapuiv_cookie_t
5719 xcb_glx_get_pixel_mapuiv_unchecked (xcb_connection_t *c /**< */,
5720 xcb_glx_context_tag_t context_tag /**< */,
5721 uint32_t map /**< */)
5723 static const xcb_protocol_request_t xcb_req = {
5724 /* count */ 2,
5725 /* ext */ &xcb_glx_id,
5726 /* opcode */ XCB_GLX_GET_PIXEL_MAPUIV,
5727 /* isvoid */ 0
5730 struct iovec xcb_parts[4];
5731 xcb_glx_get_pixel_mapuiv_cookie_t xcb_ret;
5732 xcb_glx_get_pixel_mapuiv_request_t xcb_out;
5734 xcb_out.context_tag = context_tag;
5735 xcb_out.map = map;
5737 xcb_parts[2].iov_base = (char *) &xcb_out;
5738 xcb_parts[2].iov_len = sizeof(xcb_out);
5739 xcb_parts[3].iov_base = 0;
5740 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5742 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5743 return xcb_ret;
5746 uint32_t *
5747 xcb_glx_get_pixel_mapuiv_data (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */)
5749 return (uint32_t *) (R + 1);
5753 xcb_glx_get_pixel_mapuiv_data_length (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */)
5755 return R->n;
5758 xcb_generic_iterator_t
5759 xcb_glx_get_pixel_mapuiv_data_end (const xcb_glx_get_pixel_mapuiv_reply_t *R /**< */)
5761 xcb_generic_iterator_t i;
5762 i.data = ((uint32_t *) (R + 1)) + (R->n);
5763 i.rem = 0;
5764 i.index = (char *) i.data - (char *) R;
5765 return i;
5768 xcb_glx_get_pixel_mapuiv_reply_t *
5769 xcb_glx_get_pixel_mapuiv_reply (xcb_connection_t *c /**< */,
5770 xcb_glx_get_pixel_mapuiv_cookie_t cookie /**< */,
5771 xcb_generic_error_t **e /**< */)
5773 return (xcb_glx_get_pixel_mapuiv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
5777 xcb_glx_get_pixel_mapusv_sizeof (const void *_buffer /**< */)
5779 char *xcb_tmp = (char *)_buffer;
5780 const xcb_glx_get_pixel_mapusv_reply_t *_aux = (xcb_glx_get_pixel_mapusv_reply_t *)_buffer;
5781 unsigned int xcb_buffer_len = 0;
5782 unsigned int xcb_block_len = 0;
5783 unsigned int xcb_pad = 0;
5784 unsigned int xcb_align_to = 0;
5787 xcb_block_len += sizeof(xcb_glx_get_pixel_mapusv_reply_t);
5788 xcb_tmp += xcb_block_len;
5789 xcb_buffer_len += xcb_block_len;
5790 xcb_block_len = 0;
5791 /* data */
5792 xcb_block_len += _aux->n * sizeof(uint16_t);
5793 xcb_tmp += xcb_block_len;
5794 xcb_align_to = ALIGNOF(uint16_t);
5795 /* insert padding */
5796 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
5797 xcb_buffer_len += xcb_block_len + xcb_pad;
5798 if (0 != xcb_pad) {
5799 xcb_tmp += xcb_pad;
5800 xcb_pad = 0;
5802 xcb_block_len = 0;
5804 return xcb_buffer_len;
5807 xcb_glx_get_pixel_mapusv_cookie_t
5808 xcb_glx_get_pixel_mapusv (xcb_connection_t *c /**< */,
5809 xcb_glx_context_tag_t context_tag /**< */,
5810 uint32_t map /**< */)
5812 static const xcb_protocol_request_t xcb_req = {
5813 /* count */ 2,
5814 /* ext */ &xcb_glx_id,
5815 /* opcode */ XCB_GLX_GET_PIXEL_MAPUSV,
5816 /* isvoid */ 0
5819 struct iovec xcb_parts[4];
5820 xcb_glx_get_pixel_mapusv_cookie_t xcb_ret;
5821 xcb_glx_get_pixel_mapusv_request_t xcb_out;
5823 xcb_out.context_tag = context_tag;
5824 xcb_out.map = map;
5826 xcb_parts[2].iov_base = (char *) &xcb_out;
5827 xcb_parts[2].iov_len = sizeof(xcb_out);
5828 xcb_parts[3].iov_base = 0;
5829 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5831 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
5832 return xcb_ret;
5835 xcb_glx_get_pixel_mapusv_cookie_t
5836 xcb_glx_get_pixel_mapusv_unchecked (xcb_connection_t *c /**< */,
5837 xcb_glx_context_tag_t context_tag /**< */,
5838 uint32_t map /**< */)
5840 static const xcb_protocol_request_t xcb_req = {
5841 /* count */ 2,
5842 /* ext */ &xcb_glx_id,
5843 /* opcode */ XCB_GLX_GET_PIXEL_MAPUSV,
5844 /* isvoid */ 0
5847 struct iovec xcb_parts[4];
5848 xcb_glx_get_pixel_mapusv_cookie_t xcb_ret;
5849 xcb_glx_get_pixel_mapusv_request_t xcb_out;
5851 xcb_out.context_tag = context_tag;
5852 xcb_out.map = map;
5854 xcb_parts[2].iov_base = (char *) &xcb_out;
5855 xcb_parts[2].iov_len = sizeof(xcb_out);
5856 xcb_parts[3].iov_base = 0;
5857 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5859 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5860 return xcb_ret;
5863 uint16_t *
5864 xcb_glx_get_pixel_mapusv_data (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */)
5866 return (uint16_t *) (R + 1);
5870 xcb_glx_get_pixel_mapusv_data_length (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */)
5872 return R->n;
5875 xcb_generic_iterator_t
5876 xcb_glx_get_pixel_mapusv_data_end (const xcb_glx_get_pixel_mapusv_reply_t *R /**< */)
5878 xcb_generic_iterator_t i;
5879 i.data = ((uint16_t *) (R + 1)) + (R->n);
5880 i.rem = 0;
5881 i.index = (char *) i.data - (char *) R;
5882 return i;
5885 xcb_glx_get_pixel_mapusv_reply_t *
5886 xcb_glx_get_pixel_mapusv_reply (xcb_connection_t *c /**< */,
5887 xcb_glx_get_pixel_mapusv_cookie_t cookie /**< */,
5888 xcb_generic_error_t **e /**< */)
5890 return (xcb_glx_get_pixel_mapusv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
5894 xcb_glx_get_polygon_stipple_sizeof (const void *_buffer /**< */)
5896 char *xcb_tmp = (char *)_buffer;
5897 const xcb_glx_get_polygon_stipple_reply_t *_aux = (xcb_glx_get_polygon_stipple_reply_t *)_buffer;
5898 unsigned int xcb_buffer_len = 0;
5899 unsigned int xcb_block_len = 0;
5900 unsigned int xcb_pad = 0;
5901 unsigned int xcb_align_to = 0;
5904 xcb_block_len += sizeof(xcb_glx_get_polygon_stipple_reply_t);
5905 xcb_tmp += xcb_block_len;
5906 xcb_buffer_len += xcb_block_len;
5907 xcb_block_len = 0;
5908 /* data */
5909 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
5910 xcb_tmp += xcb_block_len;
5911 xcb_align_to = ALIGNOF(uint8_t);
5912 /* insert padding */
5913 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
5914 xcb_buffer_len += xcb_block_len + xcb_pad;
5915 if (0 != xcb_pad) {
5916 xcb_tmp += xcb_pad;
5917 xcb_pad = 0;
5919 xcb_block_len = 0;
5921 return xcb_buffer_len;
5924 xcb_glx_get_polygon_stipple_cookie_t
5925 xcb_glx_get_polygon_stipple (xcb_connection_t *c /**< */,
5926 xcb_glx_context_tag_t context_tag /**< */,
5927 uint8_t lsb_first /**< */)
5929 static const xcb_protocol_request_t xcb_req = {
5930 /* count */ 2,
5931 /* ext */ &xcb_glx_id,
5932 /* opcode */ XCB_GLX_GET_POLYGON_STIPPLE,
5933 /* isvoid */ 0
5936 struct iovec xcb_parts[4];
5937 xcb_glx_get_polygon_stipple_cookie_t xcb_ret;
5938 xcb_glx_get_polygon_stipple_request_t xcb_out;
5940 xcb_out.context_tag = context_tag;
5941 xcb_out.lsb_first = lsb_first;
5943 xcb_parts[2].iov_base = (char *) &xcb_out;
5944 xcb_parts[2].iov_len = sizeof(xcb_out);
5945 xcb_parts[3].iov_base = 0;
5946 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5948 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
5949 return xcb_ret;
5952 xcb_glx_get_polygon_stipple_cookie_t
5953 xcb_glx_get_polygon_stipple_unchecked (xcb_connection_t *c /**< */,
5954 xcb_glx_context_tag_t context_tag /**< */,
5955 uint8_t lsb_first /**< */)
5957 static const xcb_protocol_request_t xcb_req = {
5958 /* count */ 2,
5959 /* ext */ &xcb_glx_id,
5960 /* opcode */ XCB_GLX_GET_POLYGON_STIPPLE,
5961 /* isvoid */ 0
5964 struct iovec xcb_parts[4];
5965 xcb_glx_get_polygon_stipple_cookie_t xcb_ret;
5966 xcb_glx_get_polygon_stipple_request_t xcb_out;
5968 xcb_out.context_tag = context_tag;
5969 xcb_out.lsb_first = lsb_first;
5971 xcb_parts[2].iov_base = (char *) &xcb_out;
5972 xcb_parts[2].iov_len = sizeof(xcb_out);
5973 xcb_parts[3].iov_base = 0;
5974 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
5976 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
5977 return xcb_ret;
5980 uint8_t *
5981 xcb_glx_get_polygon_stipple_data (const xcb_glx_get_polygon_stipple_reply_t *R /**< */)
5983 return (uint8_t *) (R + 1);
5987 xcb_glx_get_polygon_stipple_data_length (const xcb_glx_get_polygon_stipple_reply_t *R /**< */)
5989 return (R->length * 4);
5992 xcb_generic_iterator_t
5993 xcb_glx_get_polygon_stipple_data_end (const xcb_glx_get_polygon_stipple_reply_t *R /**< */)
5995 xcb_generic_iterator_t i;
5996 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
5997 i.rem = 0;
5998 i.index = (char *) i.data - (char *) R;
5999 return i;
6002 xcb_glx_get_polygon_stipple_reply_t *
6003 xcb_glx_get_polygon_stipple_reply (xcb_connection_t *c /**< */,
6004 xcb_glx_get_polygon_stipple_cookie_t cookie /**< */,
6005 xcb_generic_error_t **e /**< */)
6007 return (xcb_glx_get_polygon_stipple_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6011 xcb_glx_get_string_sizeof (const void *_buffer /**< */)
6013 char *xcb_tmp = (char *)_buffer;
6014 const xcb_glx_get_string_reply_t *_aux = (xcb_glx_get_string_reply_t *)_buffer;
6015 unsigned int xcb_buffer_len = 0;
6016 unsigned int xcb_block_len = 0;
6017 unsigned int xcb_pad = 0;
6018 unsigned int xcb_align_to = 0;
6021 xcb_block_len += sizeof(xcb_glx_get_string_reply_t);
6022 xcb_tmp += xcb_block_len;
6023 xcb_buffer_len += xcb_block_len;
6024 xcb_block_len = 0;
6025 /* string */
6026 xcb_block_len += _aux->n * sizeof(char);
6027 xcb_tmp += xcb_block_len;
6028 xcb_align_to = ALIGNOF(char);
6029 /* insert padding */
6030 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
6031 xcb_buffer_len += xcb_block_len + xcb_pad;
6032 if (0 != xcb_pad) {
6033 xcb_tmp += xcb_pad;
6034 xcb_pad = 0;
6036 xcb_block_len = 0;
6038 return xcb_buffer_len;
6041 xcb_glx_get_string_cookie_t
6042 xcb_glx_get_string (xcb_connection_t *c /**< */,
6043 xcb_glx_context_tag_t context_tag /**< */,
6044 uint32_t name /**< */)
6046 static const xcb_protocol_request_t xcb_req = {
6047 /* count */ 2,
6048 /* ext */ &xcb_glx_id,
6049 /* opcode */ XCB_GLX_GET_STRING,
6050 /* isvoid */ 0
6053 struct iovec xcb_parts[4];
6054 xcb_glx_get_string_cookie_t xcb_ret;
6055 xcb_glx_get_string_request_t xcb_out;
6057 xcb_out.context_tag = context_tag;
6058 xcb_out.name = name;
6060 xcb_parts[2].iov_base = (char *) &xcb_out;
6061 xcb_parts[2].iov_len = sizeof(xcb_out);
6062 xcb_parts[3].iov_base = 0;
6063 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6065 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
6066 return xcb_ret;
6069 xcb_glx_get_string_cookie_t
6070 xcb_glx_get_string_unchecked (xcb_connection_t *c /**< */,
6071 xcb_glx_context_tag_t context_tag /**< */,
6072 uint32_t name /**< */)
6074 static const xcb_protocol_request_t xcb_req = {
6075 /* count */ 2,
6076 /* ext */ &xcb_glx_id,
6077 /* opcode */ XCB_GLX_GET_STRING,
6078 /* isvoid */ 0
6081 struct iovec xcb_parts[4];
6082 xcb_glx_get_string_cookie_t xcb_ret;
6083 xcb_glx_get_string_request_t xcb_out;
6085 xcb_out.context_tag = context_tag;
6086 xcb_out.name = name;
6088 xcb_parts[2].iov_base = (char *) &xcb_out;
6089 xcb_parts[2].iov_len = sizeof(xcb_out);
6090 xcb_parts[3].iov_base = 0;
6091 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6093 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
6094 return xcb_ret;
6097 char *
6098 xcb_glx_get_string_string (const xcb_glx_get_string_reply_t *R /**< */)
6100 return (char *) (R + 1);
6104 xcb_glx_get_string_string_length (const xcb_glx_get_string_reply_t *R /**< */)
6106 return R->n;
6109 xcb_generic_iterator_t
6110 xcb_glx_get_string_string_end (const xcb_glx_get_string_reply_t *R /**< */)
6112 xcb_generic_iterator_t i;
6113 i.data = ((char *) (R + 1)) + (R->n);
6114 i.rem = 0;
6115 i.index = (char *) i.data - (char *) R;
6116 return i;
6119 xcb_glx_get_string_reply_t *
6120 xcb_glx_get_string_reply (xcb_connection_t *c /**< */,
6121 xcb_glx_get_string_cookie_t cookie /**< */,
6122 xcb_generic_error_t **e /**< */)
6124 return (xcb_glx_get_string_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6128 xcb_glx_get_tex_envfv_sizeof (const void *_buffer /**< */)
6130 char *xcb_tmp = (char *)_buffer;
6131 const xcb_glx_get_tex_envfv_reply_t *_aux = (xcb_glx_get_tex_envfv_reply_t *)_buffer;
6132 unsigned int xcb_buffer_len = 0;
6133 unsigned int xcb_block_len = 0;
6134 unsigned int xcb_pad = 0;
6135 unsigned int xcb_align_to = 0;
6138 xcb_block_len += sizeof(xcb_glx_get_tex_envfv_reply_t);
6139 xcb_tmp += xcb_block_len;
6140 xcb_buffer_len += xcb_block_len;
6141 xcb_block_len = 0;
6142 /* data */
6143 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
6144 xcb_tmp += xcb_block_len;
6145 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
6146 /* insert padding */
6147 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
6148 xcb_buffer_len += xcb_block_len + xcb_pad;
6149 if (0 != xcb_pad) {
6150 xcb_tmp += xcb_pad;
6151 xcb_pad = 0;
6153 xcb_block_len = 0;
6155 return xcb_buffer_len;
6158 xcb_glx_get_tex_envfv_cookie_t
6159 xcb_glx_get_tex_envfv (xcb_connection_t *c /**< */,
6160 xcb_glx_context_tag_t context_tag /**< */,
6161 uint32_t target /**< */,
6162 uint32_t pname /**< */)
6164 static const xcb_protocol_request_t xcb_req = {
6165 /* count */ 2,
6166 /* ext */ &xcb_glx_id,
6167 /* opcode */ XCB_GLX_GET_TEX_ENVFV,
6168 /* isvoid */ 0
6171 struct iovec xcb_parts[4];
6172 xcb_glx_get_tex_envfv_cookie_t xcb_ret;
6173 xcb_glx_get_tex_envfv_request_t xcb_out;
6175 xcb_out.context_tag = context_tag;
6176 xcb_out.target = target;
6177 xcb_out.pname = pname;
6179 xcb_parts[2].iov_base = (char *) &xcb_out;
6180 xcb_parts[2].iov_len = sizeof(xcb_out);
6181 xcb_parts[3].iov_base = 0;
6182 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6184 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
6185 return xcb_ret;
6188 xcb_glx_get_tex_envfv_cookie_t
6189 xcb_glx_get_tex_envfv_unchecked (xcb_connection_t *c /**< */,
6190 xcb_glx_context_tag_t context_tag /**< */,
6191 uint32_t target /**< */,
6192 uint32_t pname /**< */)
6194 static const xcb_protocol_request_t xcb_req = {
6195 /* count */ 2,
6196 /* ext */ &xcb_glx_id,
6197 /* opcode */ XCB_GLX_GET_TEX_ENVFV,
6198 /* isvoid */ 0
6201 struct iovec xcb_parts[4];
6202 xcb_glx_get_tex_envfv_cookie_t xcb_ret;
6203 xcb_glx_get_tex_envfv_request_t xcb_out;
6205 xcb_out.context_tag = context_tag;
6206 xcb_out.target = target;
6207 xcb_out.pname = pname;
6209 xcb_parts[2].iov_base = (char *) &xcb_out;
6210 xcb_parts[2].iov_len = sizeof(xcb_out);
6211 xcb_parts[3].iov_base = 0;
6212 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6214 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
6215 return xcb_ret;
6218 xcb_glx_float32_t *
6219 xcb_glx_get_tex_envfv_data (const xcb_glx_get_tex_envfv_reply_t *R /**< */)
6221 return (xcb_glx_float32_t *) (R + 1);
6225 xcb_glx_get_tex_envfv_data_length (const xcb_glx_get_tex_envfv_reply_t *R /**< */)
6227 return R->n;
6230 xcb_generic_iterator_t
6231 xcb_glx_get_tex_envfv_data_end (const xcb_glx_get_tex_envfv_reply_t *R /**< */)
6233 xcb_generic_iterator_t i;
6234 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
6235 i.rem = 0;
6236 i.index = (char *) i.data - (char *) R;
6237 return i;
6240 xcb_glx_get_tex_envfv_reply_t *
6241 xcb_glx_get_tex_envfv_reply (xcb_connection_t *c /**< */,
6242 xcb_glx_get_tex_envfv_cookie_t cookie /**< */,
6243 xcb_generic_error_t **e /**< */)
6245 return (xcb_glx_get_tex_envfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6249 xcb_glx_get_tex_enviv_sizeof (const void *_buffer /**< */)
6251 char *xcb_tmp = (char *)_buffer;
6252 const xcb_glx_get_tex_enviv_reply_t *_aux = (xcb_glx_get_tex_enviv_reply_t *)_buffer;
6253 unsigned int xcb_buffer_len = 0;
6254 unsigned int xcb_block_len = 0;
6255 unsigned int xcb_pad = 0;
6256 unsigned int xcb_align_to = 0;
6259 xcb_block_len += sizeof(xcb_glx_get_tex_enviv_reply_t);
6260 xcb_tmp += xcb_block_len;
6261 xcb_buffer_len += xcb_block_len;
6262 xcb_block_len = 0;
6263 /* data */
6264 xcb_block_len += _aux->n * sizeof(int32_t);
6265 xcb_tmp += xcb_block_len;
6266 xcb_align_to = ALIGNOF(int32_t);
6267 /* insert padding */
6268 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
6269 xcb_buffer_len += xcb_block_len + xcb_pad;
6270 if (0 != xcb_pad) {
6271 xcb_tmp += xcb_pad;
6272 xcb_pad = 0;
6274 xcb_block_len = 0;
6276 return xcb_buffer_len;
6279 xcb_glx_get_tex_enviv_cookie_t
6280 xcb_glx_get_tex_enviv (xcb_connection_t *c /**< */,
6281 xcb_glx_context_tag_t context_tag /**< */,
6282 uint32_t target /**< */,
6283 uint32_t pname /**< */)
6285 static const xcb_protocol_request_t xcb_req = {
6286 /* count */ 2,
6287 /* ext */ &xcb_glx_id,
6288 /* opcode */ XCB_GLX_GET_TEX_ENVIV,
6289 /* isvoid */ 0
6292 struct iovec xcb_parts[4];
6293 xcb_glx_get_tex_enviv_cookie_t xcb_ret;
6294 xcb_glx_get_tex_enviv_request_t xcb_out;
6296 xcb_out.context_tag = context_tag;
6297 xcb_out.target = target;
6298 xcb_out.pname = pname;
6300 xcb_parts[2].iov_base = (char *) &xcb_out;
6301 xcb_parts[2].iov_len = sizeof(xcb_out);
6302 xcb_parts[3].iov_base = 0;
6303 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6305 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
6306 return xcb_ret;
6309 xcb_glx_get_tex_enviv_cookie_t
6310 xcb_glx_get_tex_enviv_unchecked (xcb_connection_t *c /**< */,
6311 xcb_glx_context_tag_t context_tag /**< */,
6312 uint32_t target /**< */,
6313 uint32_t pname /**< */)
6315 static const xcb_protocol_request_t xcb_req = {
6316 /* count */ 2,
6317 /* ext */ &xcb_glx_id,
6318 /* opcode */ XCB_GLX_GET_TEX_ENVIV,
6319 /* isvoid */ 0
6322 struct iovec xcb_parts[4];
6323 xcb_glx_get_tex_enviv_cookie_t xcb_ret;
6324 xcb_glx_get_tex_enviv_request_t xcb_out;
6326 xcb_out.context_tag = context_tag;
6327 xcb_out.target = target;
6328 xcb_out.pname = pname;
6330 xcb_parts[2].iov_base = (char *) &xcb_out;
6331 xcb_parts[2].iov_len = sizeof(xcb_out);
6332 xcb_parts[3].iov_base = 0;
6333 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6335 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
6336 return xcb_ret;
6339 int32_t *
6340 xcb_glx_get_tex_enviv_data (const xcb_glx_get_tex_enviv_reply_t *R /**< */)
6342 return (int32_t *) (R + 1);
6346 xcb_glx_get_tex_enviv_data_length (const xcb_glx_get_tex_enviv_reply_t *R /**< */)
6348 return R->n;
6351 xcb_generic_iterator_t
6352 xcb_glx_get_tex_enviv_data_end (const xcb_glx_get_tex_enviv_reply_t *R /**< */)
6354 xcb_generic_iterator_t i;
6355 i.data = ((int32_t *) (R + 1)) + (R->n);
6356 i.rem = 0;
6357 i.index = (char *) i.data - (char *) R;
6358 return i;
6361 xcb_glx_get_tex_enviv_reply_t *
6362 xcb_glx_get_tex_enviv_reply (xcb_connection_t *c /**< */,
6363 xcb_glx_get_tex_enviv_cookie_t cookie /**< */,
6364 xcb_generic_error_t **e /**< */)
6366 return (xcb_glx_get_tex_enviv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6370 xcb_glx_get_tex_gendv_sizeof (const void *_buffer /**< */)
6372 char *xcb_tmp = (char *)_buffer;
6373 const xcb_glx_get_tex_gendv_reply_t *_aux = (xcb_glx_get_tex_gendv_reply_t *)_buffer;
6374 unsigned int xcb_buffer_len = 0;
6375 unsigned int xcb_block_len = 0;
6376 unsigned int xcb_pad = 0;
6377 unsigned int xcb_align_to = 0;
6380 xcb_block_len += sizeof(xcb_glx_get_tex_gendv_reply_t);
6381 xcb_tmp += xcb_block_len;
6382 xcb_buffer_len += xcb_block_len;
6383 xcb_block_len = 0;
6384 /* data */
6385 xcb_block_len += _aux->n * sizeof(xcb_glx_float64_t);
6386 xcb_tmp += xcb_block_len;
6387 xcb_align_to = ALIGNOF(xcb_glx_float64_t);
6388 /* insert padding */
6389 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
6390 xcb_buffer_len += xcb_block_len + xcb_pad;
6391 if (0 != xcb_pad) {
6392 xcb_tmp += xcb_pad;
6393 xcb_pad = 0;
6395 xcb_block_len = 0;
6397 return xcb_buffer_len;
6400 xcb_glx_get_tex_gendv_cookie_t
6401 xcb_glx_get_tex_gendv (xcb_connection_t *c /**< */,
6402 xcb_glx_context_tag_t context_tag /**< */,
6403 uint32_t coord /**< */,
6404 uint32_t pname /**< */)
6406 static const xcb_protocol_request_t xcb_req = {
6407 /* count */ 2,
6408 /* ext */ &xcb_glx_id,
6409 /* opcode */ XCB_GLX_GET_TEX_GENDV,
6410 /* isvoid */ 0
6413 struct iovec xcb_parts[4];
6414 xcb_glx_get_tex_gendv_cookie_t xcb_ret;
6415 xcb_glx_get_tex_gendv_request_t xcb_out;
6417 xcb_out.context_tag = context_tag;
6418 xcb_out.coord = coord;
6419 xcb_out.pname = pname;
6421 xcb_parts[2].iov_base = (char *) &xcb_out;
6422 xcb_parts[2].iov_len = sizeof(xcb_out);
6423 xcb_parts[3].iov_base = 0;
6424 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6426 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
6427 return xcb_ret;
6430 xcb_glx_get_tex_gendv_cookie_t
6431 xcb_glx_get_tex_gendv_unchecked (xcb_connection_t *c /**< */,
6432 xcb_glx_context_tag_t context_tag /**< */,
6433 uint32_t coord /**< */,
6434 uint32_t pname /**< */)
6436 static const xcb_protocol_request_t xcb_req = {
6437 /* count */ 2,
6438 /* ext */ &xcb_glx_id,
6439 /* opcode */ XCB_GLX_GET_TEX_GENDV,
6440 /* isvoid */ 0
6443 struct iovec xcb_parts[4];
6444 xcb_glx_get_tex_gendv_cookie_t xcb_ret;
6445 xcb_glx_get_tex_gendv_request_t xcb_out;
6447 xcb_out.context_tag = context_tag;
6448 xcb_out.coord = coord;
6449 xcb_out.pname = pname;
6451 xcb_parts[2].iov_base = (char *) &xcb_out;
6452 xcb_parts[2].iov_len = sizeof(xcb_out);
6453 xcb_parts[3].iov_base = 0;
6454 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6456 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
6457 return xcb_ret;
6460 xcb_glx_float64_t *
6461 xcb_glx_get_tex_gendv_data (const xcb_glx_get_tex_gendv_reply_t *R /**< */)
6463 return (xcb_glx_float64_t *) (R + 1);
6467 xcb_glx_get_tex_gendv_data_length (const xcb_glx_get_tex_gendv_reply_t *R /**< */)
6469 return R->n;
6472 xcb_generic_iterator_t
6473 xcb_glx_get_tex_gendv_data_end (const xcb_glx_get_tex_gendv_reply_t *R /**< */)
6475 xcb_generic_iterator_t i;
6476 i.data = ((xcb_glx_float64_t *) (R + 1)) + (R->n);
6477 i.rem = 0;
6478 i.index = (char *) i.data - (char *) R;
6479 return i;
6482 xcb_glx_get_tex_gendv_reply_t *
6483 xcb_glx_get_tex_gendv_reply (xcb_connection_t *c /**< */,
6484 xcb_glx_get_tex_gendv_cookie_t cookie /**< */,
6485 xcb_generic_error_t **e /**< */)
6487 return (xcb_glx_get_tex_gendv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6491 xcb_glx_get_tex_genfv_sizeof (const void *_buffer /**< */)
6493 char *xcb_tmp = (char *)_buffer;
6494 const xcb_glx_get_tex_genfv_reply_t *_aux = (xcb_glx_get_tex_genfv_reply_t *)_buffer;
6495 unsigned int xcb_buffer_len = 0;
6496 unsigned int xcb_block_len = 0;
6497 unsigned int xcb_pad = 0;
6498 unsigned int xcb_align_to = 0;
6501 xcb_block_len += sizeof(xcb_glx_get_tex_genfv_reply_t);
6502 xcb_tmp += xcb_block_len;
6503 xcb_buffer_len += xcb_block_len;
6504 xcb_block_len = 0;
6505 /* data */
6506 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
6507 xcb_tmp += xcb_block_len;
6508 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
6509 /* insert padding */
6510 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
6511 xcb_buffer_len += xcb_block_len + xcb_pad;
6512 if (0 != xcb_pad) {
6513 xcb_tmp += xcb_pad;
6514 xcb_pad = 0;
6516 xcb_block_len = 0;
6518 return xcb_buffer_len;
6521 xcb_glx_get_tex_genfv_cookie_t
6522 xcb_glx_get_tex_genfv (xcb_connection_t *c /**< */,
6523 xcb_glx_context_tag_t context_tag /**< */,
6524 uint32_t coord /**< */,
6525 uint32_t pname /**< */)
6527 static const xcb_protocol_request_t xcb_req = {
6528 /* count */ 2,
6529 /* ext */ &xcb_glx_id,
6530 /* opcode */ XCB_GLX_GET_TEX_GENFV,
6531 /* isvoid */ 0
6534 struct iovec xcb_parts[4];
6535 xcb_glx_get_tex_genfv_cookie_t xcb_ret;
6536 xcb_glx_get_tex_genfv_request_t xcb_out;
6538 xcb_out.context_tag = context_tag;
6539 xcb_out.coord = coord;
6540 xcb_out.pname = pname;
6542 xcb_parts[2].iov_base = (char *) &xcb_out;
6543 xcb_parts[2].iov_len = sizeof(xcb_out);
6544 xcb_parts[3].iov_base = 0;
6545 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6547 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
6548 return xcb_ret;
6551 xcb_glx_get_tex_genfv_cookie_t
6552 xcb_glx_get_tex_genfv_unchecked (xcb_connection_t *c /**< */,
6553 xcb_glx_context_tag_t context_tag /**< */,
6554 uint32_t coord /**< */,
6555 uint32_t pname /**< */)
6557 static const xcb_protocol_request_t xcb_req = {
6558 /* count */ 2,
6559 /* ext */ &xcb_glx_id,
6560 /* opcode */ XCB_GLX_GET_TEX_GENFV,
6561 /* isvoid */ 0
6564 struct iovec xcb_parts[4];
6565 xcb_glx_get_tex_genfv_cookie_t xcb_ret;
6566 xcb_glx_get_tex_genfv_request_t xcb_out;
6568 xcb_out.context_tag = context_tag;
6569 xcb_out.coord = coord;
6570 xcb_out.pname = pname;
6572 xcb_parts[2].iov_base = (char *) &xcb_out;
6573 xcb_parts[2].iov_len = sizeof(xcb_out);
6574 xcb_parts[3].iov_base = 0;
6575 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6577 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
6578 return xcb_ret;
6581 xcb_glx_float32_t *
6582 xcb_glx_get_tex_genfv_data (const xcb_glx_get_tex_genfv_reply_t *R /**< */)
6584 return (xcb_glx_float32_t *) (R + 1);
6588 xcb_glx_get_tex_genfv_data_length (const xcb_glx_get_tex_genfv_reply_t *R /**< */)
6590 return R->n;
6593 xcb_generic_iterator_t
6594 xcb_glx_get_tex_genfv_data_end (const xcb_glx_get_tex_genfv_reply_t *R /**< */)
6596 xcb_generic_iterator_t i;
6597 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
6598 i.rem = 0;
6599 i.index = (char *) i.data - (char *) R;
6600 return i;
6603 xcb_glx_get_tex_genfv_reply_t *
6604 xcb_glx_get_tex_genfv_reply (xcb_connection_t *c /**< */,
6605 xcb_glx_get_tex_genfv_cookie_t cookie /**< */,
6606 xcb_generic_error_t **e /**< */)
6608 return (xcb_glx_get_tex_genfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6612 xcb_glx_get_tex_geniv_sizeof (const void *_buffer /**< */)
6614 char *xcb_tmp = (char *)_buffer;
6615 const xcb_glx_get_tex_geniv_reply_t *_aux = (xcb_glx_get_tex_geniv_reply_t *)_buffer;
6616 unsigned int xcb_buffer_len = 0;
6617 unsigned int xcb_block_len = 0;
6618 unsigned int xcb_pad = 0;
6619 unsigned int xcb_align_to = 0;
6622 xcb_block_len += sizeof(xcb_glx_get_tex_geniv_reply_t);
6623 xcb_tmp += xcb_block_len;
6624 xcb_buffer_len += xcb_block_len;
6625 xcb_block_len = 0;
6626 /* data */
6627 xcb_block_len += _aux->n * sizeof(int32_t);
6628 xcb_tmp += xcb_block_len;
6629 xcb_align_to = ALIGNOF(int32_t);
6630 /* insert padding */
6631 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
6632 xcb_buffer_len += xcb_block_len + xcb_pad;
6633 if (0 != xcb_pad) {
6634 xcb_tmp += xcb_pad;
6635 xcb_pad = 0;
6637 xcb_block_len = 0;
6639 return xcb_buffer_len;
6642 xcb_glx_get_tex_geniv_cookie_t
6643 xcb_glx_get_tex_geniv (xcb_connection_t *c /**< */,
6644 xcb_glx_context_tag_t context_tag /**< */,
6645 uint32_t coord /**< */,
6646 uint32_t pname /**< */)
6648 static const xcb_protocol_request_t xcb_req = {
6649 /* count */ 2,
6650 /* ext */ &xcb_glx_id,
6651 /* opcode */ XCB_GLX_GET_TEX_GENIV,
6652 /* isvoid */ 0
6655 struct iovec xcb_parts[4];
6656 xcb_glx_get_tex_geniv_cookie_t xcb_ret;
6657 xcb_glx_get_tex_geniv_request_t xcb_out;
6659 xcb_out.context_tag = context_tag;
6660 xcb_out.coord = coord;
6661 xcb_out.pname = pname;
6663 xcb_parts[2].iov_base = (char *) &xcb_out;
6664 xcb_parts[2].iov_len = sizeof(xcb_out);
6665 xcb_parts[3].iov_base = 0;
6666 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6668 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
6669 return xcb_ret;
6672 xcb_glx_get_tex_geniv_cookie_t
6673 xcb_glx_get_tex_geniv_unchecked (xcb_connection_t *c /**< */,
6674 xcb_glx_context_tag_t context_tag /**< */,
6675 uint32_t coord /**< */,
6676 uint32_t pname /**< */)
6678 static const xcb_protocol_request_t xcb_req = {
6679 /* count */ 2,
6680 /* ext */ &xcb_glx_id,
6681 /* opcode */ XCB_GLX_GET_TEX_GENIV,
6682 /* isvoid */ 0
6685 struct iovec xcb_parts[4];
6686 xcb_glx_get_tex_geniv_cookie_t xcb_ret;
6687 xcb_glx_get_tex_geniv_request_t xcb_out;
6689 xcb_out.context_tag = context_tag;
6690 xcb_out.coord = coord;
6691 xcb_out.pname = pname;
6693 xcb_parts[2].iov_base = (char *) &xcb_out;
6694 xcb_parts[2].iov_len = sizeof(xcb_out);
6695 xcb_parts[3].iov_base = 0;
6696 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6698 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
6699 return xcb_ret;
6702 int32_t *
6703 xcb_glx_get_tex_geniv_data (const xcb_glx_get_tex_geniv_reply_t *R /**< */)
6705 return (int32_t *) (R + 1);
6709 xcb_glx_get_tex_geniv_data_length (const xcb_glx_get_tex_geniv_reply_t *R /**< */)
6711 return R->n;
6714 xcb_generic_iterator_t
6715 xcb_glx_get_tex_geniv_data_end (const xcb_glx_get_tex_geniv_reply_t *R /**< */)
6717 xcb_generic_iterator_t i;
6718 i.data = ((int32_t *) (R + 1)) + (R->n);
6719 i.rem = 0;
6720 i.index = (char *) i.data - (char *) R;
6721 return i;
6724 xcb_glx_get_tex_geniv_reply_t *
6725 xcb_glx_get_tex_geniv_reply (xcb_connection_t *c /**< */,
6726 xcb_glx_get_tex_geniv_cookie_t cookie /**< */,
6727 xcb_generic_error_t **e /**< */)
6729 return (xcb_glx_get_tex_geniv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6733 xcb_glx_get_tex_image_sizeof (const void *_buffer /**< */)
6735 char *xcb_tmp = (char *)_buffer;
6736 const xcb_glx_get_tex_image_reply_t *_aux = (xcb_glx_get_tex_image_reply_t *)_buffer;
6737 unsigned int xcb_buffer_len = 0;
6738 unsigned int xcb_block_len = 0;
6739 unsigned int xcb_pad = 0;
6740 unsigned int xcb_align_to = 0;
6743 xcb_block_len += sizeof(xcb_glx_get_tex_image_reply_t);
6744 xcb_tmp += xcb_block_len;
6745 xcb_buffer_len += xcb_block_len;
6746 xcb_block_len = 0;
6747 /* data */
6748 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
6749 xcb_tmp += xcb_block_len;
6750 xcb_align_to = ALIGNOF(uint8_t);
6751 /* insert padding */
6752 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
6753 xcb_buffer_len += xcb_block_len + xcb_pad;
6754 if (0 != xcb_pad) {
6755 xcb_tmp += xcb_pad;
6756 xcb_pad = 0;
6758 xcb_block_len = 0;
6760 return xcb_buffer_len;
6763 xcb_glx_get_tex_image_cookie_t
6764 xcb_glx_get_tex_image (xcb_connection_t *c /**< */,
6765 xcb_glx_context_tag_t context_tag /**< */,
6766 uint32_t target /**< */,
6767 int32_t level /**< */,
6768 uint32_t format /**< */,
6769 uint32_t type /**< */,
6770 uint8_t swap_bytes /**< */)
6772 static const xcb_protocol_request_t xcb_req = {
6773 /* count */ 2,
6774 /* ext */ &xcb_glx_id,
6775 /* opcode */ XCB_GLX_GET_TEX_IMAGE,
6776 /* isvoid */ 0
6779 struct iovec xcb_parts[4];
6780 xcb_glx_get_tex_image_cookie_t xcb_ret;
6781 xcb_glx_get_tex_image_request_t xcb_out;
6783 xcb_out.context_tag = context_tag;
6784 xcb_out.target = target;
6785 xcb_out.level = level;
6786 xcb_out.format = format;
6787 xcb_out.type = type;
6788 xcb_out.swap_bytes = swap_bytes;
6790 xcb_parts[2].iov_base = (char *) &xcb_out;
6791 xcb_parts[2].iov_len = sizeof(xcb_out);
6792 xcb_parts[3].iov_base = 0;
6793 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6795 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
6796 return xcb_ret;
6799 xcb_glx_get_tex_image_cookie_t
6800 xcb_glx_get_tex_image_unchecked (xcb_connection_t *c /**< */,
6801 xcb_glx_context_tag_t context_tag /**< */,
6802 uint32_t target /**< */,
6803 int32_t level /**< */,
6804 uint32_t format /**< */,
6805 uint32_t type /**< */,
6806 uint8_t swap_bytes /**< */)
6808 static const xcb_protocol_request_t xcb_req = {
6809 /* count */ 2,
6810 /* ext */ &xcb_glx_id,
6811 /* opcode */ XCB_GLX_GET_TEX_IMAGE,
6812 /* isvoid */ 0
6815 struct iovec xcb_parts[4];
6816 xcb_glx_get_tex_image_cookie_t xcb_ret;
6817 xcb_glx_get_tex_image_request_t xcb_out;
6819 xcb_out.context_tag = context_tag;
6820 xcb_out.target = target;
6821 xcb_out.level = level;
6822 xcb_out.format = format;
6823 xcb_out.type = type;
6824 xcb_out.swap_bytes = swap_bytes;
6826 xcb_parts[2].iov_base = (char *) &xcb_out;
6827 xcb_parts[2].iov_len = sizeof(xcb_out);
6828 xcb_parts[3].iov_base = 0;
6829 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6831 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
6832 return xcb_ret;
6835 uint8_t *
6836 xcb_glx_get_tex_image_data (const xcb_glx_get_tex_image_reply_t *R /**< */)
6838 return (uint8_t *) (R + 1);
6842 xcb_glx_get_tex_image_data_length (const xcb_glx_get_tex_image_reply_t *R /**< */)
6844 return (R->length * 4);
6847 xcb_generic_iterator_t
6848 xcb_glx_get_tex_image_data_end (const xcb_glx_get_tex_image_reply_t *R /**< */)
6850 xcb_generic_iterator_t i;
6851 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
6852 i.rem = 0;
6853 i.index = (char *) i.data - (char *) R;
6854 return i;
6857 xcb_glx_get_tex_image_reply_t *
6858 xcb_glx_get_tex_image_reply (xcb_connection_t *c /**< */,
6859 xcb_glx_get_tex_image_cookie_t cookie /**< */,
6860 xcb_generic_error_t **e /**< */)
6862 return (xcb_glx_get_tex_image_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6866 xcb_glx_get_tex_parameterfv_sizeof (const void *_buffer /**< */)
6868 char *xcb_tmp = (char *)_buffer;
6869 const xcb_glx_get_tex_parameterfv_reply_t *_aux = (xcb_glx_get_tex_parameterfv_reply_t *)_buffer;
6870 unsigned int xcb_buffer_len = 0;
6871 unsigned int xcb_block_len = 0;
6872 unsigned int xcb_pad = 0;
6873 unsigned int xcb_align_to = 0;
6876 xcb_block_len += sizeof(xcb_glx_get_tex_parameterfv_reply_t);
6877 xcb_tmp += xcb_block_len;
6878 xcb_buffer_len += xcb_block_len;
6879 xcb_block_len = 0;
6880 /* data */
6881 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
6882 xcb_tmp += xcb_block_len;
6883 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
6884 /* insert padding */
6885 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
6886 xcb_buffer_len += xcb_block_len + xcb_pad;
6887 if (0 != xcb_pad) {
6888 xcb_tmp += xcb_pad;
6889 xcb_pad = 0;
6891 xcb_block_len = 0;
6893 return xcb_buffer_len;
6896 xcb_glx_get_tex_parameterfv_cookie_t
6897 xcb_glx_get_tex_parameterfv (xcb_connection_t *c /**< */,
6898 xcb_glx_context_tag_t context_tag /**< */,
6899 uint32_t target /**< */,
6900 uint32_t pname /**< */)
6902 static const xcb_protocol_request_t xcb_req = {
6903 /* count */ 2,
6904 /* ext */ &xcb_glx_id,
6905 /* opcode */ XCB_GLX_GET_TEX_PARAMETERFV,
6906 /* isvoid */ 0
6909 struct iovec xcb_parts[4];
6910 xcb_glx_get_tex_parameterfv_cookie_t xcb_ret;
6911 xcb_glx_get_tex_parameterfv_request_t xcb_out;
6913 xcb_out.context_tag = context_tag;
6914 xcb_out.target = target;
6915 xcb_out.pname = pname;
6917 xcb_parts[2].iov_base = (char *) &xcb_out;
6918 xcb_parts[2].iov_len = sizeof(xcb_out);
6919 xcb_parts[3].iov_base = 0;
6920 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6922 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
6923 return xcb_ret;
6926 xcb_glx_get_tex_parameterfv_cookie_t
6927 xcb_glx_get_tex_parameterfv_unchecked (xcb_connection_t *c /**< */,
6928 xcb_glx_context_tag_t context_tag /**< */,
6929 uint32_t target /**< */,
6930 uint32_t pname /**< */)
6932 static const xcb_protocol_request_t xcb_req = {
6933 /* count */ 2,
6934 /* ext */ &xcb_glx_id,
6935 /* opcode */ XCB_GLX_GET_TEX_PARAMETERFV,
6936 /* isvoid */ 0
6939 struct iovec xcb_parts[4];
6940 xcb_glx_get_tex_parameterfv_cookie_t xcb_ret;
6941 xcb_glx_get_tex_parameterfv_request_t xcb_out;
6943 xcb_out.context_tag = context_tag;
6944 xcb_out.target = target;
6945 xcb_out.pname = pname;
6947 xcb_parts[2].iov_base = (char *) &xcb_out;
6948 xcb_parts[2].iov_len = sizeof(xcb_out);
6949 xcb_parts[3].iov_base = 0;
6950 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
6952 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
6953 return xcb_ret;
6956 xcb_glx_float32_t *
6957 xcb_glx_get_tex_parameterfv_data (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */)
6959 return (xcb_glx_float32_t *) (R + 1);
6963 xcb_glx_get_tex_parameterfv_data_length (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */)
6965 return R->n;
6968 xcb_generic_iterator_t
6969 xcb_glx_get_tex_parameterfv_data_end (const xcb_glx_get_tex_parameterfv_reply_t *R /**< */)
6971 xcb_generic_iterator_t i;
6972 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
6973 i.rem = 0;
6974 i.index = (char *) i.data - (char *) R;
6975 return i;
6978 xcb_glx_get_tex_parameterfv_reply_t *
6979 xcb_glx_get_tex_parameterfv_reply (xcb_connection_t *c /**< */,
6980 xcb_glx_get_tex_parameterfv_cookie_t cookie /**< */,
6981 xcb_generic_error_t **e /**< */)
6983 return (xcb_glx_get_tex_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
6987 xcb_glx_get_tex_parameteriv_sizeof (const void *_buffer /**< */)
6989 char *xcb_tmp = (char *)_buffer;
6990 const xcb_glx_get_tex_parameteriv_reply_t *_aux = (xcb_glx_get_tex_parameteriv_reply_t *)_buffer;
6991 unsigned int xcb_buffer_len = 0;
6992 unsigned int xcb_block_len = 0;
6993 unsigned int xcb_pad = 0;
6994 unsigned int xcb_align_to = 0;
6997 xcb_block_len += sizeof(xcb_glx_get_tex_parameteriv_reply_t);
6998 xcb_tmp += xcb_block_len;
6999 xcb_buffer_len += xcb_block_len;
7000 xcb_block_len = 0;
7001 /* data */
7002 xcb_block_len += _aux->n * sizeof(int32_t);
7003 xcb_tmp += xcb_block_len;
7004 xcb_align_to = ALIGNOF(int32_t);
7005 /* insert padding */
7006 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
7007 xcb_buffer_len += xcb_block_len + xcb_pad;
7008 if (0 != xcb_pad) {
7009 xcb_tmp += xcb_pad;
7010 xcb_pad = 0;
7012 xcb_block_len = 0;
7014 return xcb_buffer_len;
7017 xcb_glx_get_tex_parameteriv_cookie_t
7018 xcb_glx_get_tex_parameteriv (xcb_connection_t *c /**< */,
7019 xcb_glx_context_tag_t context_tag /**< */,
7020 uint32_t target /**< */,
7021 uint32_t pname /**< */)
7023 static const xcb_protocol_request_t xcb_req = {
7024 /* count */ 2,
7025 /* ext */ &xcb_glx_id,
7026 /* opcode */ XCB_GLX_GET_TEX_PARAMETERIV,
7027 /* isvoid */ 0
7030 struct iovec xcb_parts[4];
7031 xcb_glx_get_tex_parameteriv_cookie_t xcb_ret;
7032 xcb_glx_get_tex_parameteriv_request_t xcb_out;
7034 xcb_out.context_tag = context_tag;
7035 xcb_out.target = target;
7036 xcb_out.pname = pname;
7038 xcb_parts[2].iov_base = (char *) &xcb_out;
7039 xcb_parts[2].iov_len = sizeof(xcb_out);
7040 xcb_parts[3].iov_base = 0;
7041 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7043 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7044 return xcb_ret;
7047 xcb_glx_get_tex_parameteriv_cookie_t
7048 xcb_glx_get_tex_parameteriv_unchecked (xcb_connection_t *c /**< */,
7049 xcb_glx_context_tag_t context_tag /**< */,
7050 uint32_t target /**< */,
7051 uint32_t pname /**< */)
7053 static const xcb_protocol_request_t xcb_req = {
7054 /* count */ 2,
7055 /* ext */ &xcb_glx_id,
7056 /* opcode */ XCB_GLX_GET_TEX_PARAMETERIV,
7057 /* isvoid */ 0
7060 struct iovec xcb_parts[4];
7061 xcb_glx_get_tex_parameteriv_cookie_t xcb_ret;
7062 xcb_glx_get_tex_parameteriv_request_t xcb_out;
7064 xcb_out.context_tag = context_tag;
7065 xcb_out.target = target;
7066 xcb_out.pname = pname;
7068 xcb_parts[2].iov_base = (char *) &xcb_out;
7069 xcb_parts[2].iov_len = sizeof(xcb_out);
7070 xcb_parts[3].iov_base = 0;
7071 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7073 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7074 return xcb_ret;
7077 int32_t *
7078 xcb_glx_get_tex_parameteriv_data (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */)
7080 return (int32_t *) (R + 1);
7084 xcb_glx_get_tex_parameteriv_data_length (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */)
7086 return R->n;
7089 xcb_generic_iterator_t
7090 xcb_glx_get_tex_parameteriv_data_end (const xcb_glx_get_tex_parameteriv_reply_t *R /**< */)
7092 xcb_generic_iterator_t i;
7093 i.data = ((int32_t *) (R + 1)) + (R->n);
7094 i.rem = 0;
7095 i.index = (char *) i.data - (char *) R;
7096 return i;
7099 xcb_glx_get_tex_parameteriv_reply_t *
7100 xcb_glx_get_tex_parameteriv_reply (xcb_connection_t *c /**< */,
7101 xcb_glx_get_tex_parameteriv_cookie_t cookie /**< */,
7102 xcb_generic_error_t **e /**< */)
7104 return (xcb_glx_get_tex_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
7108 xcb_glx_get_tex_level_parameterfv_sizeof (const void *_buffer /**< */)
7110 char *xcb_tmp = (char *)_buffer;
7111 const xcb_glx_get_tex_level_parameterfv_reply_t *_aux = (xcb_glx_get_tex_level_parameterfv_reply_t *)_buffer;
7112 unsigned int xcb_buffer_len = 0;
7113 unsigned int xcb_block_len = 0;
7114 unsigned int xcb_pad = 0;
7115 unsigned int xcb_align_to = 0;
7118 xcb_block_len += sizeof(xcb_glx_get_tex_level_parameterfv_reply_t);
7119 xcb_tmp += xcb_block_len;
7120 xcb_buffer_len += xcb_block_len;
7121 xcb_block_len = 0;
7122 /* data */
7123 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
7124 xcb_tmp += xcb_block_len;
7125 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
7126 /* insert padding */
7127 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
7128 xcb_buffer_len += xcb_block_len + xcb_pad;
7129 if (0 != xcb_pad) {
7130 xcb_tmp += xcb_pad;
7131 xcb_pad = 0;
7133 xcb_block_len = 0;
7135 return xcb_buffer_len;
7138 xcb_glx_get_tex_level_parameterfv_cookie_t
7139 xcb_glx_get_tex_level_parameterfv (xcb_connection_t *c /**< */,
7140 xcb_glx_context_tag_t context_tag /**< */,
7141 uint32_t target /**< */,
7142 int32_t level /**< */,
7143 uint32_t pname /**< */)
7145 static const xcb_protocol_request_t xcb_req = {
7146 /* count */ 2,
7147 /* ext */ &xcb_glx_id,
7148 /* opcode */ XCB_GLX_GET_TEX_LEVEL_PARAMETERFV,
7149 /* isvoid */ 0
7152 struct iovec xcb_parts[4];
7153 xcb_glx_get_tex_level_parameterfv_cookie_t xcb_ret;
7154 xcb_glx_get_tex_level_parameterfv_request_t xcb_out;
7156 xcb_out.context_tag = context_tag;
7157 xcb_out.target = target;
7158 xcb_out.level = level;
7159 xcb_out.pname = pname;
7161 xcb_parts[2].iov_base = (char *) &xcb_out;
7162 xcb_parts[2].iov_len = sizeof(xcb_out);
7163 xcb_parts[3].iov_base = 0;
7164 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7166 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7167 return xcb_ret;
7170 xcb_glx_get_tex_level_parameterfv_cookie_t
7171 xcb_glx_get_tex_level_parameterfv_unchecked (xcb_connection_t *c /**< */,
7172 xcb_glx_context_tag_t context_tag /**< */,
7173 uint32_t target /**< */,
7174 int32_t level /**< */,
7175 uint32_t pname /**< */)
7177 static const xcb_protocol_request_t xcb_req = {
7178 /* count */ 2,
7179 /* ext */ &xcb_glx_id,
7180 /* opcode */ XCB_GLX_GET_TEX_LEVEL_PARAMETERFV,
7181 /* isvoid */ 0
7184 struct iovec xcb_parts[4];
7185 xcb_glx_get_tex_level_parameterfv_cookie_t xcb_ret;
7186 xcb_glx_get_tex_level_parameterfv_request_t xcb_out;
7188 xcb_out.context_tag = context_tag;
7189 xcb_out.target = target;
7190 xcb_out.level = level;
7191 xcb_out.pname = pname;
7193 xcb_parts[2].iov_base = (char *) &xcb_out;
7194 xcb_parts[2].iov_len = sizeof(xcb_out);
7195 xcb_parts[3].iov_base = 0;
7196 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7198 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7199 return xcb_ret;
7202 xcb_glx_float32_t *
7203 xcb_glx_get_tex_level_parameterfv_data (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */)
7205 return (xcb_glx_float32_t *) (R + 1);
7209 xcb_glx_get_tex_level_parameterfv_data_length (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */)
7211 return R->n;
7214 xcb_generic_iterator_t
7215 xcb_glx_get_tex_level_parameterfv_data_end (const xcb_glx_get_tex_level_parameterfv_reply_t *R /**< */)
7217 xcb_generic_iterator_t i;
7218 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
7219 i.rem = 0;
7220 i.index = (char *) i.data - (char *) R;
7221 return i;
7224 xcb_glx_get_tex_level_parameterfv_reply_t *
7225 xcb_glx_get_tex_level_parameterfv_reply (xcb_connection_t *c /**< */,
7226 xcb_glx_get_tex_level_parameterfv_cookie_t cookie /**< */,
7227 xcb_generic_error_t **e /**< */)
7229 return (xcb_glx_get_tex_level_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
7233 xcb_glx_get_tex_level_parameteriv_sizeof (const void *_buffer /**< */)
7235 char *xcb_tmp = (char *)_buffer;
7236 const xcb_glx_get_tex_level_parameteriv_reply_t *_aux = (xcb_glx_get_tex_level_parameteriv_reply_t *)_buffer;
7237 unsigned int xcb_buffer_len = 0;
7238 unsigned int xcb_block_len = 0;
7239 unsigned int xcb_pad = 0;
7240 unsigned int xcb_align_to = 0;
7243 xcb_block_len += sizeof(xcb_glx_get_tex_level_parameteriv_reply_t);
7244 xcb_tmp += xcb_block_len;
7245 xcb_buffer_len += xcb_block_len;
7246 xcb_block_len = 0;
7247 /* data */
7248 xcb_block_len += _aux->n * sizeof(int32_t);
7249 xcb_tmp += xcb_block_len;
7250 xcb_align_to = ALIGNOF(int32_t);
7251 /* insert padding */
7252 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
7253 xcb_buffer_len += xcb_block_len + xcb_pad;
7254 if (0 != xcb_pad) {
7255 xcb_tmp += xcb_pad;
7256 xcb_pad = 0;
7258 xcb_block_len = 0;
7260 return xcb_buffer_len;
7263 xcb_glx_get_tex_level_parameteriv_cookie_t
7264 xcb_glx_get_tex_level_parameteriv (xcb_connection_t *c /**< */,
7265 xcb_glx_context_tag_t context_tag /**< */,
7266 uint32_t target /**< */,
7267 int32_t level /**< */,
7268 uint32_t pname /**< */)
7270 static const xcb_protocol_request_t xcb_req = {
7271 /* count */ 2,
7272 /* ext */ &xcb_glx_id,
7273 /* opcode */ XCB_GLX_GET_TEX_LEVEL_PARAMETERIV,
7274 /* isvoid */ 0
7277 struct iovec xcb_parts[4];
7278 xcb_glx_get_tex_level_parameteriv_cookie_t xcb_ret;
7279 xcb_glx_get_tex_level_parameteriv_request_t xcb_out;
7281 xcb_out.context_tag = context_tag;
7282 xcb_out.target = target;
7283 xcb_out.level = level;
7284 xcb_out.pname = pname;
7286 xcb_parts[2].iov_base = (char *) &xcb_out;
7287 xcb_parts[2].iov_len = sizeof(xcb_out);
7288 xcb_parts[3].iov_base = 0;
7289 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7291 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7292 return xcb_ret;
7295 xcb_glx_get_tex_level_parameteriv_cookie_t
7296 xcb_glx_get_tex_level_parameteriv_unchecked (xcb_connection_t *c /**< */,
7297 xcb_glx_context_tag_t context_tag /**< */,
7298 uint32_t target /**< */,
7299 int32_t level /**< */,
7300 uint32_t pname /**< */)
7302 static const xcb_protocol_request_t xcb_req = {
7303 /* count */ 2,
7304 /* ext */ &xcb_glx_id,
7305 /* opcode */ XCB_GLX_GET_TEX_LEVEL_PARAMETERIV,
7306 /* isvoid */ 0
7309 struct iovec xcb_parts[4];
7310 xcb_glx_get_tex_level_parameteriv_cookie_t xcb_ret;
7311 xcb_glx_get_tex_level_parameteriv_request_t xcb_out;
7313 xcb_out.context_tag = context_tag;
7314 xcb_out.target = target;
7315 xcb_out.level = level;
7316 xcb_out.pname = pname;
7318 xcb_parts[2].iov_base = (char *) &xcb_out;
7319 xcb_parts[2].iov_len = sizeof(xcb_out);
7320 xcb_parts[3].iov_base = 0;
7321 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7323 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7324 return xcb_ret;
7327 int32_t *
7328 xcb_glx_get_tex_level_parameteriv_data (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */)
7330 return (int32_t *) (R + 1);
7334 xcb_glx_get_tex_level_parameteriv_data_length (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */)
7336 return R->n;
7339 xcb_generic_iterator_t
7340 xcb_glx_get_tex_level_parameteriv_data_end (const xcb_glx_get_tex_level_parameteriv_reply_t *R /**< */)
7342 xcb_generic_iterator_t i;
7343 i.data = ((int32_t *) (R + 1)) + (R->n);
7344 i.rem = 0;
7345 i.index = (char *) i.data - (char *) R;
7346 return i;
7349 xcb_glx_get_tex_level_parameteriv_reply_t *
7350 xcb_glx_get_tex_level_parameteriv_reply (xcb_connection_t *c /**< */,
7351 xcb_glx_get_tex_level_parameteriv_cookie_t cookie /**< */,
7352 xcb_generic_error_t **e /**< */)
7354 return (xcb_glx_get_tex_level_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
7357 xcb_glx_is_list_cookie_t
7358 xcb_glx_is_list (xcb_connection_t *c /**< */,
7359 xcb_glx_context_tag_t context_tag /**< */,
7360 uint32_t list /**< */)
7362 static const xcb_protocol_request_t xcb_req = {
7363 /* count */ 2,
7364 /* ext */ &xcb_glx_id,
7365 /* opcode */ XCB_GLX_IS_LIST,
7366 /* isvoid */ 0
7369 struct iovec xcb_parts[4];
7370 xcb_glx_is_list_cookie_t xcb_ret;
7371 xcb_glx_is_list_request_t xcb_out;
7373 xcb_out.context_tag = context_tag;
7374 xcb_out.list = list;
7376 xcb_parts[2].iov_base = (char *) &xcb_out;
7377 xcb_parts[2].iov_len = sizeof(xcb_out);
7378 xcb_parts[3].iov_base = 0;
7379 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7381 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7382 return xcb_ret;
7385 xcb_glx_is_list_cookie_t
7386 xcb_glx_is_list_unchecked (xcb_connection_t *c /**< */,
7387 xcb_glx_context_tag_t context_tag /**< */,
7388 uint32_t list /**< */)
7390 static const xcb_protocol_request_t xcb_req = {
7391 /* count */ 2,
7392 /* ext */ &xcb_glx_id,
7393 /* opcode */ XCB_GLX_IS_LIST,
7394 /* isvoid */ 0
7397 struct iovec xcb_parts[4];
7398 xcb_glx_is_list_cookie_t xcb_ret;
7399 xcb_glx_is_list_request_t xcb_out;
7401 xcb_out.context_tag = context_tag;
7402 xcb_out.list = list;
7404 xcb_parts[2].iov_base = (char *) &xcb_out;
7405 xcb_parts[2].iov_len = sizeof(xcb_out);
7406 xcb_parts[3].iov_base = 0;
7407 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7409 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7410 return xcb_ret;
7413 xcb_glx_is_list_reply_t *
7414 xcb_glx_is_list_reply (xcb_connection_t *c /**< */,
7415 xcb_glx_is_list_cookie_t cookie /**< */,
7416 xcb_generic_error_t **e /**< */)
7418 return (xcb_glx_is_list_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
7421 xcb_void_cookie_t
7422 xcb_glx_flush_checked (xcb_connection_t *c /**< */,
7423 xcb_glx_context_tag_t context_tag /**< */)
7425 static const xcb_protocol_request_t xcb_req = {
7426 /* count */ 2,
7427 /* ext */ &xcb_glx_id,
7428 /* opcode */ XCB_GLX_FLUSH,
7429 /* isvoid */ 1
7432 struct iovec xcb_parts[4];
7433 xcb_void_cookie_t xcb_ret;
7434 xcb_glx_flush_request_t xcb_out;
7436 xcb_out.context_tag = context_tag;
7438 xcb_parts[2].iov_base = (char *) &xcb_out;
7439 xcb_parts[2].iov_len = sizeof(xcb_out);
7440 xcb_parts[3].iov_base = 0;
7441 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7443 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7444 return xcb_ret;
7447 xcb_void_cookie_t
7448 xcb_glx_flush (xcb_connection_t *c /**< */,
7449 xcb_glx_context_tag_t context_tag /**< */)
7451 static const xcb_protocol_request_t xcb_req = {
7452 /* count */ 2,
7453 /* ext */ &xcb_glx_id,
7454 /* opcode */ XCB_GLX_FLUSH,
7455 /* isvoid */ 1
7458 struct iovec xcb_parts[4];
7459 xcb_void_cookie_t xcb_ret;
7460 xcb_glx_flush_request_t xcb_out;
7462 xcb_out.context_tag = context_tag;
7464 xcb_parts[2].iov_base = (char *) &xcb_out;
7465 xcb_parts[2].iov_len = sizeof(xcb_out);
7466 xcb_parts[3].iov_base = 0;
7467 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7469 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7470 return xcb_ret;
7474 xcb_glx_are_textures_resident_sizeof (const void *_buffer /**< */)
7476 char *xcb_tmp = (char *)_buffer;
7477 const xcb_glx_are_textures_resident_request_t *_aux = (xcb_glx_are_textures_resident_request_t *)_buffer;
7478 unsigned int xcb_buffer_len = 0;
7479 unsigned int xcb_block_len = 0;
7480 unsigned int xcb_pad = 0;
7481 unsigned int xcb_align_to = 0;
7484 xcb_block_len += sizeof(xcb_glx_are_textures_resident_request_t);
7485 xcb_tmp += xcb_block_len;
7486 xcb_buffer_len += xcb_block_len;
7487 xcb_block_len = 0;
7488 /* textures */
7489 xcb_block_len += _aux->n * sizeof(uint32_t);
7490 xcb_tmp += xcb_block_len;
7491 xcb_align_to = ALIGNOF(uint32_t);
7492 /* insert padding */
7493 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
7494 xcb_buffer_len += xcb_block_len + xcb_pad;
7495 if (0 != xcb_pad) {
7496 xcb_tmp += xcb_pad;
7497 xcb_pad = 0;
7499 xcb_block_len = 0;
7501 return xcb_buffer_len;
7504 xcb_glx_are_textures_resident_cookie_t
7505 xcb_glx_are_textures_resident (xcb_connection_t *c /**< */,
7506 xcb_glx_context_tag_t context_tag /**< */,
7507 int32_t n /**< */,
7508 const uint32_t *textures /**< */)
7510 static const xcb_protocol_request_t xcb_req = {
7511 /* count */ 4,
7512 /* ext */ &xcb_glx_id,
7513 /* opcode */ XCB_GLX_ARE_TEXTURES_RESIDENT,
7514 /* isvoid */ 0
7517 struct iovec xcb_parts[6];
7518 xcb_glx_are_textures_resident_cookie_t xcb_ret;
7519 xcb_glx_are_textures_resident_request_t xcb_out;
7521 xcb_out.context_tag = context_tag;
7522 xcb_out.n = n;
7524 xcb_parts[2].iov_base = (char *) &xcb_out;
7525 xcb_parts[2].iov_len = sizeof(xcb_out);
7526 xcb_parts[3].iov_base = 0;
7527 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7528 /* uint32_t textures */
7529 xcb_parts[4].iov_base = (char *) textures;
7530 xcb_parts[4].iov_len = n * sizeof(xcb_glx_bool32_t);
7531 xcb_parts[5].iov_base = 0;
7532 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
7534 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7535 return xcb_ret;
7538 xcb_glx_are_textures_resident_cookie_t
7539 xcb_glx_are_textures_resident_unchecked (xcb_connection_t *c /**< */,
7540 xcb_glx_context_tag_t context_tag /**< */,
7541 int32_t n /**< */,
7542 const uint32_t *textures /**< */)
7544 static const xcb_protocol_request_t xcb_req = {
7545 /* count */ 4,
7546 /* ext */ &xcb_glx_id,
7547 /* opcode */ XCB_GLX_ARE_TEXTURES_RESIDENT,
7548 /* isvoid */ 0
7551 struct iovec xcb_parts[6];
7552 xcb_glx_are_textures_resident_cookie_t xcb_ret;
7553 xcb_glx_are_textures_resident_request_t xcb_out;
7555 xcb_out.context_tag = context_tag;
7556 xcb_out.n = n;
7558 xcb_parts[2].iov_base = (char *) &xcb_out;
7559 xcb_parts[2].iov_len = sizeof(xcb_out);
7560 xcb_parts[3].iov_base = 0;
7561 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7562 /* uint32_t textures */
7563 xcb_parts[4].iov_base = (char *) textures;
7564 xcb_parts[4].iov_len = n * sizeof(xcb_glx_bool32_t);
7565 xcb_parts[5].iov_base = 0;
7566 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
7568 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7569 return xcb_ret;
7572 uint8_t *
7573 xcb_glx_are_textures_resident_data (const xcb_glx_are_textures_resident_reply_t *R /**< */)
7575 return (uint8_t *) (R + 1);
7579 xcb_glx_are_textures_resident_data_length (const xcb_glx_are_textures_resident_reply_t *R /**< */)
7581 return (R->length * 4);
7584 xcb_generic_iterator_t
7585 xcb_glx_are_textures_resident_data_end (const xcb_glx_are_textures_resident_reply_t *R /**< */)
7587 xcb_generic_iterator_t i;
7588 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
7589 i.rem = 0;
7590 i.index = (char *) i.data - (char *) R;
7591 return i;
7594 xcb_glx_are_textures_resident_reply_t *
7595 xcb_glx_are_textures_resident_reply (xcb_connection_t *c /**< */,
7596 xcb_glx_are_textures_resident_cookie_t cookie /**< */,
7597 xcb_generic_error_t **e /**< */)
7599 return (xcb_glx_are_textures_resident_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
7603 xcb_glx_delete_textures_sizeof (const void *_buffer /**< */)
7605 char *xcb_tmp = (char *)_buffer;
7606 const xcb_glx_delete_textures_request_t *_aux = (xcb_glx_delete_textures_request_t *)_buffer;
7607 unsigned int xcb_buffer_len = 0;
7608 unsigned int xcb_block_len = 0;
7609 unsigned int xcb_pad = 0;
7610 unsigned int xcb_align_to = 0;
7613 xcb_block_len += sizeof(xcb_glx_delete_textures_request_t);
7614 xcb_tmp += xcb_block_len;
7615 xcb_buffer_len += xcb_block_len;
7616 xcb_block_len = 0;
7617 /* textures */
7618 xcb_block_len += _aux->n * sizeof(uint32_t);
7619 xcb_tmp += xcb_block_len;
7620 xcb_align_to = ALIGNOF(uint32_t);
7621 /* insert padding */
7622 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
7623 xcb_buffer_len += xcb_block_len + xcb_pad;
7624 if (0 != xcb_pad) {
7625 xcb_tmp += xcb_pad;
7626 xcb_pad = 0;
7628 xcb_block_len = 0;
7630 return xcb_buffer_len;
7633 xcb_void_cookie_t
7634 xcb_glx_delete_textures_checked (xcb_connection_t *c /**< */,
7635 xcb_glx_context_tag_t context_tag /**< */,
7636 int32_t n /**< */,
7637 const uint32_t *textures /**< */)
7639 static const xcb_protocol_request_t xcb_req = {
7640 /* count */ 4,
7641 /* ext */ &xcb_glx_id,
7642 /* opcode */ XCB_GLX_DELETE_TEXTURES,
7643 /* isvoid */ 1
7646 struct iovec xcb_parts[6];
7647 xcb_void_cookie_t xcb_ret;
7648 xcb_glx_delete_textures_request_t xcb_out;
7650 xcb_out.context_tag = context_tag;
7651 xcb_out.n = n;
7653 xcb_parts[2].iov_base = (char *) &xcb_out;
7654 xcb_parts[2].iov_len = sizeof(xcb_out);
7655 xcb_parts[3].iov_base = 0;
7656 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7657 /* uint32_t textures */
7658 xcb_parts[4].iov_base = (char *) textures;
7659 xcb_parts[4].iov_len = n * sizeof(uint32_t);
7660 xcb_parts[5].iov_base = 0;
7661 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
7663 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7664 return xcb_ret;
7667 xcb_void_cookie_t
7668 xcb_glx_delete_textures (xcb_connection_t *c /**< */,
7669 xcb_glx_context_tag_t context_tag /**< */,
7670 int32_t n /**< */,
7671 const uint32_t *textures /**< */)
7673 static const xcb_protocol_request_t xcb_req = {
7674 /* count */ 4,
7675 /* ext */ &xcb_glx_id,
7676 /* opcode */ XCB_GLX_DELETE_TEXTURES,
7677 /* isvoid */ 1
7680 struct iovec xcb_parts[6];
7681 xcb_void_cookie_t xcb_ret;
7682 xcb_glx_delete_textures_request_t xcb_out;
7684 xcb_out.context_tag = context_tag;
7685 xcb_out.n = n;
7687 xcb_parts[2].iov_base = (char *) &xcb_out;
7688 xcb_parts[2].iov_len = sizeof(xcb_out);
7689 xcb_parts[3].iov_base = 0;
7690 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7691 /* uint32_t textures */
7692 xcb_parts[4].iov_base = (char *) textures;
7693 xcb_parts[4].iov_len = n * sizeof(uint32_t);
7694 xcb_parts[5].iov_base = 0;
7695 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
7697 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7698 return xcb_ret;
7702 xcb_glx_gen_textures_sizeof (const void *_buffer /**< */)
7704 char *xcb_tmp = (char *)_buffer;
7705 const xcb_glx_gen_textures_reply_t *_aux = (xcb_glx_gen_textures_reply_t *)_buffer;
7706 unsigned int xcb_buffer_len = 0;
7707 unsigned int xcb_block_len = 0;
7708 unsigned int xcb_pad = 0;
7709 unsigned int xcb_align_to = 0;
7712 xcb_block_len += sizeof(xcb_glx_gen_textures_reply_t);
7713 xcb_tmp += xcb_block_len;
7714 xcb_buffer_len += xcb_block_len;
7715 xcb_block_len = 0;
7716 /* data */
7717 xcb_block_len += _aux->length * sizeof(uint32_t);
7718 xcb_tmp += xcb_block_len;
7719 xcb_align_to = ALIGNOF(uint32_t);
7720 /* insert padding */
7721 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
7722 xcb_buffer_len += xcb_block_len + xcb_pad;
7723 if (0 != xcb_pad) {
7724 xcb_tmp += xcb_pad;
7725 xcb_pad = 0;
7727 xcb_block_len = 0;
7729 return xcb_buffer_len;
7732 xcb_glx_gen_textures_cookie_t
7733 xcb_glx_gen_textures (xcb_connection_t *c /**< */,
7734 xcb_glx_context_tag_t context_tag /**< */,
7735 int32_t n /**< */)
7737 static const xcb_protocol_request_t xcb_req = {
7738 /* count */ 2,
7739 /* ext */ &xcb_glx_id,
7740 /* opcode */ XCB_GLX_GEN_TEXTURES,
7741 /* isvoid */ 0
7744 struct iovec xcb_parts[4];
7745 xcb_glx_gen_textures_cookie_t xcb_ret;
7746 xcb_glx_gen_textures_request_t xcb_out;
7748 xcb_out.context_tag = context_tag;
7749 xcb_out.n = n;
7751 xcb_parts[2].iov_base = (char *) &xcb_out;
7752 xcb_parts[2].iov_len = sizeof(xcb_out);
7753 xcb_parts[3].iov_base = 0;
7754 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7756 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7757 return xcb_ret;
7760 xcb_glx_gen_textures_cookie_t
7761 xcb_glx_gen_textures_unchecked (xcb_connection_t *c /**< */,
7762 xcb_glx_context_tag_t context_tag /**< */,
7763 int32_t n /**< */)
7765 static const xcb_protocol_request_t xcb_req = {
7766 /* count */ 2,
7767 /* ext */ &xcb_glx_id,
7768 /* opcode */ XCB_GLX_GEN_TEXTURES,
7769 /* isvoid */ 0
7772 struct iovec xcb_parts[4];
7773 xcb_glx_gen_textures_cookie_t xcb_ret;
7774 xcb_glx_gen_textures_request_t xcb_out;
7776 xcb_out.context_tag = context_tag;
7777 xcb_out.n = n;
7779 xcb_parts[2].iov_base = (char *) &xcb_out;
7780 xcb_parts[2].iov_len = sizeof(xcb_out);
7781 xcb_parts[3].iov_base = 0;
7782 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7784 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7785 return xcb_ret;
7788 uint32_t *
7789 xcb_glx_gen_textures_data (const xcb_glx_gen_textures_reply_t *R /**< */)
7791 return (uint32_t *) (R + 1);
7795 xcb_glx_gen_textures_data_length (const xcb_glx_gen_textures_reply_t *R /**< */)
7797 return R->length;
7800 xcb_generic_iterator_t
7801 xcb_glx_gen_textures_data_end (const xcb_glx_gen_textures_reply_t *R /**< */)
7803 xcb_generic_iterator_t i;
7804 i.data = ((uint32_t *) (R + 1)) + (R->length);
7805 i.rem = 0;
7806 i.index = (char *) i.data - (char *) R;
7807 return i;
7810 xcb_glx_gen_textures_reply_t *
7811 xcb_glx_gen_textures_reply (xcb_connection_t *c /**< */,
7812 xcb_glx_gen_textures_cookie_t cookie /**< */,
7813 xcb_generic_error_t **e /**< */)
7815 return (xcb_glx_gen_textures_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
7818 xcb_glx_is_texture_cookie_t
7819 xcb_glx_is_texture (xcb_connection_t *c /**< */,
7820 xcb_glx_context_tag_t context_tag /**< */,
7821 uint32_t texture /**< */)
7823 static const xcb_protocol_request_t xcb_req = {
7824 /* count */ 2,
7825 /* ext */ &xcb_glx_id,
7826 /* opcode */ XCB_GLX_IS_TEXTURE,
7827 /* isvoid */ 0
7830 struct iovec xcb_parts[4];
7831 xcb_glx_is_texture_cookie_t xcb_ret;
7832 xcb_glx_is_texture_request_t xcb_out;
7834 xcb_out.context_tag = context_tag;
7835 xcb_out.texture = texture;
7837 xcb_parts[2].iov_base = (char *) &xcb_out;
7838 xcb_parts[2].iov_len = sizeof(xcb_out);
7839 xcb_parts[3].iov_base = 0;
7840 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7842 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7843 return xcb_ret;
7846 xcb_glx_is_texture_cookie_t
7847 xcb_glx_is_texture_unchecked (xcb_connection_t *c /**< */,
7848 xcb_glx_context_tag_t context_tag /**< */,
7849 uint32_t texture /**< */)
7851 static const xcb_protocol_request_t xcb_req = {
7852 /* count */ 2,
7853 /* ext */ &xcb_glx_id,
7854 /* opcode */ XCB_GLX_IS_TEXTURE,
7855 /* isvoid */ 0
7858 struct iovec xcb_parts[4];
7859 xcb_glx_is_texture_cookie_t xcb_ret;
7860 xcb_glx_is_texture_request_t xcb_out;
7862 xcb_out.context_tag = context_tag;
7863 xcb_out.texture = texture;
7865 xcb_parts[2].iov_base = (char *) &xcb_out;
7866 xcb_parts[2].iov_len = sizeof(xcb_out);
7867 xcb_parts[3].iov_base = 0;
7868 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7870 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7871 return xcb_ret;
7874 xcb_glx_is_texture_reply_t *
7875 xcb_glx_is_texture_reply (xcb_connection_t *c /**< */,
7876 xcb_glx_is_texture_cookie_t cookie /**< */,
7877 xcb_generic_error_t **e /**< */)
7879 return (xcb_glx_is_texture_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
7883 xcb_glx_get_color_table_sizeof (const void *_buffer /**< */)
7885 char *xcb_tmp = (char *)_buffer;
7886 const xcb_glx_get_color_table_reply_t *_aux = (xcb_glx_get_color_table_reply_t *)_buffer;
7887 unsigned int xcb_buffer_len = 0;
7888 unsigned int xcb_block_len = 0;
7889 unsigned int xcb_pad = 0;
7890 unsigned int xcb_align_to = 0;
7893 xcb_block_len += sizeof(xcb_glx_get_color_table_reply_t);
7894 xcb_tmp += xcb_block_len;
7895 xcb_buffer_len += xcb_block_len;
7896 xcb_block_len = 0;
7897 /* data */
7898 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
7899 xcb_tmp += xcb_block_len;
7900 xcb_align_to = ALIGNOF(uint8_t);
7901 /* insert padding */
7902 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
7903 xcb_buffer_len += xcb_block_len + xcb_pad;
7904 if (0 != xcb_pad) {
7905 xcb_tmp += xcb_pad;
7906 xcb_pad = 0;
7908 xcb_block_len = 0;
7910 return xcb_buffer_len;
7913 xcb_glx_get_color_table_cookie_t
7914 xcb_glx_get_color_table (xcb_connection_t *c /**< */,
7915 xcb_glx_context_tag_t context_tag /**< */,
7916 uint32_t target /**< */,
7917 uint32_t format /**< */,
7918 uint32_t type /**< */,
7919 uint8_t swap_bytes /**< */)
7921 static const xcb_protocol_request_t xcb_req = {
7922 /* count */ 2,
7923 /* ext */ &xcb_glx_id,
7924 /* opcode */ XCB_GLX_GET_COLOR_TABLE,
7925 /* isvoid */ 0
7928 struct iovec xcb_parts[4];
7929 xcb_glx_get_color_table_cookie_t xcb_ret;
7930 xcb_glx_get_color_table_request_t xcb_out;
7932 xcb_out.context_tag = context_tag;
7933 xcb_out.target = target;
7934 xcb_out.format = format;
7935 xcb_out.type = type;
7936 xcb_out.swap_bytes = swap_bytes;
7938 xcb_parts[2].iov_base = (char *) &xcb_out;
7939 xcb_parts[2].iov_len = sizeof(xcb_out);
7940 xcb_parts[3].iov_base = 0;
7941 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7943 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
7944 return xcb_ret;
7947 xcb_glx_get_color_table_cookie_t
7948 xcb_glx_get_color_table_unchecked (xcb_connection_t *c /**< */,
7949 xcb_glx_context_tag_t context_tag /**< */,
7950 uint32_t target /**< */,
7951 uint32_t format /**< */,
7952 uint32_t type /**< */,
7953 uint8_t swap_bytes /**< */)
7955 static const xcb_protocol_request_t xcb_req = {
7956 /* count */ 2,
7957 /* ext */ &xcb_glx_id,
7958 /* opcode */ XCB_GLX_GET_COLOR_TABLE,
7959 /* isvoid */ 0
7962 struct iovec xcb_parts[4];
7963 xcb_glx_get_color_table_cookie_t xcb_ret;
7964 xcb_glx_get_color_table_request_t xcb_out;
7966 xcb_out.context_tag = context_tag;
7967 xcb_out.target = target;
7968 xcb_out.format = format;
7969 xcb_out.type = type;
7970 xcb_out.swap_bytes = swap_bytes;
7972 xcb_parts[2].iov_base = (char *) &xcb_out;
7973 xcb_parts[2].iov_len = sizeof(xcb_out);
7974 xcb_parts[3].iov_base = 0;
7975 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
7977 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
7978 return xcb_ret;
7981 uint8_t *
7982 xcb_glx_get_color_table_data (const xcb_glx_get_color_table_reply_t *R /**< */)
7984 return (uint8_t *) (R + 1);
7988 xcb_glx_get_color_table_data_length (const xcb_glx_get_color_table_reply_t *R /**< */)
7990 return (R->length * 4);
7993 xcb_generic_iterator_t
7994 xcb_glx_get_color_table_data_end (const xcb_glx_get_color_table_reply_t *R /**< */)
7996 xcb_generic_iterator_t i;
7997 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
7998 i.rem = 0;
7999 i.index = (char *) i.data - (char *) R;
8000 return i;
8003 xcb_glx_get_color_table_reply_t *
8004 xcb_glx_get_color_table_reply (xcb_connection_t *c /**< */,
8005 xcb_glx_get_color_table_cookie_t cookie /**< */,
8006 xcb_generic_error_t **e /**< */)
8008 return (xcb_glx_get_color_table_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
8012 xcb_glx_get_color_table_parameterfv_sizeof (const void *_buffer /**< */)
8014 char *xcb_tmp = (char *)_buffer;
8015 const xcb_glx_get_color_table_parameterfv_reply_t *_aux = (xcb_glx_get_color_table_parameterfv_reply_t *)_buffer;
8016 unsigned int xcb_buffer_len = 0;
8017 unsigned int xcb_block_len = 0;
8018 unsigned int xcb_pad = 0;
8019 unsigned int xcb_align_to = 0;
8022 xcb_block_len += sizeof(xcb_glx_get_color_table_parameterfv_reply_t);
8023 xcb_tmp += xcb_block_len;
8024 xcb_buffer_len += xcb_block_len;
8025 xcb_block_len = 0;
8026 /* data */
8027 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
8028 xcb_tmp += xcb_block_len;
8029 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
8030 /* insert padding */
8031 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
8032 xcb_buffer_len += xcb_block_len + xcb_pad;
8033 if (0 != xcb_pad) {
8034 xcb_tmp += xcb_pad;
8035 xcb_pad = 0;
8037 xcb_block_len = 0;
8039 return xcb_buffer_len;
8042 xcb_glx_get_color_table_parameterfv_cookie_t
8043 xcb_glx_get_color_table_parameterfv (xcb_connection_t *c /**< */,
8044 xcb_glx_context_tag_t context_tag /**< */,
8045 uint32_t target /**< */,
8046 uint32_t pname /**< */)
8048 static const xcb_protocol_request_t xcb_req = {
8049 /* count */ 2,
8050 /* ext */ &xcb_glx_id,
8051 /* opcode */ XCB_GLX_GET_COLOR_TABLE_PARAMETERFV,
8052 /* isvoid */ 0
8055 struct iovec xcb_parts[4];
8056 xcb_glx_get_color_table_parameterfv_cookie_t xcb_ret;
8057 xcb_glx_get_color_table_parameterfv_request_t xcb_out;
8059 xcb_out.context_tag = context_tag;
8060 xcb_out.target = target;
8061 xcb_out.pname = pname;
8063 xcb_parts[2].iov_base = (char *) &xcb_out;
8064 xcb_parts[2].iov_len = sizeof(xcb_out);
8065 xcb_parts[3].iov_base = 0;
8066 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8068 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
8069 return xcb_ret;
8072 xcb_glx_get_color_table_parameterfv_cookie_t
8073 xcb_glx_get_color_table_parameterfv_unchecked (xcb_connection_t *c /**< */,
8074 xcb_glx_context_tag_t context_tag /**< */,
8075 uint32_t target /**< */,
8076 uint32_t pname /**< */)
8078 static const xcb_protocol_request_t xcb_req = {
8079 /* count */ 2,
8080 /* ext */ &xcb_glx_id,
8081 /* opcode */ XCB_GLX_GET_COLOR_TABLE_PARAMETERFV,
8082 /* isvoid */ 0
8085 struct iovec xcb_parts[4];
8086 xcb_glx_get_color_table_parameterfv_cookie_t xcb_ret;
8087 xcb_glx_get_color_table_parameterfv_request_t xcb_out;
8089 xcb_out.context_tag = context_tag;
8090 xcb_out.target = target;
8091 xcb_out.pname = pname;
8093 xcb_parts[2].iov_base = (char *) &xcb_out;
8094 xcb_parts[2].iov_len = sizeof(xcb_out);
8095 xcb_parts[3].iov_base = 0;
8096 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8098 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
8099 return xcb_ret;
8102 xcb_glx_float32_t *
8103 xcb_glx_get_color_table_parameterfv_data (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */)
8105 return (xcb_glx_float32_t *) (R + 1);
8109 xcb_glx_get_color_table_parameterfv_data_length (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */)
8111 return R->n;
8114 xcb_generic_iterator_t
8115 xcb_glx_get_color_table_parameterfv_data_end (const xcb_glx_get_color_table_parameterfv_reply_t *R /**< */)
8117 xcb_generic_iterator_t i;
8118 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
8119 i.rem = 0;
8120 i.index = (char *) i.data - (char *) R;
8121 return i;
8124 xcb_glx_get_color_table_parameterfv_reply_t *
8125 xcb_glx_get_color_table_parameterfv_reply (xcb_connection_t *c /**< */,
8126 xcb_glx_get_color_table_parameterfv_cookie_t cookie /**< */,
8127 xcb_generic_error_t **e /**< */)
8129 return (xcb_glx_get_color_table_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
8133 xcb_glx_get_color_table_parameteriv_sizeof (const void *_buffer /**< */)
8135 char *xcb_tmp = (char *)_buffer;
8136 const xcb_glx_get_color_table_parameteriv_reply_t *_aux = (xcb_glx_get_color_table_parameteriv_reply_t *)_buffer;
8137 unsigned int xcb_buffer_len = 0;
8138 unsigned int xcb_block_len = 0;
8139 unsigned int xcb_pad = 0;
8140 unsigned int xcb_align_to = 0;
8143 xcb_block_len += sizeof(xcb_glx_get_color_table_parameteriv_reply_t);
8144 xcb_tmp += xcb_block_len;
8145 xcb_buffer_len += xcb_block_len;
8146 xcb_block_len = 0;
8147 /* data */
8148 xcb_block_len += _aux->n * sizeof(int32_t);
8149 xcb_tmp += xcb_block_len;
8150 xcb_align_to = ALIGNOF(int32_t);
8151 /* insert padding */
8152 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
8153 xcb_buffer_len += xcb_block_len + xcb_pad;
8154 if (0 != xcb_pad) {
8155 xcb_tmp += xcb_pad;
8156 xcb_pad = 0;
8158 xcb_block_len = 0;
8160 return xcb_buffer_len;
8163 xcb_glx_get_color_table_parameteriv_cookie_t
8164 xcb_glx_get_color_table_parameteriv (xcb_connection_t *c /**< */,
8165 xcb_glx_context_tag_t context_tag /**< */,
8166 uint32_t target /**< */,
8167 uint32_t pname /**< */)
8169 static const xcb_protocol_request_t xcb_req = {
8170 /* count */ 2,
8171 /* ext */ &xcb_glx_id,
8172 /* opcode */ XCB_GLX_GET_COLOR_TABLE_PARAMETERIV,
8173 /* isvoid */ 0
8176 struct iovec xcb_parts[4];
8177 xcb_glx_get_color_table_parameteriv_cookie_t xcb_ret;
8178 xcb_glx_get_color_table_parameteriv_request_t xcb_out;
8180 xcb_out.context_tag = context_tag;
8181 xcb_out.target = target;
8182 xcb_out.pname = pname;
8184 xcb_parts[2].iov_base = (char *) &xcb_out;
8185 xcb_parts[2].iov_len = sizeof(xcb_out);
8186 xcb_parts[3].iov_base = 0;
8187 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8189 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
8190 return xcb_ret;
8193 xcb_glx_get_color_table_parameteriv_cookie_t
8194 xcb_glx_get_color_table_parameteriv_unchecked (xcb_connection_t *c /**< */,
8195 xcb_glx_context_tag_t context_tag /**< */,
8196 uint32_t target /**< */,
8197 uint32_t pname /**< */)
8199 static const xcb_protocol_request_t xcb_req = {
8200 /* count */ 2,
8201 /* ext */ &xcb_glx_id,
8202 /* opcode */ XCB_GLX_GET_COLOR_TABLE_PARAMETERIV,
8203 /* isvoid */ 0
8206 struct iovec xcb_parts[4];
8207 xcb_glx_get_color_table_parameteriv_cookie_t xcb_ret;
8208 xcb_glx_get_color_table_parameteriv_request_t xcb_out;
8210 xcb_out.context_tag = context_tag;
8211 xcb_out.target = target;
8212 xcb_out.pname = pname;
8214 xcb_parts[2].iov_base = (char *) &xcb_out;
8215 xcb_parts[2].iov_len = sizeof(xcb_out);
8216 xcb_parts[3].iov_base = 0;
8217 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8219 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
8220 return xcb_ret;
8223 int32_t *
8224 xcb_glx_get_color_table_parameteriv_data (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */)
8226 return (int32_t *) (R + 1);
8230 xcb_glx_get_color_table_parameteriv_data_length (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */)
8232 return R->n;
8235 xcb_generic_iterator_t
8236 xcb_glx_get_color_table_parameteriv_data_end (const xcb_glx_get_color_table_parameteriv_reply_t *R /**< */)
8238 xcb_generic_iterator_t i;
8239 i.data = ((int32_t *) (R + 1)) + (R->n);
8240 i.rem = 0;
8241 i.index = (char *) i.data - (char *) R;
8242 return i;
8245 xcb_glx_get_color_table_parameteriv_reply_t *
8246 xcb_glx_get_color_table_parameteriv_reply (xcb_connection_t *c /**< */,
8247 xcb_glx_get_color_table_parameteriv_cookie_t cookie /**< */,
8248 xcb_generic_error_t **e /**< */)
8250 return (xcb_glx_get_color_table_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
8254 xcb_glx_get_convolution_filter_sizeof (const void *_buffer /**< */)
8256 char *xcb_tmp = (char *)_buffer;
8257 const xcb_glx_get_convolution_filter_reply_t *_aux = (xcb_glx_get_convolution_filter_reply_t *)_buffer;
8258 unsigned int xcb_buffer_len = 0;
8259 unsigned int xcb_block_len = 0;
8260 unsigned int xcb_pad = 0;
8261 unsigned int xcb_align_to = 0;
8264 xcb_block_len += sizeof(xcb_glx_get_convolution_filter_reply_t);
8265 xcb_tmp += xcb_block_len;
8266 xcb_buffer_len += xcb_block_len;
8267 xcb_block_len = 0;
8268 /* data */
8269 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
8270 xcb_tmp += xcb_block_len;
8271 xcb_align_to = ALIGNOF(uint8_t);
8272 /* insert padding */
8273 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
8274 xcb_buffer_len += xcb_block_len + xcb_pad;
8275 if (0 != xcb_pad) {
8276 xcb_tmp += xcb_pad;
8277 xcb_pad = 0;
8279 xcb_block_len = 0;
8281 return xcb_buffer_len;
8284 xcb_glx_get_convolution_filter_cookie_t
8285 xcb_glx_get_convolution_filter (xcb_connection_t *c /**< */,
8286 xcb_glx_context_tag_t context_tag /**< */,
8287 uint32_t target /**< */,
8288 uint32_t format /**< */,
8289 uint32_t type /**< */,
8290 uint8_t swap_bytes /**< */)
8292 static const xcb_protocol_request_t xcb_req = {
8293 /* count */ 2,
8294 /* ext */ &xcb_glx_id,
8295 /* opcode */ XCB_GLX_GET_CONVOLUTION_FILTER,
8296 /* isvoid */ 0
8299 struct iovec xcb_parts[4];
8300 xcb_glx_get_convolution_filter_cookie_t xcb_ret;
8301 xcb_glx_get_convolution_filter_request_t xcb_out;
8303 xcb_out.context_tag = context_tag;
8304 xcb_out.target = target;
8305 xcb_out.format = format;
8306 xcb_out.type = type;
8307 xcb_out.swap_bytes = swap_bytes;
8309 xcb_parts[2].iov_base = (char *) &xcb_out;
8310 xcb_parts[2].iov_len = sizeof(xcb_out);
8311 xcb_parts[3].iov_base = 0;
8312 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8314 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
8315 return xcb_ret;
8318 xcb_glx_get_convolution_filter_cookie_t
8319 xcb_glx_get_convolution_filter_unchecked (xcb_connection_t *c /**< */,
8320 xcb_glx_context_tag_t context_tag /**< */,
8321 uint32_t target /**< */,
8322 uint32_t format /**< */,
8323 uint32_t type /**< */,
8324 uint8_t swap_bytes /**< */)
8326 static const xcb_protocol_request_t xcb_req = {
8327 /* count */ 2,
8328 /* ext */ &xcb_glx_id,
8329 /* opcode */ XCB_GLX_GET_CONVOLUTION_FILTER,
8330 /* isvoid */ 0
8333 struct iovec xcb_parts[4];
8334 xcb_glx_get_convolution_filter_cookie_t xcb_ret;
8335 xcb_glx_get_convolution_filter_request_t xcb_out;
8337 xcb_out.context_tag = context_tag;
8338 xcb_out.target = target;
8339 xcb_out.format = format;
8340 xcb_out.type = type;
8341 xcb_out.swap_bytes = swap_bytes;
8343 xcb_parts[2].iov_base = (char *) &xcb_out;
8344 xcb_parts[2].iov_len = sizeof(xcb_out);
8345 xcb_parts[3].iov_base = 0;
8346 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8348 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
8349 return xcb_ret;
8352 uint8_t *
8353 xcb_glx_get_convolution_filter_data (const xcb_glx_get_convolution_filter_reply_t *R /**< */)
8355 return (uint8_t *) (R + 1);
8359 xcb_glx_get_convolution_filter_data_length (const xcb_glx_get_convolution_filter_reply_t *R /**< */)
8361 return (R->length * 4);
8364 xcb_generic_iterator_t
8365 xcb_glx_get_convolution_filter_data_end (const xcb_glx_get_convolution_filter_reply_t *R /**< */)
8367 xcb_generic_iterator_t i;
8368 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
8369 i.rem = 0;
8370 i.index = (char *) i.data - (char *) R;
8371 return i;
8374 xcb_glx_get_convolution_filter_reply_t *
8375 xcb_glx_get_convolution_filter_reply (xcb_connection_t *c /**< */,
8376 xcb_glx_get_convolution_filter_cookie_t cookie /**< */,
8377 xcb_generic_error_t **e /**< */)
8379 return (xcb_glx_get_convolution_filter_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
8383 xcb_glx_get_convolution_parameterfv_sizeof (const void *_buffer /**< */)
8385 char *xcb_tmp = (char *)_buffer;
8386 const xcb_glx_get_convolution_parameterfv_reply_t *_aux = (xcb_glx_get_convolution_parameterfv_reply_t *)_buffer;
8387 unsigned int xcb_buffer_len = 0;
8388 unsigned int xcb_block_len = 0;
8389 unsigned int xcb_pad = 0;
8390 unsigned int xcb_align_to = 0;
8393 xcb_block_len += sizeof(xcb_glx_get_convolution_parameterfv_reply_t);
8394 xcb_tmp += xcb_block_len;
8395 xcb_buffer_len += xcb_block_len;
8396 xcb_block_len = 0;
8397 /* data */
8398 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
8399 xcb_tmp += xcb_block_len;
8400 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
8401 /* insert padding */
8402 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
8403 xcb_buffer_len += xcb_block_len + xcb_pad;
8404 if (0 != xcb_pad) {
8405 xcb_tmp += xcb_pad;
8406 xcb_pad = 0;
8408 xcb_block_len = 0;
8410 return xcb_buffer_len;
8413 xcb_glx_get_convolution_parameterfv_cookie_t
8414 xcb_glx_get_convolution_parameterfv (xcb_connection_t *c /**< */,
8415 xcb_glx_context_tag_t context_tag /**< */,
8416 uint32_t target /**< */,
8417 uint32_t pname /**< */)
8419 static const xcb_protocol_request_t xcb_req = {
8420 /* count */ 2,
8421 /* ext */ &xcb_glx_id,
8422 /* opcode */ XCB_GLX_GET_CONVOLUTION_PARAMETERFV,
8423 /* isvoid */ 0
8426 struct iovec xcb_parts[4];
8427 xcb_glx_get_convolution_parameterfv_cookie_t xcb_ret;
8428 xcb_glx_get_convolution_parameterfv_request_t xcb_out;
8430 xcb_out.context_tag = context_tag;
8431 xcb_out.target = target;
8432 xcb_out.pname = pname;
8434 xcb_parts[2].iov_base = (char *) &xcb_out;
8435 xcb_parts[2].iov_len = sizeof(xcb_out);
8436 xcb_parts[3].iov_base = 0;
8437 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8439 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
8440 return xcb_ret;
8443 xcb_glx_get_convolution_parameterfv_cookie_t
8444 xcb_glx_get_convolution_parameterfv_unchecked (xcb_connection_t *c /**< */,
8445 xcb_glx_context_tag_t context_tag /**< */,
8446 uint32_t target /**< */,
8447 uint32_t pname /**< */)
8449 static const xcb_protocol_request_t xcb_req = {
8450 /* count */ 2,
8451 /* ext */ &xcb_glx_id,
8452 /* opcode */ XCB_GLX_GET_CONVOLUTION_PARAMETERFV,
8453 /* isvoid */ 0
8456 struct iovec xcb_parts[4];
8457 xcb_glx_get_convolution_parameterfv_cookie_t xcb_ret;
8458 xcb_glx_get_convolution_parameterfv_request_t xcb_out;
8460 xcb_out.context_tag = context_tag;
8461 xcb_out.target = target;
8462 xcb_out.pname = pname;
8464 xcb_parts[2].iov_base = (char *) &xcb_out;
8465 xcb_parts[2].iov_len = sizeof(xcb_out);
8466 xcb_parts[3].iov_base = 0;
8467 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8469 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
8470 return xcb_ret;
8473 xcb_glx_float32_t *
8474 xcb_glx_get_convolution_parameterfv_data (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */)
8476 return (xcb_glx_float32_t *) (R + 1);
8480 xcb_glx_get_convolution_parameterfv_data_length (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */)
8482 return R->n;
8485 xcb_generic_iterator_t
8486 xcb_glx_get_convolution_parameterfv_data_end (const xcb_glx_get_convolution_parameterfv_reply_t *R /**< */)
8488 xcb_generic_iterator_t i;
8489 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
8490 i.rem = 0;
8491 i.index = (char *) i.data - (char *) R;
8492 return i;
8495 xcb_glx_get_convolution_parameterfv_reply_t *
8496 xcb_glx_get_convolution_parameterfv_reply (xcb_connection_t *c /**< */,
8497 xcb_glx_get_convolution_parameterfv_cookie_t cookie /**< */,
8498 xcb_generic_error_t **e /**< */)
8500 return (xcb_glx_get_convolution_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
8504 xcb_glx_get_convolution_parameteriv_sizeof (const void *_buffer /**< */)
8506 char *xcb_tmp = (char *)_buffer;
8507 const xcb_glx_get_convolution_parameteriv_reply_t *_aux = (xcb_glx_get_convolution_parameteriv_reply_t *)_buffer;
8508 unsigned int xcb_buffer_len = 0;
8509 unsigned int xcb_block_len = 0;
8510 unsigned int xcb_pad = 0;
8511 unsigned int xcb_align_to = 0;
8514 xcb_block_len += sizeof(xcb_glx_get_convolution_parameteriv_reply_t);
8515 xcb_tmp += xcb_block_len;
8516 xcb_buffer_len += xcb_block_len;
8517 xcb_block_len = 0;
8518 /* data */
8519 xcb_block_len += _aux->n * sizeof(int32_t);
8520 xcb_tmp += xcb_block_len;
8521 xcb_align_to = ALIGNOF(int32_t);
8522 /* insert padding */
8523 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
8524 xcb_buffer_len += xcb_block_len + xcb_pad;
8525 if (0 != xcb_pad) {
8526 xcb_tmp += xcb_pad;
8527 xcb_pad = 0;
8529 xcb_block_len = 0;
8531 return xcb_buffer_len;
8534 xcb_glx_get_convolution_parameteriv_cookie_t
8535 xcb_glx_get_convolution_parameteriv (xcb_connection_t *c /**< */,
8536 xcb_glx_context_tag_t context_tag /**< */,
8537 uint32_t target /**< */,
8538 uint32_t pname /**< */)
8540 static const xcb_protocol_request_t xcb_req = {
8541 /* count */ 2,
8542 /* ext */ &xcb_glx_id,
8543 /* opcode */ XCB_GLX_GET_CONVOLUTION_PARAMETERIV,
8544 /* isvoid */ 0
8547 struct iovec xcb_parts[4];
8548 xcb_glx_get_convolution_parameteriv_cookie_t xcb_ret;
8549 xcb_glx_get_convolution_parameteriv_request_t xcb_out;
8551 xcb_out.context_tag = context_tag;
8552 xcb_out.target = target;
8553 xcb_out.pname = pname;
8555 xcb_parts[2].iov_base = (char *) &xcb_out;
8556 xcb_parts[2].iov_len = sizeof(xcb_out);
8557 xcb_parts[3].iov_base = 0;
8558 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8560 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
8561 return xcb_ret;
8564 xcb_glx_get_convolution_parameteriv_cookie_t
8565 xcb_glx_get_convolution_parameteriv_unchecked (xcb_connection_t *c /**< */,
8566 xcb_glx_context_tag_t context_tag /**< */,
8567 uint32_t target /**< */,
8568 uint32_t pname /**< */)
8570 static const xcb_protocol_request_t xcb_req = {
8571 /* count */ 2,
8572 /* ext */ &xcb_glx_id,
8573 /* opcode */ XCB_GLX_GET_CONVOLUTION_PARAMETERIV,
8574 /* isvoid */ 0
8577 struct iovec xcb_parts[4];
8578 xcb_glx_get_convolution_parameteriv_cookie_t xcb_ret;
8579 xcb_glx_get_convolution_parameteriv_request_t xcb_out;
8581 xcb_out.context_tag = context_tag;
8582 xcb_out.target = target;
8583 xcb_out.pname = pname;
8585 xcb_parts[2].iov_base = (char *) &xcb_out;
8586 xcb_parts[2].iov_len = sizeof(xcb_out);
8587 xcb_parts[3].iov_base = 0;
8588 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8590 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
8591 return xcb_ret;
8594 int32_t *
8595 xcb_glx_get_convolution_parameteriv_data (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */)
8597 return (int32_t *) (R + 1);
8601 xcb_glx_get_convolution_parameteriv_data_length (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */)
8603 return R->n;
8606 xcb_generic_iterator_t
8607 xcb_glx_get_convolution_parameteriv_data_end (const xcb_glx_get_convolution_parameteriv_reply_t *R /**< */)
8609 xcb_generic_iterator_t i;
8610 i.data = ((int32_t *) (R + 1)) + (R->n);
8611 i.rem = 0;
8612 i.index = (char *) i.data - (char *) R;
8613 return i;
8616 xcb_glx_get_convolution_parameteriv_reply_t *
8617 xcb_glx_get_convolution_parameteriv_reply (xcb_connection_t *c /**< */,
8618 xcb_glx_get_convolution_parameteriv_cookie_t cookie /**< */,
8619 xcb_generic_error_t **e /**< */)
8621 return (xcb_glx_get_convolution_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
8625 xcb_glx_get_separable_filter_sizeof (const void *_buffer /**< */)
8627 char *xcb_tmp = (char *)_buffer;
8628 const xcb_glx_get_separable_filter_reply_t *_aux = (xcb_glx_get_separable_filter_reply_t *)_buffer;
8629 unsigned int xcb_buffer_len = 0;
8630 unsigned int xcb_block_len = 0;
8631 unsigned int xcb_pad = 0;
8632 unsigned int xcb_align_to = 0;
8635 xcb_block_len += sizeof(xcb_glx_get_separable_filter_reply_t);
8636 xcb_tmp += xcb_block_len;
8637 xcb_buffer_len += xcb_block_len;
8638 xcb_block_len = 0;
8639 /* rows_and_cols */
8640 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
8641 xcb_tmp += xcb_block_len;
8642 xcb_align_to = ALIGNOF(uint8_t);
8643 /* insert padding */
8644 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
8645 xcb_buffer_len += xcb_block_len + xcb_pad;
8646 if (0 != xcb_pad) {
8647 xcb_tmp += xcb_pad;
8648 xcb_pad = 0;
8650 xcb_block_len = 0;
8652 return xcb_buffer_len;
8655 xcb_glx_get_separable_filter_cookie_t
8656 xcb_glx_get_separable_filter (xcb_connection_t *c /**< */,
8657 xcb_glx_context_tag_t context_tag /**< */,
8658 uint32_t target /**< */,
8659 uint32_t format /**< */,
8660 uint32_t type /**< */,
8661 uint8_t swap_bytes /**< */)
8663 static const xcb_protocol_request_t xcb_req = {
8664 /* count */ 2,
8665 /* ext */ &xcb_glx_id,
8666 /* opcode */ XCB_GLX_GET_SEPARABLE_FILTER,
8667 /* isvoid */ 0
8670 struct iovec xcb_parts[4];
8671 xcb_glx_get_separable_filter_cookie_t xcb_ret;
8672 xcb_glx_get_separable_filter_request_t xcb_out;
8674 xcb_out.context_tag = context_tag;
8675 xcb_out.target = target;
8676 xcb_out.format = format;
8677 xcb_out.type = type;
8678 xcb_out.swap_bytes = swap_bytes;
8680 xcb_parts[2].iov_base = (char *) &xcb_out;
8681 xcb_parts[2].iov_len = sizeof(xcb_out);
8682 xcb_parts[3].iov_base = 0;
8683 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8685 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
8686 return xcb_ret;
8689 xcb_glx_get_separable_filter_cookie_t
8690 xcb_glx_get_separable_filter_unchecked (xcb_connection_t *c /**< */,
8691 xcb_glx_context_tag_t context_tag /**< */,
8692 uint32_t target /**< */,
8693 uint32_t format /**< */,
8694 uint32_t type /**< */,
8695 uint8_t swap_bytes /**< */)
8697 static const xcb_protocol_request_t xcb_req = {
8698 /* count */ 2,
8699 /* ext */ &xcb_glx_id,
8700 /* opcode */ XCB_GLX_GET_SEPARABLE_FILTER,
8701 /* isvoid */ 0
8704 struct iovec xcb_parts[4];
8705 xcb_glx_get_separable_filter_cookie_t xcb_ret;
8706 xcb_glx_get_separable_filter_request_t xcb_out;
8708 xcb_out.context_tag = context_tag;
8709 xcb_out.target = target;
8710 xcb_out.format = format;
8711 xcb_out.type = type;
8712 xcb_out.swap_bytes = swap_bytes;
8714 xcb_parts[2].iov_base = (char *) &xcb_out;
8715 xcb_parts[2].iov_len = sizeof(xcb_out);
8716 xcb_parts[3].iov_base = 0;
8717 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8719 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
8720 return xcb_ret;
8723 uint8_t *
8724 xcb_glx_get_separable_filter_rows_and_cols (const xcb_glx_get_separable_filter_reply_t *R /**< */)
8726 return (uint8_t *) (R + 1);
8730 xcb_glx_get_separable_filter_rows_and_cols_length (const xcb_glx_get_separable_filter_reply_t *R /**< */)
8732 return (R->length * 4);
8735 xcb_generic_iterator_t
8736 xcb_glx_get_separable_filter_rows_and_cols_end (const xcb_glx_get_separable_filter_reply_t *R /**< */)
8738 xcb_generic_iterator_t i;
8739 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
8740 i.rem = 0;
8741 i.index = (char *) i.data - (char *) R;
8742 return i;
8745 xcb_glx_get_separable_filter_reply_t *
8746 xcb_glx_get_separable_filter_reply (xcb_connection_t *c /**< */,
8747 xcb_glx_get_separable_filter_cookie_t cookie /**< */,
8748 xcb_generic_error_t **e /**< */)
8750 return (xcb_glx_get_separable_filter_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
8754 xcb_glx_get_histogram_sizeof (const void *_buffer /**< */)
8756 char *xcb_tmp = (char *)_buffer;
8757 const xcb_glx_get_histogram_reply_t *_aux = (xcb_glx_get_histogram_reply_t *)_buffer;
8758 unsigned int xcb_buffer_len = 0;
8759 unsigned int xcb_block_len = 0;
8760 unsigned int xcb_pad = 0;
8761 unsigned int xcb_align_to = 0;
8764 xcb_block_len += sizeof(xcb_glx_get_histogram_reply_t);
8765 xcb_tmp += xcb_block_len;
8766 xcb_buffer_len += xcb_block_len;
8767 xcb_block_len = 0;
8768 /* data */
8769 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
8770 xcb_tmp += xcb_block_len;
8771 xcb_align_to = ALIGNOF(uint8_t);
8772 /* insert padding */
8773 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
8774 xcb_buffer_len += xcb_block_len + xcb_pad;
8775 if (0 != xcb_pad) {
8776 xcb_tmp += xcb_pad;
8777 xcb_pad = 0;
8779 xcb_block_len = 0;
8781 return xcb_buffer_len;
8784 xcb_glx_get_histogram_cookie_t
8785 xcb_glx_get_histogram (xcb_connection_t *c /**< */,
8786 xcb_glx_context_tag_t context_tag /**< */,
8787 uint32_t target /**< */,
8788 uint32_t format /**< */,
8789 uint32_t type /**< */,
8790 uint8_t swap_bytes /**< */,
8791 uint8_t reset /**< */)
8793 static const xcb_protocol_request_t xcb_req = {
8794 /* count */ 2,
8795 /* ext */ &xcb_glx_id,
8796 /* opcode */ XCB_GLX_GET_HISTOGRAM,
8797 /* isvoid */ 0
8800 struct iovec xcb_parts[4];
8801 xcb_glx_get_histogram_cookie_t xcb_ret;
8802 xcb_glx_get_histogram_request_t xcb_out;
8804 xcb_out.context_tag = context_tag;
8805 xcb_out.target = target;
8806 xcb_out.format = format;
8807 xcb_out.type = type;
8808 xcb_out.swap_bytes = swap_bytes;
8809 xcb_out.reset = reset;
8811 xcb_parts[2].iov_base = (char *) &xcb_out;
8812 xcb_parts[2].iov_len = sizeof(xcb_out);
8813 xcb_parts[3].iov_base = 0;
8814 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8816 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
8817 return xcb_ret;
8820 xcb_glx_get_histogram_cookie_t
8821 xcb_glx_get_histogram_unchecked (xcb_connection_t *c /**< */,
8822 xcb_glx_context_tag_t context_tag /**< */,
8823 uint32_t target /**< */,
8824 uint32_t format /**< */,
8825 uint32_t type /**< */,
8826 uint8_t swap_bytes /**< */,
8827 uint8_t reset /**< */)
8829 static const xcb_protocol_request_t xcb_req = {
8830 /* count */ 2,
8831 /* ext */ &xcb_glx_id,
8832 /* opcode */ XCB_GLX_GET_HISTOGRAM,
8833 /* isvoid */ 0
8836 struct iovec xcb_parts[4];
8837 xcb_glx_get_histogram_cookie_t xcb_ret;
8838 xcb_glx_get_histogram_request_t xcb_out;
8840 xcb_out.context_tag = context_tag;
8841 xcb_out.target = target;
8842 xcb_out.format = format;
8843 xcb_out.type = type;
8844 xcb_out.swap_bytes = swap_bytes;
8845 xcb_out.reset = reset;
8847 xcb_parts[2].iov_base = (char *) &xcb_out;
8848 xcb_parts[2].iov_len = sizeof(xcb_out);
8849 xcb_parts[3].iov_base = 0;
8850 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8852 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
8853 return xcb_ret;
8856 uint8_t *
8857 xcb_glx_get_histogram_data (const xcb_glx_get_histogram_reply_t *R /**< */)
8859 return (uint8_t *) (R + 1);
8863 xcb_glx_get_histogram_data_length (const xcb_glx_get_histogram_reply_t *R /**< */)
8865 return (R->length * 4);
8868 xcb_generic_iterator_t
8869 xcb_glx_get_histogram_data_end (const xcb_glx_get_histogram_reply_t *R /**< */)
8871 xcb_generic_iterator_t i;
8872 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
8873 i.rem = 0;
8874 i.index = (char *) i.data - (char *) R;
8875 return i;
8878 xcb_glx_get_histogram_reply_t *
8879 xcb_glx_get_histogram_reply (xcb_connection_t *c /**< */,
8880 xcb_glx_get_histogram_cookie_t cookie /**< */,
8881 xcb_generic_error_t **e /**< */)
8883 return (xcb_glx_get_histogram_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
8887 xcb_glx_get_histogram_parameterfv_sizeof (const void *_buffer /**< */)
8889 char *xcb_tmp = (char *)_buffer;
8890 const xcb_glx_get_histogram_parameterfv_reply_t *_aux = (xcb_glx_get_histogram_parameterfv_reply_t *)_buffer;
8891 unsigned int xcb_buffer_len = 0;
8892 unsigned int xcb_block_len = 0;
8893 unsigned int xcb_pad = 0;
8894 unsigned int xcb_align_to = 0;
8897 xcb_block_len += sizeof(xcb_glx_get_histogram_parameterfv_reply_t);
8898 xcb_tmp += xcb_block_len;
8899 xcb_buffer_len += xcb_block_len;
8900 xcb_block_len = 0;
8901 /* data */
8902 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
8903 xcb_tmp += xcb_block_len;
8904 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
8905 /* insert padding */
8906 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
8907 xcb_buffer_len += xcb_block_len + xcb_pad;
8908 if (0 != xcb_pad) {
8909 xcb_tmp += xcb_pad;
8910 xcb_pad = 0;
8912 xcb_block_len = 0;
8914 return xcb_buffer_len;
8917 xcb_glx_get_histogram_parameterfv_cookie_t
8918 xcb_glx_get_histogram_parameterfv (xcb_connection_t *c /**< */,
8919 xcb_glx_context_tag_t context_tag /**< */,
8920 uint32_t target /**< */,
8921 uint32_t pname /**< */)
8923 static const xcb_protocol_request_t xcb_req = {
8924 /* count */ 2,
8925 /* ext */ &xcb_glx_id,
8926 /* opcode */ XCB_GLX_GET_HISTOGRAM_PARAMETERFV,
8927 /* isvoid */ 0
8930 struct iovec xcb_parts[4];
8931 xcb_glx_get_histogram_parameterfv_cookie_t xcb_ret;
8932 xcb_glx_get_histogram_parameterfv_request_t xcb_out;
8934 xcb_out.context_tag = context_tag;
8935 xcb_out.target = target;
8936 xcb_out.pname = pname;
8938 xcb_parts[2].iov_base = (char *) &xcb_out;
8939 xcb_parts[2].iov_len = sizeof(xcb_out);
8940 xcb_parts[3].iov_base = 0;
8941 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8943 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
8944 return xcb_ret;
8947 xcb_glx_get_histogram_parameterfv_cookie_t
8948 xcb_glx_get_histogram_parameterfv_unchecked (xcb_connection_t *c /**< */,
8949 xcb_glx_context_tag_t context_tag /**< */,
8950 uint32_t target /**< */,
8951 uint32_t pname /**< */)
8953 static const xcb_protocol_request_t xcb_req = {
8954 /* count */ 2,
8955 /* ext */ &xcb_glx_id,
8956 /* opcode */ XCB_GLX_GET_HISTOGRAM_PARAMETERFV,
8957 /* isvoid */ 0
8960 struct iovec xcb_parts[4];
8961 xcb_glx_get_histogram_parameterfv_cookie_t xcb_ret;
8962 xcb_glx_get_histogram_parameterfv_request_t xcb_out;
8964 xcb_out.context_tag = context_tag;
8965 xcb_out.target = target;
8966 xcb_out.pname = pname;
8968 xcb_parts[2].iov_base = (char *) &xcb_out;
8969 xcb_parts[2].iov_len = sizeof(xcb_out);
8970 xcb_parts[3].iov_base = 0;
8971 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
8973 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
8974 return xcb_ret;
8977 xcb_glx_float32_t *
8978 xcb_glx_get_histogram_parameterfv_data (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */)
8980 return (xcb_glx_float32_t *) (R + 1);
8984 xcb_glx_get_histogram_parameterfv_data_length (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */)
8986 return R->n;
8989 xcb_generic_iterator_t
8990 xcb_glx_get_histogram_parameterfv_data_end (const xcb_glx_get_histogram_parameterfv_reply_t *R /**< */)
8992 xcb_generic_iterator_t i;
8993 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
8994 i.rem = 0;
8995 i.index = (char *) i.data - (char *) R;
8996 return i;
8999 xcb_glx_get_histogram_parameterfv_reply_t *
9000 xcb_glx_get_histogram_parameterfv_reply (xcb_connection_t *c /**< */,
9001 xcb_glx_get_histogram_parameterfv_cookie_t cookie /**< */,
9002 xcb_generic_error_t **e /**< */)
9004 return (xcb_glx_get_histogram_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
9008 xcb_glx_get_histogram_parameteriv_sizeof (const void *_buffer /**< */)
9010 char *xcb_tmp = (char *)_buffer;
9011 const xcb_glx_get_histogram_parameteriv_reply_t *_aux = (xcb_glx_get_histogram_parameteriv_reply_t *)_buffer;
9012 unsigned int xcb_buffer_len = 0;
9013 unsigned int xcb_block_len = 0;
9014 unsigned int xcb_pad = 0;
9015 unsigned int xcb_align_to = 0;
9018 xcb_block_len += sizeof(xcb_glx_get_histogram_parameteriv_reply_t);
9019 xcb_tmp += xcb_block_len;
9020 xcb_buffer_len += xcb_block_len;
9021 xcb_block_len = 0;
9022 /* data */
9023 xcb_block_len += _aux->n * sizeof(int32_t);
9024 xcb_tmp += xcb_block_len;
9025 xcb_align_to = ALIGNOF(int32_t);
9026 /* insert padding */
9027 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
9028 xcb_buffer_len += xcb_block_len + xcb_pad;
9029 if (0 != xcb_pad) {
9030 xcb_tmp += xcb_pad;
9031 xcb_pad = 0;
9033 xcb_block_len = 0;
9035 return xcb_buffer_len;
9038 xcb_glx_get_histogram_parameteriv_cookie_t
9039 xcb_glx_get_histogram_parameteriv (xcb_connection_t *c /**< */,
9040 xcb_glx_context_tag_t context_tag /**< */,
9041 uint32_t target /**< */,
9042 uint32_t pname /**< */)
9044 static const xcb_protocol_request_t xcb_req = {
9045 /* count */ 2,
9046 /* ext */ &xcb_glx_id,
9047 /* opcode */ XCB_GLX_GET_HISTOGRAM_PARAMETERIV,
9048 /* isvoid */ 0
9051 struct iovec xcb_parts[4];
9052 xcb_glx_get_histogram_parameteriv_cookie_t xcb_ret;
9053 xcb_glx_get_histogram_parameteriv_request_t xcb_out;
9055 xcb_out.context_tag = context_tag;
9056 xcb_out.target = target;
9057 xcb_out.pname = pname;
9059 xcb_parts[2].iov_base = (char *) &xcb_out;
9060 xcb_parts[2].iov_len = sizeof(xcb_out);
9061 xcb_parts[3].iov_base = 0;
9062 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9064 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9065 return xcb_ret;
9068 xcb_glx_get_histogram_parameteriv_cookie_t
9069 xcb_glx_get_histogram_parameteriv_unchecked (xcb_connection_t *c /**< */,
9070 xcb_glx_context_tag_t context_tag /**< */,
9071 uint32_t target /**< */,
9072 uint32_t pname /**< */)
9074 static const xcb_protocol_request_t xcb_req = {
9075 /* count */ 2,
9076 /* ext */ &xcb_glx_id,
9077 /* opcode */ XCB_GLX_GET_HISTOGRAM_PARAMETERIV,
9078 /* isvoid */ 0
9081 struct iovec xcb_parts[4];
9082 xcb_glx_get_histogram_parameteriv_cookie_t xcb_ret;
9083 xcb_glx_get_histogram_parameteriv_request_t xcb_out;
9085 xcb_out.context_tag = context_tag;
9086 xcb_out.target = target;
9087 xcb_out.pname = pname;
9089 xcb_parts[2].iov_base = (char *) &xcb_out;
9090 xcb_parts[2].iov_len = sizeof(xcb_out);
9091 xcb_parts[3].iov_base = 0;
9092 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9094 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9095 return xcb_ret;
9098 int32_t *
9099 xcb_glx_get_histogram_parameteriv_data (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */)
9101 return (int32_t *) (R + 1);
9105 xcb_glx_get_histogram_parameteriv_data_length (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */)
9107 return R->n;
9110 xcb_generic_iterator_t
9111 xcb_glx_get_histogram_parameteriv_data_end (const xcb_glx_get_histogram_parameteriv_reply_t *R /**< */)
9113 xcb_generic_iterator_t i;
9114 i.data = ((int32_t *) (R + 1)) + (R->n);
9115 i.rem = 0;
9116 i.index = (char *) i.data - (char *) R;
9117 return i;
9120 xcb_glx_get_histogram_parameteriv_reply_t *
9121 xcb_glx_get_histogram_parameteriv_reply (xcb_connection_t *c /**< */,
9122 xcb_glx_get_histogram_parameteriv_cookie_t cookie /**< */,
9123 xcb_generic_error_t **e /**< */)
9125 return (xcb_glx_get_histogram_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
9129 xcb_glx_get_minmax_sizeof (const void *_buffer /**< */)
9131 char *xcb_tmp = (char *)_buffer;
9132 const xcb_glx_get_minmax_reply_t *_aux = (xcb_glx_get_minmax_reply_t *)_buffer;
9133 unsigned int xcb_buffer_len = 0;
9134 unsigned int xcb_block_len = 0;
9135 unsigned int xcb_pad = 0;
9136 unsigned int xcb_align_to = 0;
9139 xcb_block_len += sizeof(xcb_glx_get_minmax_reply_t);
9140 xcb_tmp += xcb_block_len;
9141 xcb_buffer_len += xcb_block_len;
9142 xcb_block_len = 0;
9143 /* data */
9144 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
9145 xcb_tmp += xcb_block_len;
9146 xcb_align_to = ALIGNOF(uint8_t);
9147 /* insert padding */
9148 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
9149 xcb_buffer_len += xcb_block_len + xcb_pad;
9150 if (0 != xcb_pad) {
9151 xcb_tmp += xcb_pad;
9152 xcb_pad = 0;
9154 xcb_block_len = 0;
9156 return xcb_buffer_len;
9159 xcb_glx_get_minmax_cookie_t
9160 xcb_glx_get_minmax (xcb_connection_t *c /**< */,
9161 xcb_glx_context_tag_t context_tag /**< */,
9162 uint32_t target /**< */,
9163 uint32_t format /**< */,
9164 uint32_t type /**< */,
9165 uint8_t swap_bytes /**< */,
9166 uint8_t reset /**< */)
9168 static const xcb_protocol_request_t xcb_req = {
9169 /* count */ 2,
9170 /* ext */ &xcb_glx_id,
9171 /* opcode */ XCB_GLX_GET_MINMAX,
9172 /* isvoid */ 0
9175 struct iovec xcb_parts[4];
9176 xcb_glx_get_minmax_cookie_t xcb_ret;
9177 xcb_glx_get_minmax_request_t xcb_out;
9179 xcb_out.context_tag = context_tag;
9180 xcb_out.target = target;
9181 xcb_out.format = format;
9182 xcb_out.type = type;
9183 xcb_out.swap_bytes = swap_bytes;
9184 xcb_out.reset = reset;
9186 xcb_parts[2].iov_base = (char *) &xcb_out;
9187 xcb_parts[2].iov_len = sizeof(xcb_out);
9188 xcb_parts[3].iov_base = 0;
9189 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9191 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9192 return xcb_ret;
9195 xcb_glx_get_minmax_cookie_t
9196 xcb_glx_get_minmax_unchecked (xcb_connection_t *c /**< */,
9197 xcb_glx_context_tag_t context_tag /**< */,
9198 uint32_t target /**< */,
9199 uint32_t format /**< */,
9200 uint32_t type /**< */,
9201 uint8_t swap_bytes /**< */,
9202 uint8_t reset /**< */)
9204 static const xcb_protocol_request_t xcb_req = {
9205 /* count */ 2,
9206 /* ext */ &xcb_glx_id,
9207 /* opcode */ XCB_GLX_GET_MINMAX,
9208 /* isvoid */ 0
9211 struct iovec xcb_parts[4];
9212 xcb_glx_get_minmax_cookie_t xcb_ret;
9213 xcb_glx_get_minmax_request_t xcb_out;
9215 xcb_out.context_tag = context_tag;
9216 xcb_out.target = target;
9217 xcb_out.format = format;
9218 xcb_out.type = type;
9219 xcb_out.swap_bytes = swap_bytes;
9220 xcb_out.reset = reset;
9222 xcb_parts[2].iov_base = (char *) &xcb_out;
9223 xcb_parts[2].iov_len = sizeof(xcb_out);
9224 xcb_parts[3].iov_base = 0;
9225 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9227 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9228 return xcb_ret;
9231 uint8_t *
9232 xcb_glx_get_minmax_data (const xcb_glx_get_minmax_reply_t *R /**< */)
9234 return (uint8_t *) (R + 1);
9238 xcb_glx_get_minmax_data_length (const xcb_glx_get_minmax_reply_t *R /**< */)
9240 return (R->length * 4);
9243 xcb_generic_iterator_t
9244 xcb_glx_get_minmax_data_end (const xcb_glx_get_minmax_reply_t *R /**< */)
9246 xcb_generic_iterator_t i;
9247 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
9248 i.rem = 0;
9249 i.index = (char *) i.data - (char *) R;
9250 return i;
9253 xcb_glx_get_minmax_reply_t *
9254 xcb_glx_get_minmax_reply (xcb_connection_t *c /**< */,
9255 xcb_glx_get_minmax_cookie_t cookie /**< */,
9256 xcb_generic_error_t **e /**< */)
9258 return (xcb_glx_get_minmax_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
9262 xcb_glx_get_minmax_parameterfv_sizeof (const void *_buffer /**< */)
9264 char *xcb_tmp = (char *)_buffer;
9265 const xcb_glx_get_minmax_parameterfv_reply_t *_aux = (xcb_glx_get_minmax_parameterfv_reply_t *)_buffer;
9266 unsigned int xcb_buffer_len = 0;
9267 unsigned int xcb_block_len = 0;
9268 unsigned int xcb_pad = 0;
9269 unsigned int xcb_align_to = 0;
9272 xcb_block_len += sizeof(xcb_glx_get_minmax_parameterfv_reply_t);
9273 xcb_tmp += xcb_block_len;
9274 xcb_buffer_len += xcb_block_len;
9275 xcb_block_len = 0;
9276 /* data */
9277 xcb_block_len += _aux->n * sizeof(xcb_glx_float32_t);
9278 xcb_tmp += xcb_block_len;
9279 xcb_align_to = ALIGNOF(xcb_glx_float32_t);
9280 /* insert padding */
9281 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
9282 xcb_buffer_len += xcb_block_len + xcb_pad;
9283 if (0 != xcb_pad) {
9284 xcb_tmp += xcb_pad;
9285 xcb_pad = 0;
9287 xcb_block_len = 0;
9289 return xcb_buffer_len;
9292 xcb_glx_get_minmax_parameterfv_cookie_t
9293 xcb_glx_get_minmax_parameterfv (xcb_connection_t *c /**< */,
9294 xcb_glx_context_tag_t context_tag /**< */,
9295 uint32_t target /**< */,
9296 uint32_t pname /**< */)
9298 static const xcb_protocol_request_t xcb_req = {
9299 /* count */ 2,
9300 /* ext */ &xcb_glx_id,
9301 /* opcode */ XCB_GLX_GET_MINMAX_PARAMETERFV,
9302 /* isvoid */ 0
9305 struct iovec xcb_parts[4];
9306 xcb_glx_get_minmax_parameterfv_cookie_t xcb_ret;
9307 xcb_glx_get_minmax_parameterfv_request_t xcb_out;
9309 xcb_out.context_tag = context_tag;
9310 xcb_out.target = target;
9311 xcb_out.pname = pname;
9313 xcb_parts[2].iov_base = (char *) &xcb_out;
9314 xcb_parts[2].iov_len = sizeof(xcb_out);
9315 xcb_parts[3].iov_base = 0;
9316 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9318 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9319 return xcb_ret;
9322 xcb_glx_get_minmax_parameterfv_cookie_t
9323 xcb_glx_get_minmax_parameterfv_unchecked (xcb_connection_t *c /**< */,
9324 xcb_glx_context_tag_t context_tag /**< */,
9325 uint32_t target /**< */,
9326 uint32_t pname /**< */)
9328 static const xcb_protocol_request_t xcb_req = {
9329 /* count */ 2,
9330 /* ext */ &xcb_glx_id,
9331 /* opcode */ XCB_GLX_GET_MINMAX_PARAMETERFV,
9332 /* isvoid */ 0
9335 struct iovec xcb_parts[4];
9336 xcb_glx_get_minmax_parameterfv_cookie_t xcb_ret;
9337 xcb_glx_get_minmax_parameterfv_request_t xcb_out;
9339 xcb_out.context_tag = context_tag;
9340 xcb_out.target = target;
9341 xcb_out.pname = pname;
9343 xcb_parts[2].iov_base = (char *) &xcb_out;
9344 xcb_parts[2].iov_len = sizeof(xcb_out);
9345 xcb_parts[3].iov_base = 0;
9346 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9348 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9349 return xcb_ret;
9352 xcb_glx_float32_t *
9353 xcb_glx_get_minmax_parameterfv_data (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */)
9355 return (xcb_glx_float32_t *) (R + 1);
9359 xcb_glx_get_minmax_parameterfv_data_length (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */)
9361 return R->n;
9364 xcb_generic_iterator_t
9365 xcb_glx_get_minmax_parameterfv_data_end (const xcb_glx_get_minmax_parameterfv_reply_t *R /**< */)
9367 xcb_generic_iterator_t i;
9368 i.data = ((xcb_glx_float32_t *) (R + 1)) + (R->n);
9369 i.rem = 0;
9370 i.index = (char *) i.data - (char *) R;
9371 return i;
9374 xcb_glx_get_minmax_parameterfv_reply_t *
9375 xcb_glx_get_minmax_parameterfv_reply (xcb_connection_t *c /**< */,
9376 xcb_glx_get_minmax_parameterfv_cookie_t cookie /**< */,
9377 xcb_generic_error_t **e /**< */)
9379 return (xcb_glx_get_minmax_parameterfv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
9383 xcb_glx_get_minmax_parameteriv_sizeof (const void *_buffer /**< */)
9385 char *xcb_tmp = (char *)_buffer;
9386 const xcb_glx_get_minmax_parameteriv_reply_t *_aux = (xcb_glx_get_minmax_parameteriv_reply_t *)_buffer;
9387 unsigned int xcb_buffer_len = 0;
9388 unsigned int xcb_block_len = 0;
9389 unsigned int xcb_pad = 0;
9390 unsigned int xcb_align_to = 0;
9393 xcb_block_len += sizeof(xcb_glx_get_minmax_parameteriv_reply_t);
9394 xcb_tmp += xcb_block_len;
9395 xcb_buffer_len += xcb_block_len;
9396 xcb_block_len = 0;
9397 /* data */
9398 xcb_block_len += _aux->n * sizeof(int32_t);
9399 xcb_tmp += xcb_block_len;
9400 xcb_align_to = ALIGNOF(int32_t);
9401 /* insert padding */
9402 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
9403 xcb_buffer_len += xcb_block_len + xcb_pad;
9404 if (0 != xcb_pad) {
9405 xcb_tmp += xcb_pad;
9406 xcb_pad = 0;
9408 xcb_block_len = 0;
9410 return xcb_buffer_len;
9413 xcb_glx_get_minmax_parameteriv_cookie_t
9414 xcb_glx_get_minmax_parameteriv (xcb_connection_t *c /**< */,
9415 xcb_glx_context_tag_t context_tag /**< */,
9416 uint32_t target /**< */,
9417 uint32_t pname /**< */)
9419 static const xcb_protocol_request_t xcb_req = {
9420 /* count */ 2,
9421 /* ext */ &xcb_glx_id,
9422 /* opcode */ XCB_GLX_GET_MINMAX_PARAMETERIV,
9423 /* isvoid */ 0
9426 struct iovec xcb_parts[4];
9427 xcb_glx_get_minmax_parameteriv_cookie_t xcb_ret;
9428 xcb_glx_get_minmax_parameteriv_request_t xcb_out;
9430 xcb_out.context_tag = context_tag;
9431 xcb_out.target = target;
9432 xcb_out.pname = pname;
9434 xcb_parts[2].iov_base = (char *) &xcb_out;
9435 xcb_parts[2].iov_len = sizeof(xcb_out);
9436 xcb_parts[3].iov_base = 0;
9437 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9439 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9440 return xcb_ret;
9443 xcb_glx_get_minmax_parameteriv_cookie_t
9444 xcb_glx_get_minmax_parameteriv_unchecked (xcb_connection_t *c /**< */,
9445 xcb_glx_context_tag_t context_tag /**< */,
9446 uint32_t target /**< */,
9447 uint32_t pname /**< */)
9449 static const xcb_protocol_request_t xcb_req = {
9450 /* count */ 2,
9451 /* ext */ &xcb_glx_id,
9452 /* opcode */ XCB_GLX_GET_MINMAX_PARAMETERIV,
9453 /* isvoid */ 0
9456 struct iovec xcb_parts[4];
9457 xcb_glx_get_minmax_parameteriv_cookie_t xcb_ret;
9458 xcb_glx_get_minmax_parameteriv_request_t xcb_out;
9460 xcb_out.context_tag = context_tag;
9461 xcb_out.target = target;
9462 xcb_out.pname = pname;
9464 xcb_parts[2].iov_base = (char *) &xcb_out;
9465 xcb_parts[2].iov_len = sizeof(xcb_out);
9466 xcb_parts[3].iov_base = 0;
9467 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9469 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9470 return xcb_ret;
9473 int32_t *
9474 xcb_glx_get_minmax_parameteriv_data (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */)
9476 return (int32_t *) (R + 1);
9480 xcb_glx_get_minmax_parameteriv_data_length (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */)
9482 return R->n;
9485 xcb_generic_iterator_t
9486 xcb_glx_get_minmax_parameteriv_data_end (const xcb_glx_get_minmax_parameteriv_reply_t *R /**< */)
9488 xcb_generic_iterator_t i;
9489 i.data = ((int32_t *) (R + 1)) + (R->n);
9490 i.rem = 0;
9491 i.index = (char *) i.data - (char *) R;
9492 return i;
9495 xcb_glx_get_minmax_parameteriv_reply_t *
9496 xcb_glx_get_minmax_parameteriv_reply (xcb_connection_t *c /**< */,
9497 xcb_glx_get_minmax_parameteriv_cookie_t cookie /**< */,
9498 xcb_generic_error_t **e /**< */)
9500 return (xcb_glx_get_minmax_parameteriv_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
9504 xcb_glx_get_compressed_tex_image_arb_sizeof (const void *_buffer /**< */)
9506 char *xcb_tmp = (char *)_buffer;
9507 const xcb_glx_get_compressed_tex_image_arb_reply_t *_aux = (xcb_glx_get_compressed_tex_image_arb_reply_t *)_buffer;
9508 unsigned int xcb_buffer_len = 0;
9509 unsigned int xcb_block_len = 0;
9510 unsigned int xcb_pad = 0;
9511 unsigned int xcb_align_to = 0;
9514 xcb_block_len += sizeof(xcb_glx_get_compressed_tex_image_arb_reply_t);
9515 xcb_tmp += xcb_block_len;
9516 xcb_buffer_len += xcb_block_len;
9517 xcb_block_len = 0;
9518 /* data */
9519 xcb_block_len += (_aux->length * 4) * sizeof(uint8_t);
9520 xcb_tmp += xcb_block_len;
9521 xcb_align_to = ALIGNOF(uint8_t);
9522 /* insert padding */
9523 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
9524 xcb_buffer_len += xcb_block_len + xcb_pad;
9525 if (0 != xcb_pad) {
9526 xcb_tmp += xcb_pad;
9527 xcb_pad = 0;
9529 xcb_block_len = 0;
9531 return xcb_buffer_len;
9534 xcb_glx_get_compressed_tex_image_arb_cookie_t
9535 xcb_glx_get_compressed_tex_image_arb (xcb_connection_t *c /**< */,
9536 xcb_glx_context_tag_t context_tag /**< */,
9537 uint32_t target /**< */,
9538 int32_t level /**< */)
9540 static const xcb_protocol_request_t xcb_req = {
9541 /* count */ 2,
9542 /* ext */ &xcb_glx_id,
9543 /* opcode */ XCB_GLX_GET_COMPRESSED_TEX_IMAGE_ARB,
9544 /* isvoid */ 0
9547 struct iovec xcb_parts[4];
9548 xcb_glx_get_compressed_tex_image_arb_cookie_t xcb_ret;
9549 xcb_glx_get_compressed_tex_image_arb_request_t xcb_out;
9551 xcb_out.context_tag = context_tag;
9552 xcb_out.target = target;
9553 xcb_out.level = level;
9555 xcb_parts[2].iov_base = (char *) &xcb_out;
9556 xcb_parts[2].iov_len = sizeof(xcb_out);
9557 xcb_parts[3].iov_base = 0;
9558 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9560 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9561 return xcb_ret;
9564 xcb_glx_get_compressed_tex_image_arb_cookie_t
9565 xcb_glx_get_compressed_tex_image_arb_unchecked (xcb_connection_t *c /**< */,
9566 xcb_glx_context_tag_t context_tag /**< */,
9567 uint32_t target /**< */,
9568 int32_t level /**< */)
9570 static const xcb_protocol_request_t xcb_req = {
9571 /* count */ 2,
9572 /* ext */ &xcb_glx_id,
9573 /* opcode */ XCB_GLX_GET_COMPRESSED_TEX_IMAGE_ARB,
9574 /* isvoid */ 0
9577 struct iovec xcb_parts[4];
9578 xcb_glx_get_compressed_tex_image_arb_cookie_t xcb_ret;
9579 xcb_glx_get_compressed_tex_image_arb_request_t xcb_out;
9581 xcb_out.context_tag = context_tag;
9582 xcb_out.target = target;
9583 xcb_out.level = level;
9585 xcb_parts[2].iov_base = (char *) &xcb_out;
9586 xcb_parts[2].iov_len = sizeof(xcb_out);
9587 xcb_parts[3].iov_base = 0;
9588 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9590 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9591 return xcb_ret;
9594 uint8_t *
9595 xcb_glx_get_compressed_tex_image_arb_data (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */)
9597 return (uint8_t *) (R + 1);
9601 xcb_glx_get_compressed_tex_image_arb_data_length (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */)
9603 return (R->length * 4);
9606 xcb_generic_iterator_t
9607 xcb_glx_get_compressed_tex_image_arb_data_end (const xcb_glx_get_compressed_tex_image_arb_reply_t *R /**< */)
9609 xcb_generic_iterator_t i;
9610 i.data = ((uint8_t *) (R + 1)) + ((R->length * 4));
9611 i.rem = 0;
9612 i.index = (char *) i.data - (char *) R;
9613 return i;
9616 xcb_glx_get_compressed_tex_image_arb_reply_t *
9617 xcb_glx_get_compressed_tex_image_arb_reply (xcb_connection_t *c /**< */,
9618 xcb_glx_get_compressed_tex_image_arb_cookie_t cookie /**< */,
9619 xcb_generic_error_t **e /**< */)
9621 return (xcb_glx_get_compressed_tex_image_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
9625 xcb_glx_delete_queries_arb_sizeof (const void *_buffer /**< */)
9627 char *xcb_tmp = (char *)_buffer;
9628 const xcb_glx_delete_queries_arb_request_t *_aux = (xcb_glx_delete_queries_arb_request_t *)_buffer;
9629 unsigned int xcb_buffer_len = 0;
9630 unsigned int xcb_block_len = 0;
9631 unsigned int xcb_pad = 0;
9632 unsigned int xcb_align_to = 0;
9635 xcb_block_len += sizeof(xcb_glx_delete_queries_arb_request_t);
9636 xcb_tmp += xcb_block_len;
9637 xcb_buffer_len += xcb_block_len;
9638 xcb_block_len = 0;
9639 /* ids */
9640 xcb_block_len += _aux->n * sizeof(uint32_t);
9641 xcb_tmp += xcb_block_len;
9642 xcb_align_to = ALIGNOF(uint32_t);
9643 /* insert padding */
9644 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
9645 xcb_buffer_len += xcb_block_len + xcb_pad;
9646 if (0 != xcb_pad) {
9647 xcb_tmp += xcb_pad;
9648 xcb_pad = 0;
9650 xcb_block_len = 0;
9652 return xcb_buffer_len;
9655 xcb_void_cookie_t
9656 xcb_glx_delete_queries_arb_checked (xcb_connection_t *c /**< */,
9657 xcb_glx_context_tag_t context_tag /**< */,
9658 int32_t n /**< */,
9659 const uint32_t *ids /**< */)
9661 static const xcb_protocol_request_t xcb_req = {
9662 /* count */ 4,
9663 /* ext */ &xcb_glx_id,
9664 /* opcode */ XCB_GLX_DELETE_QUERIES_ARB,
9665 /* isvoid */ 1
9668 struct iovec xcb_parts[6];
9669 xcb_void_cookie_t xcb_ret;
9670 xcb_glx_delete_queries_arb_request_t xcb_out;
9672 xcb_out.context_tag = context_tag;
9673 xcb_out.n = n;
9675 xcb_parts[2].iov_base = (char *) &xcb_out;
9676 xcb_parts[2].iov_len = sizeof(xcb_out);
9677 xcb_parts[3].iov_base = 0;
9678 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9679 /* uint32_t ids */
9680 xcb_parts[4].iov_base = (char *) ids;
9681 xcb_parts[4].iov_len = n * sizeof(uint32_t);
9682 xcb_parts[5].iov_base = 0;
9683 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
9685 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9686 return xcb_ret;
9689 xcb_void_cookie_t
9690 xcb_glx_delete_queries_arb (xcb_connection_t *c /**< */,
9691 xcb_glx_context_tag_t context_tag /**< */,
9692 int32_t n /**< */,
9693 const uint32_t *ids /**< */)
9695 static const xcb_protocol_request_t xcb_req = {
9696 /* count */ 4,
9697 /* ext */ &xcb_glx_id,
9698 /* opcode */ XCB_GLX_DELETE_QUERIES_ARB,
9699 /* isvoid */ 1
9702 struct iovec xcb_parts[6];
9703 xcb_void_cookie_t xcb_ret;
9704 xcb_glx_delete_queries_arb_request_t xcb_out;
9706 xcb_out.context_tag = context_tag;
9707 xcb_out.n = n;
9709 xcb_parts[2].iov_base = (char *) &xcb_out;
9710 xcb_parts[2].iov_len = sizeof(xcb_out);
9711 xcb_parts[3].iov_base = 0;
9712 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9713 /* uint32_t ids */
9714 xcb_parts[4].iov_base = (char *) ids;
9715 xcb_parts[4].iov_len = n * sizeof(uint32_t);
9716 xcb_parts[5].iov_base = 0;
9717 xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
9719 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9720 return xcb_ret;
9724 xcb_glx_gen_queries_arb_sizeof (const void *_buffer /**< */)
9726 char *xcb_tmp = (char *)_buffer;
9727 const xcb_glx_gen_queries_arb_reply_t *_aux = (xcb_glx_gen_queries_arb_reply_t *)_buffer;
9728 unsigned int xcb_buffer_len = 0;
9729 unsigned int xcb_block_len = 0;
9730 unsigned int xcb_pad = 0;
9731 unsigned int xcb_align_to = 0;
9734 xcb_block_len += sizeof(xcb_glx_gen_queries_arb_reply_t);
9735 xcb_tmp += xcb_block_len;
9736 xcb_buffer_len += xcb_block_len;
9737 xcb_block_len = 0;
9738 /* data */
9739 xcb_block_len += _aux->length * sizeof(uint32_t);
9740 xcb_tmp += xcb_block_len;
9741 xcb_align_to = ALIGNOF(uint32_t);
9742 /* insert padding */
9743 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
9744 xcb_buffer_len += xcb_block_len + xcb_pad;
9745 if (0 != xcb_pad) {
9746 xcb_tmp += xcb_pad;
9747 xcb_pad = 0;
9749 xcb_block_len = 0;
9751 return xcb_buffer_len;
9754 xcb_glx_gen_queries_arb_cookie_t
9755 xcb_glx_gen_queries_arb (xcb_connection_t *c /**< */,
9756 xcb_glx_context_tag_t context_tag /**< */,
9757 int32_t n /**< */)
9759 static const xcb_protocol_request_t xcb_req = {
9760 /* count */ 2,
9761 /* ext */ &xcb_glx_id,
9762 /* opcode */ XCB_GLX_GEN_QUERIES_ARB,
9763 /* isvoid */ 0
9766 struct iovec xcb_parts[4];
9767 xcb_glx_gen_queries_arb_cookie_t xcb_ret;
9768 xcb_glx_gen_queries_arb_request_t xcb_out;
9770 xcb_out.context_tag = context_tag;
9771 xcb_out.n = n;
9773 xcb_parts[2].iov_base = (char *) &xcb_out;
9774 xcb_parts[2].iov_len = sizeof(xcb_out);
9775 xcb_parts[3].iov_base = 0;
9776 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9778 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9779 return xcb_ret;
9782 xcb_glx_gen_queries_arb_cookie_t
9783 xcb_glx_gen_queries_arb_unchecked (xcb_connection_t *c /**< */,
9784 xcb_glx_context_tag_t context_tag /**< */,
9785 int32_t n /**< */)
9787 static const xcb_protocol_request_t xcb_req = {
9788 /* count */ 2,
9789 /* ext */ &xcb_glx_id,
9790 /* opcode */ XCB_GLX_GEN_QUERIES_ARB,
9791 /* isvoid */ 0
9794 struct iovec xcb_parts[4];
9795 xcb_glx_gen_queries_arb_cookie_t xcb_ret;
9796 xcb_glx_gen_queries_arb_request_t xcb_out;
9798 xcb_out.context_tag = context_tag;
9799 xcb_out.n = n;
9801 xcb_parts[2].iov_base = (char *) &xcb_out;
9802 xcb_parts[2].iov_len = sizeof(xcb_out);
9803 xcb_parts[3].iov_base = 0;
9804 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9806 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9807 return xcb_ret;
9810 uint32_t *
9811 xcb_glx_gen_queries_arb_data (const xcb_glx_gen_queries_arb_reply_t *R /**< */)
9813 return (uint32_t *) (R + 1);
9817 xcb_glx_gen_queries_arb_data_length (const xcb_glx_gen_queries_arb_reply_t *R /**< */)
9819 return R->length;
9822 xcb_generic_iterator_t
9823 xcb_glx_gen_queries_arb_data_end (const xcb_glx_gen_queries_arb_reply_t *R /**< */)
9825 xcb_generic_iterator_t i;
9826 i.data = ((uint32_t *) (R + 1)) + (R->length);
9827 i.rem = 0;
9828 i.index = (char *) i.data - (char *) R;
9829 return i;
9832 xcb_glx_gen_queries_arb_reply_t *
9833 xcb_glx_gen_queries_arb_reply (xcb_connection_t *c /**< */,
9834 xcb_glx_gen_queries_arb_cookie_t cookie /**< */,
9835 xcb_generic_error_t **e /**< */)
9837 return (xcb_glx_gen_queries_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
9840 xcb_glx_is_query_arb_cookie_t
9841 xcb_glx_is_query_arb (xcb_connection_t *c /**< */,
9842 xcb_glx_context_tag_t context_tag /**< */,
9843 uint32_t id /**< */)
9845 static const xcb_protocol_request_t xcb_req = {
9846 /* count */ 2,
9847 /* ext */ &xcb_glx_id,
9848 /* opcode */ XCB_GLX_IS_QUERY_ARB,
9849 /* isvoid */ 0
9852 struct iovec xcb_parts[4];
9853 xcb_glx_is_query_arb_cookie_t xcb_ret;
9854 xcb_glx_is_query_arb_request_t xcb_out;
9856 xcb_out.context_tag = context_tag;
9857 xcb_out.id = id;
9859 xcb_parts[2].iov_base = (char *) &xcb_out;
9860 xcb_parts[2].iov_len = sizeof(xcb_out);
9861 xcb_parts[3].iov_base = 0;
9862 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9864 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9865 return xcb_ret;
9868 xcb_glx_is_query_arb_cookie_t
9869 xcb_glx_is_query_arb_unchecked (xcb_connection_t *c /**< */,
9870 xcb_glx_context_tag_t context_tag /**< */,
9871 uint32_t id /**< */)
9873 static const xcb_protocol_request_t xcb_req = {
9874 /* count */ 2,
9875 /* ext */ &xcb_glx_id,
9876 /* opcode */ XCB_GLX_IS_QUERY_ARB,
9877 /* isvoid */ 0
9880 struct iovec xcb_parts[4];
9881 xcb_glx_is_query_arb_cookie_t xcb_ret;
9882 xcb_glx_is_query_arb_request_t xcb_out;
9884 xcb_out.context_tag = context_tag;
9885 xcb_out.id = id;
9887 xcb_parts[2].iov_base = (char *) &xcb_out;
9888 xcb_parts[2].iov_len = sizeof(xcb_out);
9889 xcb_parts[3].iov_base = 0;
9890 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9892 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9893 return xcb_ret;
9896 xcb_glx_is_query_arb_reply_t *
9897 xcb_glx_is_query_arb_reply (xcb_connection_t *c /**< */,
9898 xcb_glx_is_query_arb_cookie_t cookie /**< */,
9899 xcb_generic_error_t **e /**< */)
9901 return (xcb_glx_is_query_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
9905 xcb_glx_get_queryiv_arb_sizeof (const void *_buffer /**< */)
9907 char *xcb_tmp = (char *)_buffer;
9908 const xcb_glx_get_queryiv_arb_reply_t *_aux = (xcb_glx_get_queryiv_arb_reply_t *)_buffer;
9909 unsigned int xcb_buffer_len = 0;
9910 unsigned int xcb_block_len = 0;
9911 unsigned int xcb_pad = 0;
9912 unsigned int xcb_align_to = 0;
9915 xcb_block_len += sizeof(xcb_glx_get_queryiv_arb_reply_t);
9916 xcb_tmp += xcb_block_len;
9917 xcb_buffer_len += xcb_block_len;
9918 xcb_block_len = 0;
9919 /* data */
9920 xcb_block_len += _aux->n * sizeof(int32_t);
9921 xcb_tmp += xcb_block_len;
9922 xcb_align_to = ALIGNOF(int32_t);
9923 /* insert padding */
9924 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
9925 xcb_buffer_len += xcb_block_len + xcb_pad;
9926 if (0 != xcb_pad) {
9927 xcb_tmp += xcb_pad;
9928 xcb_pad = 0;
9930 xcb_block_len = 0;
9932 return xcb_buffer_len;
9935 xcb_glx_get_queryiv_arb_cookie_t
9936 xcb_glx_get_queryiv_arb (xcb_connection_t *c /**< */,
9937 xcb_glx_context_tag_t context_tag /**< */,
9938 uint32_t target /**< */,
9939 uint32_t pname /**< */)
9941 static const xcb_protocol_request_t xcb_req = {
9942 /* count */ 2,
9943 /* ext */ &xcb_glx_id,
9944 /* opcode */ XCB_GLX_GET_QUERYIV_ARB,
9945 /* isvoid */ 0
9948 struct iovec xcb_parts[4];
9949 xcb_glx_get_queryiv_arb_cookie_t xcb_ret;
9950 xcb_glx_get_queryiv_arb_request_t xcb_out;
9952 xcb_out.context_tag = context_tag;
9953 xcb_out.target = target;
9954 xcb_out.pname = pname;
9956 xcb_parts[2].iov_base = (char *) &xcb_out;
9957 xcb_parts[2].iov_len = sizeof(xcb_out);
9958 xcb_parts[3].iov_base = 0;
9959 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9961 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
9962 return xcb_ret;
9965 xcb_glx_get_queryiv_arb_cookie_t
9966 xcb_glx_get_queryiv_arb_unchecked (xcb_connection_t *c /**< */,
9967 xcb_glx_context_tag_t context_tag /**< */,
9968 uint32_t target /**< */,
9969 uint32_t pname /**< */)
9971 static const xcb_protocol_request_t xcb_req = {
9972 /* count */ 2,
9973 /* ext */ &xcb_glx_id,
9974 /* opcode */ XCB_GLX_GET_QUERYIV_ARB,
9975 /* isvoid */ 0
9978 struct iovec xcb_parts[4];
9979 xcb_glx_get_queryiv_arb_cookie_t xcb_ret;
9980 xcb_glx_get_queryiv_arb_request_t xcb_out;
9982 xcb_out.context_tag = context_tag;
9983 xcb_out.target = target;
9984 xcb_out.pname = pname;
9986 xcb_parts[2].iov_base = (char *) &xcb_out;
9987 xcb_parts[2].iov_len = sizeof(xcb_out);
9988 xcb_parts[3].iov_base = 0;
9989 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
9991 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
9992 return xcb_ret;
9995 int32_t *
9996 xcb_glx_get_queryiv_arb_data (const xcb_glx_get_queryiv_arb_reply_t *R /**< */)
9998 return (int32_t *) (R + 1);
10002 xcb_glx_get_queryiv_arb_data_length (const xcb_glx_get_queryiv_arb_reply_t *R /**< */)
10004 return R->n;
10007 xcb_generic_iterator_t
10008 xcb_glx_get_queryiv_arb_data_end (const xcb_glx_get_queryiv_arb_reply_t *R /**< */)
10010 xcb_generic_iterator_t i;
10011 i.data = ((int32_t *) (R + 1)) + (R->n);
10012 i.rem = 0;
10013 i.index = (char *) i.data - (char *) R;
10014 return i;
10017 xcb_glx_get_queryiv_arb_reply_t *
10018 xcb_glx_get_queryiv_arb_reply (xcb_connection_t *c /**< */,
10019 xcb_glx_get_queryiv_arb_cookie_t cookie /**< */,
10020 xcb_generic_error_t **e /**< */)
10022 return (xcb_glx_get_queryiv_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
10026 xcb_glx_get_query_objectiv_arb_sizeof (const void *_buffer /**< */)
10028 char *xcb_tmp = (char *)_buffer;
10029 const xcb_glx_get_query_objectiv_arb_reply_t *_aux = (xcb_glx_get_query_objectiv_arb_reply_t *)_buffer;
10030 unsigned int xcb_buffer_len = 0;
10031 unsigned int xcb_block_len = 0;
10032 unsigned int xcb_pad = 0;
10033 unsigned int xcb_align_to = 0;
10036 xcb_block_len += sizeof(xcb_glx_get_query_objectiv_arb_reply_t);
10037 xcb_tmp += xcb_block_len;
10038 xcb_buffer_len += xcb_block_len;
10039 xcb_block_len = 0;
10040 /* data */
10041 xcb_block_len += _aux->n * sizeof(int32_t);
10042 xcb_tmp += xcb_block_len;
10043 xcb_align_to = ALIGNOF(int32_t);
10044 /* insert padding */
10045 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
10046 xcb_buffer_len += xcb_block_len + xcb_pad;
10047 if (0 != xcb_pad) {
10048 xcb_tmp += xcb_pad;
10049 xcb_pad = 0;
10051 xcb_block_len = 0;
10053 return xcb_buffer_len;
10056 xcb_glx_get_query_objectiv_arb_cookie_t
10057 xcb_glx_get_query_objectiv_arb (xcb_connection_t *c /**< */,
10058 xcb_glx_context_tag_t context_tag /**< */,
10059 uint32_t id /**< */,
10060 uint32_t pname /**< */)
10062 static const xcb_protocol_request_t xcb_req = {
10063 /* count */ 2,
10064 /* ext */ &xcb_glx_id,
10065 /* opcode */ XCB_GLX_GET_QUERY_OBJECTIV_ARB,
10066 /* isvoid */ 0
10069 struct iovec xcb_parts[4];
10070 xcb_glx_get_query_objectiv_arb_cookie_t xcb_ret;
10071 xcb_glx_get_query_objectiv_arb_request_t xcb_out;
10073 xcb_out.context_tag = context_tag;
10074 xcb_out.id = id;
10075 xcb_out.pname = pname;
10077 xcb_parts[2].iov_base = (char *) &xcb_out;
10078 xcb_parts[2].iov_len = sizeof(xcb_out);
10079 xcb_parts[3].iov_base = 0;
10080 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
10082 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
10083 return xcb_ret;
10086 xcb_glx_get_query_objectiv_arb_cookie_t
10087 xcb_glx_get_query_objectiv_arb_unchecked (xcb_connection_t *c /**< */,
10088 xcb_glx_context_tag_t context_tag /**< */,
10089 uint32_t id /**< */,
10090 uint32_t pname /**< */)
10092 static const xcb_protocol_request_t xcb_req = {
10093 /* count */ 2,
10094 /* ext */ &xcb_glx_id,
10095 /* opcode */ XCB_GLX_GET_QUERY_OBJECTIV_ARB,
10096 /* isvoid */ 0
10099 struct iovec xcb_parts[4];
10100 xcb_glx_get_query_objectiv_arb_cookie_t xcb_ret;
10101 xcb_glx_get_query_objectiv_arb_request_t xcb_out;
10103 xcb_out.context_tag = context_tag;
10104 xcb_out.id = id;
10105 xcb_out.pname = pname;
10107 xcb_parts[2].iov_base = (char *) &xcb_out;
10108 xcb_parts[2].iov_len = sizeof(xcb_out);
10109 xcb_parts[3].iov_base = 0;
10110 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
10112 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
10113 return xcb_ret;
10116 int32_t *
10117 xcb_glx_get_query_objectiv_arb_data (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */)
10119 return (int32_t *) (R + 1);
10123 xcb_glx_get_query_objectiv_arb_data_length (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */)
10125 return R->n;
10128 xcb_generic_iterator_t
10129 xcb_glx_get_query_objectiv_arb_data_end (const xcb_glx_get_query_objectiv_arb_reply_t *R /**< */)
10131 xcb_generic_iterator_t i;
10132 i.data = ((int32_t *) (R + 1)) + (R->n);
10133 i.rem = 0;
10134 i.index = (char *) i.data - (char *) R;
10135 return i;
10138 xcb_glx_get_query_objectiv_arb_reply_t *
10139 xcb_glx_get_query_objectiv_arb_reply (xcb_connection_t *c /**< */,
10140 xcb_glx_get_query_objectiv_arb_cookie_t cookie /**< */,
10141 xcb_generic_error_t **e /**< */)
10143 return (xcb_glx_get_query_objectiv_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
10147 xcb_glx_get_query_objectuiv_arb_sizeof (const void *_buffer /**< */)
10149 char *xcb_tmp = (char *)_buffer;
10150 const xcb_glx_get_query_objectuiv_arb_reply_t *_aux = (xcb_glx_get_query_objectuiv_arb_reply_t *)_buffer;
10151 unsigned int xcb_buffer_len = 0;
10152 unsigned int xcb_block_len = 0;
10153 unsigned int xcb_pad = 0;
10154 unsigned int xcb_align_to = 0;
10157 xcb_block_len += sizeof(xcb_glx_get_query_objectuiv_arb_reply_t);
10158 xcb_tmp += xcb_block_len;
10159 xcb_buffer_len += xcb_block_len;
10160 xcb_block_len = 0;
10161 /* data */
10162 xcb_block_len += _aux->n * sizeof(uint32_t);
10163 xcb_tmp += xcb_block_len;
10164 xcb_align_to = ALIGNOF(uint32_t);
10165 /* insert padding */
10166 xcb_pad = -xcb_block_len & (xcb_align_to - 1);
10167 xcb_buffer_len += xcb_block_len + xcb_pad;
10168 if (0 != xcb_pad) {
10169 xcb_tmp += xcb_pad;
10170 xcb_pad = 0;
10172 xcb_block_len = 0;
10174 return xcb_buffer_len;
10177 xcb_glx_get_query_objectuiv_arb_cookie_t
10178 xcb_glx_get_query_objectuiv_arb (xcb_connection_t *c /**< */,
10179 xcb_glx_context_tag_t context_tag /**< */,
10180 uint32_t id /**< */,
10181 uint32_t pname /**< */)
10183 static const xcb_protocol_request_t xcb_req = {
10184 /* count */ 2,
10185 /* ext */ &xcb_glx_id,
10186 /* opcode */ XCB_GLX_GET_QUERY_OBJECTUIV_ARB,
10187 /* isvoid */ 0
10190 struct iovec xcb_parts[4];
10191 xcb_glx_get_query_objectuiv_arb_cookie_t xcb_ret;
10192 xcb_glx_get_query_objectuiv_arb_request_t xcb_out;
10194 xcb_out.context_tag = context_tag;
10195 xcb_out.id = id;
10196 xcb_out.pname = pname;
10198 xcb_parts[2].iov_base = (char *) &xcb_out;
10199 xcb_parts[2].iov_len = sizeof(xcb_out);
10200 xcb_parts[3].iov_base = 0;
10201 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
10203 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
10204 return xcb_ret;
10207 xcb_glx_get_query_objectuiv_arb_cookie_t
10208 xcb_glx_get_query_objectuiv_arb_unchecked (xcb_connection_t *c /**< */,
10209 xcb_glx_context_tag_t context_tag /**< */,
10210 uint32_t id /**< */,
10211 uint32_t pname /**< */)
10213 static const xcb_protocol_request_t xcb_req = {
10214 /* count */ 2,
10215 /* ext */ &xcb_glx_id,
10216 /* opcode */ XCB_GLX_GET_QUERY_OBJECTUIV_ARB,
10217 /* isvoid */ 0
10220 struct iovec xcb_parts[4];
10221 xcb_glx_get_query_objectuiv_arb_cookie_t xcb_ret;
10222 xcb_glx_get_query_objectuiv_arb_request_t xcb_out;
10224 xcb_out.context_tag = context_tag;
10225 xcb_out.id = id;
10226 xcb_out.pname = pname;
10228 xcb_parts[2].iov_base = (char *) &xcb_out;
10229 xcb_parts[2].iov_len = sizeof(xcb_out);
10230 xcb_parts[3].iov_base = 0;
10231 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
10233 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
10234 return xcb_ret;
10237 uint32_t *
10238 xcb_glx_get_query_objectuiv_arb_data (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */)
10240 return (uint32_t *) (R + 1);
10244 xcb_glx_get_query_objectuiv_arb_data_length (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */)
10246 return R->n;
10249 xcb_generic_iterator_t
10250 xcb_glx_get_query_objectuiv_arb_data_end (const xcb_glx_get_query_objectuiv_arb_reply_t *R /**< */)
10252 xcb_generic_iterator_t i;
10253 i.data = ((uint32_t *) (R + 1)) + (R->n);
10254 i.rem = 0;
10255 i.index = (char *) i.data - (char *) R;
10256 return i;
10259 xcb_glx_get_query_objectuiv_arb_reply_t *
10260 xcb_glx_get_query_objectuiv_arb_reply (xcb_connection_t *c /**< */,
10261 xcb_glx_get_query_objectuiv_arb_cookie_t cookie /**< */,
10262 xcb_generic_error_t **e /**< */)
10264 return (xcb_glx_get_query_objectuiv_arb_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);