1 /* 2 ** The OpenGL Extension Wrangler Library 3 ** Copyright (C) 2008-2017, Nigel Stewart <nigels[]users sourceforge net> 4 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org> 5 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org> 6 ** Copyright (C) 2002, Lev Povalahev 7 ** All rights reserved. 8 ** 9 ** Redistribution and use in source and binary forms, with or without 10 ** modification, are permitted provided that the following conditions are met: 11 ** 12 ** * Redistributions of source code must retain the above copyright notice, 13 ** this list of conditions and the following disclaimer. 14 ** * Redistributions in binary form must reproduce the above copyright notice, 15 ** this list of conditions and the following disclaimer in the documentation 16 ** and/or other materials provided with the distribution. 17 ** * The name of the author may be used to endorse or promote products 18 ** derived from this software without specific prior written permission. 19 ** 20 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 24 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 ** THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33 /* 34 * Mesa 3-D graphics library 35 * Version: 7.0 36 * 37 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. 38 * 39 * Permission is hereby granted, free of charge, to any person obtaining a 40 * copy of this software and associated documentation files (the "Software"), 41 * to deal in the Software without restriction, including without limitation 42 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 43 * and/or sell copies of the Software, and to permit persons to whom the 44 * Software is furnished to do so, subject to the following conditions: 45 * 46 * The above copyright notice and this permission notice shall be included 47 * in all copies or substantial portions of the Software. 48 * 49 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 50 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 51 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 52 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 53 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 54 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 55 */ 56 57 /* 58 ** Copyright (c) 2007 The Khronos Group Inc. 59 ** 60 ** Permission is hereby granted, free of charge, to any person obtaining a 61 ** copy of this software and/or associated documentation files (the 62 ** "Materials"), to deal in the Materials without restriction, including 63 ** without limitation the rights to use, copy, modify, merge, publish, 64 ** distribute, sublicense, and/or sell copies of the Materials, and to 65 ** permit persons to whom the Materials are furnished to do so, subject to 66 ** the following conditions: 67 ** 68 ** The above copyright notice and this permission notice shall be included 69 ** in all copies or substantial portions of the Materials. 70 ** 71 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 72 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 73 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 74 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 75 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 76 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 77 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 78 */ 79 80 #ifndef __glxew_h__ 81 #define __glxew_h__ 82 #define __GLXEW_H__ 83 84 #ifdef __glxext_h_ 85 #error glxext.h included before glxew.h 86 #endif 87 88 #if defined(GLX_H) || defined(__GLX_glx_h__) || defined(__glx_h__) 89 #error glx.h included before glxew.h 90 #endif 91 92 #define __glxext_h_ 93 94 #define GLX_H 95 #define __GLX_glx_h__ 96 #define __glx_h__ 97 98 #include <X11/Xlib.h> 99 #include <X11/Xutil.h> 100 #include <X11/Xmd.h> 101 #include <GL/glew.h> 102 103 /* ---------------------------- GLX_VERSION_1_0 --------------------------- */ 104 105 #ifndef GLX_VERSION_1_0 106 #define GLX_VERSION_1_0 1 107 108 #define GLX_USE_GL 1 109 #define GLX_BUFFER_SIZE 2 110 #define GLX_LEVEL 3 111 #define GLX_RGBA 4 112 #define GLX_DOUBLEBUFFER 5 113 #define GLX_STEREO 6 114 #define GLX_AUX_BUFFERS 7 115 #define GLX_RED_SIZE 8 116 #define GLX_GREEN_SIZE 9 117 #define GLX_BLUE_SIZE 10 118 #define GLX_ALPHA_SIZE 11 119 #define GLX_DEPTH_SIZE 12 120 #define GLX_STENCIL_SIZE 13 121 #define GLX_ACCUM_RED_SIZE 14 122 #define GLX_ACCUM_GREEN_SIZE 15 123 #define GLX_ACCUM_BLUE_SIZE 16 124 #define GLX_ACCUM_ALPHA_SIZE 17 125 #define GLX_BAD_SCREEN 1 126 #define GLX_BAD_ATTRIBUTE 2 127 #define GLX_NO_EXTENSION 3 128 #define GLX_BAD_VISUAL 4 129 #define GLX_BAD_CONTEXT 5 130 #define GLX_BAD_VALUE 6 131 #define GLX_BAD_ENUM 7 132 133 typedef XID GLXDrawable; 134 typedef XID GLXPixmap; 135 #ifdef __sun 136 typedef struct __glXContextRec *GLXContext; 137 #else 138 typedef struct __GLXcontextRec *GLXContext; 139 #endif 140 141 typedef unsigned int GLXVideoDeviceNV; 142 143 extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase); 144 extern Bool glXQueryVersion (Display *dpy, int *major, int *minor); 145 extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value); 146 extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList); 147 extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap); 148 extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix); 149 extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct); 150 extern void glXDestroyContext (Display *dpy, GLXContext ctx); 151 extern Bool glXIsDirect (Display *dpy, GLXContext ctx); 152 extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask); 153 extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx); 154 extern GLXContext glXGetCurrentContext (void); 155 extern GLXDrawable glXGetCurrentDrawable (void); 156 extern void glXWaitGL (void); 157 extern void glXWaitX (void); 158 extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable); 159 extern void glXUseXFont (Font font, int first, int count, int listBase); 160 161 #define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0) 162 163 #endif /* GLX_VERSION_1_0 */ 164 165 /* ---------------------------- GLX_VERSION_1_1 --------------------------- */ 166 167 #ifndef GLX_VERSION_1_1 168 #define GLX_VERSION_1_1 169 170 #define GLX_VENDOR 0x1 171 #define GLX_VERSION 0x2 172 #define GLX_EXTENSIONS 0x3 173 174 extern const char* glXQueryExtensionsString (Display *dpy, int screen); 175 extern const char* glXGetClientString (Display *dpy, int name); 176 extern const char* glXQueryServerString (Display *dpy, int screen, int name); 177 178 #define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1) 179 180 #endif /* GLX_VERSION_1_1 */ 181 182 /* ---------------------------- GLX_VERSION_1_2 ---------------------------- */ 183 184 #ifndef GLX_VERSION_1_2 185 #define GLX_VERSION_1_2 1 186 187 typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void); 188 189 #define glXGetCurrentDisplay GLXEW_GET_FUN(__glewXGetCurrentDisplay) 190 191 #define GLXEW_VERSION_1_2 GLXEW_GET_VAR(__GLXEW_VERSION_1_2) 192 193 #endif /* GLX_VERSION_1_2 */ 194 195 /* ---------------------------- GLX_VERSION_1_3 ---------------------------- */ 196 197 #ifndef GLX_VERSION_1_3 198 #define GLX_VERSION_1_3 1 199 200 #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 201 #define GLX_RGBA_BIT 0x00000001 202 #define GLX_WINDOW_BIT 0x00000001 203 #define GLX_COLOR_INDEX_BIT 0x00000002 204 #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 205 #define GLX_PIXMAP_BIT 0x00000002 206 #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 207 #define GLX_PBUFFER_BIT 0x00000004 208 #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 209 #define GLX_AUX_BUFFERS_BIT 0x00000010 210 #define GLX_CONFIG_CAVEAT 0x20 211 #define GLX_DEPTH_BUFFER_BIT 0x00000020 212 #define GLX_X_VISUAL_TYPE 0x22 213 #define GLX_TRANSPARENT_TYPE 0x23 214 #define GLX_TRANSPARENT_INDEX_VALUE 0x24 215 #define GLX_TRANSPARENT_RED_VALUE 0x25 216 #define GLX_TRANSPARENT_GREEN_VALUE 0x26 217 #define GLX_TRANSPARENT_BLUE_VALUE 0x27 218 #define GLX_TRANSPARENT_ALPHA_VALUE 0x28 219 #define GLX_STENCIL_BUFFER_BIT 0x00000040 220 #define GLX_ACCUM_BUFFER_BIT 0x00000080 221 #define GLX_NONE 0x8000 222 #define GLX_SLOW_CONFIG 0x8001 223 #define GLX_TRUE_COLOR 0x8002 224 #define GLX_DIRECT_COLOR 0x8003 225 #define GLX_PSEUDO_COLOR 0x8004 226 #define GLX_STATIC_COLOR 0x8005 227 #define GLX_GRAY_SCALE 0x8006 228 #define GLX_STATIC_GRAY 0x8007 229 #define GLX_TRANSPARENT_RGB 0x8008 230 #define GLX_TRANSPARENT_INDEX 0x8009 231 #define GLX_VISUAL_ID 0x800B 232 #define GLX_SCREEN 0x800C 233 #define GLX_NON_CONFORMANT_CONFIG 0x800D 234 #define GLX_DRAWABLE_TYPE 0x8010 235 #define GLX_RENDER_TYPE 0x8011 236 #define GLX_X_RENDERABLE 0x8012 237 #define GLX_FBCONFIG_ID 0x8013 238 #define GLX_RGBA_TYPE 0x8014 239 #define GLX_COLOR_INDEX_TYPE 0x8015 240 #define GLX_MAX_PBUFFER_WIDTH 0x8016 241 #define GLX_MAX_PBUFFER_HEIGHT 0x8017 242 #define GLX_MAX_PBUFFER_PIXELS 0x8018 243 #define GLX_PRESERVED_CONTENTS 0x801B 244 #define GLX_LARGEST_PBUFFER 0x801C 245 #define GLX_WIDTH 0x801D 246 #define GLX_HEIGHT 0x801E 247 #define GLX_EVENT_MASK 0x801F 248 #define GLX_DAMAGED 0x8020 249 #define GLX_SAVED 0x8021 250 #define GLX_WINDOW 0x8022 251 #define GLX_PBUFFER 0x8023 252 #define GLX_PBUFFER_HEIGHT 0x8040 253 #define GLX_PBUFFER_WIDTH 0x8041 254 #define GLX_PBUFFER_CLOBBER_MASK 0x08000000 255 #define GLX_DONT_CARE 0xFFFFFFFF 256 257 typedef XID GLXFBConfigID; 258 typedef XID GLXPbuffer; 259 typedef XID GLXWindow; 260 typedef struct __GLXFBConfigRec *GLXFBConfig; 261 262 typedef struct { 263 int event_type; 264 int draw_type; 265 unsigned long serial; 266 Bool send_event; 267 Display *display; 268 GLXDrawable drawable; 269 unsigned int buffer_mask; 270 unsigned int aux_buffer; 271 int x, y; 272 int width, height; 273 int count; 274 } GLXPbufferClobberEvent; 275 typedef union __GLXEvent { 276 GLXPbufferClobberEvent glxpbufferclobber; 277 long pad[24]; 278 } GLXEvent; 279 280 typedef GLXFBConfig* ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); 281 typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); 282 typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); 283 typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); 284 typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); 285 typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); 286 typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); 287 typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); 288 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void); 289 typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); 290 typedef GLXFBConfig* ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); 291 typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); 292 typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); 293 typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx); 294 typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); 295 typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); 296 typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); 297 298 #define glXChooseFBConfig GLXEW_GET_FUN(__glewXChooseFBConfig) 299 #define glXCreateNewContext GLXEW_GET_FUN(__glewXCreateNewContext) 300 #define glXCreatePbuffer GLXEW_GET_FUN(__glewXCreatePbuffer) 301 #define glXCreatePixmap GLXEW_GET_FUN(__glewXCreatePixmap) 302 #define glXCreateWindow GLXEW_GET_FUN(__glewXCreateWindow) 303 #define glXDestroyPbuffer GLXEW_GET_FUN(__glewXDestroyPbuffer) 304 #define glXDestroyPixmap GLXEW_GET_FUN(__glewXDestroyPixmap) 305 #define glXDestroyWindow GLXEW_GET_FUN(__glewXDestroyWindow) 306 #define glXGetCurrentReadDrawable GLXEW_GET_FUN(__glewXGetCurrentReadDrawable) 307 #define glXGetFBConfigAttrib GLXEW_GET_FUN(__glewXGetFBConfigAttrib) 308 #define glXGetFBConfigs GLXEW_GET_FUN(__glewXGetFBConfigs) 309 #define glXGetSelectedEvent GLXEW_GET_FUN(__glewXGetSelectedEvent) 310 #define glXGetVisualFromFBConfig GLXEW_GET_FUN(__glewXGetVisualFromFBConfig) 311 #define glXMakeContextCurrent GLXEW_GET_FUN(__glewXMakeContextCurrent) 312 #define glXQueryContext GLXEW_GET_FUN(__glewXQueryContext) 313 #define glXQueryDrawable GLXEW_GET_FUN(__glewXQueryDrawable) 314 #define glXSelectEvent GLXEW_GET_FUN(__glewXSelectEvent) 315 316 #define GLXEW_VERSION_1_3 GLXEW_GET_VAR(__GLXEW_VERSION_1_3) 317 318 #endif /* GLX_VERSION_1_3 */ 319 320 /* ---------------------------- GLX_VERSION_1_4 ---------------------------- */ 321 322 #ifndef GLX_VERSION_1_4 323 #define GLX_VERSION_1_4 1 324 325 #define GLX_SAMPLE_BUFFERS 100000 326 #define GLX_SAMPLES 100001 327 328 extern void ( * glXGetProcAddress (const GLubyte *procName)) (void); 329 330 #define GLXEW_VERSION_1_4 GLXEW_GET_VAR(__GLXEW_VERSION_1_4) 331 332 #endif /* GLX_VERSION_1_4 */ 333 334 /* -------------------------- GLX_3DFX_multisample ------------------------- */ 335 336 #ifndef GLX_3DFX_multisample 337 #define GLX_3DFX_multisample 1 338 339 #define GLX_SAMPLE_BUFFERS_3DFX 0x8050 340 #define GLX_SAMPLES_3DFX 0x8051 341 342 #define GLXEW_3DFX_multisample GLXEW_GET_VAR(__GLXEW_3DFX_multisample) 343 344 #endif /* GLX_3DFX_multisample */ 345 346 /* ------------------------ GLX_AMD_gpu_association ------------------------ */ 347 348 #ifndef GLX_AMD_gpu_association 349 #define GLX_AMD_gpu_association 1 350 351 #define GLX_GPU_VENDOR_AMD 0x1F00 352 #define GLX_GPU_RENDERER_STRING_AMD 0x1F01 353 #define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 354 #define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 355 #define GLX_GPU_RAM_AMD 0x21A3 356 #define GLX_GPU_CLOCK_AMD 0x21A4 357 #define GLX_GPU_NUM_PIPES_AMD 0x21A5 358 #define GLX_GPU_NUM_SIMD_AMD 0x21A6 359 #define GLX_GPU_NUM_RB_AMD 0x21A7 360 #define GLX_GPU_NUM_SPI_AMD 0x21A8 361 362 typedef void ( * PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC) (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter); 363 typedef GLXContext ( * PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC) (unsigned int id, GLXContext share_list); 364 typedef GLXContext ( * PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (unsigned int id, GLXContext share_context, const int* attribList); 365 typedef Bool ( * PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC) (GLXContext ctx); 366 typedef unsigned int ( * PFNGLXGETCONTEXTGPUIDAMDPROC) (GLXContext ctx); 367 typedef GLXContext ( * PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void); 368 typedef unsigned int ( * PFNGLXGETGPUIDSAMDPROC) (unsigned int maxCount, unsigned int* ids); 369 typedef int ( * PFNGLXGETGPUINFOAMDPROC) (unsigned int id, int property, GLenum dataType, unsigned int size, void* data); 370 typedef Bool ( * PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (GLXContext ctx); 371 372 #define glXBlitContextFramebufferAMD GLXEW_GET_FUN(__glewXBlitContextFramebufferAMD) 373 #define glXCreateAssociatedContextAMD GLXEW_GET_FUN(__glewXCreateAssociatedContextAMD) 374 #define glXCreateAssociatedContextAttribsAMD GLXEW_GET_FUN(__glewXCreateAssociatedContextAttribsAMD) 375 #define glXDeleteAssociatedContextAMD GLXEW_GET_FUN(__glewXDeleteAssociatedContextAMD) 376 #define glXGetContextGPUIDAMD GLXEW_GET_FUN(__glewXGetContextGPUIDAMD) 377 #define glXGetCurrentAssociatedContextAMD GLXEW_GET_FUN(__glewXGetCurrentAssociatedContextAMD) 378 #define glXGetGPUIDsAMD GLXEW_GET_FUN(__glewXGetGPUIDsAMD) 379 #define glXGetGPUInfoAMD GLXEW_GET_FUN(__glewXGetGPUInfoAMD) 380 #define glXMakeAssociatedContextCurrentAMD GLXEW_GET_FUN(__glewXMakeAssociatedContextCurrentAMD) 381 382 #define GLXEW_AMD_gpu_association GLXEW_GET_VAR(__GLXEW_AMD_gpu_association) 383 384 #endif /* GLX_AMD_gpu_association */ 385 386 /* --------------------- GLX_ARB_context_flush_control --------------------- */ 387 388 #ifndef GLX_ARB_context_flush_control 389 #define GLX_ARB_context_flush_control 1 390 391 #define GLXEW_ARB_context_flush_control GLXEW_GET_VAR(__GLXEW_ARB_context_flush_control) 392 393 #endif /* GLX_ARB_context_flush_control */ 394 395 /* ------------------------- GLX_ARB_create_context ------------------------ */ 396 397 #ifndef GLX_ARB_create_context 398 #define GLX_ARB_create_context 1 399 400 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 401 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 402 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 403 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 404 #define GLX_CONTEXT_FLAGS_ARB 0x2094 405 406 typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list); 407 408 #define glXCreateContextAttribsARB GLXEW_GET_FUN(__glewXCreateContextAttribsARB) 409 410 #define GLXEW_ARB_create_context GLXEW_GET_VAR(__GLXEW_ARB_create_context) 411 412 #endif /* GLX_ARB_create_context */ 413 414 /* -------------------- GLX_ARB_create_context_no_error -------------------- */ 415 416 #ifndef GLX_ARB_create_context_no_error 417 #define GLX_ARB_create_context_no_error 1 418 419 #define GLXEW_ARB_create_context_no_error GLXEW_GET_VAR(__GLXEW_ARB_create_context_no_error) 420 421 #endif /* GLX_ARB_create_context_no_error */ 422 423 /* --------------------- GLX_ARB_create_context_profile -------------------- */ 424 425 #ifndef GLX_ARB_create_context_profile 426 #define GLX_ARB_create_context_profile 1 427 428 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 429 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 430 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 431 432 #define GLXEW_ARB_create_context_profile GLXEW_GET_VAR(__GLXEW_ARB_create_context_profile) 433 434 #endif /* GLX_ARB_create_context_profile */ 435 436 /* ------------------- GLX_ARB_create_context_robustness ------------------- */ 437 438 #ifndef GLX_ARB_create_context_robustness 439 #define GLX_ARB_create_context_robustness 1 440 441 #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 442 #define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252 443 #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 444 #define GLX_NO_RESET_NOTIFICATION_ARB 0x8261 445 446 #define GLXEW_ARB_create_context_robustness GLXEW_GET_VAR(__GLXEW_ARB_create_context_robustness) 447 448 #endif /* GLX_ARB_create_context_robustness */ 449 450 /* ------------------------- GLX_ARB_fbconfig_float ------------------------ */ 451 452 #ifndef GLX_ARB_fbconfig_float 453 #define GLX_ARB_fbconfig_float 1 454 455 #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004 456 #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9 457 458 #define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float) 459 460 #endif /* GLX_ARB_fbconfig_float */ 461 462 /* ------------------------ GLX_ARB_framebuffer_sRGB ----------------------- */ 463 464 #ifndef GLX_ARB_framebuffer_sRGB 465 #define GLX_ARB_framebuffer_sRGB 1 466 467 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2 468 469 #define GLXEW_ARB_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_ARB_framebuffer_sRGB) 470 471 #endif /* GLX_ARB_framebuffer_sRGB */ 472 473 /* ------------------------ GLX_ARB_get_proc_address ----------------------- */ 474 475 #ifndef GLX_ARB_get_proc_address 476 #define GLX_ARB_get_proc_address 1 477 478 extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void); 479 480 #define GLXEW_ARB_get_proc_address GLXEW_GET_VAR(__GLXEW_ARB_get_proc_address) 481 482 #endif /* GLX_ARB_get_proc_address */ 483 484 /* -------------------------- GLX_ARB_multisample -------------------------- */ 485 486 #ifndef GLX_ARB_multisample 487 #define GLX_ARB_multisample 1 488 489 #define GLX_SAMPLE_BUFFERS_ARB 100000 490 #define GLX_SAMPLES_ARB 100001 491 492 #define GLXEW_ARB_multisample GLXEW_GET_VAR(__GLXEW_ARB_multisample) 493 494 #endif /* GLX_ARB_multisample */ 495 496 /* ---------------- GLX_ARB_robustness_application_isolation --------------- */ 497 498 #ifndef GLX_ARB_robustness_application_isolation 499 #define GLX_ARB_robustness_application_isolation 1 500 501 #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 502 503 #define GLXEW_ARB_robustness_application_isolation GLXEW_GET_VAR(__GLXEW_ARB_robustness_application_isolation) 504 505 #endif /* GLX_ARB_robustness_application_isolation */ 506 507 /* ---------------- GLX_ARB_robustness_share_group_isolation --------------- */ 508 509 #ifndef GLX_ARB_robustness_share_group_isolation 510 #define GLX_ARB_robustness_share_group_isolation 1 511 512 #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 513 514 #define GLXEW_ARB_robustness_share_group_isolation GLXEW_GET_VAR(__GLXEW_ARB_robustness_share_group_isolation) 515 516 #endif /* GLX_ARB_robustness_share_group_isolation */ 517 518 /* ---------------------- GLX_ARB_vertex_buffer_object --------------------- */ 519 520 #ifndef GLX_ARB_vertex_buffer_object 521 #define GLX_ARB_vertex_buffer_object 1 522 523 #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095 524 525 #define GLXEW_ARB_vertex_buffer_object GLXEW_GET_VAR(__GLXEW_ARB_vertex_buffer_object) 526 527 #endif /* GLX_ARB_vertex_buffer_object */ 528 529 /* ----------------------- GLX_ATI_pixel_format_float ---------------------- */ 530 531 #ifndef GLX_ATI_pixel_format_float 532 #define GLX_ATI_pixel_format_float 1 533 534 #define GLX_RGBA_FLOAT_ATI_BIT 0x00000100 535 536 #define GLXEW_ATI_pixel_format_float GLXEW_GET_VAR(__GLXEW_ATI_pixel_format_float) 537 538 #endif /* GLX_ATI_pixel_format_float */ 539 540 /* ------------------------- GLX_ATI_render_texture ------------------------ */ 541 542 #ifndef GLX_ATI_render_texture 543 #define GLX_ATI_render_texture 1 544 545 #define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800 546 #define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801 547 #define GLX_TEXTURE_FORMAT_ATI 0x9802 548 #define GLX_TEXTURE_TARGET_ATI 0x9803 549 #define GLX_MIPMAP_TEXTURE_ATI 0x9804 550 #define GLX_TEXTURE_RGB_ATI 0x9805 551 #define GLX_TEXTURE_RGBA_ATI 0x9806 552 #define GLX_NO_TEXTURE_ATI 0x9807 553 #define GLX_TEXTURE_CUBE_MAP_ATI 0x9808 554 #define GLX_TEXTURE_1D_ATI 0x9809 555 #define GLX_TEXTURE_2D_ATI 0x980A 556 #define GLX_MIPMAP_LEVEL_ATI 0x980B 557 #define GLX_CUBE_MAP_FACE_ATI 0x980C 558 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D 559 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E 560 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F 561 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810 562 #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811 563 #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812 564 #define GLX_FRONT_LEFT_ATI 0x9813 565 #define GLX_FRONT_RIGHT_ATI 0x9814 566 #define GLX_BACK_LEFT_ATI 0x9815 567 #define GLX_BACK_RIGHT_ATI 0x9816 568 #define GLX_AUX0_ATI 0x9817 569 #define GLX_AUX1_ATI 0x9818 570 #define GLX_AUX2_ATI 0x9819 571 #define GLX_AUX3_ATI 0x981A 572 #define GLX_AUX4_ATI 0x981B 573 #define GLX_AUX5_ATI 0x981C 574 #define GLX_AUX6_ATI 0x981D 575 #define GLX_AUX7_ATI 0x981E 576 #define GLX_AUX8_ATI 0x981F 577 #define GLX_AUX9_ATI 0x9820 578 #define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821 579 #define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822 580 581 typedef void ( * PFNGLXBINDTEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer); 582 typedef void ( * PFNGLXDRAWABLEATTRIBATIPROC) (Display *dpy, GLXDrawable draw, const int *attrib_list); 583 typedef void ( * PFNGLXRELEASETEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer); 584 585 #define glXBindTexImageATI GLXEW_GET_FUN(__glewXBindTexImageATI) 586 #define glXDrawableAttribATI GLXEW_GET_FUN(__glewXDrawableAttribATI) 587 #define glXReleaseTexImageATI GLXEW_GET_FUN(__glewXReleaseTexImageATI) 588 589 #define GLXEW_ATI_render_texture GLXEW_GET_VAR(__GLXEW_ATI_render_texture) 590 591 #endif /* GLX_ATI_render_texture */ 592 593 /* --------------------------- GLX_EXT_buffer_age -------------------------- */ 594 595 #ifndef GLX_EXT_buffer_age 596 #define GLX_EXT_buffer_age 1 597 598 #define GLX_BACK_BUFFER_AGE_EXT 0x20F4 599 600 #define GLXEW_EXT_buffer_age GLXEW_GET_VAR(__GLXEW_EXT_buffer_age) 601 602 #endif /* GLX_EXT_buffer_age */ 603 604 /* ------------------- GLX_EXT_create_context_es2_profile ------------------ */ 605 606 #ifndef GLX_EXT_create_context_es2_profile 607 #define GLX_EXT_create_context_es2_profile 1 608 609 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 610 611 #define GLXEW_EXT_create_context_es2_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es2_profile) 612 613 #endif /* GLX_EXT_create_context_es2_profile */ 614 615 /* ------------------- GLX_EXT_create_context_es_profile ------------------- */ 616 617 #ifndef GLX_EXT_create_context_es_profile 618 #define GLX_EXT_create_context_es_profile 1 619 620 #define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004 621 622 #define GLXEW_EXT_create_context_es_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es_profile) 623 624 #endif /* GLX_EXT_create_context_es_profile */ 625 626 /* --------------------- GLX_EXT_fbconfig_packed_float --------------------- */ 627 628 #ifndef GLX_EXT_fbconfig_packed_float 629 #define GLX_EXT_fbconfig_packed_float 1 630 631 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008 632 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1 633 634 #define GLXEW_EXT_fbconfig_packed_float GLXEW_GET_VAR(__GLXEW_EXT_fbconfig_packed_float) 635 636 #endif /* GLX_EXT_fbconfig_packed_float */ 637 638 /* ------------------------ GLX_EXT_framebuffer_sRGB ----------------------- */ 639 640 #ifndef GLX_EXT_framebuffer_sRGB 641 #define GLX_EXT_framebuffer_sRGB 1 642 643 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2 644 645 #define GLXEW_EXT_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_EXT_framebuffer_sRGB) 646 647 #endif /* GLX_EXT_framebuffer_sRGB */ 648 649 /* ------------------------- GLX_EXT_import_context ------------------------ */ 650 651 #ifndef GLX_EXT_import_context 652 #define GLX_EXT_import_context 1 653 654 #define GLX_SHARE_CONTEXT_EXT 0x800A 655 #define GLX_VISUAL_ID_EXT 0x800B 656 #define GLX_SCREEN_EXT 0x800C 657 658 typedef XID GLXContextID; 659 660 typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display* dpy, GLXContext context); 661 typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context); 662 typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display* dpy, GLXContextID contextID); 663 typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display* dpy, GLXContext context, int attribute,int *value); 664 665 #define glXFreeContextEXT GLXEW_GET_FUN(__glewXFreeContextEXT) 666 #define glXGetContextIDEXT GLXEW_GET_FUN(__glewXGetContextIDEXT) 667 #define glXImportContextEXT GLXEW_GET_FUN(__glewXImportContextEXT) 668 #define glXQueryContextInfoEXT GLXEW_GET_FUN(__glewXQueryContextInfoEXT) 669 670 #define GLXEW_EXT_import_context GLXEW_GET_VAR(__GLXEW_EXT_import_context) 671 672 #endif /* GLX_EXT_import_context */ 673 674 /* ---------------------------- GLX_EXT_libglvnd --------------------------- */ 675 676 #ifndef GLX_EXT_libglvnd 677 #define GLX_EXT_libglvnd 1 678 679 #define GLX_VENDOR_NAMES_EXT 0x20F6 680 681 #define GLXEW_EXT_libglvnd GLXEW_GET_VAR(__GLXEW_EXT_libglvnd) 682 683 #endif /* GLX_EXT_libglvnd */ 684 685 /* -------------------------- GLX_EXT_scene_marker ------------------------- */ 686 687 #ifndef GLX_EXT_scene_marker 688 #define GLX_EXT_scene_marker 1 689 690 #define GLXEW_EXT_scene_marker GLXEW_GET_VAR(__GLXEW_EXT_scene_marker) 691 692 #endif /* GLX_EXT_scene_marker */ 693 694 /* -------------------------- GLX_EXT_stereo_tree -------------------------- */ 695 696 #ifndef GLX_EXT_stereo_tree 697 #define GLX_EXT_stereo_tree 1 698 699 #define GLX_STEREO_NOTIFY_EXT 0x00000000 700 #define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001 701 #define GLX_STEREO_TREE_EXT 0x20F5 702 703 #define GLXEW_EXT_stereo_tree GLXEW_GET_VAR(__GLXEW_EXT_stereo_tree) 704 705 #endif /* GLX_EXT_stereo_tree */ 706 707 /* -------------------------- GLX_EXT_swap_control ------------------------- */ 708 709 #ifndef GLX_EXT_swap_control 710 #define GLX_EXT_swap_control 1 711 712 #define GLX_SWAP_INTERVAL_EXT 0x20F1 713 #define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2 714 715 typedef void ( * PFNGLXSWAPINTERVALEXTPROC) (Display* dpy, GLXDrawable drawable, int interval); 716 717 #define glXSwapIntervalEXT GLXEW_GET_FUN(__glewXSwapIntervalEXT) 718 719 #define GLXEW_EXT_swap_control GLXEW_GET_VAR(__GLXEW_EXT_swap_control) 720 721 #endif /* GLX_EXT_swap_control */ 722 723 /* ----------------------- GLX_EXT_swap_control_tear ----------------------- */ 724 725 #ifndef GLX_EXT_swap_control_tear 726 #define GLX_EXT_swap_control_tear 1 727 728 #define GLX_LATE_SWAPS_TEAR_EXT 0x20F3 729 730 #define GLXEW_EXT_swap_control_tear GLXEW_GET_VAR(__GLXEW_EXT_swap_control_tear) 731 732 #endif /* GLX_EXT_swap_control_tear */ 733 734 /* ---------------------- GLX_EXT_texture_from_pixmap ---------------------- */ 735 736 #ifndef GLX_EXT_texture_from_pixmap 737 #define GLX_EXT_texture_from_pixmap 1 738 739 #define GLX_TEXTURE_1D_BIT_EXT 0x00000001 740 #define GLX_TEXTURE_2D_BIT_EXT 0x00000002 741 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 742 #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 743 #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 744 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 745 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 746 #define GLX_Y_INVERTED_EXT 0x20D4 747 #define GLX_TEXTURE_FORMAT_EXT 0x20D5 748 #define GLX_TEXTURE_TARGET_EXT 0x20D6 749 #define GLX_MIPMAP_TEXTURE_EXT 0x20D7 750 #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 751 #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 752 #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA 753 #define GLX_TEXTURE_1D_EXT 0x20DB 754 #define GLX_TEXTURE_2D_EXT 0x20DC 755 #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD 756 #define GLX_FRONT_LEFT_EXT 0x20DE 757 #define GLX_FRONT_RIGHT_EXT 0x20DF 758 #define GLX_BACK_LEFT_EXT 0x20E0 759 #define GLX_BACK_RIGHT_EXT 0x20E1 760 #define GLX_AUX0_EXT 0x20E2 761 #define GLX_AUX1_EXT 0x20E3 762 #define GLX_AUX2_EXT 0x20E4 763 #define GLX_AUX3_EXT 0x20E5 764 #define GLX_AUX4_EXT 0x20E6 765 #define GLX_AUX5_EXT 0x20E7 766 #define GLX_AUX6_EXT 0x20E8 767 #define GLX_AUX7_EXT 0x20E9 768 #define GLX_AUX8_EXT 0x20EA 769 #define GLX_AUX9_EXT 0x20EB 770 771 typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer, const int *attrib_list); 772 typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer); 773 774 #define glXBindTexImageEXT GLXEW_GET_FUN(__glewXBindTexImageEXT) 775 #define glXReleaseTexImageEXT GLXEW_GET_FUN(__glewXReleaseTexImageEXT) 776 777 #define GLXEW_EXT_texture_from_pixmap GLXEW_GET_VAR(__GLXEW_EXT_texture_from_pixmap) 778 779 #endif /* GLX_EXT_texture_from_pixmap */ 780 781 /* -------------------------- GLX_EXT_visual_info -------------------------- */ 782 783 #ifndef GLX_EXT_visual_info 784 #define GLX_EXT_visual_info 1 785 786 #define GLX_X_VISUAL_TYPE_EXT 0x22 787 #define GLX_TRANSPARENT_TYPE_EXT 0x23 788 #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 789 #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 790 #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 791 #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 792 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 793 #define GLX_NONE_EXT 0x8000 794 #define GLX_TRUE_COLOR_EXT 0x8002 795 #define GLX_DIRECT_COLOR_EXT 0x8003 796 #define GLX_PSEUDO_COLOR_EXT 0x8004 797 #define GLX_STATIC_COLOR_EXT 0x8005 798 #define GLX_GRAY_SCALE_EXT 0x8006 799 #define GLX_STATIC_GRAY_EXT 0x8007 800 #define GLX_TRANSPARENT_RGB_EXT 0x8008 801 #define GLX_TRANSPARENT_INDEX_EXT 0x8009 802 803 #define GLXEW_EXT_visual_info GLXEW_GET_VAR(__GLXEW_EXT_visual_info) 804 805 #endif /* GLX_EXT_visual_info */ 806 807 /* ------------------------- GLX_EXT_visual_rating ------------------------- */ 808 809 #ifndef GLX_EXT_visual_rating 810 #define GLX_EXT_visual_rating 1 811 812 #define GLX_VISUAL_CAVEAT_EXT 0x20 813 #define GLX_SLOW_VISUAL_EXT 0x8001 814 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D 815 816 #define GLXEW_EXT_visual_rating GLXEW_GET_VAR(__GLXEW_EXT_visual_rating) 817 818 #endif /* GLX_EXT_visual_rating */ 819 820 /* -------------------------- GLX_INTEL_swap_event ------------------------- */ 821 822 #ifndef GLX_INTEL_swap_event 823 #define GLX_INTEL_swap_event 1 824 825 #define GLX_EXCHANGE_COMPLETE_INTEL 0x8180 826 #define GLX_COPY_COMPLETE_INTEL 0x8181 827 #define GLX_FLIP_COMPLETE_INTEL 0x8182 828 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000 829 830 #define GLXEW_INTEL_swap_event GLXEW_GET_VAR(__GLXEW_INTEL_swap_event) 831 832 #endif /* GLX_INTEL_swap_event */ 833 834 /* -------------------------- GLX_MESA_agp_offset -------------------------- */ 835 836 #ifndef GLX_MESA_agp_offset 837 #define GLX_MESA_agp_offset 1 838 839 typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void* pointer); 840 841 #define glXGetAGPOffsetMESA GLXEW_GET_FUN(__glewXGetAGPOffsetMESA) 842 843 #define GLXEW_MESA_agp_offset GLXEW_GET_VAR(__GLXEW_MESA_agp_offset) 844 845 #endif /* GLX_MESA_agp_offset */ 846 847 /* ------------------------ GLX_MESA_copy_sub_buffer ----------------------- */ 848 849 #ifndef GLX_MESA_copy_sub_buffer 850 #define GLX_MESA_copy_sub_buffer 1 851 852 typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display* dpy, GLXDrawable drawable, int x, int y, int width, int height); 853 854 #define glXCopySubBufferMESA GLXEW_GET_FUN(__glewXCopySubBufferMESA) 855 856 #define GLXEW_MESA_copy_sub_buffer GLXEW_GET_VAR(__GLXEW_MESA_copy_sub_buffer) 857 858 #endif /* GLX_MESA_copy_sub_buffer */ 859 860 /* ------------------------ GLX_MESA_pixmap_colormap ----------------------- */ 861 862 #ifndef GLX_MESA_pixmap_colormap 863 #define GLX_MESA_pixmap_colormap 1 864 865 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display* dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); 866 867 #define glXCreateGLXPixmapMESA GLXEW_GET_FUN(__glewXCreateGLXPixmapMESA) 868 869 #define GLXEW_MESA_pixmap_colormap GLXEW_GET_VAR(__GLXEW_MESA_pixmap_colormap) 870 871 #endif /* GLX_MESA_pixmap_colormap */ 872 873 /* ------------------------ GLX_MESA_query_renderer ------------------------ */ 874 875 #ifndef GLX_MESA_query_renderer 876 #define GLX_MESA_query_renderer 1 877 878 #define GLX_RENDERER_VENDOR_ID_MESA 0x8183 879 #define GLX_RENDERER_DEVICE_ID_MESA 0x8184 880 #define GLX_RENDERER_VERSION_MESA 0x8185 881 #define GLX_RENDERER_ACCELERATED_MESA 0x8186 882 #define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187 883 #define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188 884 #define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189 885 #define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A 886 #define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B 887 #define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C 888 #define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D 889 #define GLX_RENDERER_ID_MESA 0x818E 890 891 typedef Bool ( * PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int* value); 892 typedef const char* ( * PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute); 893 typedef Bool ( * PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display* dpy, int screen, int renderer, int attribute, unsigned int *value); 894 typedef const char* ( * PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute); 895 896 #define glXQueryCurrentRendererIntegerMESA GLXEW_GET_FUN(__glewXQueryCurrentRendererIntegerMESA) 897 #define glXQueryCurrentRendererStringMESA GLXEW_GET_FUN(__glewXQueryCurrentRendererStringMESA) 898 #define glXQueryRendererIntegerMESA GLXEW_GET_FUN(__glewXQueryRendererIntegerMESA) 899 #define glXQueryRendererStringMESA GLXEW_GET_FUN(__glewXQueryRendererStringMESA) 900 901 #define GLXEW_MESA_query_renderer GLXEW_GET_VAR(__GLXEW_MESA_query_renderer) 902 903 #endif /* GLX_MESA_query_renderer */ 904 905 /* ------------------------ GLX_MESA_release_buffers ----------------------- */ 906 907 #ifndef GLX_MESA_release_buffers 908 #define GLX_MESA_release_buffers 1 909 910 typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display* dpy, GLXDrawable d); 911 912 #define glXReleaseBuffersMESA GLXEW_GET_FUN(__glewXReleaseBuffersMESA) 913 914 #define GLXEW_MESA_release_buffers GLXEW_GET_VAR(__GLXEW_MESA_release_buffers) 915 916 #endif /* GLX_MESA_release_buffers */ 917 918 /* ------------------------- GLX_MESA_set_3dfx_mode ------------------------ */ 919 920 #ifndef GLX_MESA_set_3dfx_mode 921 #define GLX_MESA_set_3dfx_mode 1 922 923 #define GLX_3DFX_WINDOW_MODE_MESA 0x1 924 #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 925 926 typedef GLboolean ( * PFNGLXSET3DFXMODEMESAPROC) (GLint mode); 927 928 #define glXSet3DfxModeMESA GLXEW_GET_FUN(__glewXSet3DfxModeMESA) 929 930 #define GLXEW_MESA_set_3dfx_mode GLXEW_GET_VAR(__GLXEW_MESA_set_3dfx_mode) 931 932 #endif /* GLX_MESA_set_3dfx_mode */ 933 934 /* ------------------------- GLX_MESA_swap_control ------------------------- */ 935 936 #ifndef GLX_MESA_swap_control 937 #define GLX_MESA_swap_control 1 938 939 typedef int ( * PFNGLXGETSWAPINTERVALMESAPROC) (void); 940 typedef int ( * PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval); 941 942 #define glXGetSwapIntervalMESA GLXEW_GET_FUN(__glewXGetSwapIntervalMESA) 943 #define glXSwapIntervalMESA GLXEW_GET_FUN(__glewXSwapIntervalMESA) 944 945 #define GLXEW_MESA_swap_control GLXEW_GET_VAR(__GLXEW_MESA_swap_control) 946 947 #endif /* GLX_MESA_swap_control */ 948 949 /* --------------------------- GLX_NV_copy_buffer -------------------------- */ 950 951 #ifndef GLX_NV_copy_buffer 952 #define GLX_NV_copy_buffer 1 953 954 typedef void ( * PFNGLXCOPYBUFFERSUBDATANVPROC) (Display* dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); 955 typedef void ( * PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display* dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size); 956 957 #define glXCopyBufferSubDataNV GLXEW_GET_FUN(__glewXCopyBufferSubDataNV) 958 #define glXNamedCopyBufferSubDataNV GLXEW_GET_FUN(__glewXNamedCopyBufferSubDataNV) 959 960 #define GLXEW_NV_copy_buffer GLXEW_GET_VAR(__GLXEW_NV_copy_buffer) 961 962 #endif /* GLX_NV_copy_buffer */ 963 964 /* --------------------------- GLX_NV_copy_image --------------------------- */ 965 966 #ifndef GLX_NV_copy_image 967 #define GLX_NV_copy_image 1 968 969 typedef void ( * PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth); 970 971 #define glXCopyImageSubDataNV GLXEW_GET_FUN(__glewXCopyImageSubDataNV) 972 973 #define GLXEW_NV_copy_image GLXEW_GET_VAR(__GLXEW_NV_copy_image) 974 975 #endif /* GLX_NV_copy_image */ 976 977 /* ------------------------ GLX_NV_delay_before_swap ----------------------- */ 978 979 #ifndef GLX_NV_delay_before_swap 980 #define GLX_NV_delay_before_swap 1 981 982 typedef Bool ( * PFNGLXDELAYBEFORESWAPNVPROC) (Display* dpy, GLXDrawable drawable, GLfloat seconds); 983 984 #define glXDelayBeforeSwapNV GLXEW_GET_FUN(__glewXDelayBeforeSwapNV) 985 986 #define GLXEW_NV_delay_before_swap GLXEW_GET_VAR(__GLXEW_NV_delay_before_swap) 987 988 #endif /* GLX_NV_delay_before_swap */ 989 990 /* -------------------------- GLX_NV_float_buffer -------------------------- */ 991 992 #ifndef GLX_NV_float_buffer 993 #define GLX_NV_float_buffer 1 994 995 #define GLX_FLOAT_COMPONENTS_NV 0x20B0 996 997 #define GLXEW_NV_float_buffer GLXEW_GET_VAR(__GLXEW_NV_float_buffer) 998 999 #endif /* GLX_NV_float_buffer */ 1000 1001 /* ---------------------- GLX_NV_multisample_coverage ---------------------- */ 1002 1003 #ifndef GLX_NV_multisample_coverage 1004 #define GLX_NV_multisample_coverage 1 1005 1006 #define GLX_COLOR_SAMPLES_NV 0x20B3 1007 #define GLX_COVERAGE_SAMPLES_NV 100001 1008 1009 #define GLXEW_NV_multisample_coverage GLXEW_GET_VAR(__GLXEW_NV_multisample_coverage) 1010 1011 #endif /* GLX_NV_multisample_coverage */ 1012 1013 /* -------------------------- GLX_NV_present_video ------------------------- */ 1014 1015 #ifndef GLX_NV_present_video 1016 #define GLX_NV_present_video 1 1017 1018 #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0 1019 1020 typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display* dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list); 1021 typedef unsigned int* ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements); 1022 1023 #define glXBindVideoDeviceNV GLXEW_GET_FUN(__glewXBindVideoDeviceNV) 1024 #define glXEnumerateVideoDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoDevicesNV) 1025 1026 #define GLXEW_NV_present_video GLXEW_GET_VAR(__GLXEW_NV_present_video) 1027 1028 #endif /* GLX_NV_present_video */ 1029 1030 /* ------------------ GLX_NV_robustness_video_memory_purge ----------------- */ 1031 1032 #ifndef GLX_NV_robustness_video_memory_purge 1033 #define GLX_NV_robustness_video_memory_purge 1 1034 1035 #define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7 1036 1037 #define GLXEW_NV_robustness_video_memory_purge GLXEW_GET_VAR(__GLXEW_NV_robustness_video_memory_purge) 1038 1039 #endif /* GLX_NV_robustness_video_memory_purge */ 1040 1041 /* --------------------------- GLX_NV_swap_group --------------------------- */ 1042 1043 #ifndef GLX_NV_swap_group 1044 #define GLX_NV_swap_group 1 1045 1046 typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display* dpy, GLuint group, GLuint barrier); 1047 typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint group); 1048 typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display* dpy, int screen, GLuint *count); 1049 typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display* dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers); 1050 typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier); 1051 typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display* dpy, int screen); 1052 1053 #define glXBindSwapBarrierNV GLXEW_GET_FUN(__glewXBindSwapBarrierNV) 1054 #define glXJoinSwapGroupNV GLXEW_GET_FUN(__glewXJoinSwapGroupNV) 1055 #define glXQueryFrameCountNV GLXEW_GET_FUN(__glewXQueryFrameCountNV) 1056 #define glXQueryMaxSwapGroupsNV GLXEW_GET_FUN(__glewXQueryMaxSwapGroupsNV) 1057 #define glXQuerySwapGroupNV GLXEW_GET_FUN(__glewXQuerySwapGroupNV) 1058 #define glXResetFrameCountNV GLXEW_GET_FUN(__glewXResetFrameCountNV) 1059 1060 #define GLXEW_NV_swap_group GLXEW_GET_VAR(__GLXEW_NV_swap_group) 1061 1062 #endif /* GLX_NV_swap_group */ 1063 1064 /* ----------------------- GLX_NV_vertex_array_range ----------------------- */ 1065 1066 #ifndef GLX_NV_vertex_array_range 1067 #define GLX_NV_vertex_array_range 1 1068 1069 typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority); 1070 typedef void ( * PFNGLXFREEMEMORYNVPROC) (void *pointer); 1071 1072 #define glXAllocateMemoryNV GLXEW_GET_FUN(__glewXAllocateMemoryNV) 1073 #define glXFreeMemoryNV GLXEW_GET_FUN(__glewXFreeMemoryNV) 1074 1075 #define GLXEW_NV_vertex_array_range GLXEW_GET_VAR(__GLXEW_NV_vertex_array_range) 1076 1077 #endif /* GLX_NV_vertex_array_range */ 1078 1079 /* -------------------------- GLX_NV_video_capture ------------------------- */ 1080 1081 #ifndef GLX_NV_video_capture 1082 #define GLX_NV_video_capture 1 1083 1084 #define GLX_DEVICE_ID_NV 0x20CD 1085 #define GLX_UNIQUE_ID_NV 0x20CE 1086 #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF 1087 1088 typedef XID GLXVideoCaptureDeviceNV; 1089 1090 typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display* dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device); 1091 typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display* dpy, int screen, int *nelements); 1092 typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device); 1093 typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value); 1094 typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device); 1095 1096 #define glXBindVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXBindVideoCaptureDeviceNV) 1097 #define glXEnumerateVideoCaptureDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoCaptureDevicesNV) 1098 #define glXLockVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXLockVideoCaptureDeviceNV) 1099 #define glXQueryVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXQueryVideoCaptureDeviceNV) 1100 #define glXReleaseVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoCaptureDeviceNV) 1101 1102 #define GLXEW_NV_video_capture GLXEW_GET_VAR(__GLXEW_NV_video_capture) 1103 1104 #endif /* GLX_NV_video_capture */ 1105 1106 /* ---------------------------- GLX_NV_video_out --------------------------- */ 1107 1108 #ifndef GLX_NV_video_out 1109 #define GLX_NV_video_out 1 1110 1111 #define GLX_VIDEO_OUT_COLOR_NV 0x20C3 1112 #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4 1113 #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5 1114 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 1115 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 1116 #define GLX_VIDEO_OUT_FRAME_NV 0x20C8 1117 #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9 1118 #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA 1119 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB 1120 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC 1121 1122 typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display* dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer); 1123 typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display* dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice); 1124 typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); 1125 typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice); 1126 typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display* dpy, GLXPbuffer pbuf); 1127 typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display* dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock); 1128 1129 #define glXBindVideoImageNV GLXEW_GET_FUN(__glewXBindVideoImageNV) 1130 #define glXGetVideoDeviceNV GLXEW_GET_FUN(__glewXGetVideoDeviceNV) 1131 #define glXGetVideoInfoNV GLXEW_GET_FUN(__glewXGetVideoInfoNV) 1132 #define glXReleaseVideoDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoDeviceNV) 1133 #define glXReleaseVideoImageNV GLXEW_GET_FUN(__glewXReleaseVideoImageNV) 1134 #define glXSendPbufferToVideoNV GLXEW_GET_FUN(__glewXSendPbufferToVideoNV) 1135 1136 #define GLXEW_NV_video_out GLXEW_GET_VAR(__GLXEW_NV_video_out) 1137 1138 #endif /* GLX_NV_video_out */ 1139 1140 /* -------------------------- GLX_OML_swap_method -------------------------- */ 1141 1142 #ifndef GLX_OML_swap_method 1143 #define GLX_OML_swap_method 1 1144 1145 #define GLX_SWAP_METHOD_OML 0x8060 1146 #define GLX_SWAP_EXCHANGE_OML 0x8061 1147 #define GLX_SWAP_COPY_OML 0x8062 1148 #define GLX_SWAP_UNDEFINED_OML 0x8063 1149 1150 #define GLXEW_OML_swap_method GLXEW_GET_VAR(__GLXEW_OML_swap_method) 1151 1152 #endif /* GLX_OML_swap_method */ 1153 1154 /* -------------------------- GLX_OML_sync_control ------------------------- */ 1155 1156 #ifndef GLX_OML_sync_control 1157 #define GLX_OML_sync_control 1 1158 1159 typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator); 1160 typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc); 1161 typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder); 1162 typedef Bool ( * PFNGLXWAITFORMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t* ust, int64_t* msc, int64_t* sbc); 1163 typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_sbc, int64_t* ust, int64_t* msc, int64_t* sbc); 1164 1165 #define glXGetMscRateOML GLXEW_GET_FUN(__glewXGetMscRateOML) 1166 #define glXGetSyncValuesOML GLXEW_GET_FUN(__glewXGetSyncValuesOML) 1167 #define glXSwapBuffersMscOML GLXEW_GET_FUN(__glewXSwapBuffersMscOML) 1168 #define glXWaitForMscOML GLXEW_GET_FUN(__glewXWaitForMscOML) 1169 #define glXWaitForSbcOML GLXEW_GET_FUN(__glewXWaitForSbcOML) 1170 1171 #define GLXEW_OML_sync_control GLXEW_GET_VAR(__GLXEW_OML_sync_control) 1172 1173 #endif /* GLX_OML_sync_control */ 1174 1175 /* ------------------------ GLX_SGIS_blended_overlay ----------------------- */ 1176 1177 #ifndef GLX_SGIS_blended_overlay 1178 #define GLX_SGIS_blended_overlay 1 1179 1180 #define GLX_BLENDED_RGBA_SGIS 0x8025 1181 1182 #define GLXEW_SGIS_blended_overlay GLXEW_GET_VAR(__GLXEW_SGIS_blended_overlay) 1183 1184 #endif /* GLX_SGIS_blended_overlay */ 1185 1186 /* -------------------------- GLX_SGIS_color_range ------------------------- */ 1187 1188 #ifndef GLX_SGIS_color_range 1189 #define GLX_SGIS_color_range 1 1190 1191 #define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range) 1192 1193 #endif /* GLX_SGIS_color_range */ 1194 1195 /* -------------------------- GLX_SGIS_multisample ------------------------- */ 1196 1197 #ifndef GLX_SGIS_multisample 1198 #define GLX_SGIS_multisample 1 1199 1200 #define GLX_SAMPLE_BUFFERS_SGIS 100000 1201 #define GLX_SAMPLES_SGIS 100001 1202 1203 #define GLXEW_SGIS_multisample GLXEW_GET_VAR(__GLXEW_SGIS_multisample) 1204 1205 #endif /* GLX_SGIS_multisample */ 1206 1207 /* ---------------------- GLX_SGIS_shared_multisample ---------------------- */ 1208 1209 #ifndef GLX_SGIS_shared_multisample 1210 #define GLX_SGIS_shared_multisample 1 1211 1212 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 1213 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 1214 1215 #define GLXEW_SGIS_shared_multisample GLXEW_GET_VAR(__GLXEW_SGIS_shared_multisample) 1216 1217 #endif /* GLX_SGIS_shared_multisample */ 1218 1219 /* --------------------------- GLX_SGIX_fbconfig --------------------------- */ 1220 1221 #ifndef GLX_SGIX_fbconfig 1222 #define GLX_SGIX_fbconfig 1 1223 1224 #define GLX_RGBA_BIT_SGIX 0x00000001 1225 #define GLX_WINDOW_BIT_SGIX 0x00000001 1226 #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 1227 #define GLX_PIXMAP_BIT_SGIX 0x00000002 1228 #define GLX_SCREEN_EXT 0x800C 1229 #define GLX_DRAWABLE_TYPE_SGIX 0x8010 1230 #define GLX_RENDER_TYPE_SGIX 0x8011 1231 #define GLX_X_RENDERABLE_SGIX 0x8012 1232 #define GLX_FBCONFIG_ID_SGIX 0x8013 1233 #define GLX_RGBA_TYPE_SGIX 0x8014 1234 #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 1235 1236 typedef XID GLXFBConfigIDSGIX; 1237 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; 1238 1239 typedef GLXFBConfigSGIX* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); 1240 typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); 1241 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, Pixmap pixmap); 1242 typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display* dpy, GLXFBConfigSGIX config, int attribute, int *value); 1243 typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display* dpy, XVisualInfo *vis); 1244 typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfig config); 1245 1246 #define glXChooseFBConfigSGIX GLXEW_GET_FUN(__glewXChooseFBConfigSGIX) 1247 #define glXCreateContextWithConfigSGIX GLXEW_GET_FUN(__glewXCreateContextWithConfigSGIX) 1248 #define glXCreateGLXPixmapWithConfigSGIX GLXEW_GET_FUN(__glewXCreateGLXPixmapWithConfigSGIX) 1249 #define glXGetFBConfigAttribSGIX GLXEW_GET_FUN(__glewXGetFBConfigAttribSGIX) 1250 #define glXGetFBConfigFromVisualSGIX GLXEW_GET_FUN(__glewXGetFBConfigFromVisualSGIX) 1251 #define glXGetVisualFromFBConfigSGIX GLXEW_GET_FUN(__glewXGetVisualFromFBConfigSGIX) 1252 1253 #define GLXEW_SGIX_fbconfig GLXEW_GET_VAR(__GLXEW_SGIX_fbconfig) 1254 1255 #endif /* GLX_SGIX_fbconfig */ 1256 1257 /* --------------------------- GLX_SGIX_hyperpipe -------------------------- */ 1258 1259 #ifndef GLX_SGIX_hyperpipe 1260 #define GLX_SGIX_hyperpipe 1 1261 1262 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001 1263 #define GLX_PIPE_RECT_SGIX 0x00000001 1264 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002 1265 #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002 1266 #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003 1267 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004 1268 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80 1269 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91 1270 #define GLX_BAD_HYPERPIPE_SGIX 92 1271 #define GLX_HYPERPIPE_ID_SGIX 0x8030 1272 1273 typedef struct { 1274 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 1275 int networkId; 1276 } GLXHyperpipeNetworkSGIX; 1277 typedef struct { 1278 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 1279 int XOrigin; 1280 int YOrigin; 1281 int maxHeight; 1282 int maxWidth; 1283 } GLXPipeRectLimits; 1284 typedef struct { 1285 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 1286 int channel; 1287 unsigned int participationType; 1288 int timeSlice; 1289 } GLXHyperpipeConfigSGIX; 1290 typedef struct { 1291 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 1292 int srcXOrigin; 1293 int srcYOrigin; 1294 int srcWidth; 1295 int srcHeight; 1296 int destXOrigin; 1297 int destYOrigin; 1298 int destWidth; 1299 int destHeight; 1300 } GLXPipeRect; 1301 1302 typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId); 1303 typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId); 1304 typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList); 1305 typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId); 1306 typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList); 1307 typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList); 1308 typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes); 1309 typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes); 1310 1311 #define glXBindHyperpipeSGIX GLXEW_GET_FUN(__glewXBindHyperpipeSGIX) 1312 #define glXDestroyHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXDestroyHyperpipeConfigSGIX) 1313 #define glXHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXHyperpipeAttribSGIX) 1314 #define glXHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXHyperpipeConfigSGIX) 1315 #define glXQueryHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeAttribSGIX) 1316 #define glXQueryHyperpipeBestAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeBestAttribSGIX) 1317 #define glXQueryHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeConfigSGIX) 1318 #define glXQueryHyperpipeNetworkSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeNetworkSGIX) 1319 1320 #define GLXEW_SGIX_hyperpipe GLXEW_GET_VAR(__GLXEW_SGIX_hyperpipe) 1321 1322 #endif /* GLX_SGIX_hyperpipe */ 1323 1324 /* ---------------------------- GLX_SGIX_pbuffer --------------------------- */ 1325 1326 #ifndef GLX_SGIX_pbuffer 1327 #define GLX_SGIX_pbuffer 1 1328 1329 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 1330 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 1331 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 1332 #define GLX_PBUFFER_BIT_SGIX 0x00000004 1333 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 1334 #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 1335 #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 1336 #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 1337 #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 1338 #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 1339 #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 1340 #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 1341 #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 1342 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 1343 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A 1344 #define GLX_PRESERVED_CONTENTS_SGIX 0x801B 1345 #define GLX_LARGEST_PBUFFER_SGIX 0x801C 1346 #define GLX_WIDTH_SGIX 0x801D 1347 #define GLX_HEIGHT_SGIX 0x801E 1348 #define GLX_EVENT_MASK_SGIX 0x801F 1349 #define GLX_DAMAGED_SGIX 0x8020 1350 #define GLX_SAVED_SGIX 0x8021 1351 #define GLX_WINDOW_SGIX 0x8022 1352 #define GLX_PBUFFER_SGIX 0x8023 1353 #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 1354 1355 typedef XID GLXPbufferSGIX; 1356 typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX; 1357 1358 typedef GLXPbuffer ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display* dpy, GLXFBConfig config, unsigned int width, unsigned int height, int *attrib_list); 1359 typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf); 1360 typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long *mask); 1361 typedef void ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf, int attribute, unsigned int *value); 1362 typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long mask); 1363 1364 #define glXCreateGLXPbufferSGIX GLXEW_GET_FUN(__glewXCreateGLXPbufferSGIX) 1365 #define glXDestroyGLXPbufferSGIX GLXEW_GET_FUN(__glewXDestroyGLXPbufferSGIX) 1366 #define glXGetSelectedEventSGIX GLXEW_GET_FUN(__glewXGetSelectedEventSGIX) 1367 #define glXQueryGLXPbufferSGIX GLXEW_GET_FUN(__glewXQueryGLXPbufferSGIX) 1368 #define glXSelectEventSGIX GLXEW_GET_FUN(__glewXSelectEventSGIX) 1369 1370 #define GLXEW_SGIX_pbuffer GLXEW_GET_VAR(__GLXEW_SGIX_pbuffer) 1371 1372 #endif /* GLX_SGIX_pbuffer */ 1373 1374 /* ------------------------- GLX_SGIX_swap_barrier ------------------------- */ 1375 1376 #ifndef GLX_SGIX_swap_barrier 1377 #define GLX_SGIX_swap_barrier 1 1378 1379 typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); 1380 typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); 1381 1382 #define glXBindSwapBarrierSGIX GLXEW_GET_FUN(__glewXBindSwapBarrierSGIX) 1383 #define glXQueryMaxSwapBarriersSGIX GLXEW_GET_FUN(__glewXQueryMaxSwapBarriersSGIX) 1384 1385 #define GLXEW_SGIX_swap_barrier GLXEW_GET_VAR(__GLXEW_SGIX_swap_barrier) 1386 1387 #endif /* GLX_SGIX_swap_barrier */ 1388 1389 /* -------------------------- GLX_SGIX_swap_group -------------------------- */ 1390 1391 #ifndef GLX_SGIX_swap_group 1392 #define GLX_SGIX_swap_group 1 1393 1394 typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); 1395 1396 #define glXJoinSwapGroupSGIX GLXEW_GET_FUN(__glewXJoinSwapGroupSGIX) 1397 1398 #define GLXEW_SGIX_swap_group GLXEW_GET_VAR(__GLXEW_SGIX_swap_group) 1399 1400 #endif /* GLX_SGIX_swap_group */ 1401 1402 /* ------------------------- GLX_SGIX_video_resize ------------------------- */ 1403 1404 #ifndef GLX_SGIX_video_resize 1405 #define GLX_SGIX_video_resize 1 1406 1407 #define GLX_SYNC_FRAME_SGIX 0x00000000 1408 #define GLX_SYNC_SWAP_SGIX 0x00000001 1409 1410 typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display* display, int screen, int channel, Window window); 1411 typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int x, int y, int w, int h); 1412 typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display* display, int screen, int channel, GLenum synctype); 1413 typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display* display, int screen, int channel, int *x, int *y, int *w, int *h); 1414 typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); 1415 1416 #define glXBindChannelToWindowSGIX GLXEW_GET_FUN(__glewXBindChannelToWindowSGIX) 1417 #define glXChannelRectSGIX GLXEW_GET_FUN(__glewXChannelRectSGIX) 1418 #define glXChannelRectSyncSGIX GLXEW_GET_FUN(__glewXChannelRectSyncSGIX) 1419 #define glXQueryChannelDeltasSGIX GLXEW_GET_FUN(__glewXQueryChannelDeltasSGIX) 1420 #define glXQueryChannelRectSGIX GLXEW_GET_FUN(__glewXQueryChannelRectSGIX) 1421 1422 #define GLXEW_SGIX_video_resize GLXEW_GET_VAR(__GLXEW_SGIX_video_resize) 1423 1424 #endif /* GLX_SGIX_video_resize */ 1425 1426 /* ---------------------- GLX_SGIX_visual_select_group --------------------- */ 1427 1428 #ifndef GLX_SGIX_visual_select_group 1429 #define GLX_SGIX_visual_select_group 1 1430 1431 #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 1432 1433 #define GLXEW_SGIX_visual_select_group GLXEW_GET_VAR(__GLXEW_SGIX_visual_select_group) 1434 1435 #endif /* GLX_SGIX_visual_select_group */ 1436 1437 /* ---------------------------- GLX_SGI_cushion ---------------------------- */ 1438 1439 #ifndef GLX_SGI_cushion 1440 #define GLX_SGI_cushion 1 1441 1442 typedef void ( * PFNGLXCUSHIONSGIPROC) (Display* dpy, Window window, float cushion); 1443 1444 #define glXCushionSGI GLXEW_GET_FUN(__glewXCushionSGI) 1445 1446 #define GLXEW_SGI_cushion GLXEW_GET_VAR(__GLXEW_SGI_cushion) 1447 1448 #endif /* GLX_SGI_cushion */ 1449 1450 /* ----------------------- GLX_SGI_make_current_read ----------------------- */ 1451 1452 #ifndef GLX_SGI_make_current_read 1453 #define GLX_SGI_make_current_read 1 1454 1455 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); 1456 typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); 1457 1458 #define glXGetCurrentReadDrawableSGI GLXEW_GET_FUN(__glewXGetCurrentReadDrawableSGI) 1459 #define glXMakeCurrentReadSGI GLXEW_GET_FUN(__glewXMakeCurrentReadSGI) 1460 1461 #define GLXEW_SGI_make_current_read GLXEW_GET_VAR(__GLXEW_SGI_make_current_read) 1462 1463 #endif /* GLX_SGI_make_current_read */ 1464 1465 /* -------------------------- GLX_SGI_swap_control ------------------------- */ 1466 1467 #ifndef GLX_SGI_swap_control 1468 #define GLX_SGI_swap_control 1 1469 1470 typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval); 1471 1472 #define glXSwapIntervalSGI GLXEW_GET_FUN(__glewXSwapIntervalSGI) 1473 1474 #define GLXEW_SGI_swap_control GLXEW_GET_VAR(__GLXEW_SGI_swap_control) 1475 1476 #endif /* GLX_SGI_swap_control */ 1477 1478 /* --------------------------- GLX_SGI_video_sync -------------------------- */ 1479 1480 #ifndef GLX_SGI_video_sync 1481 #define GLX_SGI_video_sync 1 1482 1483 typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int* count); 1484 typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int* count); 1485 1486 #define glXGetVideoSyncSGI GLXEW_GET_FUN(__glewXGetVideoSyncSGI) 1487 #define glXWaitVideoSyncSGI GLXEW_GET_FUN(__glewXWaitVideoSyncSGI) 1488 1489 #define GLXEW_SGI_video_sync GLXEW_GET_VAR(__GLXEW_SGI_video_sync) 1490 1491 #endif /* GLX_SGI_video_sync */ 1492 1493 /* --------------------- GLX_SUN_get_transparent_index --------------------- */ 1494 1495 #ifndef GLX_SUN_get_transparent_index 1496 #define GLX_SUN_get_transparent_index 1 1497 1498 typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display* dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex); 1499 1500 #define glXGetTransparentIndexSUN GLXEW_GET_FUN(__glewXGetTransparentIndexSUN) 1501 1502 #define GLXEW_SUN_get_transparent_index GLXEW_GET_VAR(__GLXEW_SUN_get_transparent_index) 1503 1504 #endif /* GLX_SUN_get_transparent_index */ 1505 1506 /* -------------------------- GLX_SUN_video_resize ------------------------- */ 1507 1508 #ifndef GLX_SUN_video_resize 1509 #define GLX_SUN_video_resize 1 1510 1511 #define GLX_VIDEO_RESIZE_SUN 0x8171 1512 #define GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD 1513 1514 typedef int ( * PFNGLXGETVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float* factor); 1515 typedef int ( * PFNGLXVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float factor); 1516 1517 #define glXGetVideoResizeSUN GLXEW_GET_FUN(__glewXGetVideoResizeSUN) 1518 #define glXVideoResizeSUN GLXEW_GET_FUN(__glewXVideoResizeSUN) 1519 1520 #define GLXEW_SUN_video_resize GLXEW_GET_VAR(__GLXEW_SUN_video_resize) 1521 1522 #endif /* GLX_SUN_video_resize */ 1523 1524 /* ------------------------------------------------------------------------- */ 1525 1526 #define GLXEW_FUN_EXPORT GLEW_FUN_EXPORT 1527 #define GLXEW_VAR_EXPORT GLEW_VAR_EXPORT 1528 1529 GLXEW_FUN_EXPORT PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay; 1530 1531 GLXEW_FUN_EXPORT PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig; 1532 GLXEW_FUN_EXPORT PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext; 1533 GLXEW_FUN_EXPORT PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer; 1534 GLXEW_FUN_EXPORT PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap; 1535 GLXEW_FUN_EXPORT PFNGLXCREATEWINDOWPROC __glewXCreateWindow; 1536 GLXEW_FUN_EXPORT PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer; 1537 GLXEW_FUN_EXPORT PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap; 1538 GLXEW_FUN_EXPORT PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow; 1539 GLXEW_FUN_EXPORT PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable; 1540 GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib; 1541 GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs; 1542 GLXEW_FUN_EXPORT PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent; 1543 GLXEW_FUN_EXPORT PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig; 1544 GLXEW_FUN_EXPORT PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent; 1545 GLXEW_FUN_EXPORT PFNGLXQUERYCONTEXTPROC __glewXQueryContext; 1546 GLXEW_FUN_EXPORT PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable; 1547 GLXEW_FUN_EXPORT PFNGLXSELECTEVENTPROC __glewXSelectEvent; 1548 1549 GLXEW_FUN_EXPORT PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC __glewXBlitContextFramebufferAMD; 1550 GLXEW_FUN_EXPORT PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC __glewXCreateAssociatedContextAMD; 1551 GLXEW_FUN_EXPORT PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __glewXCreateAssociatedContextAttribsAMD; 1552 GLXEW_FUN_EXPORT PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC __glewXDeleteAssociatedContextAMD; 1553 GLXEW_FUN_EXPORT PFNGLXGETCONTEXTGPUIDAMDPROC __glewXGetContextGPUIDAMD; 1554 GLXEW_FUN_EXPORT PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC __glewXGetCurrentAssociatedContextAMD; 1555 GLXEW_FUN_EXPORT PFNGLXGETGPUIDSAMDPROC __glewXGetGPUIDsAMD; 1556 GLXEW_FUN_EXPORT PFNGLXGETGPUINFOAMDPROC __glewXGetGPUInfoAMD; 1557 GLXEW_FUN_EXPORT PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __glewXMakeAssociatedContextCurrentAMD; 1558 1559 GLXEW_FUN_EXPORT PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB; 1560 1561 GLXEW_FUN_EXPORT PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI; 1562 GLXEW_FUN_EXPORT PFNGLXDRAWABLEATTRIBATIPROC __glewXDrawableAttribATI; 1563 GLXEW_FUN_EXPORT PFNGLXRELEASETEXIMAGEATIPROC __glewXReleaseTexImageATI; 1564 1565 GLXEW_FUN_EXPORT PFNGLXFREECONTEXTEXTPROC __glewXFreeContextEXT; 1566 GLXEW_FUN_EXPORT PFNGLXGETCONTEXTIDEXTPROC __glewXGetContextIDEXT; 1567 GLXEW_FUN_EXPORT PFNGLXIMPORTCONTEXTEXTPROC __glewXImportContextEXT; 1568 GLXEW_FUN_EXPORT PFNGLXQUERYCONTEXTINFOEXTPROC __glewXQueryContextInfoEXT; 1569 1570 GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALEXTPROC __glewXSwapIntervalEXT; 1571 1572 GLXEW_FUN_EXPORT PFNGLXBINDTEXIMAGEEXTPROC __glewXBindTexImageEXT; 1573 GLXEW_FUN_EXPORT PFNGLXRELEASETEXIMAGEEXTPROC __glewXReleaseTexImageEXT; 1574 1575 GLXEW_FUN_EXPORT PFNGLXGETAGPOFFSETMESAPROC __glewXGetAGPOffsetMESA; 1576 1577 GLXEW_FUN_EXPORT PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA; 1578 1579 GLXEW_FUN_EXPORT PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA; 1580 1581 GLXEW_FUN_EXPORT PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC __glewXQueryCurrentRendererIntegerMESA; 1582 GLXEW_FUN_EXPORT PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC __glewXQueryCurrentRendererStringMESA; 1583 GLXEW_FUN_EXPORT PFNGLXQUERYRENDERERINTEGERMESAPROC __glewXQueryRendererIntegerMESA; 1584 GLXEW_FUN_EXPORT PFNGLXQUERYRENDERERSTRINGMESAPROC __glewXQueryRendererStringMESA; 1585 1586 GLXEW_FUN_EXPORT PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA; 1587 1588 GLXEW_FUN_EXPORT PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA; 1589 1590 GLXEW_FUN_EXPORT PFNGLXGETSWAPINTERVALMESAPROC __glewXGetSwapIntervalMESA; 1591 GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALMESAPROC __glewXSwapIntervalMESA; 1592 1593 GLXEW_FUN_EXPORT PFNGLXCOPYBUFFERSUBDATANVPROC __glewXCopyBufferSubDataNV; 1594 GLXEW_FUN_EXPORT PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC __glewXNamedCopyBufferSubDataNV; 1595 1596 GLXEW_FUN_EXPORT PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV; 1597 1598 GLXEW_FUN_EXPORT PFNGLXDELAYBEFORESWAPNVPROC __glewXDelayBeforeSwapNV; 1599 1600 GLXEW_FUN_EXPORT PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV; 1601 GLXEW_FUN_EXPORT PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV; 1602 1603 GLXEW_FUN_EXPORT PFNGLXBINDSWAPBARRIERNVPROC __glewXBindSwapBarrierNV; 1604 GLXEW_FUN_EXPORT PFNGLXJOINSWAPGROUPNVPROC __glewXJoinSwapGroupNV; 1605 GLXEW_FUN_EXPORT PFNGLXQUERYFRAMECOUNTNVPROC __glewXQueryFrameCountNV; 1606 GLXEW_FUN_EXPORT PFNGLXQUERYMAXSWAPGROUPSNVPROC __glewXQueryMaxSwapGroupsNV; 1607 GLXEW_FUN_EXPORT PFNGLXQUERYSWAPGROUPNVPROC __glewXQuerySwapGroupNV; 1608 GLXEW_FUN_EXPORT PFNGLXRESETFRAMECOUNTNVPROC __glewXResetFrameCountNV; 1609 1610 GLXEW_FUN_EXPORT PFNGLXALLOCATEMEMORYNVPROC __glewXAllocateMemoryNV; 1611 GLXEW_FUN_EXPORT PFNGLXFREEMEMORYNVPROC __glewXFreeMemoryNV; 1612 1613 GLXEW_FUN_EXPORT PFNGLXBINDVIDEOCAPTUREDEVICENVPROC __glewXBindVideoCaptureDeviceNV; 1614 GLXEW_FUN_EXPORT PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC __glewXEnumerateVideoCaptureDevicesNV; 1615 GLXEW_FUN_EXPORT PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC __glewXLockVideoCaptureDeviceNV; 1616 GLXEW_FUN_EXPORT PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC __glewXQueryVideoCaptureDeviceNV; 1617 GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC __glewXReleaseVideoCaptureDeviceNV; 1618 1619 GLXEW_FUN_EXPORT PFNGLXBINDVIDEOIMAGENVPROC __glewXBindVideoImageNV; 1620 GLXEW_FUN_EXPORT PFNGLXGETVIDEODEVICENVPROC __glewXGetVideoDeviceNV; 1621 GLXEW_FUN_EXPORT PFNGLXGETVIDEOINFONVPROC __glewXGetVideoInfoNV; 1622 GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEODEVICENVPROC __glewXReleaseVideoDeviceNV; 1623 GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEOIMAGENVPROC __glewXReleaseVideoImageNV; 1624 GLXEW_FUN_EXPORT PFNGLXSENDPBUFFERTOVIDEONVPROC __glewXSendPbufferToVideoNV; 1625 1626 GLXEW_FUN_EXPORT PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML; 1627 GLXEW_FUN_EXPORT PFNGLXGETSYNCVALUESOMLPROC __glewXGetSyncValuesOML; 1628 GLXEW_FUN_EXPORT PFNGLXSWAPBUFFERSMSCOMLPROC __glewXSwapBuffersMscOML; 1629 GLXEW_FUN_EXPORT PFNGLXWAITFORMSCOMLPROC __glewXWaitForMscOML; 1630 GLXEW_FUN_EXPORT PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML; 1631 1632 GLXEW_FUN_EXPORT PFNGLXCHOOSEFBCONFIGSGIXPROC __glewXChooseFBConfigSGIX; 1633 GLXEW_FUN_EXPORT PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC __glewXCreateContextWithConfigSGIX; 1634 GLXEW_FUN_EXPORT PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC __glewXCreateGLXPixmapWithConfigSGIX; 1635 GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGATTRIBSGIXPROC __glewXGetFBConfigAttribSGIX; 1636 GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGFROMVISUALSGIXPROC __glewXGetFBConfigFromVisualSGIX; 1637 GLXEW_FUN_EXPORT PFNGLXGETVISUALFROMFBCONFIGSGIXPROC __glewXGetVisualFromFBConfigSGIX; 1638 1639 GLXEW_FUN_EXPORT PFNGLXBINDHYPERPIPESGIXPROC __glewXBindHyperpipeSGIX; 1640 GLXEW_FUN_EXPORT PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC __glewXDestroyHyperpipeConfigSGIX; 1641 GLXEW_FUN_EXPORT PFNGLXHYPERPIPEATTRIBSGIXPROC __glewXHyperpipeAttribSGIX; 1642 GLXEW_FUN_EXPORT PFNGLXHYPERPIPECONFIGSGIXPROC __glewXHyperpipeConfigSGIX; 1643 GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC __glewXQueryHyperpipeAttribSGIX; 1644 GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC __glewXQueryHyperpipeBestAttribSGIX; 1645 GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPECONFIGSGIXPROC __glewXQueryHyperpipeConfigSGIX; 1646 GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPENETWORKSGIXPROC __glewXQueryHyperpipeNetworkSGIX; 1647 1648 GLXEW_FUN_EXPORT PFNGLXCREATEGLXPBUFFERSGIXPROC __glewXCreateGLXPbufferSGIX; 1649 GLXEW_FUN_EXPORT PFNGLXDESTROYGLXPBUFFERSGIXPROC __glewXDestroyGLXPbufferSGIX; 1650 GLXEW_FUN_EXPORT PFNGLXGETSELECTEDEVENTSGIXPROC __glewXGetSelectedEventSGIX; 1651 GLXEW_FUN_EXPORT PFNGLXQUERYGLXPBUFFERSGIXPROC __glewXQueryGLXPbufferSGIX; 1652 GLXEW_FUN_EXPORT PFNGLXSELECTEVENTSGIXPROC __glewXSelectEventSGIX; 1653 1654 GLXEW_FUN_EXPORT PFNGLXBINDSWAPBARRIERSGIXPROC __glewXBindSwapBarrierSGIX; 1655 GLXEW_FUN_EXPORT PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC __glewXQueryMaxSwapBarriersSGIX; 1656 1657 GLXEW_FUN_EXPORT PFNGLXJOINSWAPGROUPSGIXPROC __glewXJoinSwapGroupSGIX; 1658 1659 GLXEW_FUN_EXPORT PFNGLXBINDCHANNELTOWINDOWSGIXPROC __glewXBindChannelToWindowSGIX; 1660 GLXEW_FUN_EXPORT PFNGLXCHANNELRECTSGIXPROC __glewXChannelRectSGIX; 1661 GLXEW_FUN_EXPORT PFNGLXCHANNELRECTSYNCSGIXPROC __glewXChannelRectSyncSGIX; 1662 GLXEW_FUN_EXPORT PFNGLXQUERYCHANNELDELTASSGIXPROC __glewXQueryChannelDeltasSGIX; 1663 GLXEW_FUN_EXPORT PFNGLXQUERYCHANNELRECTSGIXPROC __glewXQueryChannelRectSGIX; 1664 1665 GLXEW_FUN_EXPORT PFNGLXCUSHIONSGIPROC __glewXCushionSGI; 1666 1667 GLXEW_FUN_EXPORT PFNGLXGETCURRENTREADDRAWABLESGIPROC __glewXGetCurrentReadDrawableSGI; 1668 GLXEW_FUN_EXPORT PFNGLXMAKECURRENTREADSGIPROC __glewXMakeCurrentReadSGI; 1669 1670 GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALSGIPROC __glewXSwapIntervalSGI; 1671 1672 GLXEW_FUN_EXPORT PFNGLXGETVIDEOSYNCSGIPROC __glewXGetVideoSyncSGI; 1673 GLXEW_FUN_EXPORT PFNGLXWAITVIDEOSYNCSGIPROC __glewXWaitVideoSyncSGI; 1674 1675 GLXEW_FUN_EXPORT PFNGLXGETTRANSPARENTINDEXSUNPROC __glewXGetTransparentIndexSUN; 1676 1677 GLXEW_FUN_EXPORT PFNGLXGETVIDEORESIZESUNPROC __glewXGetVideoResizeSUN; 1678 GLXEW_FUN_EXPORT PFNGLXVIDEORESIZESUNPROC __glewXVideoResizeSUN; 1679 GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_0; 1680 GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_1; 1681 GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_2; 1682 GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_3; 1683 GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_4; 1684 GLXEW_VAR_EXPORT GLboolean __GLXEW_3DFX_multisample; 1685 GLXEW_VAR_EXPORT GLboolean __GLXEW_AMD_gpu_association; 1686 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_context_flush_control; 1687 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context; 1688 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_no_error; 1689 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_profile; 1690 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_robustness; 1691 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_fbconfig_float; 1692 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_framebuffer_sRGB; 1693 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_get_proc_address; 1694 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_multisample; 1695 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_robustness_application_isolation; 1696 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_robustness_share_group_isolation; 1697 GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_vertex_buffer_object; 1698 GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_pixel_format_float; 1699 GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_render_texture; 1700 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_buffer_age; 1701 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es2_profile; 1702 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es_profile; 1703 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_fbconfig_packed_float; 1704 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_framebuffer_sRGB; 1705 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_import_context; 1706 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_libglvnd; 1707 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_scene_marker; 1708 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_stereo_tree; 1709 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control; 1710 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control_tear; 1711 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_texture_from_pixmap; 1712 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_visual_info; 1713 GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_visual_rating; 1714 GLXEW_VAR_EXPORT GLboolean __GLXEW_INTEL_swap_event; 1715 GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_agp_offset; 1716 GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer; 1717 GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap; 1718 GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_query_renderer; 1719 GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_release_buffers; 1720 GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode; 1721 GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_swap_control; 1722 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_buffer; 1723 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_image; 1724 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_delay_before_swap; 1725 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_float_buffer; 1726 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_multisample_coverage; 1727 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_present_video; 1728 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_robustness_video_memory_purge; 1729 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_swap_group; 1730 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_vertex_array_range; 1731 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_video_capture; 1732 GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_video_out; 1733 GLXEW_VAR_EXPORT GLboolean __GLXEW_OML_swap_method; 1734 GLXEW_VAR_EXPORT GLboolean __GLXEW_OML_sync_control; 1735 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_blended_overlay; 1736 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_color_range; 1737 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_multisample; 1738 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_shared_multisample; 1739 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_fbconfig; 1740 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_hyperpipe; 1741 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_pbuffer; 1742 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_swap_barrier; 1743 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_swap_group; 1744 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_video_resize; 1745 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_visual_select_group; 1746 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_cushion; 1747 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_make_current_read; 1748 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_swap_control; 1749 GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_video_sync; 1750 GLXEW_VAR_EXPORT GLboolean __GLXEW_SUN_get_transparent_index; 1751 GLXEW_VAR_EXPORT GLboolean __GLXEW_SUN_video_resize; 1752 /* ------------------------------------------------------------------------ */ 1753 1754 GLEWAPI GLenum GLEWAPIENTRY glxewInit (); 1755 GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name); 1756 1757 #ifndef GLXEW_GET_VAR 1758 #define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) 1759 #endif 1760 1761 #ifndef GLXEW_GET_FUN 1762 #define GLXEW_GET_FUN(x) x 1763 #endif 1764 1765 GLEWAPI GLboolean GLEWAPIENTRY glxewGetExtension (const char *name); 1766 1767 #endif /* __glxew_h__ */ 1768