| 1 |
#ifndef _GLX_glxproto_h_ |
| 2 |
#define _GLX_glxproto_h_ |
| 3 |
|
| 4 |
/* |
| 5 |
** License Applicability. Except to the extent portions of this file are |
| 6 |
** made subject to an alternative license as permitted in the SGI Free |
| 7 |
** Software License B, Version 1.1 (the "License"), the contents of this |
| 8 |
** file are subject only to the provisions of the License. You may not use |
| 9 |
** this file except in compliance with the License. You may obtain a copy |
| 10 |
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 |
| 11 |
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: |
| 12 |
** |
| 13 |
** http://oss.sgi.com/projects/FreeB |
| 14 |
** |
| 15 |
** Note that, as provided in the License, the Software is distributed on an |
| 16 |
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS |
| 17 |
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND |
| 18 |
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A |
| 19 |
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. |
| 20 |
** |
| 21 |
** Original Code. The Original Code is: OpenGL Sample Implementation, |
| 22 |
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, |
| 23 |
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. |
| 24 |
** Copyright in any portions created by third parties is as indicated |
| 25 |
** elsewhere herein. All Rights Reserved. |
| 26 |
** |
| 27 |
** Additional Notice Provisions: The application programming interfaces |
| 28 |
** established by SGI in conjunction with the Original Code are The |
| 29 |
** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released |
| 30 |
** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version |
| 31 |
** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X |
| 32 |
** Window System(R) (Version 1.3), released October 19, 1998. This software |
| 33 |
** was created using the OpenGL(R) version 1.2.1 Sample Implementation |
| 34 |
** published by SGI, but has not been independently verified as being |
| 35 |
** compliant with the OpenGL(R) version 1.2.1 Specification. |
| 36 |
*/ |
| 37 |
|
| 38 |
#include <GL/glxmd.h> |
| 39 |
|
| 40 |
/*****************************************************************************/ |
| 41 |
|
| 42 |
/* |
| 43 |
** Errrors. |
| 44 |
*/ |
| 45 |
#define GLXBadContext 0 |
| 46 |
#define GLXBadContextState 1 |
| 47 |
#define GLXBadDrawable 2 |
| 48 |
#define GLXBadPixmap 3 |
| 49 |
#define GLXBadContextTag 4 |
| 50 |
#define GLXBadCurrentWindow 5 |
| 51 |
#define GLXBadRenderRequest 6 |
| 52 |
#define GLXBadLargeRequest 7 |
| 53 |
#define GLXUnsupportedPrivateRequest 8 |
| 54 |
#define GLXBadFBConfig 9 |
| 55 |
#define GLXBadPbuffer 10 |
| 56 |
#define GLXBadCurrentDrawable 11 |
| 57 |
#define GLXBadWindow 12 |
| 58 |
|
| 59 |
#define __GLX_NUMBER_ERRORS 12 |
| 60 |
|
| 61 |
/* |
| 62 |
** Events. |
| 63 |
** __GLX_NUMBER_EVENTS is set to 17 to account for the BufferClobberSGIX |
| 64 |
** event - this helps initialization if the server supports the pbuffer |
| 65 |
** extension and the client doesn't. |
| 66 |
*/ |
| 67 |
#define GLX_PbufferClobber 0 |
| 68 |
|
| 69 |
#define __GLX_NUMBER_EVENTS 17 |
| 70 |
|
| 71 |
#define GLX_EXTENSION_NAME "GLX" |
| 72 |
#define GLX_EXTENSION_ALIAS "SGI-GLX" |
| 73 |
|
| 74 |
#define __GLX_MAX_CONTEXT_PROPS 3 |
| 75 |
|
| 76 |
#ifndef GLX_VENDOR |
| 77 |
#define GLX_VENDOR 0x1 |
| 78 |
#endif |
| 79 |
#ifndef GLX_VERSION |
| 80 |
#define GLX_VERSION 0x2 |
| 81 |
#endif |
| 82 |
#ifndef GLX_EXTENSIONS |
| 83 |
#define GLX_EXTENSIONS 0x3 |
| 84 |
#endif |
| 85 |
|
| 86 |
/*****************************************************************************/ |
| 87 |
|
| 88 |
/* |
| 89 |
** For the structure definitions in this file, we must redefine these types in |
| 90 |
** terms of Xmd.h types, which may include bitfields. All of these are |
| 91 |
** undef'ed at the end of this file, restoring the definitions in glx.h. |
| 92 |
*/ |
| 93 |
#define GLXContextID CARD32 |
| 94 |
#define GLXPixmap CARD32 |
| 95 |
#define GLXDrawable CARD32 |
| 96 |
#define GLXPbuffer CARD32 |
| 97 |
#define GLXWindow CARD32 |
| 98 |
#define GLXFBConfigID CARD32 |
| 99 |
#define GLXFBConfigIDSGIX CARD32 |
| 100 |
#define GLXPbufferSGIX CARD32 |
| 101 |
|
| 102 |
/* |
| 103 |
** ContextTag is not exposed to the API. |
| 104 |
*/ |
| 105 |
typedef CARD32 GLXContextTag; |
| 106 |
|
| 107 |
/*****************************************************************************/ |
| 108 |
|
| 109 |
/* |
| 110 |
** Sizes of basic wire types. |
| 111 |
*/ |
| 112 |
#define __GLX_SIZE_INT8 1 |
| 113 |
#define __GLX_SIZE_INT16 2 |
| 114 |
#define __GLX_SIZE_INT32 4 |
| 115 |
#define __GLX_SIZE_CARD8 1 |
| 116 |
#define __GLX_SIZE_CARD16 2 |
| 117 |
#define __GLX_SIZE_CARD32 4 |
| 118 |
#define __GLX_SIZE_FLOAT32 4 |
| 119 |
#define __GLX_SIZE_FLOAT64 8 |
| 120 |
|
| 121 |
/*****************************************************************************/ |
| 122 |
|
| 123 |
/* Requests */ |
| 124 |
|
| 125 |
/* |
| 126 |
** Render command request. A bunch of rendering commands are packed into |
| 127 |
** a single X extension request. |
| 128 |
*/ |
| 129 |
typedef struct GLXRender { |
| 130 |
CARD8 reqType; |
| 131 |
CARD8 glxCode; |
| 132 |
CARD16 length B16; |
| 133 |
GLXContextTag contextTag B32; |
| 134 |
} xGLXRenderReq; |
| 135 |
#define sz_xGLXRenderReq 8 |
| 136 |
|
| 137 |
/* |
| 138 |
** The maximum size that a GLXRender command can be. The value must fit |
| 139 |
** in 16 bits and should be a multiple of 4. |
| 140 |
*/ |
| 141 |
#define __GLX_MAX_RENDER_CMD_SIZE 64000 |
| 142 |
|
| 143 |
/* |
| 144 |
** Large render command request. A single large rendering command |
| 145 |
** is output in multiple X extension requests. The first packet |
| 146 |
** contains an opcode dependent header (see below) that describes |
| 147 |
** the data that follows. |
| 148 |
*/ |
| 149 |
typedef struct GLXRenderLarge { |
| 150 |
CARD8 reqType; |
| 151 |
CARD8 glxCode; |
| 152 |
CARD16 length B16; |
| 153 |
GLXContextTag contextTag B32; |
| 154 |
CARD16 requestNumber B16; |
| 155 |
CARD16 requestTotal B16; |
| 156 |
CARD32 dataBytes B32; |
| 157 |
} xGLXRenderLargeReq; |
| 158 |
#define sz_xGLXRenderLargeReq 16 |
| 159 |
|
| 160 |
/* |
| 161 |
** GLX single request. Commands that go over as single GLX protocol |
| 162 |
** requests use this structure. The glxCode will be one of the X_GLsop |
| 163 |
** opcodes. |
| 164 |
*/ |
| 165 |
typedef struct GLXSingle { |
| 166 |
CARD8 reqType; |
| 167 |
CARD8 glxCode; |
| 168 |
CARD16 length B16; |
| 169 |
GLXContextTag contextTag B32; |
| 170 |
} xGLXSingleReq; |
| 171 |
#define sz_xGLXSingleReq 8 |
| 172 |
|
| 173 |
/* |
| 174 |
** glXQueryVersion request |
| 175 |
*/ |
| 176 |
typedef struct GLXQueryVersion { |
| 177 |
CARD8 reqType; |
| 178 |
CARD8 glxCode; |
| 179 |
CARD16 length B16; |
| 180 |
CARD32 majorVersion B32; |
| 181 |
CARD32 minorVersion B32; |
| 182 |
} xGLXQueryVersionReq; |
| 183 |
#define sz_xGLXQueryVersionReq 12 |
| 184 |
|
| 185 |
/* |
| 186 |
** glXIsDirect request |
| 187 |
*/ |
| 188 |
typedef struct GLXIsDirect { |
| 189 |
CARD8 reqType; |
| 190 |
CARD8 glxCode; |
| 191 |
CARD16 length B16; |
| 192 |
GLXContextID context B32; |
| 193 |
} xGLXIsDirectReq; |
| 194 |
#define sz_xGLXIsDirectReq 8 |
| 195 |
|
| 196 |
/* |
| 197 |
** glXCreateContext request |
| 198 |
*/ |
| 199 |
typedef struct GLXCreateContext { |
| 200 |
CARD8 reqType; |
| 201 |
CARD8 glxCode; |
| 202 |
CARD16 length B16; |
| 203 |
GLXContextID context B32; |
| 204 |
CARD32 visual B32; |
| 205 |
CARD32 screen B32; |
| 206 |
GLXContextID shareList B32; |
| 207 |
BOOL isDirect; |
| 208 |
CARD8 reserved1; |
| 209 |
CARD16 reserved2 B16; |
| 210 |
} xGLXCreateContextReq; |
| 211 |
#define sz_xGLXCreateContextReq 24 |
| 212 |
|
| 213 |
/* |
| 214 |
** glXDestroyContext request |
| 215 |
*/ |
| 216 |
typedef struct GLXDestroyContext { |
| 217 |
CARD8 reqType; |
| 218 |
CARD8 glxCode; |
| 219 |
CARD16 length B16; |
| 220 |
GLXContextID context B32; |
| 221 |
} xGLXDestroyContextReq; |
| 222 |
#define sz_xGLXDestroyContextReq 8 |
| 223 |
|
| 224 |
/* |
| 225 |
** glXMakeCurrent request |
| 226 |
*/ |
| 227 |
typedef struct GLXMakeCurrent { |
| 228 |
CARD8 reqType; |
| 229 |
CARD8 glxCode; |
| 230 |
CARD16 length B16; |
| 231 |
GLXDrawable drawable B32; |
| 232 |
GLXContextID context B32; |
| 233 |
GLXContextTag oldContextTag B32; |
| 234 |
} xGLXMakeCurrentReq; |
| 235 |
#define sz_xGLXMakeCurrentReq 16 |
| 236 |
|
| 237 |
/* |
| 238 |
** glXWaitGL request |
| 239 |
*/ |
| 240 |
typedef struct GLXWaitGL { |
| 241 |
CARD8 reqType; |
| 242 |
CARD8 glxCode; |
| 243 |
CARD16 length B16; |
| 244 |
GLXContextTag contextTag B32; |
| 245 |
} xGLXWaitGLReq; |
| 246 |
#define sz_xGLXWaitGLReq 8 |
| 247 |
|
| 248 |
/* |
| 249 |
** glXWaitX request |
| 250 |
*/ |
| 251 |
typedef struct GLXWaitX { |
| 252 |
CARD8 reqType; |
| 253 |
CARD8 glxCode; |
| 254 |
CARD16 length B16; |
| 255 |
GLXContextTag contextTag B32; |
| 256 |
} xGLXWaitXReq; |
| 257 |
#define sz_xGLXWaitXReq 8 |
| 258 |
|
| 259 |
/* |
| 260 |
** glXCopyContext request |
| 261 |
*/ |
| 262 |
typedef struct GLXCopyContext { |
| 263 |
CARD8 reqType; |
| 264 |
CARD8 glxCode; |
| 265 |
CARD16 length B16; |
| 266 |
GLXContextID source B32; |
| 267 |
GLXContextID dest B32; |
| 268 |
CARD32 mask B32; |
| 269 |
GLXContextTag contextTag B32; |
| 270 |
} xGLXCopyContextReq; |
| 271 |
#define sz_xGLXCopyContextReq 20 |
| 272 |
|
| 273 |
/* |
| 274 |
** glXSwapBuffers request |
| 275 |
*/ |
| 276 |
typedef struct GLXSwapBuffers { |
| 277 |
CARD8 reqType; |
| 278 |
CARD8 glxCode; |
| 279 |
CARD16 length B16; |
| 280 |
GLXContextTag contextTag B32; |
| 281 |
GLXDrawable drawable B32; |
| 282 |
} xGLXSwapBuffersReq; |
| 283 |
#define sz_xGLXSwapBuffersReq 12 |
| 284 |
|
| 285 |
/* |
| 286 |
** glXUseXFont request |
| 287 |
*/ |
| 288 |
typedef struct GLXUseXFont { |
| 289 |
CARD8 reqType; |
| 290 |
CARD8 glxCode; |
| 291 |
CARD16 length B16; |
| 292 |
GLXContextTag contextTag B32; |
| 293 |
CARD32 font B32; |
| 294 |
CARD32 first B32; |
| 295 |
CARD32 count B32; |
| 296 |
CARD32 listBase B32; |
| 297 |
} xGLXUseXFontReq; |
| 298 |
#define sz_xGLXUseXFontReq 24 |
| 299 |
|
| 300 |
/* |
| 301 |
** glXCreateGLXPixmap request |
| 302 |
*/ |
| 303 |
typedef struct GLXCreateGLXPixmap { |
| 304 |
CARD8 reqType; |
| 305 |
CARD8 glxCode; |
| 306 |
CARD16 length B16; |
| 307 |
CARD32 screen B32; |
| 308 |
CARD32 visual B32; |
| 309 |
CARD32 pixmap B32; |
| 310 |
GLXPixmap glxpixmap B32; |
| 311 |
} xGLXCreateGLXPixmapReq; |
| 312 |
#define sz_xGLXCreateGLXPixmapReq 20 |
| 313 |
|
| 314 |
/* |
| 315 |
** glXDestroyGLXPixmap request |
| 316 |
*/ |
| 317 |
typedef struct GLXDestroyGLXPixmap { |
| 318 |
CARD8 reqType; |
| 319 |
CARD8 glxCode; |
| 320 |
CARD16 length B16; |
| 321 |
GLXPixmap glxpixmap B32; |
| 322 |
} xGLXDestroyGLXPixmapReq; |
| 323 |
#define sz_xGLXDestroyGLXPixmapReq 8 |
| 324 |
|
| 325 |
/* |
| 326 |
** glXGetVisualConfigs request |
| 327 |
*/ |
| 328 |
typedef struct GLXGetVisualConfigs { |
| 329 |
CARD8 reqType; |
| 330 |
CARD8 glxCode; |
| 331 |
CARD16 length B16; |
| 332 |
CARD32 screen B32; |
| 333 |
} xGLXGetVisualConfigsReq; |
| 334 |
#define sz_xGLXGetVisualConfigsReq 8 |
| 335 |
|
| 336 |
/* |
| 337 |
** glXVendorPrivate request. |
| 338 |
*/ |
| 339 |
typedef struct GLXVendorPrivate { |
| 340 |
CARD8 reqType; |
| 341 |
CARD8 glxCode; |
| 342 |
CARD16 length B16; |
| 343 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 344 |
GLXContextTag contextTag B32; |
| 345 |
/* |
| 346 |
** More data may follow; this is just the header. |
| 347 |
*/ |
| 348 |
} xGLXVendorPrivateReq; |
| 349 |
#define sz_xGLXVendorPrivateReq 12 |
| 350 |
|
| 351 |
/* |
| 352 |
** glXVendorPrivateWithReply request |
| 353 |
*/ |
| 354 |
typedef struct GLXVendorPrivateWithReply { |
| 355 |
CARD8 reqType; |
| 356 |
CARD8 glxCode; |
| 357 |
CARD16 length B16; |
| 358 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 359 |
GLXContextTag contextTag B32; |
| 360 |
/* |
| 361 |
** More data may follow; this is just the header. |
| 362 |
*/ |
| 363 |
} xGLXVendorPrivateWithReplyReq; |
| 364 |
#define sz_xGLXVendorPrivateWithReplyReq 12 |
| 365 |
|
| 366 |
/* |
| 367 |
** glXQueryExtensionsString request |
| 368 |
*/ |
| 369 |
typedef struct GLXQueryExtensionsString { |
| 370 |
CARD8 reqType; |
| 371 |
CARD8 glxCode; |
| 372 |
CARD16 length B16; |
| 373 |
CARD32 screen B32; |
| 374 |
} xGLXQueryExtensionsStringReq; |
| 375 |
#define sz_xGLXQueryExtensionsStringReq 8 |
| 376 |
|
| 377 |
/* |
| 378 |
** glXQueryServerString request |
| 379 |
*/ |
| 380 |
typedef struct GLXQueryServerString { |
| 381 |
CARD8 reqType; |
| 382 |
CARD8 glxCode; |
| 383 |
CARD16 length B16; |
| 384 |
CARD32 screen B32; |
| 385 |
CARD32 name B32; |
| 386 |
} xGLXQueryServerStringReq; |
| 387 |
#define sz_xGLXQueryServerStringReq 12 |
| 388 |
|
| 389 |
/* |
| 390 |
** glXClientInfo request |
| 391 |
*/ |
| 392 |
typedef struct GLXClientInfo { |
| 393 |
CARD8 reqType; |
| 394 |
CARD8 glxCode; |
| 395 |
CARD16 length B16; |
| 396 |
CARD32 major B32; |
| 397 |
CARD32 minor B32; |
| 398 |
CARD32 numbytes B32; |
| 399 |
} xGLXClientInfoReq; |
| 400 |
#define sz_xGLXClientInfoReq 16 |
| 401 |
|
| 402 |
/*** Start of GLX 1.3 requests */ |
| 403 |
|
| 404 |
/* |
| 405 |
** glXGetFBConfigs request |
| 406 |
*/ |
| 407 |
typedef struct GLXGetFBConfigs { |
| 408 |
CARD8 reqType; |
| 409 |
CARD8 glxCode; |
| 410 |
CARD16 length B16; |
| 411 |
CARD32 screen B32; |
| 412 |
} xGLXGetFBConfigsReq; |
| 413 |
#define sz_xGLXGetFBConfigsReq 8 |
| 414 |
|
| 415 |
/* |
| 416 |
** glXCreatePixmap request |
| 417 |
*/ |
| 418 |
typedef struct GLXCreatePixmap { |
| 419 |
CARD8 reqType; |
| 420 |
CARD8 glxCode; |
| 421 |
CARD16 length B16; |
| 422 |
CARD32 screen B32; |
| 423 |
GLXFBConfigID fbconfig B32; |
| 424 |
CARD32 pixmap B32; |
| 425 |
GLXPixmap glxpixmap B32; |
| 426 |
CARD32 numAttribs B32; |
| 427 |
/* followed by attribute list */ |
| 428 |
} xGLXCreatePixmapReq; |
| 429 |
#define sz_xGLXCreatePixmapReq 24 |
| 430 |
|
| 431 |
/* |
| 432 |
** glXDestroyPixmap request |
| 433 |
*/ |
| 434 |
typedef struct GLXDestroyPixmap { |
| 435 |
CARD8 reqType; |
| 436 |
CARD8 glxCode; |
| 437 |
CARD16 length B16; |
| 438 |
GLXPixmap glxpixmap B32; |
| 439 |
} xGLXDestroyPixmapReq; |
| 440 |
#define sz_xGLXDestroyPixmapReq 8 |
| 441 |
|
| 442 |
/* |
| 443 |
** glXCreateNewContext request |
| 444 |
*/ |
| 445 |
typedef struct GLXCreateNewContext { |
| 446 |
CARD8 reqType; |
| 447 |
CARD8 glxCode; |
| 448 |
CARD16 length B16; |
| 449 |
GLXContextID context B32; |
| 450 |
GLXFBConfigID fbconfig B32; |
| 451 |
CARD32 screen B32; |
| 452 |
CARD32 renderType; |
| 453 |
GLXContextID shareList B32; |
| 454 |
BOOL isDirect; |
| 455 |
CARD8 reserved1; |
| 456 |
CARD16 reserved2 B16; |
| 457 |
} xGLXCreateNewContextReq; |
| 458 |
#define sz_xGLXCreateNewContextReq 28 |
| 459 |
|
| 460 |
/* |
| 461 |
** glXQueryContext request |
| 462 |
*/ |
| 463 |
typedef struct GLXQueryContext { |
| 464 |
CARD8 reqType; |
| 465 |
CARD8 glxCode; |
| 466 |
CARD16 length B16; |
| 467 |
GLXContextID context B32; |
| 468 |
} xGLXQueryContextReq; |
| 469 |
#define sz_xGLXQueryContextReq 8 |
| 470 |
|
| 471 |
/* |
| 472 |
** glXMakeContextCurrent request |
| 473 |
*/ |
| 474 |
typedef struct GLXMakeContextCurrent { |
| 475 |
CARD8 reqType; |
| 476 |
CARD8 glxCode; |
| 477 |
CARD16 length B16; |
| 478 |
GLXContextTag oldContextTag B32; |
| 479 |
GLXDrawable drawable B32; |
| 480 |
GLXDrawable readdrawable B32; |
| 481 |
GLXContextID context B32; |
| 482 |
} xGLXMakeContextCurrentReq; |
| 483 |
#define sz_xGLXMakeContextCurrentReq 20 |
| 484 |
|
| 485 |
/* |
| 486 |
** glXCreatePbuffer request |
| 487 |
*/ |
| 488 |
typedef struct GLXCreatePbuffer { |
| 489 |
CARD8 reqType; |
| 490 |
CARD8 glxCode; |
| 491 |
CARD16 length B16; |
| 492 |
CARD32 screen B32; |
| 493 |
GLXFBConfigID fbconfig B32; |
| 494 |
GLXPbuffer pbuffer B32; |
| 495 |
CARD32 numAttribs B32; |
| 496 |
/* followed by attribute list */ |
| 497 |
} xGLXCreatePbufferReq; |
| 498 |
#define sz_xGLXCreatePbufferReq 20 |
| 499 |
|
| 500 |
/* |
| 501 |
** glXDestroyPbuffer request |
| 502 |
*/ |
| 503 |
typedef struct GLXDestroyPbuffer { |
| 504 |
CARD8 reqType; |
| 505 |
CARD8 glxCode; |
| 506 |
CARD16 length B16; |
| 507 |
GLXPbuffer pbuffer B32; |
| 508 |
} xGLXDestroyPbufferReq; |
| 509 |
#define sz_xGLXDestroyPbufferReq 8 |
| 510 |
|
| 511 |
/* |
| 512 |
** glXGetDrawableAttributes request |
| 513 |
*/ |
| 514 |
typedef struct GLXGetDrawableAttributes { |
| 515 |
CARD8 reqType; |
| 516 |
CARD8 glxCode; |
| 517 |
CARD16 length B16; |
| 518 |
GLXDrawable drawable B32; |
| 519 |
} xGLXGetDrawableAttributesReq; |
| 520 |
#define sz_xGLXGetDrawableAttributesReq 8 |
| 521 |
|
| 522 |
/* |
| 523 |
** glXChangeDrawableAttributes request |
| 524 |
*/ |
| 525 |
typedef struct GLXChangeDrawableAttributes { |
| 526 |
CARD8 reqType; |
| 527 |
CARD8 glxCode; |
| 528 |
CARD16 length B16; |
| 529 |
GLXDrawable drawable B32; |
| 530 |
CARD32 numAttribs B32; |
| 531 |
/* followed by attribute list */ |
| 532 |
} xGLXChangeDrawableAttributesReq; |
| 533 |
#define sz_xGLXChangeDrawableAttributesReq 12 |
| 534 |
|
| 535 |
/* |
| 536 |
** glXCreateWindow request |
| 537 |
*/ |
| 538 |
typedef struct GLXCreateWindow { |
| 539 |
CARD8 reqType; |
| 540 |
CARD8 glxCode; |
| 541 |
CARD16 length B16; |
| 542 |
CARD32 screen B32; |
| 543 |
GLXFBConfigID fbconfig B32; |
| 544 |
CARD32 window B32; |
| 545 |
GLXWindow glxwindow B32; |
| 546 |
CARD32 numAttribs B32; |
| 547 |
/* followed by attribute list */ |
| 548 |
} xGLXCreateWindowReq; |
| 549 |
#define sz_xGLXCreateWindowReq 24 |
| 550 |
|
| 551 |
/* |
| 552 |
** glXDestroyWindow request |
| 553 |
*/ |
| 554 |
typedef struct GLXDestroyWindow { |
| 555 |
CARD8 reqType; |
| 556 |
CARD8 glxCode; |
| 557 |
CARD16 length B16; |
| 558 |
GLXWindow glxwindow B32; |
| 559 |
} xGLXDestroyWindowReq; |
| 560 |
#define sz_xGLXDestroyWindowReq 8 |
| 561 |
|
| 562 |
/* Replies */ |
| 563 |
|
| 564 |
typedef struct { |
| 565 |
BYTE type; /* X_Reply */ |
| 566 |
CARD8 unused; /* not used */ |
| 567 |
CARD16 sequenceNumber B16; |
| 568 |
CARD32 length B32; |
| 569 |
CARD32 error B32; |
| 570 |
CARD32 pad2 B32; |
| 571 |
CARD32 pad3 B32; |
| 572 |
CARD32 pad4 B32; |
| 573 |
CARD32 pad5 B32; |
| 574 |
CARD32 pad6 B32; |
| 575 |
} xGLXGetErrorReply; |
| 576 |
#define sz_xGLXGetErrorReply 32 |
| 577 |
|
| 578 |
typedef struct { |
| 579 |
BYTE type; /* X_Reply */ |
| 580 |
CARD8 unused; /* not used */ |
| 581 |
CARD16 sequenceNumber B16; |
| 582 |
CARD32 length B32; |
| 583 |
GLXContextTag contextTag B32; |
| 584 |
CARD32 pad2 B32; |
| 585 |
CARD32 pad3 B32; |
| 586 |
CARD32 pad4 B32; |
| 587 |
CARD32 pad5 B32; |
| 588 |
CARD32 pad6 B32; |
| 589 |
} xGLXMakeCurrentReply; |
| 590 |
#define sz_xGLXMakeCurrentReply 32 |
| 591 |
|
| 592 |
typedef struct { |
| 593 |
BYTE type; /* X_Reply */ |
| 594 |
CARD8 unused; /* not used */ |
| 595 |
CARD16 sequenceNumber B16; |
| 596 |
CARD32 length B32; |
| 597 |
CARD32 pad1 B32; |
| 598 |
CARD32 pad2 B32; |
| 599 |
CARD32 pad3 B32; |
| 600 |
CARD32 pad4 B32; |
| 601 |
CARD32 pad5 B32; |
| 602 |
CARD32 pad6 B32; |
| 603 |
} xGLXReadPixelsReply; |
| 604 |
#define sz_xGLXReadPixelsReply 32 |
| 605 |
|
| 606 |
typedef struct { |
| 607 |
BYTE type; /* X_Reply */ |
| 608 |
CARD8 unused; /* not used */ |
| 609 |
CARD16 sequenceNumber B16; |
| 610 |
CARD32 length B32; |
| 611 |
CARD32 pad1 B32; |
| 612 |
CARD32 pad2 B32; |
| 613 |
CARD32 width B32; |
| 614 |
CARD32 height B32; |
| 615 |
CARD32 depth B32; |
| 616 |
CARD32 pad6 B32; |
| 617 |
} xGLXGetTexImageReply; |
| 618 |
#define sz_xGLXGetTexImageReply 32 |
| 619 |
|
| 620 |
typedef struct { |
| 621 |
BYTE type; /* X_Reply */ |
| 622 |
CARD8 unused; /* not used */ |
| 623 |
CARD16 sequenceNumber B16; |
| 624 |
CARD32 length B32; |
| 625 |
CARD32 pad1 B32; |
| 626 |
CARD32 pad2 B32; |
| 627 |
CARD32 width B32; |
| 628 |
CARD32 height B32; |
| 629 |
CARD32 pad5 B32; |
| 630 |
CARD32 pad6 B32; |
| 631 |
} xGLXGetSeparableFilterReply; |
| 632 |
#define sz_xGLXGetSeparableFilterReply 32 |
| 633 |
|
| 634 |
typedef struct { |
| 635 |
BYTE type; /* X_Reply */ |
| 636 |
CARD8 unused; /* not used */ |
| 637 |
CARD16 sequenceNumber B16; |
| 638 |
CARD32 length B32; |
| 639 |
CARD32 pad1 B32; |
| 640 |
CARD32 pad2 B32; |
| 641 |
CARD32 width B32; |
| 642 |
CARD32 height B32; |
| 643 |
CARD32 pad5 B32; |
| 644 |
CARD32 pad6 B32; |
| 645 |
} xGLXGetConvolutionFilterReply; |
| 646 |
#define sz_xGLXGetConvolutionFilterReply 32 |
| 647 |
|
| 648 |
typedef struct { |
| 649 |
BYTE type; /* X_Reply */ |
| 650 |
CARD8 unused; /* not used */ |
| 651 |
CARD16 sequenceNumber B16; |
| 652 |
CARD32 length B32; |
| 653 |
CARD32 pad1 B32; |
| 654 |
CARD32 pad2 B32; |
| 655 |
CARD32 width B32; |
| 656 |
CARD32 pad4 B32; |
| 657 |
CARD32 pad5 B32; |
| 658 |
CARD32 pad6 B32; |
| 659 |
} xGLXGetHistogramReply; |
| 660 |
#define sz_xGLXGetHistogramReply 32 |
| 661 |
|
| 662 |
typedef struct { |
| 663 |
BYTE type; /* X_Reply */ |
| 664 |
CARD8 unused; /* not used */ |
| 665 |
CARD16 sequenceNumber B16; |
| 666 |
CARD32 length B32; |
| 667 |
CARD32 pad1 B32; |
| 668 |
CARD32 pad2 B32; |
| 669 |
CARD32 pad3 B32; |
| 670 |
CARD32 pad4 B32; |
| 671 |
CARD32 pad5 B32; |
| 672 |
CARD32 pad6 B32; |
| 673 |
} xGLXGetMinmaxReply; |
| 674 |
#define sz_xGLXGetMinmaxReply 32 |
| 675 |
|
| 676 |
typedef struct { |
| 677 |
BYTE type; /* X_Reply */ |
| 678 |
CARD8 unused; /* not used */ |
| 679 |
CARD16 sequenceNumber B16; |
| 680 |
CARD32 length B32; |
| 681 |
CARD32 retval B32; |
| 682 |
CARD32 size B32; |
| 683 |
CARD32 newMode B32; |
| 684 |
CARD32 pad4 B32; |
| 685 |
CARD32 pad5 B32; |
| 686 |
CARD32 pad6 B32; |
| 687 |
} xGLXRenderModeReply; |
| 688 |
#define sz_xGLXRenderModeReply 32 |
| 689 |
|
| 690 |
typedef struct { |
| 691 |
BYTE type; /* X_Reply */ |
| 692 |
CARD8 unused; /* not used */ |
| 693 |
CARD16 sequenceNumber B16; |
| 694 |
CARD32 length B32; |
| 695 |
CARD32 majorVersion B32; |
| 696 |
CARD32 minorVersion B32; |
| 697 |
CARD32 pad3 B32; |
| 698 |
CARD32 pad4 B32; |
| 699 |
CARD32 pad5 B32; |
| 700 |
CARD32 pad6 B32; |
| 701 |
} xGLXQueryVersionReply; |
| 702 |
#define sz_xGLXQueryVersionReply 32 |
| 703 |
|
| 704 |
typedef struct { |
| 705 |
BYTE type; /* X_Reply */ |
| 706 |
CARD8 unused; /* not used */ |
| 707 |
CARD16 sequenceNumber B16; |
| 708 |
CARD32 length B32; |
| 709 |
CARD32 numVisuals B32; |
| 710 |
CARD32 numProps B32; |
| 711 |
CARD32 pad3 B32; |
| 712 |
CARD32 pad4 B32; |
| 713 |
CARD32 pad5 B32; |
| 714 |
CARD32 pad6 B32; |
| 715 |
} xGLXGetVisualConfigsReply; |
| 716 |
#define sz_xGLXGetVisualConfigsReply 32 |
| 717 |
|
| 718 |
typedef struct { |
| 719 |
BYTE type; /* X_Reply */ |
| 720 |
CARD8 unused; /* not used */ |
| 721 |
CARD16 sequenceNumber B16; |
| 722 |
CARD32 length B32; |
| 723 |
BOOL isDirect; |
| 724 |
CARD8 pad1; |
| 725 |
CARD16 pad2 B16; |
| 726 |
CARD32 pad3 B32; |
| 727 |
CARD32 pad4 B32; |
| 728 |
CARD32 pad5 B32; |
| 729 |
CARD32 pad6 B32; |
| 730 |
CARD32 pad7 B32; |
| 731 |
} xGLXIsDirectReply; |
| 732 |
#define sz_xGLXIsDirectReply 32 |
| 733 |
|
| 734 |
/* |
| 735 |
** This reply structure is used for all single replies. Single replies |
| 736 |
** ship either 1 piece of data or N pieces of data. In these cases |
| 737 |
** size indicates how much data is to be returned. |
| 738 |
*/ |
| 739 |
typedef struct { |
| 740 |
BYTE type; /* X_Reply */ |
| 741 |
CARD8 unused; /* not used */ |
| 742 |
CARD16 sequenceNumber B16; |
| 743 |
CARD32 length B32; |
| 744 |
CARD32 retval B32; |
| 745 |
CARD32 size B32; |
| 746 |
CARD32 pad3 B32; /* NOTE: may hold a single value */ |
| 747 |
CARD32 pad4 B32; /* NOTE: may hold half a double */ |
| 748 |
CARD32 pad5 B32; |
| 749 |
CARD32 pad6 B32; |
| 750 |
} xGLXSingleReply; |
| 751 |
#define sz_xGLXSingleReply 32 |
| 752 |
|
| 753 |
/* |
| 754 |
** This reply structure is used for all Vendor Private replies. Vendor |
| 755 |
** Private replies can ship up to 24 bytes within the header or can |
| 756 |
** be variable sized, in which case, the reply length field indicates |
| 757 |
** the number of words of data which follow the header. |
| 758 |
*/ |
| 759 |
typedef struct { |
| 760 |
BYTE type; /* X_Reply */ |
| 761 |
CARD8 unused; /* not used */ |
| 762 |
CARD16 sequenceNumber B16; |
| 763 |
CARD32 length B32; |
| 764 |
CARD32 retval B32; |
| 765 |
CARD32 size B32; |
| 766 |
CARD32 pad3 B32; |
| 767 |
CARD32 pad4 B32; |
| 768 |
CARD32 pad5 B32; |
| 769 |
CARD32 pad6 B32; |
| 770 |
} xGLXVendorPrivReply; |
| 771 |
#define sz_xGLXVendorPrivReply 32 |
| 772 |
|
| 773 |
/* |
| 774 |
** QueryExtensionsStringReply |
| 775 |
** n indicates the number of bytes to be returned. |
| 776 |
*/ |
| 777 |
typedef struct { |
| 778 |
BYTE type; /* X_Reply */ |
| 779 |
CARD8 unused; /* not used */ |
| 780 |
CARD16 sequenceNumber B16; |
| 781 |
CARD32 length B32; |
| 782 |
CARD32 pad1 B32; |
| 783 |
CARD32 n B32; |
| 784 |
CARD32 pad3 B32; |
| 785 |
CARD32 pad4 B32; |
| 786 |
CARD32 pad5 B32; |
| 787 |
CARD32 pad6 B32; |
| 788 |
} xGLXQueryExtensionsStringReply; |
| 789 |
#define sz_xGLXQueryExtensionsStringReply 32 |
| 790 |
|
| 791 |
/* |
| 792 |
** QueryServerString Reply struct |
| 793 |
** n indicates the number of bytes to be returned. |
| 794 |
*/ |
| 795 |
typedef struct { |
| 796 |
BYTE type; /* X_Reply */ |
| 797 |
CARD8 unused; /* not used */ |
| 798 |
CARD16 sequenceNumber B16; |
| 799 |
CARD32 length B32; |
| 800 |
CARD32 pad1 B32; |
| 801 |
CARD32 n B32; |
| 802 |
CARD32 pad3 B32; /* NOTE: may hold a single value */ |
| 803 |
CARD32 pad4 B32; /* NOTE: may hold half a double */ |
| 804 |
CARD32 pad5 B32; |
| 805 |
CARD32 pad6 B32; |
| 806 |
} xGLXQueryServerStringReply; |
| 807 |
#define sz_xGLXQueryServerStringReply 32 |
| 808 |
|
| 809 |
/*** Start of GLX 1.3 replies */ |
| 810 |
|
| 811 |
/* |
| 812 |
** glXGetFBConfigs reply |
| 813 |
*/ |
| 814 |
typedef struct { |
| 815 |
BYTE type; /* X_Reply */ |
| 816 |
CARD8 unused; /* not used */ |
| 817 |
CARD16 sequenceNumber B16; |
| 818 |
CARD32 length B32; |
| 819 |
CARD32 numFBConfigs B32; |
| 820 |
CARD32 numAttribs B32; |
| 821 |
CARD32 pad3 B32; |
| 822 |
CARD32 pad4 B32; |
| 823 |
CARD32 pad5 B32; |
| 824 |
CARD32 pad6 B32; |
| 825 |
} xGLXGetFBConfigsReply; |
| 826 |
#define sz_xGLXGetFBConfigsReply 32 |
| 827 |
|
| 828 |
/* |
| 829 |
** glXQueryContext reply |
| 830 |
*/ |
| 831 |
typedef struct { |
| 832 |
BYTE type; /* X_Reply */ |
| 833 |
CARD8 unused; /* not used */ |
| 834 |
CARD16 sequenceNumber B16; |
| 835 |
CARD32 length B32; |
| 836 |
CARD32 n B32; /* number of attribute/value pairs */ |
| 837 |
CARD32 pad2 B32; |
| 838 |
CARD32 pad3 B32; |
| 839 |
CARD32 pad4 B32; |
| 840 |
CARD32 pad5 B32; |
| 841 |
CARD32 pad6 B32; |
| 842 |
} xGLXQueryContextReply; |
| 843 |
#define sz_xGLXQueryContextReply 32 |
| 844 |
|
| 845 |
/* |
| 846 |
** glXMakeContextCurrent reply |
| 847 |
*/ |
| 848 |
typedef struct { |
| 849 |
BYTE type; /* X_Reply */ |
| 850 |
CARD8 unused; /* not used */ |
| 851 |
CARD16 sequenceNumber B16; |
| 852 |
CARD32 length B32; |
| 853 |
GLXContextTag contextTag B32; |
| 854 |
CARD32 pad2 B32; |
| 855 |
CARD32 pad3 B32; |
| 856 |
CARD32 pad4 B32; |
| 857 |
CARD32 pad5 B32; |
| 858 |
CARD32 pad6 B32; |
| 859 |
} xGLXMakeContextCurrentReply; |
| 860 |
#define sz_xGLXMakeContextCurrentReply 32 |
| 861 |
|
| 862 |
/* |
| 863 |
** glXCreateGLXPbuffer reply |
| 864 |
** This is used only in the direct rendering case on SGIs - otherwise |
| 865 |
** CreateGLXPbuffer has no reply. It is not part of GLX 1.3. |
| 866 |
*/ |
| 867 |
typedef struct { |
| 868 |
BYTE type; /* X_Reply */ |
| 869 |
CARD8 success; |
| 870 |
CARD16 sequenceNumber B16; |
| 871 |
CARD32 length B32; |
| 872 |
CARD32 pad1 B32; |
| 873 |
CARD32 pad2 B32; |
| 874 |
CARD32 pad3 B32; |
| 875 |
CARD32 pad4 B32; |
| 876 |
CARD32 pad5 B32; |
| 877 |
CARD32 pad6 B32; |
| 878 |
} xGLXCreateGLXPbufferReply; |
| 879 |
#define sz_xGLXCreateGLXPbufferReply 32 |
| 880 |
|
| 881 |
/* |
| 882 |
** glXGetDrawableAttributes reply |
| 883 |
*/ |
| 884 |
typedef struct { |
| 885 |
BYTE type; /* X_Reply */ |
| 886 |
CARD8 unused; /* not used */ |
| 887 |
CARD16 sequenceNumber B16; |
| 888 |
CARD32 length B32; |
| 889 |
CARD32 numAttribs B32; |
| 890 |
CARD32 pad2 B32; |
| 891 |
CARD32 pad3 B32; |
| 892 |
CARD32 pad4 B32; |
| 893 |
CARD32 pad5 B32; |
| 894 |
CARD32 pad6 B32; |
| 895 |
} xGLXGetDrawableAttributesReply; |
| 896 |
#define sz_xGLXGetDrawableAttributesReply 32 |
| 897 |
|
| 898 |
/* |
| 899 |
** glXGetColorTable reply |
| 900 |
*/ |
| 901 |
typedef struct { |
| 902 |
BYTE type; /* X_Reply */ |
| 903 |
CARD8 unused; /* not used */ |
| 904 |
CARD16 sequenceNumber B16; |
| 905 |
CARD32 length B32; |
| 906 |
CARD32 pad1 B32; |
| 907 |
CARD32 pad2 B32; |
| 908 |
CARD32 width B32; |
| 909 |
CARD32 pad4 B32; |
| 910 |
CARD32 pad5 B32; |
| 911 |
CARD32 pad6 B32; |
| 912 |
} xGLXGetColorTableReply; |
| 913 |
#define sz_xGLXGetColorTableReply 32 |
| 914 |
|
| 915 |
/************************************************************************/ |
| 916 |
|
| 917 |
/* GLX extension requests and replies */ |
| 918 |
|
| 919 |
/* |
| 920 |
** glXQueryContextInfoEXT request |
| 921 |
*/ |
| 922 |
typedef struct GLXQueryContextInfoEXT { |
| 923 |
CARD8 reqType; |
| 924 |
CARD8 glxCode; |
| 925 |
CARD16 length B16; |
| 926 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 927 |
CARD32 pad1 B32; /* unused; corresponds to contextTag in header */ |
| 928 |
GLXContextID context B32; |
| 929 |
} xGLXQueryContextInfoEXTReq; |
| 930 |
#define sz_xGLXQueryContextInfoEXTReq 16 |
| 931 |
|
| 932 |
/* |
| 933 |
** glXQueryContextInfoEXT reply |
| 934 |
*/ |
| 935 |
typedef struct { |
| 936 |
BYTE type; /* X_Reply */ |
| 937 |
CARD8 unused; /* not used */ |
| 938 |
CARD16 sequenceNumber B16; |
| 939 |
CARD32 length B32; |
| 940 |
CARD32 n B32; /* number of attribute/value pairs */ |
| 941 |
CARD32 pad2 B32; |
| 942 |
CARD32 pad3 B32; |
| 943 |
CARD32 pad4 B32; |
| 944 |
CARD32 pad5 B32; |
| 945 |
CARD32 pad6 B32; |
| 946 |
} xGLXQueryContextInfoEXTReply; |
| 947 |
#define sz_xGLXQueryContextInfoEXTReply 32 |
| 948 |
|
| 949 |
/* |
| 950 |
** glXMakeCurrentReadSGI request |
| 951 |
*/ |
| 952 |
typedef struct GLXMakeCurrentReadSGI { |
| 953 |
CARD8 reqType; |
| 954 |
CARD8 glxCode; |
| 955 |
CARD16 length B16; |
| 956 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 957 |
GLXContextTag oldContextTag B32; |
| 958 |
GLXDrawable drawable B32; |
| 959 |
GLXDrawable readable B32; |
| 960 |
GLXContextID context B32; |
| 961 |
} xGLXMakeCurrentReadSGIReq; |
| 962 |
#define sz_xGLXMakeCurrentReadSGIReq 24 |
| 963 |
|
| 964 |
typedef struct { |
| 965 |
BYTE type; /* X_Reply */ |
| 966 |
CARD8 unused; /* not used */ |
| 967 |
CARD16 sequenceNumber B16; |
| 968 |
CARD32 length B32; |
| 969 |
GLXContextTag contextTag B32; |
| 970 |
CARD32 writeVid B32; |
| 971 |
CARD32 writeType B32; |
| 972 |
CARD32 readVid B32; |
| 973 |
CARD32 readType B32; |
| 974 |
CARD32 pad6 B32; |
| 975 |
} xGLXMakeCurrentReadSGIReply; |
| 976 |
#define sz_xGLXMakeCurrentReadSGIReply 32 |
| 977 |
|
| 978 |
/* |
| 979 |
** glXGetFBConfigsSGIX request |
| 980 |
*/ |
| 981 |
typedef struct GLXGetFBConfigsSGIX { |
| 982 |
CARD8 reqType; |
| 983 |
CARD8 glxCode; |
| 984 |
CARD16 length B16; |
| 985 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 986 |
CARD32 pad1 B32; /* unused; corresponds to contextTag in header */ |
| 987 |
CARD32 screen B32; |
| 988 |
} xGLXGetFBConfigsSGIXReq; |
| 989 |
#define sz_xGLXGetFBConfigsSGIXReq 16 |
| 990 |
|
| 991 |
/* |
| 992 |
** glXCreateContextWithConfigSGIX request |
| 993 |
*/ |
| 994 |
|
| 995 |
typedef struct GLXCreateContextWithConfigSGIX { |
| 996 |
CARD8 reqType; |
| 997 |
CARD8 glxCode; |
| 998 |
CARD16 length B16; |
| 999 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1000 |
CARD32 pad1 B32; /* unused; corresponds to contextTag in header */ |
| 1001 |
GLXContextID context B32; |
| 1002 |
GLXFBConfigID fbconfig B32; |
| 1003 |
CARD32 screen B32; |
| 1004 |
CARD32 renderType; |
| 1005 |
GLXContextID shareList B32; |
| 1006 |
BOOL isDirect; |
| 1007 |
CARD8 reserved1; |
| 1008 |
CARD16 reserved2 B16; |
| 1009 |
} xGLXCreateContextWithConfigSGIXReq; |
| 1010 |
#define sz_xGLXCreateContextWithConfigSGIXReq 36 |
| 1011 |
|
| 1012 |
/* |
| 1013 |
** glXCreatePixmapWithConfigSGIX request |
| 1014 |
*/ |
| 1015 |
|
| 1016 |
typedef struct GLXCreateGLXPixmapWithConfigSGIX { |
| 1017 |
CARD8 reqType; |
| 1018 |
CARD8 glxCode; |
| 1019 |
CARD16 length B16; |
| 1020 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1021 |
CARD32 pad1 B32; /* unused; corresponds to contextTag in header */ |
| 1022 |
CARD32 screen B32; |
| 1023 |
GLXFBConfigID fbconfig B32; |
| 1024 |
CARD32 pixmap B32; |
| 1025 |
GLXPixmap glxpixmap B32; |
| 1026 |
} xGLXCreateGLXPixmapWithConfigSGIXReq; |
| 1027 |
#define sz_xGLXCreateGLXPixmapWithConfigSGIXReq 28 |
| 1028 |
|
| 1029 |
/* |
| 1030 |
** glXJoinSwapGroupSGIX request |
| 1031 |
*/ |
| 1032 |
typedef struct GLXJoinSwapGroupSGIX { |
| 1033 |
CARD8 reqType; |
| 1034 |
CARD8 glxCode; |
| 1035 |
CARD16 length B16; |
| 1036 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1037 |
CARD32 unused B32; /* corresponds to contextTag in hdr */ |
| 1038 |
GLXDrawable drawable B32; |
| 1039 |
GLXDrawable member B32; |
| 1040 |
} xGLXJoinSwapGroupSGIXReq; |
| 1041 |
#define sz_xGLXJoinSwapGroupSGIXReq 20 |
| 1042 |
|
| 1043 |
/* |
| 1044 |
** glXBindSwapBarrierSGIX request |
| 1045 |
*/ |
| 1046 |
typedef struct GLXBindSwapBarrierSGIX { |
| 1047 |
CARD8 reqType; |
| 1048 |
CARD8 glxCode; |
| 1049 |
CARD16 length B16; |
| 1050 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1051 |
CARD32 unused B32; /* corresponds to contextTag in hdr */ |
| 1052 |
GLXDrawable drawable B32; |
| 1053 |
CARD32 barrier B32; |
| 1054 |
} xGLXBindSwapBarrierSGIXReq; |
| 1055 |
#define sz_xGLXBindSwapBarrierSGIXReq 20 |
| 1056 |
|
| 1057 |
/* |
| 1058 |
** glXQueryMaxSwapBarriersSGIX request |
| 1059 |
*/ |
| 1060 |
typedef struct GLXQueryMaxSwapBarriersSGIX { |
| 1061 |
CARD8 reqType; |
| 1062 |
CARD8 glxCode; |
| 1063 |
CARD16 length B16; |
| 1064 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1065 |
CARD32 unused B32; /* corresponds to contextTag in hdr */ |
| 1066 |
CARD32 screen B32; |
| 1067 |
} xGLXQueryMaxSwapBarriersSGIXReq; |
| 1068 |
#define sz_xGLXQueryMaxSwapBarriersSGIXReq 16 |
| 1069 |
|
| 1070 |
typedef struct { |
| 1071 |
BYTE type; /* X_Reply */ |
| 1072 |
CARD8 unused; /* not used */ |
| 1073 |
CARD16 sequenceNumber B16; |
| 1074 |
CARD32 length B32; |
| 1075 |
CARD32 max B32; |
| 1076 |
CARD32 size B32; |
| 1077 |
CARD32 pad3 B32; |
| 1078 |
CARD32 pad4 B32; |
| 1079 |
CARD32 pad5 B32; |
| 1080 |
CARD32 pad6 B32; |
| 1081 |
} xGLXQueryMaxSwapBarriersSGIXReply; |
| 1082 |
#define sz_xGLXQueryMaxSwapBarriersSGIXReply 32 |
| 1083 |
|
| 1084 |
/* |
| 1085 |
** glXQueryHyperpipeNetworkSGIX request |
| 1086 |
*/ |
| 1087 |
typedef struct GLXQueryHyperpipeNetworkSGIX { |
| 1088 |
CARD8 reqType; |
| 1089 |
CARD8 glxCode; |
| 1090 |
CARD16 length B16; |
| 1091 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1092 |
CARD32 pad1 B32; /* unused; corresponds to contextTag in header */ |
| 1093 |
CARD32 screen B32; |
| 1094 |
} xGLXQueryHyperpipeNetworkSGIXReq; |
| 1095 |
#define sz_xGLXQueryHyperpipeNetworkSGIXReq 16 |
| 1096 |
|
| 1097 |
/* |
| 1098 |
** glXQueryHyperpipeNetworkSGIX reply |
| 1099 |
*/ |
| 1100 |
typedef struct { |
| 1101 |
BYTE type; /* X_Reply */ |
| 1102 |
CARD8 unused; /* not used */ |
| 1103 |
CARD16 sequenceNumber B16; |
| 1104 |
CARD32 length B32; |
| 1105 |
CARD32 pad1 B32; |
| 1106 |
CARD32 n B32; |
| 1107 |
CARD32 npipes B32; /* NOTE: may hold a single value */ |
| 1108 |
CARD32 pad4 B32; /* NOTE: may hold half a double */ |
| 1109 |
CARD32 pad5 B32; |
| 1110 |
CARD32 pad6 B32; |
| 1111 |
} xGLXQueryHyperpipeNetworkSGIXReply; |
| 1112 |
#define sz_xGLXQueryHyperpipeNetworkSGIXReply 32 |
| 1113 |
|
| 1114 |
/* |
| 1115 |
** glXDestroyHyperpipeConfigSGIX request |
| 1116 |
*/ |
| 1117 |
typedef struct GLXDestroyHyperpipeConfigSGIX { |
| 1118 |
CARD8 reqType; |
| 1119 |
CARD8 glxCode; |
| 1120 |
CARD16 length B16; |
| 1121 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1122 |
CARD32 pad1 B32; /* unused; corresponds to contextTag in header */ |
| 1123 |
CARD32 screen B32; |
| 1124 |
CARD32 hpId B32; |
| 1125 |
CARD32 pad2 B32; |
| 1126 |
CARD32 pad3 B32; |
| 1127 |
CARD32 pad4 B32; |
| 1128 |
} xGLXDestroyHyperpipeConfigSGIXReq; |
| 1129 |
#define sz_xGLXDestroyHyperpipeConfigSGIXReq 32 |
| 1130 |
|
| 1131 |
/* |
| 1132 |
** glXDestroyHyperpipeConfigSGIX reply |
| 1133 |
*/ |
| 1134 |
typedef struct { |
| 1135 |
BYTE type; /* X_Reply */ |
| 1136 |
CARD8 unused; /* not used */ |
| 1137 |
CARD16 sequenceNumber B16; |
| 1138 |
CARD32 length B32; |
| 1139 |
CARD32 pad1 B32; |
| 1140 |
CARD32 n B32; |
| 1141 |
CARD32 success B32; /* NOTE: may hold a single value */ |
| 1142 |
CARD32 pad4 B32; /* NOTE: may hold half a double */ |
| 1143 |
CARD32 pad5 B32; |
| 1144 |
CARD32 pad6 B32; |
| 1145 |
} xGLXDestroyHyperpipeConfigSGIXReply; |
| 1146 |
#define sz_xGLXDestroyHyperpipeConfigSGIXReply 32 |
| 1147 |
|
| 1148 |
/* |
| 1149 |
** glXQueryHyperpipeConfigSGIX request |
| 1150 |
*/ |
| 1151 |
typedef struct GLXQueryHyperpipeConfigSGIX { |
| 1152 |
CARD8 reqType; |
| 1153 |
CARD8 glxCode; |
| 1154 |
CARD16 length B16; |
| 1155 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1156 |
CARD32 pad1 B32; /* unused; corresponds to contextTag in header */ |
| 1157 |
CARD32 screen B32; |
| 1158 |
CARD32 hpId B32; |
| 1159 |
CARD32 pad2 B32; |
| 1160 |
CARD32 pad3 B32; |
| 1161 |
CARD32 pad4 B32; |
| 1162 |
} xGLXQueryHyperpipeConfigSGIXReq; |
| 1163 |
#define sz_xGLXQueryHyperpipeConfigSGIXReq 32 |
| 1164 |
|
| 1165 |
/* |
| 1166 |
** glXQueryHyperpipeConfigSGIX reply |
| 1167 |
*/ |
| 1168 |
typedef struct { |
| 1169 |
BYTE type; /* X_Reply */ |
| 1170 |
CARD8 unused; /* not used */ |
| 1171 |
CARD16 sequenceNumber B16; |
| 1172 |
CARD32 length B32; |
| 1173 |
CARD32 pad1 B32; |
| 1174 |
CARD32 n B32; |
| 1175 |
CARD32 npipes B32; |
| 1176 |
CARD32 pad4 B32; |
| 1177 |
CARD32 pad5 B32; |
| 1178 |
CARD32 pad6 B32; |
| 1179 |
} xGLXQueryHyperpipeConfigSGIXReply; |
| 1180 |
#define sz_xGLXQueryHyperpipeConfigSGIXReply 32 |
| 1181 |
|
| 1182 |
/* |
| 1183 |
** glXHyperpipeConfigSGIX request |
| 1184 |
*/ |
| 1185 |
typedef struct GLXHyperpipeConfigSGIX { |
| 1186 |
CARD8 reqType; |
| 1187 |
CARD8 glxCode; |
| 1188 |
CARD16 length B16; |
| 1189 |
CARD32 vendorCode B32; /* vendor-specific opcode */ |
| 1190 |
CARD32 pad1 B32; /* unused; corresponds to contextTag in header */ |
| 1191 |
CARD32 screen B32; |
| 1192 |
CARD32 npipes B32; |
| 1193 |
CARD32 networkId B32; |
| 1194 |
CARD32 pad2 B32; |
| 1195 |
CARD32 pad3 B32; |
| 1196 |
/* followed by attribute list */ |
| 1197 |
} xGLXHyperpipeConfigSGIXReq; |
| 1198 |
#define sz_xGLXHyperpipeConfigSGIXReq 32 |
| 1199 |
|
| 1200 |
/* |
| 1201 |
** glXHyperpipeConfigSGIX reply |
| 1202 |
*/ |
| 1203 |
typedef struct { |
| 1204 |
BYTE type; /* X_Reply */ |
| 1205 |
CARD8 unused; /* not used */ |
| 1206 |
CARD16 sequenceNumber B16; |
| 1207 |
CARD32 length B32; |
| 1208 |
CARD32 pad1 B32; |
| 1209 |
CARD32 n B32; |
| 1210 |
CARD32 npipes B32; |
| 1211 |
CARD32 hpId B32; |
| 1212 |
CARD32 pad5 B32; |
| 1213 |
CARD32 pad6 B32; |
| 1214 |
} xGLXHyperpipeConfigSGIXReply; |
| 1215 |
#define sz_xGLXHyperpipeConfigSGIXReply 32 |
| 1216 |
|
| 1217 |
/************************************************************************/ |
| 1218 |
|
| 1219 |
/* |
| 1220 |
** Events |
| 1221 |
*/ |
| 1222 |
|
| 1223 |
typedef struct { |
| 1224 |
BYTE type; |
| 1225 |
BYTE pad; |
| 1226 |
CARD16 sequenceNumber B16; |
| 1227 |
CARD16 event_type B16; /*** was clobber_class */ |
| 1228 |
CARD16 draw_type B16; |
| 1229 |
CARD32 drawable B32; |
| 1230 |
CARD32 buffer_mask B32; /*** was mask */ |
| 1231 |
CARD16 aux_buffer B16; |
| 1232 |
CARD16 x B16; |
| 1233 |
CARD16 y B16; |
| 1234 |
CARD16 width B16; |
| 1235 |
CARD16 height B16; |
| 1236 |
CARD16 count B16; |
| 1237 |
CARD32 unused2 B32; |
| 1238 |
} xGLXPbufferClobberEvent; |
| 1239 |
|
| 1240 |
/************************************************************************/ |
| 1241 |
|
| 1242 |
/* |
| 1243 |
** Size of the standard X request header. |
| 1244 |
*/ |
| 1245 |
#define __GLX_SINGLE_HDR_SIZE sz_xGLXSingleReq |
| 1246 |
#define __GLX_VENDPRIV_HDR_SIZE sz_xGLXVendorPrivateReq |
| 1247 |
|
| 1248 |
#define __GLX_RENDER_HDR \ |
| 1249 |
CARD16 length B16; \ |
| 1250 |
CARD16 opcode B16 |
| 1251 |
|
| 1252 |
#define __GLX_RENDER_HDR_SIZE 4 |
| 1253 |
|
| 1254 |
typedef struct { |
| 1255 |
__GLX_RENDER_HDR; |
| 1256 |
} __GLXrenderHeader; |
| 1257 |
|
| 1258 |
#define __GLX_RENDER_LARGE_HDR \ |
| 1259 |
CARD32 length B32; \ |
| 1260 |
CARD32 opcode B32 |
| 1261 |
|
| 1262 |
#define __GLX_RENDER_LARGE_HDR_SIZE 8 |
| 1263 |
|
| 1264 |
typedef struct { |
| 1265 |
__GLX_RENDER_LARGE_HDR; |
| 1266 |
} __GLXrenderLargeHeader; |
| 1267 |
|
| 1268 |
/* |
| 1269 |
** The glBitmap, glPolygonStipple, glTexImage[12]D, glTexSubImage[12]D |
| 1270 |
** and glDrawPixels calls all have a pixel header transmitted after the |
| 1271 |
** Render or RenderLarge header and before their own opcode specific |
| 1272 |
** headers. |
| 1273 |
*/ |
| 1274 |
#define __GLX_PIXEL_HDR \ |
| 1275 |
BOOL swapBytes; \ |
| 1276 |
BOOL lsbFirst; \ |
| 1277 |
CARD8 reserved0; \ |
| 1278 |
CARD8 reserved1; \ |
| 1279 |
CARD32 rowLength B32; \ |
| 1280 |
CARD32 skipRows B32; \ |
| 1281 |
CARD32 skipPixels B32; \ |
| 1282 |
CARD32 alignment B32 |
| 1283 |
|
| 1284 |
#define __GLX_PIXEL_HDR_SIZE 20 |
| 1285 |
|
| 1286 |
typedef struct { |
| 1287 |
__GLX_PIXEL_HDR; |
| 1288 |
} __GLXpixelHeader; |
| 1289 |
|
| 1290 |
/* |
| 1291 |
** glTexImage[34]D and glTexSubImage[34]D calls |
| 1292 |
** all have a pixel header transmitted after the Render or RenderLarge |
| 1293 |
** header and before their own opcode specific headers. |
| 1294 |
*/ |
| 1295 |
#define __GLX_PIXEL_3D_HDR \ |
| 1296 |
BOOL swapBytes; \ |
| 1297 |
BOOL lsbFirst; \ |
| 1298 |
CARD8 reserved0; \ |
| 1299 |
CARD8 reserved1; \ |
| 1300 |
CARD32 rowLength B32; \ |
| 1301 |
CARD32 imageHeight B32; \ |
| 1302 |
CARD32 imageDepth B32; \ |
| 1303 |
CARD32 skipRows B32; \ |
| 1304 |
CARD32 skipImages B32; \ |
| 1305 |
CARD32 skipVolumes B32; \ |
| 1306 |
CARD32 skipPixels B32; \ |
| 1307 |
CARD32 alignment B32 |
| 1308 |
|
| 1309 |
#define __GLX_PIXEL_3D_HDR_SIZE 36 |
| 1310 |
|
| 1311 |
/* |
| 1312 |
** Data that is specific to a glBitmap call. The data is sent in the |
| 1313 |
** following order: |
| 1314 |
** Render or RenderLarge header |
| 1315 |
** Pixel header |
| 1316 |
** Bitmap header |
| 1317 |
*/ |
| 1318 |
#define __GLX_BITMAP_HDR \ |
| 1319 |
CARD32 width B32; \ |
| 1320 |
CARD32 height B32; \ |
| 1321 |
FLOAT32 xorig F32; \ |
| 1322 |
FLOAT32 yorig F32; \ |
| 1323 |
FLOAT32 xmove F32; \ |
| 1324 |
FLOAT32 ymove F32 |
| 1325 |
|
| 1326 |
typedef struct { |
| 1327 |
__GLX_RENDER_HDR; |
| 1328 |
__GLX_PIXEL_HDR; |
| 1329 |
__GLX_BITMAP_HDR; |
| 1330 |
} __GLXbitmapHeader; |
| 1331 |
|
| 1332 |
typedef struct { |
| 1333 |
__GLX_RENDER_LARGE_HDR; |
| 1334 |
__GLX_PIXEL_HDR; |
| 1335 |
__GLX_BITMAP_HDR; |
| 1336 |
} __GLXbitmapLargeHeader; |
| 1337 |
|
| 1338 |
typedef struct { |
| 1339 |
__GLX_PIXEL_HDR; |
| 1340 |
__GLX_BITMAP_HDR; |
| 1341 |
} __GLXdispatchBitmapHeader; |
| 1342 |
|
| 1343 |
#define __GLX_BITMAP_HDR_SIZE 24 |
| 1344 |
|
| 1345 |
#define __GLX_BITMAP_CMD_HDR_SIZE \ |
| 1346 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_BITMAP_HDR_SIZE) |
| 1347 |
|
| 1348 |
#define __GLX_BITMAP_CMD_DISPATCH_HDR_SIZE \ |
| 1349 |
(__GLX_PIXEL_HDR_SIZE + __GLX_BITMAP_HDR_SIZE) |
| 1350 |
|
| 1351 |
typedef struct { |
| 1352 |
__GLX_RENDER_HDR; |
| 1353 |
__GLX_PIXEL_HDR; |
| 1354 |
} __GLXpolygonStippleHeader; |
| 1355 |
|
| 1356 |
#define __GLX_POLYGONSTIPPLE_CMD_HDR_SIZE \ |
| 1357 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE) |
| 1358 |
|
| 1359 |
/* |
| 1360 |
** Data that is specific to a glTexImage1D or glTexImage2D call. The |
| 1361 |
** data is sent in the following order: |
| 1362 |
** Render or RenderLarge header |
| 1363 |
** Pixel header |
| 1364 |
** TexImage header |
| 1365 |
** When a glTexImage1D call the height field is unexamined by the server. |
| 1366 |
*/ |
| 1367 |
#define __GLX_TEXIMAGE_HDR \ |
| 1368 |
CARD32 target B32; \ |
| 1369 |
CARD32 level B32; \ |
| 1370 |
CARD32 components B32; \ |
| 1371 |
CARD32 width B32; \ |
| 1372 |
CARD32 height B32; \ |
| 1373 |
CARD32 border B32; \ |
| 1374 |
CARD32 format B32; \ |
| 1375 |
CARD32 type B32 |
| 1376 |
|
| 1377 |
#define __GLX_TEXIMAGE_HDR_SIZE 32 |
| 1378 |
|
| 1379 |
#define __GLX_TEXIMAGE_CMD_HDR_SIZE \ |
| 1380 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_TEXIMAGE_HDR_SIZE) |
| 1381 |
|
| 1382 |
#define __GLX_TEXIMAGE_CMD_DISPATCH_HDR_SIZE \ |
| 1383 |
(__GLX_PIXEL_HDR_SIZE + __GLX_TEXIMAGE_HDR_SIZE) |
| 1384 |
|
| 1385 |
typedef struct { |
| 1386 |
__GLX_RENDER_HDR; |
| 1387 |
__GLX_PIXEL_HDR; |
| 1388 |
__GLX_TEXIMAGE_HDR; |
| 1389 |
} __GLXtexImageHeader; |
| 1390 |
|
| 1391 |
typedef struct { |
| 1392 |
__GLX_RENDER_LARGE_HDR; |
| 1393 |
__GLX_PIXEL_HDR; |
| 1394 |
__GLX_TEXIMAGE_HDR; |
| 1395 |
} __GLXtexImageLargeHeader; |
| 1396 |
|
| 1397 |
typedef struct { |
| 1398 |
__GLX_PIXEL_HDR; |
| 1399 |
__GLX_TEXIMAGE_HDR; |
| 1400 |
} __GLXdispatchTexImageHeader; |
| 1401 |
|
| 1402 |
/* |
| 1403 |
** Data that is specific to a glTexImage3D or glTexImage4D call. The |
| 1404 |
** data is sent in the following order: |
| 1405 |
** Render or RenderLarge header |
| 1406 |
** Pixel 3D header |
| 1407 |
** TexImage 3D header |
| 1408 |
** When a glTexImage3D call the size4d and woffset fields are unexamined |
| 1409 |
** by the server. |
| 1410 |
** Could be used by all TexImage commands and perhaps should be in the |
| 1411 |
** future. |
| 1412 |
*/ |
| 1413 |
#define __GLX_TEXIMAGE_3D_HDR \ |
| 1414 |
CARD32 target B32; \ |
| 1415 |
CARD32 level B32; \ |
| 1416 |
CARD32 internalformat B32; \ |
| 1417 |
CARD32 width B32; \ |
| 1418 |
CARD32 height B32; \ |
| 1419 |
CARD32 depth B32; \ |
| 1420 |
CARD32 size4d B32; \ |
| 1421 |
CARD32 border B32; \ |
| 1422 |
CARD32 format B32; \ |
| 1423 |
CARD32 type B32; \ |
| 1424 |
CARD32 nullimage B32 |
| 1425 |
|
| 1426 |
#define __GLX_TEXIMAGE_3D_HDR_SIZE 44 |
| 1427 |
|
| 1428 |
#define __GLX_TEXIMAGE_3D_CMD_HDR_SIZE \ |
| 1429 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_3D_HDR_SIZE + \ |
| 1430 |
__GLX_TEXIMAGE_3D_HDR_SIZE) |
| 1431 |
|
| 1432 |
#define __GLX_TEXIMAGE_3D_CMD_DISPATCH_HDR_SIZE \ |
| 1433 |
(__GLX_PIXEL_3D_HDR_SIZE + __GLX_TEXIMAGE_3D_HDR_SIZE) |
| 1434 |
|
| 1435 |
typedef struct { |
| 1436 |
__GLX_RENDER_HDR; |
| 1437 |
__GLX_PIXEL_3D_HDR; |
| 1438 |
__GLX_TEXIMAGE_3D_HDR; |
| 1439 |
} __GLXtexImage3DHeader; |
| 1440 |
|
| 1441 |
typedef struct { |
| 1442 |
__GLX_RENDER_LARGE_HDR; |
| 1443 |
__GLX_PIXEL_3D_HDR; |
| 1444 |
__GLX_TEXIMAGE_3D_HDR; |
| 1445 |
} __GLXtexImage3DLargeHeader; |
| 1446 |
|
| 1447 |
typedef struct { |
| 1448 |
__GLX_PIXEL_3D_HDR; |
| 1449 |
__GLX_TEXIMAGE_3D_HDR; |
| 1450 |
} __GLXdispatchTexImage3DHeader; |
| 1451 |
|
| 1452 |
/* |
| 1453 |
** Data that is specific to a glTexSubImage1D or glTexSubImage2D call. The |
| 1454 |
** data is sent in the following order: |
| 1455 |
** Render or RenderLarge header |
| 1456 |
** Pixel header |
| 1457 |
** TexSubImage header |
| 1458 |
** When a glTexSubImage1D call is made, the yoffset and height fields |
| 1459 |
** are unexamined by the server and are considered to be padding. |
| 1460 |
*/ |
| 1461 |
#define __GLX_TEXSUBIMAGE_HDR \ |
| 1462 |
CARD32 target B32; \ |
| 1463 |
CARD32 level B32; \ |
| 1464 |
CARD32 xoffset B32; \ |
| 1465 |
CARD32 yoffset B32; \ |
| 1466 |
CARD32 width B32; \ |
| 1467 |
CARD32 height B32; \ |
| 1468 |
CARD32 format B32; \ |
| 1469 |
CARD32 type B32; \ |
| 1470 |
CARD32 nullImage \ |
| 1471 |
|
| 1472 |
#define __GLX_TEXSUBIMAGE_HDR_SIZE 36 |
| 1473 |
|
| 1474 |
#define __GLX_TEXSUBIMAGE_CMD_HDR_SIZE \ |
| 1475 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_TEXSUBIMAGE_HDR_SIZE) |
| 1476 |
|
| 1477 |
#define __GLX_TEXSUBIMAGE_CMD_DISPATCH_HDR_SIZE \ |
| 1478 |
(__GLX_PIXEL_HDR_SIZE + __GLX_TEXSUBIMAGE_HDR_SIZE) |
| 1479 |
|
| 1480 |
typedef struct { |
| 1481 |
__GLX_RENDER_HDR; |
| 1482 |
__GLX_PIXEL_HDR; |
| 1483 |
__GLX_TEXSUBIMAGE_HDR; |
| 1484 |
} __GLXtexSubImageHeader; |
| 1485 |
|
| 1486 |
typedef struct { |
| 1487 |
__GLX_RENDER_LARGE_HDR; |
| 1488 |
__GLX_PIXEL_HDR; |
| 1489 |
__GLX_TEXSUBIMAGE_HDR; |
| 1490 |
} __GLXtexSubImageLargeHeader; |
| 1491 |
|
| 1492 |
typedef struct { |
| 1493 |
__GLX_PIXEL_HDR; |
| 1494 |
__GLX_TEXSUBIMAGE_HDR; |
| 1495 |
} __GLXdispatchTexSubImageHeader; |
| 1496 |
|
| 1497 |
/* |
| 1498 |
** Data that is specific to a glTexSubImage3D and 4D calls. The |
| 1499 |
** data is sent in the following order: |
| 1500 |
** Render or RenderLarge header |
| 1501 |
** Pixel 3D header |
| 1502 |
** TexSubImage 3D header |
| 1503 |
** When a glTexSubImage3D call is made, the woffset and size4d fields |
| 1504 |
** are unexamined by the server and are considered to be padding. |
| 1505 |
*/ |
| 1506 |
#define __GLX_TEXSUBIMAGE_3D_HDR \ |
| 1507 |
CARD32 target B32; \ |
| 1508 |
CARD32 level B32; \ |
| 1509 |
CARD32 xoffset B32; \ |
| 1510 |
CARD32 yoffset B32; \ |
| 1511 |
CARD32 zoffset B32; \ |
| 1512 |
CARD32 woffset B32; \ |
| 1513 |
CARD32 width B32; \ |
| 1514 |
CARD32 height B32; \ |
| 1515 |
CARD32 depth B32; \ |
| 1516 |
CARD32 size4d B32; \ |
| 1517 |
CARD32 format B32; \ |
| 1518 |
CARD32 type B32; \ |
| 1519 |
CARD32 nullImage \ |
| 1520 |
|
| 1521 |
#define __GLX_TEXSUBIMAGE_3D_HDR_SIZE 52 |
| 1522 |
|
| 1523 |
#define __GLX_TEXSUBIMAGE_3D_CMD_HDR_SIZE \ |
| 1524 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_3D_HDR_SIZE + \ |
| 1525 |
__GLX_TEXSUBIMAGE_3D_HDR_SIZE) |
| 1526 |
|
| 1527 |
#define __GLX_TEXSUBIMAGE_3D_CMD_DISPATCH_HDR_SIZE \ |
| 1528 |
(__GLX_PIXEL_3D_HDR_SIZE + __GLX_TEXSUBIMAGE_3D_HDR_SIZE) |
| 1529 |
|
| 1530 |
typedef struct { |
| 1531 |
__GLX_RENDER_HDR; |
| 1532 |
__GLX_PIXEL_3D_HDR; |
| 1533 |
__GLX_TEXSUBIMAGE_3D_HDR; |
| 1534 |
} __GLXtexSubImage3DHeader; |
| 1535 |
|
| 1536 |
typedef struct { |
| 1537 |
__GLX_RENDER_LARGE_HDR; |
| 1538 |
__GLX_PIXEL_3D_HDR; |
| 1539 |
__GLX_TEXSUBIMAGE_3D_HDR; |
| 1540 |
} __GLXtexSubImage3DLargeHeader; |
| 1541 |
|
| 1542 |
typedef struct { |
| 1543 |
__GLX_PIXEL_3D_HDR; |
| 1544 |
__GLX_TEXSUBIMAGE_3D_HDR; |
| 1545 |
} __GLXdispatchTexSubImage3DHeader; |
| 1546 |
|
| 1547 |
/** |
| 1548 |
* Data that is specific to a \c glCompressedTexImage1D or |
| 1549 |
* \c glCompressedTexImage2D call. The data is sent in the following |
| 1550 |
* order: |
| 1551 |
* - Render or RenderLarge header |
| 1552 |
* - CompressedTexImage header |
| 1553 |
* |
| 1554 |
* When a \c glCompressedTexImage1D call is made, the \c height field is |
| 1555 |
* not examined by the server and is considered padding. |
| 1556 |
*/ |
| 1557 |
|
| 1558 |
#define __GLX_COMPRESSED_TEXIMAGE_HDR \ |
| 1559 |
CARD32 target B32; \ |
| 1560 |
CARD32 level B32; \ |
| 1561 |
CARD32 internalFormat B32; \ |
| 1562 |
CARD32 width B32; \ |
| 1563 |
CARD32 height B32; \ |
| 1564 |
CARD32 border B32; \ |
| 1565 |
CARD32 imageSize B32 |
| 1566 |
|
| 1567 |
#define __GLX_COMPRESSED_TEXIMAGE_HDR_SIZE 28 |
| 1568 |
|
| 1569 |
#define __GLX_COMPRESSED_TEXIMAGE_CMD_HDR_SIZE \ |
| 1570 |
(__GLX_RENDER_HDR_SIZE + __GLX_COMPRESSED_TEXIMAGE_HDR_SIZE) |
| 1571 |
|
| 1572 |
#define __GLX_COMPRESSED_TEXIMAGE_DISPATCH_HDR_SIZE \ |
| 1573 |
(__GLX_COMPRESSED_TEXIMAGE_HDR_SIZE) |
| 1574 |
|
| 1575 |
typedef struct { |
| 1576 |
__GLX_RENDER_HDR; |
| 1577 |
__GLX_COMPRESSED_TEXIMAGE_HDR; |
| 1578 |
} __GLXcompressedTexImageHeader; |
| 1579 |
|
| 1580 |
typedef struct { |
| 1581 |
__GLX_RENDER_LARGE_HDR; |
| 1582 |
__GLX_COMPRESSED_TEXIMAGE_HDR; |
| 1583 |
} __GLXcompressedTexImageLargeHeader; |
| 1584 |
|
| 1585 |
typedef struct { |
| 1586 |
__GLX_COMPRESSED_TEXIMAGE_HDR; |
| 1587 |
} __GLXdispatchCompressedTexImageHeader; |
| 1588 |
|
| 1589 |
/** |
| 1590 |
* Data that is specifi to a \c glCompressedTexSubImage1D or |
| 1591 |
* \c glCompressedTexSubImage2D call. The data is sent in the following |
| 1592 |
* order: |
| 1593 |
* - Render or RenderLarge header |
| 1594 |
* - CompressedTexSubImage header |
| 1595 |
* |
| 1596 |
* When a \c glCompressedTexSubImage1D call is made, the \c yoffset and |
| 1597 |
* \c height fields are not examined by the server and are considered padding. |
| 1598 |
*/ |
| 1599 |
|
| 1600 |
#define __GLX_COMPRESSED_TEXSUBIMAGE_HDR \ |
| 1601 |
CARD32 target B32; \ |
| 1602 |
CARD32 level B32; \ |
| 1603 |
CARD32 xoffset B32; \ |
| 1604 |
CARD32 yoffset B32; \ |
| 1605 |
CARD32 width B32; \ |
| 1606 |
CARD32 height B32; \ |
| 1607 |
CARD32 format B32; \ |
| 1608 |
CARD32 imageSize B32 |
| 1609 |
|
| 1610 |
#define __GLX_COMPRESSED_TEXSUBIMAGE_HDR_SIZE 32 |
| 1611 |
|
| 1612 |
#define __GLX_COMPRESSED_TEXSUBIMAGE_CMD_HDR_SIZE \ |
| 1613 |
(__GLX_RENDER_HDR_SIZE + __GLX_COMPRESSED_TEXSUBIMAGE_HDR_SIZE) |
| 1614 |
|
| 1615 |
#define __GLX_COMPRESSED_TEXSUBIMAGE_DISPATCH_HDR_SIZE \ |
| 1616 |
(__GLX_COMPRESSED_TEXSUBIMAGE_HDR_SIZE) |
| 1617 |
|
| 1618 |
typedef struct { |
| 1619 |
__GLX_RENDER_HDR; |
| 1620 |
__GLX_COMPRESSED_TEXSUBIMAGE_HDR; |
| 1621 |
} __GLXcompressedTexSubImageHeader; |
| 1622 |
|
| 1623 |
typedef struct { |
| 1624 |
__GLX_RENDER_LARGE_HDR; |
| 1625 |
__GLX_COMPRESSED_TEXSUBIMAGE_HDR; |
| 1626 |
} __GLXcompressedTexSubImageLargeHeader; |
| 1627 |
|
| 1628 |
typedef struct { |
| 1629 |
__GLX_COMPRESSED_TEXSUBIMAGE_HDR; |
| 1630 |
} __GLXdispatchCompressedTexSubImageHeader; |
| 1631 |
|
| 1632 |
/** |
| 1633 |
* Data that is specific to a \c glCompressedTexImage3D call. The data is |
| 1634 |
* sent in the following order: |
| 1635 |
* - Render or RenderLarge header |
| 1636 |
* - CompressedTexImage3D header |
| 1637 |
*/ |
| 1638 |
|
| 1639 |
#define __GLX_COMPRESSED_TEXIMAGE_3D_HDR \ |
| 1640 |
CARD32 target B32; \ |
| 1641 |
CARD32 level B32; \ |
| 1642 |
CARD32 internalFormat B32; \ |
| 1643 |
CARD32 width B32; \ |
| 1644 |
CARD32 height B32; \ |
| 1645 |
CARD32 depth B32; \ |
| 1646 |
CARD32 border B32; \ |
| 1647 |
CARD32 imageSize B32 |
| 1648 |
|
| 1649 |
#define __GLX_COMPRESSED_TEXIMAGE_3D_HDR_SIZE 32 |
| 1650 |
|
| 1651 |
#define __GLX_COMPRESSED_TEXIMAGE_3D_CMD_HDR_SIZE \ |
| 1652 |
(__GLX_RENDER_HDR_SIZE + __GLX_COMPRESSED_TEXIMAGE_3D_HDR_SIZE) |
| 1653 |
|
| 1654 |
#define __GLX_COMPRESSED_TEXIMAGE_3D_DISPATCH_HDR_SIZE \ |
| 1655 |
(__GLX_COMPRESSED_TEXIMAGE_3D_HDR_SIZE) |
| 1656 |
|
| 1657 |
typedef struct { |
| 1658 |
__GLX_RENDER_HDR; |
| 1659 |
__GLX_COMPRESSED_TEXIMAGE_3D_HDR; |
| 1660 |
} __GLXcompressedTexImage3DHeader; |
| 1661 |
|
| 1662 |
typedef struct { |
| 1663 |
__GLX_RENDER_LARGE_HDR; |
| 1664 |
__GLX_COMPRESSED_TEXIMAGE_3D_HDR; |
| 1665 |
} __GLXcompressedTexImage3DLargeHeader; |
| 1666 |
|
| 1667 |
typedef struct { |
| 1668 |
__GLX_COMPRESSED_TEXIMAGE_3D_HDR; |
| 1669 |
} __GLXdispatchCompressedTexImage3DHeader; |
| 1670 |
|
| 1671 |
/** |
| 1672 |
* Data that is specifi to a \c glCompressedTexSubImage3D call. The data is |
| 1673 |
* sent in the following order: |
| 1674 |
* - Render or RenderLarge header |
| 1675 |
* - CompressedTexSubImage3D header |
| 1676 |
*/ |
| 1677 |
|
| 1678 |
#define __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR \ |
| 1679 |
CARD32 target B32; \ |
| 1680 |
CARD32 level B32; \ |
| 1681 |
CARD32 xoffset B32; \ |
| 1682 |
CARD32 yoffset B32; \ |
| 1683 |
CARD32 zoffset B32; \ |
| 1684 |
CARD32 width B32; \ |
| 1685 |
CARD32 height B32; \ |
| 1686 |
CARD32 depth B32; \ |
| 1687 |
CARD32 format B32; \ |
| 1688 |
CARD32 imageSize B32 |
| 1689 |
|
| 1690 |
#define __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR_SIZE 32 |
| 1691 |
|
| 1692 |
#define __GLX_COMPRESSED_TEXSUBIMAGE_3D_CMD_HDR_SIZE \ |
| 1693 |
(__GLX_RENDER_HDR_SIZE + __GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR_SIZE) |
| 1694 |
|
| 1695 |
#define __GLX_COMPRESSED_TEXSUBIMAGE_3D_DISPATCH_HDR_SIZE \ |
| 1696 |
(__GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR_SIZE) |
| 1697 |
|
| 1698 |
typedef struct { |
| 1699 |
__GLX_RENDER_HDR; |
| 1700 |
__GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR; |
| 1701 |
} __GLXcompressedTexSubImage3DHeader; |
| 1702 |
|
| 1703 |
typedef struct { |
| 1704 |
__GLX_RENDER_LARGE_HDR; |
| 1705 |
__GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR; |
| 1706 |
} __GLXcompressedTexSubImage3DLargeHeader; |
| 1707 |
|
| 1708 |
typedef struct { |
| 1709 |
__GLX_COMPRESSED_TEXSUBIMAGE_3D_HDR; |
| 1710 |
} __GLXdispatchCompressedTexSubImage3DHeader; |
| 1711 |
|
| 1712 |
/* |
| 1713 |
** Data that is specific to a glDrawPixels call. The data is sent in the |
| 1714 |
** following order: |
| 1715 |
** Render or RenderLarge header |
| 1716 |
** Pixel header |
| 1717 |
** DrawPixels header |
| 1718 |
*/ |
| 1719 |
#define __GLX_DRAWPIXELS_HDR \ |
| 1720 |
CARD32 width B32; \ |
| 1721 |
CARD32 height B32; \ |
| 1722 |
CARD32 format B32; \ |
| 1723 |
CARD32 type B32 |
| 1724 |
|
| 1725 |
#define __GLX_DRAWPIXELS_HDR_SIZE 16 |
| 1726 |
|
| 1727 |
#define __GLX_DRAWPIXELS_CMD_HDR_SIZE \ |
| 1728 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_DRAWPIXELS_HDR_SIZE) |
| 1729 |
|
| 1730 |
#define __GLX_DRAWPIXELS_CMD_DISPATCH_HDR_SIZE \ |
| 1731 |
(__GLX_PIXEL_HDR_SIZE + __GLX_DRAWPIXELS_HDR_SIZE) |
| 1732 |
|
| 1733 |
typedef struct { |
| 1734 |
__GLX_RENDER_HDR; |
| 1735 |
__GLX_PIXEL_HDR; |
| 1736 |
__GLX_DRAWPIXELS_HDR; |
| 1737 |
} __GLXdrawPixelsHeader; |
| 1738 |
|
| 1739 |
typedef struct { |
| 1740 |
__GLX_RENDER_LARGE_HDR; |
| 1741 |
__GLX_PIXEL_HDR; |
| 1742 |
__GLX_DRAWPIXELS_HDR; |
| 1743 |
} __GLXdrawPixelsLargeHeader; |
| 1744 |
|
| 1745 |
typedef struct { |
| 1746 |
__GLX_PIXEL_HDR; |
| 1747 |
__GLX_DRAWPIXELS_HDR; |
| 1748 |
} __GLXdispatchDrawPixelsHeader; |
| 1749 |
|
| 1750 |
/* |
| 1751 |
** Data that is specific to a glConvolutionFilter1D or glConvolutionFilter2D |
| 1752 |
** call. The data is sent in the following order: |
| 1753 |
** Render or RenderLarge header |
| 1754 |
** Pixel header |
| 1755 |
** ConvolutionFilter header |
| 1756 |
** When a glConvolutionFilter1D call the height field is unexamined by the server. |
| 1757 |
*/ |
| 1758 |
#define __GLX_CONV_FILT_HDR \ |
| 1759 |
CARD32 target B32; \ |
| 1760 |
CARD32 internalformat B32; \ |
| 1761 |
CARD32 width B32; \ |
| 1762 |
CARD32 height B32; \ |
| 1763 |
CARD32 format B32; \ |
| 1764 |
CARD32 type B32 |
| 1765 |
|
| 1766 |
#define __GLX_CONV_FILT_HDR_SIZE 24 |
| 1767 |
|
| 1768 |
#define __GLX_CONV_FILT_CMD_HDR_SIZE \ |
| 1769 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_CONV_FILT_HDR_SIZE) |
| 1770 |
|
| 1771 |
#define __GLX_CONV_FILT_CMD_DISPATCH_HDR_SIZE \ |
| 1772 |
(__GLX_PIXEL_HDR_SIZE + __GLX_CONV_FILT_HDR_SIZE) |
| 1773 |
typedef struct { |
| 1774 |
__GLX_RENDER_HDR; |
| 1775 |
__GLX_PIXEL_HDR; |
| 1776 |
__GLX_CONV_FILT_HDR; |
| 1777 |
} __GLXConvolutionFilterHeader; |
| 1778 |
|
| 1779 |
typedef struct { |
| 1780 |
__GLX_RENDER_LARGE_HDR; |
| 1781 |
__GLX_PIXEL_HDR; |
| 1782 |
__GLX_CONV_FILT_HDR; |
| 1783 |
} __GLXConvolutionFilterLargeHeader; |
| 1784 |
|
| 1785 |
typedef struct { |
| 1786 |
__GLX_PIXEL_HDR; |
| 1787 |
__GLX_CONV_FILT_HDR; |
| 1788 |
} __GLXdispatchConvolutionFilterHeader; |
| 1789 |
|
| 1790 |
/* |
| 1791 |
** Data that is specific to a glDrawArraysEXT call. The data is sent in the |
| 1792 |
** following order: |
| 1793 |
** Render or RenderLarge header |
| 1794 |
** Draw Arrays header |
| 1795 |
** a variable number of Component headers |
| 1796 |
** vertex data for each component type |
| 1797 |
*/ |
| 1798 |
|
| 1799 |
#define __GLX_DRAWARRAYS_HDR \ |
| 1800 |
CARD32 numVertexes B32; \ |
| 1801 |
CARD32 numComponents B32; \ |
| 1802 |
CARD32 primType B32 |
| 1803 |
|
| 1804 |
#define __GLX_DRAWARRAYS_HDR_SIZE 12 |
| 1805 |
|
| 1806 |
#define __GLX_DRAWARRAYS_CMD_HDR_SIZE \ |
| 1807 |
(__GLX_RENDER_HDR_SIZE + __GLX_DRAWARRAYS_HDR_SIZE) |
| 1808 |
|
| 1809 |
typedef struct { |
| 1810 |
__GLX_RENDER_HDR; |
| 1811 |
__GLX_DRAWARRAYS_HDR; |
| 1812 |
} __GLXdrawArraysHeader; |
| 1813 |
|
| 1814 |
typedef struct { |
| 1815 |
__GLX_RENDER_LARGE_HDR; |
| 1816 |
__GLX_DRAWARRAYS_HDR; |
| 1817 |
} __GLXdrawArraysLargeHeader; |
| 1818 |
|
| 1819 |
typedef struct { |
| 1820 |
__GLX_DRAWARRAYS_HDR; |
| 1821 |
} __GLXdispatchDrawArraysHeader; |
| 1822 |
|
| 1823 |
#define __GLX_COMPONENT_HDR \ |
| 1824 |
CARD32 datatype B32; \ |
| 1825 |
INT32 numVals B32; \ |
| 1826 |
CARD32 component B32 |
| 1827 |
|
| 1828 |
typedef struct { |
| 1829 |
__GLX_COMPONENT_HDR; |
| 1830 |
} __GLXdispatchDrawArraysComponentHeader; |
| 1831 |
|
| 1832 |
#define __GLX_COMPONENT_HDR_SIZE 12 |
| 1833 |
|
| 1834 |
/* |
| 1835 |
** Data that is specific to a glColorTable call |
| 1836 |
** The data is sent in the following order: |
| 1837 |
** Render or RenderLarge header |
| 1838 |
** Pixel header |
| 1839 |
** ColorTable header |
| 1840 |
*/ |
| 1841 |
|
| 1842 |
#define __GLX_COLOR_TABLE_HDR \ |
| 1843 |
CARD32 target B32; \ |
| 1844 |
CARD32 internalformat B32; \ |
| 1845 |
CARD32 width B32; \ |
| 1846 |
CARD32 format B32; \ |
| 1847 |
CARD32 type B32 |
| 1848 |
|
| 1849 |
#define __GLX_COLOR_TABLE_HDR_SIZE 20 |
| 1850 |
|
| 1851 |
#define __GLX_COLOR_TABLE_CMD_HDR_SIZE \ |
| 1852 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + __GLX_COLOR_TABLE_HDR_SIZE) |
| 1853 |
|
| 1854 |
typedef struct { |
| 1855 |
__GLX_RENDER_HDR; |
| 1856 |
__GLX_PIXEL_HDR; |
| 1857 |
__GLX_COLOR_TABLE_HDR; |
| 1858 |
} __GLXColorTableHeader; |
| 1859 |
|
| 1860 |
typedef struct { |
| 1861 |
__GLX_RENDER_LARGE_HDR; |
| 1862 |
__GLX_PIXEL_HDR; |
| 1863 |
__GLX_COLOR_TABLE_HDR; |
| 1864 |
} __GLXColorTableLargeHeader; |
| 1865 |
|
| 1866 |
typedef struct { |
| 1867 |
__GLX_PIXEL_HDR; |
| 1868 |
__GLX_COLOR_TABLE_HDR; |
| 1869 |
} __GLXdispatchColorTableHeader; |
| 1870 |
|
| 1871 |
/* |
| 1872 |
** Data that is specific to a glColorSubTable call |
| 1873 |
** The data is sent in the following order: |
| 1874 |
** Render or RenderLarge header |
| 1875 |
** Pixel header |
| 1876 |
** ColorTable header |
| 1877 |
*/ |
| 1878 |
|
| 1879 |
#define __GLX_COLOR_SUBTABLE_HDR \ |
| 1880 |
CARD32 target B32; \ |
| 1881 |
CARD32 start B32; \ |
| 1882 |
CARD32 count B32; \ |
| 1883 |
CARD32 format B32; \ |
| 1884 |
CARD32 type B32 |
| 1885 |
|
| 1886 |
#define __GLX_COLOR_SUBTABLE_HDR_SIZE 20 |
| 1887 |
|
| 1888 |
#define __GLX_COLOR_SUBTABLE_CMD_HDR_SIZE \ |
| 1889 |
(__GLX_RENDER_HDR_SIZE + __GLX_PIXEL_HDR_SIZE + \ |
| 1890 |
__GLX_COLOR_SUBTABLE_HDR_SIZE) |
| 1891 |
|
| 1892 |
typedef struct { |
| 1893 |
__GLX_RENDER_HDR; |
| 1894 |
__GLX_PIXEL_HDR; |
| 1895 |
__GLX_COLOR_SUBTABLE_HDR; |
| 1896 |
} __GLXColorSubTableHeader; |
| 1897 |
|
| 1898 |
typedef struct { |
| 1899 |
__GLX_RENDER_LARGE_HDR; |
| 1900 |
__GLX_PIXEL_HDR; |
| 1901 |
__GLX_COLOR_SUBTABLE_HDR; |
| 1902 |
} __GLXColorSubTableLargeHeader; |
| 1903 |
|
| 1904 |
typedef struct { |
| 1905 |
__GLX_PIXEL_HDR; |
| 1906 |
__GLX_COLOR_SUBTABLE_HDR; |
| 1907 |
} __GLXdispatchColorSubTableHeader; |
| 1908 |
|
| 1909 |
#define GLX_WINDOW_TYPE 1 |
| 1910 |
#define GLX_PIXMAP_TYPE 2 |
| 1911 |
#define GLX_VIDEO_SOURCE_TYPE 3 |
| 1912 |
#define GLX_PBUFFER_TYPE 4 |
| 1913 |
/* 5 is for DM_PBUFFER */ |
| 1914 |
#define GLX_GLXWINDOW_TYPE 6 |
| 1915 |
|
| 1916 |
/*****************************************************************************/ |
| 1917 |
|
| 1918 |
/* |
| 1919 |
** Restore these definitions back to the typedefs in glx.h |
| 1920 |
*/ |
| 1921 |
#undef GLXContextID |
| 1922 |
#undef GLXPixmap |
| 1923 |
#undef GLXDrawable |
| 1924 |
#undef GLXPbuffer |
| 1925 |
#undef GLXWindow |
| 1926 |
#undef GLXFBConfigID |
| 1927 |
#undef GLXFBConfigIDSGIX |
| 1928 |
#undef GLXPbufferSGIX |
| 1929 |
|
| 1930 |
|
| 1931 |
/* Opcodes for GLX commands */ |
| 1932 |
|
| 1933 |
#define X_GLXRender 1 |
| 1934 |
#define X_GLXRenderLarge 2 |
| 1935 |
#define X_GLXCreateContext 3 |
| 1936 |
#define X_GLXDestroyContext 4 |
| 1937 |
#define X_GLXMakeCurrent 5 |
| 1938 |
#define X_GLXIsDirect 6 |
| 1939 |
#define X_GLXQueryVersion 7 |
| 1940 |
#define X_GLXWaitGL 8 |
| 1941 |
#define X_GLXWaitX 9 |
| 1942 |
#define X_GLXCopyContext 10 |
| 1943 |
#define X_GLXSwapBuffers 11 |
| 1944 |
#define X_GLXUseXFont 12 |
| 1945 |
#define X_GLXCreateGLXPixmap 13 |
| 1946 |
#define X_GLXGetVisualConfigs 14 |
| 1947 |
#define X_GLXDestroyGLXPixmap 15 |
| 1948 |
#define X_GLXVendorPrivate 16 |
| 1949 |
#define X_GLXVendorPrivateWithReply 17 |
| 1950 |
#define X_GLXQueryExtensionsString 18 |
| 1951 |
#define X_GLXQueryServerString 19 |
| 1952 |
#define X_GLXClientInfo 20 |
| 1953 |
#define X_GLXGetFBConfigs 21 |
| 1954 |
#define X_GLXCreatePixmap 22 |
| 1955 |
#define X_GLXDestroyPixmap 23 |
| 1956 |
#define X_GLXCreateNewContext 24 |
| 1957 |
#define X_GLXQueryContext 25 |
| 1958 |
#define X_GLXMakeContextCurrent 26 |
| 1959 |
#define X_GLXCreatePbuffer 27 |
| 1960 |
#define X_GLXDestroyPbuffer 28 |
| 1961 |
#define X_GLXGetDrawableAttributes 29 |
| 1962 |
#define X_GLXChangeDrawableAttributes 30 |
| 1963 |
#define X_GLXCreateWindow 31 |
| 1964 |
#define X_GLXDestroyWindow 32 |
| 1965 |
|
| 1966 |
|
| 1967 |
/* Opcodes for single commands (part of GLX command space) */ |
| 1968 |
|
| 1969 |
#define X_GLsop_NewList 101 |
| 1970 |
#define X_GLsop_EndList 102 |
| 1971 |
#define X_GLsop_DeleteLists 103 |
| 1972 |
#define X_GLsop_GenLists 104 |
| 1973 |
#define X_GLsop_FeedbackBuffer 105 |
| 1974 |
#define X_GLsop_SelectBuffer 106 |
| 1975 |
#define X_GLsop_RenderMode 107 |
| 1976 |
#define X_GLsop_Finish 108 |
| 1977 |
#define X_GLsop_Flush 142 |
| 1978 |
#define X_GLsop_PixelStoref 109 |
| 1979 |
#define X_GLsop_PixelStorei 110 |
| 1980 |
#define X_GLsop_ReadPixels 111 |
| 1981 |
#define X_GLsop_GetBooleanv 112 |
| 1982 |
#define X_GLsop_GetClipPlane 113 |
| 1983 |
#define X_GLsop_GetDoublev 114 |
| 1984 |
#define X_GLsop_GetError 115 |
| 1985 |
#define X_GLsop_GetFloatv 116 |
| 1986 |
#define X_GLsop_GetIntegerv 117 |
| 1987 |
#define X_GLsop_GetLightfv 118 |
| 1988 |
#define X_GLsop_GetLightiv 119 |
| 1989 |
#define X_GLsop_GetMapdv 120 |
| 1990 |
#define X_GLsop_GetMapfv 121 |
| 1991 |
#define X_GLsop_GetMapiv 122 |
| 1992 |
#define X_GLsop_GetMaterialfv 123 |
| 1993 |
#define X_GLsop_GetMaterialiv 124 |
| 1994 |
#define X_GLsop_GetPixelMapfv 125 |
| 1995 |
#define X_GLsop_GetPixelMapuiv 126 |
| 1996 |
#define X_GLsop_GetPixelMapusv 127 |
| 1997 |
#define X_GLsop_GetPolygonStipple 128 |
| 1998 |
#define X_GLsop_GetString 129 |
| 1999 |
#define X_GLsop_GetTexEnvfv 130 |
| 2000 |
#define X_GLsop_GetTexEnviv 131 |
| 2001 |
#define X_GLsop_GetTexGendv 132 |
| 2002 |
#define X_GLsop_GetTexGenfv 133 |
| 2003 |
#define X_GLsop_GetTexGeniv 134 |
| 2004 |
#define X_GLsop_GetTexImage 135 |
| 2005 |
#define X_GLsop_GetTexParameterfv 136 |
| 2006 |
#define X_GLsop_GetTexParameteriv 137 |
| 2007 |
#define X_GLsop_GetTexLevelParameterfv 138 |
| 2008 |
#define X_GLsop_GetTexLevelParameteriv 139 |
| 2009 |
#define X_GLsop_IsEnabled 140 |
| 2010 |
#define X_GLsop_IsList 141 |
| 2011 |
#define X_GLsop_AreTexturesResident 143 |
| 2012 |
#define X_GLsop_DeleteTextures 144 |
| 2013 |
#define X_GLsop_GenTextures 145 |
| 2014 |
#define X_GLsop_IsTexture 146 |
| 2015 |
#define X_GLsop_GetColorTable 147 |
| 2016 |
#define X_GLsop_GetColorTableParameterfv 148 |
| 2017 |
#define X_GLsop_GetColorTableParameteriv 149 |
| 2018 |
#define X_GLsop_GetConvolutionFilter 150 |
| 2019 |
#define X_GLsop_GetConvolutionParameterfv 151 |
| 2020 |
#define X_GLsop_GetConvolutionParameteriv 152 |
| 2021 |
#define X_GLsop_GetSeparableFilter 153 |
| 2022 |
#define X_GLsop_GetHistogram 154 |
| 2023 |
#define X_GLsop_GetHistogramParameterfv 155 |
| 2024 |
#define X_GLsop_GetHistogramParameteriv 156 |
| 2025 |
#define X_GLsop_GetMinmax 157 |
| 2026 |
#define X_GLsop_GetMinmaxParameterfv 158 |
| 2027 |
#define X_GLsop_GetMinmaxParameteriv 159 |
| 2028 |
#define X_GLsop_GetCompressedTexImage 160 |
| 2029 |
|
| 2030 |
|
| 2031 |
/* Opcodes for rendering commands */ |
| 2032 |
|
| 2033 |
#define X_GLrop_CallList 1 |
| 2034 |
#define X_GLrop_CallLists 2 |
| 2035 |
#define X_GLrop_ListBase 3 |
| 2036 |
#define X_GLrop_Begin 4 |
| 2037 |
#define X_GLrop_Bitmap 5 |
| 2038 |
#define X_GLrop_Color3bv 6 |
| 2039 |
#define X_GLrop_Color3dv 7 |
| 2040 |
#define X_GLrop_Color3fv 8 |
| 2041 |
#define X_GLrop_Color3iv 9 |
| 2042 |
#define X_GLrop_Color3sv 10 |
| 2043 |
#define X_GLrop_Color3ubv 11 |
| 2044 |
#define X_GLrop_Color3uiv 12 |
| 2045 |
#define X_GLrop_Color3usv 13 |
| 2046 |
#define X_GLrop_Color4bv 14 |
| 2047 |
#define X_GLrop_Color4dv 15 |
| 2048 |
#define X_GLrop_Color4fv 16 |
| 2049 |
#define X_GLrop_Color4iv 17 |
| 2050 |
#define X_GLrop_Color4sv 18 |
| 2051 |
#define X_GLrop_Color4ubv 19 |
| 2052 |
#define X_GLrop_Color4uiv 20 |
| 2053 |
#define X_GLrop_Color4usv 21 |
| 2054 |
#define X_GLrop_EdgeFlagv 22 |
| 2055 |
#define X_GLrop_End 23 |
| 2056 |
#define X_GLrop_Indexdv 24 |
| 2057 |
#define X_GLrop_Indexfv 25 |
| 2058 |
#define X_GLrop_Indexiv 26 |
| 2059 |
#define X_GLrop_Indexsv 27 |
| 2060 |
#define X_GLrop_Normal3bv 28 |
| 2061 |
#define X_GLrop_Normal3dv 29 |
| 2062 |
#define X_GLrop_Normal3fv 30 |
| 2063 |
#define X_GLrop_Normal3iv 31 |
| 2064 |
#define X_GLrop_Normal3sv 32 |
| 2065 |
#define X_GLrop_RasterPos2dv 33 |
| 2066 |
#define X_GLrop_RasterPos2fv 34 |
| 2067 |
#define X_GLrop_RasterPos2iv 35 |
| 2068 |
#define X_GLrop_RasterPos2sv 36 |
| 2069 |
#define X_GLrop_RasterPos3dv 37 |
| 2070 |
#define X_GLrop_RasterPos3fv 38 |
| 2071 |
#define X_GLrop_RasterPos3iv 39 |
| 2072 |
#define X_GLrop_RasterPos3sv 40 |
| 2073 |
#define X_GLrop_RasterPos4dv 41 |
| 2074 |
#define X_GLrop_RasterPos4fv 42 |
| 2075 |
#define X_GLrop_RasterPos4iv 43 |
| 2076 |
#define X_GLrop_RasterPos4sv 44 |
| 2077 |
#define X_GLrop_Rectdv 45 |
| 2078 |
#define X_GLrop_Rectfv 46 |
| 2079 |
#define X_GLrop_Rectiv 47 |
| 2080 |
#define X_GLrop_Rectsv 48 |
| 2081 |
#define X_GLrop_TexCoord1dv 49 |
| 2082 |
#define X_GLrop_TexCoord1fv 50 |
| 2083 |
#define X_GLrop_TexCoord1iv 51 |
| 2084 |
#define X_GLrop_TexCoord1sv 52 |
| 2085 |
#define X_GLrop_TexCoord2dv 53 |
| 2086 |
#define X_GLrop_TexCoord2fv 54 |
| 2087 |
#define X_GLrop_TexCoord2iv 55 |
| 2088 |
#define X_GLrop_TexCoord2sv 56 |
| 2089 |
#define X_GLrop_TexCoord3dv 57 |
| 2090 |
#define X_GLrop_TexCoord3fv 58 |
| 2091 |
#define X_GLrop_TexCoord3iv 59 |
| 2092 |
#define X_GLrop_TexCoord3sv 60 |
| 2093 |
#define X_GLrop_TexCoord4dv 61 |
| 2094 |
#define X_GLrop_TexCoord4fv 62 |
| 2095 |
#define X_GLrop_TexCoord4iv 63 |
| 2096 |
#define X_GLrop_TexCoord4sv 64 |
| 2097 |
#define X_GLrop_Vertex2dv 65 |
| 2098 |
#define X_GLrop_Vertex2fv 66 |
| 2099 |
#define X_GLrop_Vertex2iv 67 |
| 2100 |
#define X_GLrop_Vertex2sv 68 |
| 2101 |
#define X_GLrop_Vertex3dv 69 |
| 2102 |
#define X_GLrop_Vertex3fv 70 |
| 2103 |
#define X_GLrop_Vertex3iv 71 |
| 2104 |
#define X_GLrop_Vertex3sv 72 |
| 2105 |
#define X_GLrop_Vertex4dv 73 |
| 2106 |
#define X_GLrop_Vertex4fv 74 |
| 2107 |
#define X_GLrop_Vertex4iv 75 |
| 2108 |
#define X_GLrop_Vertex4sv 76 |
| 2109 |
#define X_GLrop_ClipPlane 77 |
| 2110 |
#define X_GLrop_ColorMaterial 78 |
| 2111 |
#define X_GLrop_CullFace 79 |
| 2112 |
#define X_GLrop_Fogf 80 |
| 2113 |
#define X_GLrop_Fogfv 81 |
| 2114 |
#define X_GLrop_Fogi 82 |
| 2115 |
#define X_GLrop_Fogiv 83 |
| 2116 |
#define X_GLrop_FrontFace 84 |
| 2117 |
#define X_GLrop_Hint 85 |
| 2118 |
#define X_GLrop_Lightf 86 |
| 2119 |
#define X_GLrop_Lightfv 87 |
| 2120 |
#define X_GLrop_Lighti 88 |
| 2121 |
#define X_GLrop_Lightiv 89 |
| 2122 |
#define X_GLrop_LightModelf 90 |
| 2123 |
#define X_GLrop_LightModelfv 91 |
| 2124 |
#define X_GLrop_LightModeli 92 |
| 2125 |
#define X_GLrop_LightModeliv 93 |
| 2126 |
#define X_GLrop_LineStipple 94 |
| 2127 |
#define X_GLrop_LineWidth 95 |
| 2128 |
#define X_GLrop_Materialf 96 |
| 2129 |
#define X_GLrop_Materialfv 97 |
| 2130 |
#define X_GLrop_Materiali 98 |
| 2131 |
#define X_GLrop_Materialiv 99 |
| 2132 |
#define X_GLrop_PointSize 100 |
| 2133 |
#define X_GLrop_PolygonMode 101 |
| 2134 |
#define X_GLrop_PolygonStipple 102 |
| 2135 |
#define X_GLrop_Scissor 103 |
| 2136 |
#define X_GLrop_ShadeModel 104 |
| 2137 |
#define X_GLrop_TexParameterf 105 |
| 2138 |
#define X_GLrop_TexParameterfv 106 |
| 2139 |
#define X_GLrop_TexParameteri 107 |
| 2140 |
#define X_GLrop_TexParameteriv 108 |
| 2141 |
#define X_GLrop_TexImage1D 109 |
| 2142 |
#define X_GLrop_TexImage2D 110 |
| 2143 |
#define X_GLrop_TexEnvf 111 |
| 2144 |
#define X_GLrop_TexEnvfv 112 |
| 2145 |
#define X_GLrop_TexEnvi 113 |
| 2146 |
#define X_GLrop_TexEnviv 114 |
| 2147 |
#define X_GLrop_TexGend 115 |
| 2148 |
#define X_GLrop_TexGendv 116 |
| 2149 |
#define X_GLrop_TexGenf 117 |
| 2150 |
#define X_GLrop_TexGenfv 118 |
| 2151 |
#define X_GLrop_TexGeni 119 |
| 2152 |
#define X_GLrop_TexGeniv 120 |
| 2153 |
#define X_GLrop_InitNames 121 |
| 2154 |
#define X_GLrop_LoadName 122 |
| 2155 |
#define X_GLrop_PassThrough 123 |
| 2156 |
#define X_GLrop_PopName 124 |
| 2157 |
#define X_GLrop_PushName 125 |
| 2158 |
#define X_GLrop_DrawBuffer 126 |
| 2159 |
#define X_GLrop_Clear 127 |
| 2160 |
#define X_GLrop_ClearAccum 128 |
| 2161 |
#define X_GLrop_ClearIndex 129 |
| 2162 |
#define X_GLrop_ClearColor 130 |
| 2163 |
#define X_GLrop_ClearStencil 131 |
| 2164 |
#define X_GLrop_ClearDepth 132 |
| 2165 |
#define X_GLrop_StencilMask 133 |
| 2166 |
#define X_GLrop_ColorMask 134 |
| 2167 |
#define X_GLrop_DepthMask 135 |
| 2168 |
#define X_GLrop_IndexMask 136 |
| 2169 |
#define X_GLrop_Accum 137 |
| 2170 |
#define X_GLrop_Disable 138 |
| 2171 |
#define X_GLrop_Enable 139 |
| 2172 |
#define X_GLrop_PopAttrib 141 |
| 2173 |
#define X_GLrop_PushAttrib 142 |
| 2174 |
#define X_GLrop_Map1d 143 |
| 2175 |
#define X_GLrop_Map1f 144 |
| 2176 |
#define X_GLrop_Map2d 145 |
| 2177 |
#define X_GLrop_Map2f 146 |
| 2178 |
#define X_GLrop_MapGrid1d 147 |
| 2179 |
#define X_GLrop_MapGrid1f 148 |
| 2180 |
#define X_GLrop_MapGrid2d 149 |
| 2181 |
#define X_GLrop_MapGrid2f 150 |
| 2182 |
#define X_GLrop_EvalCoord1dv 151 |
| 2183 |
#define X_GLrop_EvalCoord1fv 152 |
| 2184 |
#define X_GLrop_EvalCoord2dv 153 |
| 2185 |
#define X_GLrop_EvalCoord2fv 154 |
| 2186 |
#define X_GLrop_EvalMesh1 155 |
| 2187 |
#define X_GLrop_EvalPoint1 156 |
| 2188 |
#define X_GLrop_EvalMesh2 157 |
| 2189 |
#define X_GLrop_EvalPoint2 158 |
| 2190 |
#define X_GLrop_AlphaFunc 159 |
| 2191 |
#define X_GLrop_BlendFunc 160 |
| 2192 |
#define X_GLrop_LogicOp 161 |
| 2193 |
#define X_GLrop_StencilFunc 162 |
| 2194 |
#define X_GLrop_StencilOp 163 |
| 2195 |
#define X_GLrop_DepthFunc 164 |
| 2196 |
#define X_GLrop_PixelZoom 165 |
| 2197 |
#define X_GLrop_PixelTransferf 166 |
| 2198 |
#define X_GLrop_PixelTransferi 167 |
| 2199 |
#define X_GLrop_PixelMapfv 168 |
| 2200 |
#define X_GLrop_PixelMapuiv 169 |
| 2201 |
#define X_GLrop_PixelMapusv 170 |
| 2202 |
#define X_GLrop_ReadBuffer 171 |
| 2203 |
#define X_GLrop_CopyPixels 172 |
| 2204 |
#define X_GLrop_DrawPixels 173 |
| 2205 |
#define X_GLrop_DepthRange 174 |
| 2206 |
#define X_GLrop_Frustum 175 |
| 2207 |
#define X_GLrop_LoadIdentity 176 |
| 2208 |
#define X_GLrop_LoadMatrixf 177 |
| 2209 |
#define X_GLrop_LoadMatrixd 178 |
| 2210 |
#define X_GLrop_MatrixMode 179 |
| 2211 |
#define X_GLrop_MultMatrixf 180 |
| 2212 |
#define X_GLrop_MultMatrixd 181 |
| 2213 |
#define X_GLrop_Ortho 182 |
| 2214 |
#define X_GLrop_PopMatrix 183 |
| 2215 |
#define X_GLrop_PushMatrix 184 |
| 2216 |
#define X_GLrop_Rotated 185 |
| 2217 |
#define X_GLrop_Rotatef 186 |
| 2218 |
#define X_GLrop_Scaled 187 |
| 2219 |
#define X_GLrop_Scalef 188 |
| 2220 |
#define X_GLrop_Translated 189 |
| 2221 |
#define X_GLrop_Translatef 190 |
| 2222 |
#define X_GLrop_Viewport 191 |
| 2223 |
#define X_GLrop_DrawArrays 193 |
| 2224 |
#define X_GLrop_PolygonOffset 192 |
| 2225 |
#define X_GLrop_CopyTexImage1D 4119 |
| 2226 |
#define X_GLrop_CopyTexImage2D 4120 |
| 2227 |
#define X_GLrop_CopyTexSubImage1D 4121 |
| 2228 |
#define X_GLrop_CopyTexSubImage2D 4122 |
| 2229 |
#define X_GLrop_TexSubImage1D 4099 |
| 2230 |
#define X_GLrop_TexSubImage2D 4100 |
| 2231 |
#define X_GLrop_BindTexture 4117 |
| 2232 |
#define X_GLrop_PrioritizeTextures 4118 |
| 2233 |
#define X_GLrop_Indexubv 194 |
| 2234 |
#define X_GLrop_BlendColor 4096 |
| 2235 |
#define X_GLrop_BlendEquation 4097 |
| 2236 |
#define X_GLrop_ColorTable 2053 |
| 2237 |
#define X_GLrop_ColorTableParameterfv 2054 |
| 2238 |
#define X_GLrop_ColorTableParameteriv 2055 |
| 2239 |
#define X_GLrop_CopyColorTable 2056 |
| 2240 |
#define X_GLrop_ColorSubTable 195 |
| 2241 |
#define X_GLrop_CopyColorSubTable 196 |
| 2242 |
#define X_GLrop_ConvolutionFilter1D 4101 |
| 2243 |
#define X_GLrop_ConvolutionFilter2D 4102 |
| 2244 |
#define X_GLrop_ConvolutionParameterf 4103 |
| 2245 |
#define X_GLrop_ConvolutionParameterfv 4104 |
| 2246 |
#define X_GLrop_ConvolutionParameteri 4105 |
| 2247 |
#define X_GLrop_ConvolutionParameteriv 4106 |
| 2248 |
#define X_GLrop_CopyConvolutionFilter1D 4107 |
| 2249 |
#define X_GLrop_CopyConvolutionFilter2D 4108 |
| 2250 |
#define X_GLrop_SeparableFilter2D 4109 |
| 2251 |
#define X_GLrop_Histogram 4110 |
| 2252 |
#define X_GLrop_Minmax 4111 |
| 2253 |
#define X_GLrop_ResetHistogram 4112 |
| 2254 |
#define X_GLrop_ResetMinmax 4113 |
| 2255 |
#define X_GLrop_TexImage3D 4114 |
| 2256 |
#define X_GLrop_TexSubImage3D 4115 |
| 2257 |
#define X_GLrop_CopyTexSubImage3D 4123 |
| 2258 |
#define X_GLrop_DrawArraysEXT 4116 |
| 2259 |
|
| 2260 |
/* Added for core GL version 1.3 */ |
| 2261 |
|
| 2262 |
#define X_GLrop_ActiveTextureARB 197 |
| 2263 |
#define X_GLrop_MultiTexCoord1dvARB 198 |
| 2264 |
#define X_GLrop_MultiTexCoord1fvARB 199 |
| 2265 |
#define X_GLrop_MultiTexCoord1ivARB 200 |
| 2266 |
#define X_GLrop_MultiTexCoord1svARB 201 |
| 2267 |
#define X_GLrop_MultiTexCoord2dvARB 202 |
| 2268 |
#define X_GLrop_MultiTexCoord2fvARB 203 |
| 2269 |
#define X_GLrop_MultiTexCoord2ivARB 204 |
| 2270 |
#define X_GLrop_MultiTexCoord2svARB 205 |
| 2271 |
#define X_GLrop_MultiTexCoord3dvARB 206 |
| 2272 |
#define X_GLrop_MultiTexCoord3fvARB 207 |
| 2273 |
#define X_GLrop_MultiTexCoord3ivARB 208 |
| 2274 |
#define X_GLrop_MultiTexCoord3svARB 209 |
| 2275 |
#define X_GLrop_MultiTexCoord4dvARB 210 |
| 2276 |
#define X_GLrop_MultiTexCoord4fvARB 211 |
| 2277 |
#define X_GLrop_MultiTexCoord4ivARB 212 |
| 2278 |
#define X_GLrop_MultiTexCoord4svARB 213 |
| 2279 |
#define X_GLrop_CompressedTexImage1D 214 |
| 2280 |
#define X_GLrop_CompressedTexImage2D 215 |
| 2281 |
#define X_GLrop_CompressedTexImage3D 216 |
| 2282 |
#define X_GLrop_CompressedTexSubImage1D 217 |
| 2283 |
#define X_GLrop_CompressedTexSubImage2D 218 |
| 2284 |
#define X_GLrop_CompressedTexSubImage3D 219 |
| 2285 |
#define X_GLrop_SampleCoverageARB 229 |
| 2286 |
|
| 2287 |
/* Added for core GL version 1.4 */ |
| 2288 |
|
| 2289 |
#define X_GLrop_WindowPos3fARB 230 |
| 2290 |
#define X_GLrop_FogCoordfv 4124 |
| 2291 |
#define X_GLrop_FogCoorddv 4125 |
| 2292 |
#define X_GLrop_PointParameterfARB 2065 |
| 2293 |
#define X_GLrop_PointParameterfvARB 2066 |
| 2294 |
#define X_GLrop_SecondaryColor3bv 4126 |
| 2295 |
#define X_GLrop_SecondaryColor3sv 4127 |
| 2296 |
#define X_GLrop_SecondaryColor3iv 4128 |
| 2297 |
#define X_GLrop_SecondaryColor3fv 4129 |
| 2298 |
#define X_GLrop_SecondaryColor3dv 4130 |
| 2299 |
#define X_GLrop_SecondaryColor3ubv 4131 |
| 2300 |
#define X_GLrop_SecondaryColor3usv 4132 |
| 2301 |
#define X_GLrop_SecondaryColor3uiv 4133 |
| 2302 |
#define X_GLrop_BlendFuncSeparate 4134 |
| 2303 |
#define X_GLrop_PointParameteri 4221 |
| 2304 |
#define X_GLrop_PointParameteriv 4222 |
| 2305 |
|
| 2306 |
/* Added for core GL version 1.5 */ |
| 2307 |
/* XXX opcodes not defined in the spec */ |
| 2308 |
|
| 2309 |
/* Opcodes for Vendor Private commands */ |
| 2310 |
|
| 2311 |
|
| 2312 |
#define X_GLvop_GetConvolutionFilterEXT 1 |
| 2313 |
#define X_GLvop_GetConvolutionParameterfvEXT 2 |
| 2314 |
#define X_GLvop_GetConvolutionParameterivEXT 3 |
| 2315 |
#define X_GLvop_GetSeparableFilterEXT 4 |
| 2316 |
#define X_GLvop_GetHistogramEXT 5 |
| 2317 |
#define X_GLvop_GetHistogramParameterfvEXT 6 |
| 2318 |
#define X_GLvop_GetHistogramParameterivEXT 7 |
| 2319 |
#define X_GLvop_GetMinmaxEXT 8 |
| 2320 |
#define X_GLvop_GetMinmaxParameterfvEXT 9 |
| 2321 |
#define X_GLvop_GetMinmaxParameterivEXT 10 |
| 2322 |
#define X_GLvop_AreTexturesResidentEXT 11 |
| 2323 |
#define X_GLvop_DeleteTexturesEXT 12 |
| 2324 |
#define X_GLvop_GenTexturesEXT 13 |
| 2325 |
#define X_GLvop_IsTextureEXT 14 |
| 2326 |
#define X_GLvop_GetCombinerInputParameterfvNV 1270 |
| 2327 |
#define X_GLvop_GetCombinerInputParameterivNV 1271 |
| 2328 |
#define X_GLvop_GetCombinerOutputParameterfvNV 1272 |
| 2329 |
#define X_GLvop_GetCombinerOutputParameterivNV 1273 |
| 2330 |
#define X_GLvop_GetFinalCombinerOutputParameterfvNV 1274 |
| 2331 |
#define X_GLvop_GetFinalCombinerOutputParameterivNV 1275 |
| 2332 |
#define X_GLvop_DeleteFenceNV 1276 |
| 2333 |
#define X_GLvop_GenFencesNV 1277 |
| 2334 |
#define X_GLvop_IsFenceNV 1278 |
| 2335 |
#define X_GLvop_TestFenceNV 1279 |
| 2336 |
#define X_GLvop_GetFenceivNV 1280 |
| 2337 |
#define X_GLvop_AreProgramsResidentNV 1293 |
| 2338 |
#define X_GLvop_DeleteProgramARB 1294 |
| 2339 |
#define X_GLvop_GenProgramsARB 1295 |
| 2340 |
#define X_GLvop_GetProgramEnvParameterfvARB 1296 |
| 2341 |
#define X_GLvop_GetProgramEnvParameterdvARB 1297 |
| 2342 |
#define X_GLvop_GetProgramEnvParameterivNV 1298 |
| 2343 |
#define X_GLvop_GetProgramStringNV 1299 |
| 2344 |
#define X_GLvop_GetTrackMatrixivNV 1300 |
| 2345 |
#define X_GLvop_GetVetrexAttribdvARB 1301 |
| 2346 |
#define X_GLvop_GetVetrexAttribfvARB 1302 |
| 2347 |
#define X_GLvop_GetVetrexAttribivARB 1303 |
| 2348 |
#define X_GLvop_IsProgramARB 1304 |
| 2349 |
#define X_GLvop_GetProgramLocalParameterfvARB 1305 |
| 2350 |
#define X_GLvop_GetProgramLocalParameterdvARB 1306 |
| 2351 |
#define X_GLvop_GetProgramivARB 1307 |
| 2352 |
#define X_GLvop_GetProgramStringARB 1308 |
| 2353 |
#define X_GLvop_GetProgramNamedParameter4fvNV 1310 |
| 2354 |
#define X_GLvop_GetProgramNamedParameter4dvNV 1311 |
| 2355 |
#define X_GLvop_SampleMaskSGIS 2048 |
| 2356 |
#define X_GLvop_SamplePatternSGIS 2049 |
| 2357 |
#define X_GLvop_GetDetailTexFuncSGIS 4096 |
| 2358 |
#define X_GLvop_GetSharpenTexFuncSGIS 4097 |
| 2359 |
#define X_GLvop_GetColorTableSGI 4098 |
| 2360 |
#define X_GLvop_GetColorTableParameterfvSGI 4099 |
| 2361 |
#define X_GLvop_GetColorTableParameterivSGI 4100 |
| 2362 |
#define X_GLvop_GetTexFilterFuncSGIS 4101 |
| 2363 |
#define X_GLvop_GetInstrumentsSGIX 4102 |
| 2364 |
#define X_GLvop_InstrumentsBufferSGIX 4103 |
| 2365 |
#define X_GLvop_PollInstrumentsSGIX 4104 |
| 2366 |
#define X_GLvop_FlushRasterSGIX 4105 |
| 2367 |
|
| 2368 |
/* Opcodes for GLX vendor private commands */ |
| 2369 |
|
| 2370 |
#define X_GLXvop_QueryContextInfoEXT 1024 |
| 2371 |
#define X_GLXvop_SwapIntervalSGI 65536 |
| 2372 |
#define X_GLXvop_MakeCurrentReadSGI 65537 |
| 2373 |
#define X_GLXvop_CreateGLXVideoSourceSGIX 65538 |
| 2374 |
#define X_GLXvop_DestroyGLXVideoSourceSGIX 65539 |
| 2375 |
#define X_GLXvop_GetFBConfigsSGIX 65540 |
| 2376 |
#define X_GLXvop_CreateContextWithConfigSGIX 65541 |
| 2377 |
#define X_GLXvop_CreateGLXPixmapWithConfigSGIX 65542 |
| 2378 |
#define X_GLXvop_CreateGLXPbufferSGIX 65543 |
| 2379 |
#define X_GLXvop_DestroyGLXPbufferSGIX 65544 |
| 2380 |
#define X_GLXvop_ChangeDrawableAttributesSGIX 65545 |
| 2381 |
#define X_GLXvop_GetDrawableAttributesSGIX 65546 |
| 2382 |
#define X_GLXvop_JoinSwapGroupSGIX 65547 |
| 2383 |
#define X_GLXvop_BindSwapBarrierSGIX 65548 |
| 2384 |
#define X_GLXvop_QueryMaxSwapBarriersSGIX 65549 |
| 2385 |
#define X_GLXvop_QueryHyperpipeNetworkSGIX 65550 |
| 2386 |
#define X_GLXvop_QueryHyperpipeConfigSGIX 65551 |
| 2387 |
#define X_GLXvop_HyperpipeConfigSGIX 65552 |
| 2388 |
#define X_GLXvop_DestroyHyperpipeConfigSGIX 65553 |
| 2389 |
|
| 2390 |
|
| 2391 |
/* ARB extension opcodes */ |
| 2392 |
|
| 2393 |
/* 1. GL_ARB_multitexture - see GL 1.2 opcodes */ |
| 2394 |
/* 5. GL_ARB_multisample - see GL 1.3 opcodes */ |
| 2395 |
/* 12. GL_ARB_texture_compression - see GL 1.3 opcodes */ |
| 2396 |
/* 14. GL_ARB_point_parameters - see GL 1.4 opcodees */ |
| 2397 |
|
| 2398 |
/* 15. GL_ARB_vertex_blend */ |
| 2399 |
#define X_GLrop_WeightbvARB 220 |
| 2400 |
#define X_GLrop_WeightubvARB 221 |
| 2401 |
#define X_GLrop_WeightsvARB 222 |
| 2402 |
#define X_GLrop_WeightusvARB 223 |
| 2403 |
#define X_GLrop_WeightivARB 224 |
| 2404 |
#define X_GLrop_WeightuivARB 225 |
| 2405 |
#define X_GLrop_VertexBlendARB 226 |
| 2406 |
#define X_GLrop_WeightfvARB 227 |
| 2407 |
#define X_GLrop_WeightdvARB 228 |
| 2408 |
|
| 2409 |
/* 16. GL_ARB_matrix_palette */ |
| 2410 |
/* XXX opcodes not defined in the spec */ |
| 2411 |
|
| 2412 |
/* 25. GL_ARB_window_pos - see GL 1.4 opcodes */ |
| 2413 |
|
| 2414 |
/* 26. GL_ARB_vertex_program */ |
| 2415 |
#define X_GLrop_BindProgramARB 4180 |
| 2416 |
#define X_GLrop_ProgramEnvParameter4fvARB 4184 |
| 2417 |
#define X_GLrop_ProgramEnvParameter4dvARB 4185 |
| 2418 |
#define X_GLrop_VertexAttrib1svARB 4189 |
| 2419 |
#define X_GLrop_VertexAttrib2svARB 4190 |
| 2420 |
#define X_GLrop_VertexAttrib3svARB 4191 |
| 2421 |
#define X_GLrop_VertexAttrib4svARB 4192 |
| 2422 |
#define X_GLrop_VertexAttrib1fvARB 4193 |
| 2423 |
#define X_GLrop_VertexAttrib2fvARB 4194 |
| 2424 |
#define X_GLrop_VertexAttrib3fvARB 4195 |
| 2425 |
#define X_GLrop_VertexAttrib4fvARB 4196 |
| 2426 |
#define X_GLrop_VertexAttrib1dvARB 4197 |
| 2427 |
#define X_GLrop_VertexAttrib2dvARB 4198 |
| 2428 |
#define X_GLrop_VertexAttrib3dvARB 4199 |
| 2429 |
#define X_GLrop_ProgramLocalParameter4fvARB 4215 |
| 2430 |
#define X_GLrop_ProgramLocalParameter4dvARB 4216 |
| 2431 |
#define X_GLrop_ProgramStringARB 4217 |
| 2432 |
#define X_GLrop_VertexAttrib4dvARB 4200 |
| 2433 |
#define X_GLrop_VertexAttrib4NubvARB 4201 |
| 2434 |
#define X_GLrop_VertexAttrib4bvARB 4230 |
| 2435 |
#define X_GLrop_VertexAttrib4ivARB 4231 |
| 2436 |
#define X_GLrop_VertexAttrib4ubvARB 4232 |
| 2437 |
#define X_GLrop_VertexAttrib4usvARB 4233 |
| 2438 |
#define X_GLrop_VertexAttrib4uivARB 4234 |
| 2439 |
#define X_GLrop_VertexAttrib4NbvARB 4235 |
| 2440 |
#define X_GLrop_VertexAttrib4NsvARB 4236 |
| 2441 |
#define X_GLrop_VertexAttrib4NivARB 4237 |
| 2442 |
#define X_GLrop_VertexAttrib4NusvARB 4238 |
| 2443 |
#define X_GLrop_VertexAttrib4NuivARB 4239 |
| 2444 |
|
| 2445 |
/* 27. GL_ARB_fragment_program - see GL_ARB_vertex_program opcodes */ |
| 2446 |
|
| 2447 |
/* 29. GL_ARB_occlusion_query */ |
| 2448 |
/* XXX opcodes not defined in the spec */ |
| 2449 |
|
| 2450 |
|
| 2451 |
/* New extension opcodes */ |
| 2452 |
|
| 2453 |
/* 145. GL_EXT_secondary_color - see GL 1.4 opcodes */ |
| 2454 |
|
| 2455 |
/* 188. GL_EXT_vertex_weighting */ |
| 2456 |
#define X_GLrop_VertexWeightfvEXT 4135 |
| 2457 |
|
| 2458 |
/* 191. GL_NV_register_combiners */ |
| 2459 |
#define X_GLrop_CombinerParameterfNV 4136 |
| 2460 |
#define X_GLrop_CombinerParameterfvNV 4137 |
| 2461 |
#define X_GLrop_CombinerParameteriNV 4138 |
| 2462 |
#define X_GLrop_CombinerParameterivNV 4139 |
| 2463 |
#define X_GLrop_CombinerInputNV 4140 |
| 2464 |
#define X_GLrop_CombinerOutputNV 4141 |
| 2465 |
#define X_GLrop_FinalCombinerInputNV 4142 |
| 2466 |
|
| 2467 |
/* 222. GL_NV_fence */ |
| 2468 |
#define X_GLrop_SetFenceNV 4143 |
| 2469 |
#define X_GLrop_FinishFenceNV 4144 |
| 2470 |
|
| 2471 |
/* 227. GL_NV_register_combiners2 */ |
| 2472 |
/* XXX opcodes not defined in the spec */ |
| 2473 |
|
| 2474 |
/* 233. GL_NV_vertex_program - see also GL_ARB_vertex_program opcodes */ |
| 2475 |
#define X_GLrop_ExecuteProgramNV 4181 |
| 2476 |
#define X_GLrop_RequestResidentProgramsNV 4182 |
| 2477 |
#define X_GLrop_LoadProgamNV 4183 |
| 2478 |
#define X_GLrop_ProgramParameters4fvNV 4186 |
| 2479 |
#define X_GLrop_ProgramParameters4dvNV 4187 |
| 2480 |
#define X_GLrop_TrackMatrixNV 4188 |
| 2481 |
#define X_GLrop_VertexAttribs1svNV 4202 |
| 2482 |
#define X_GLrop_VertexAttribs2svNV 4203 |
| 2483 |
#define X_GLrop_VertexAttribs3svNV 4204 |
| 2484 |
#define X_GLrop_VertexAttribs4svNV 4205 |
| 2485 |
#define X_GLrop_VertexAttribs1fvNV 4206 |
| 2486 |
#define X_GLrop_VertexAttribs2fvNV 4207 |
| 2487 |
#define X_GLrop_VertexAttribs3fvNV 4208 |
| 2488 |
#define X_GLrop_VertexAttribs4fvNV 4209 |
| 2489 |
#define X_GLrop_VertexAttribs1dvNV 4210 |
| 2490 |
#define X_GLrop_VertexAttribs2dvNV 4211 |
| 2491 |
#define X_GLrop_VertexAttribs3dvNV 4212 |
| 2492 |
#define X_GLrop_VertexAttribs4dvNV 4213 |
| 2493 |
#define X_GLrop_VertexAttribs4ubvNV 4214 |
| 2494 |
|
| 2495 |
/* 261. GL_NV_occlusion_query */ |
| 2496 |
/* XXX opcodes not defined in the spec */ |
| 2497 |
|
| 2498 |
/* 262. GL_NV_point_sprite - see GL 1.4 opcodes */ |
| 2499 |
|
| 2500 |
/* 268. GL_EXT_stencil_two_side */ |
| 2501 |
#define X_GLrop_ActiveStencilFaceEXT 4220 |
| 2502 |
|
| 2503 |
/* 282. GL_NV_fragment_program - see also GL_NV_vertex_program and GL_ARB_vertex_program opcodes */ |
| 2504 |
#define X_GLrop_ProgramNamedParameter4fvNV 4218 |
| 2505 |
#define X_GLrop_ProgramNamedParameter4dvNV 4219 |
| 2506 |
|
| 2507 |
/* 285. GL_NV_primitive_restart */ |
| 2508 |
/* XXX opcodes not defined in the spec */ |
| 2509 |
|
| 2510 |
/* 297. GL_EXT_depth_bounds_test */ |
| 2511 |
#define X_GLrop_DepthBoundsEXT 4229 |
| 2512 |
|
| 2513 |
/* 299. GL_EXT_blend_equation_separate */ |
| 2514 |
#define X_GLrop_BlendEquationSeparateEXT 4228 |
| 2515 |
|
| 2516 |
#endif /* _GLX_glxproto_h_ */ |