1 /*
   2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   3  *
   4  * This code is free software; you can redistribute it and/or modify it
   5  * under the terms of the GNU General Public License version 2 only, as
   6  * published by the Free Software Foundation.  Oracle designates this
   7  * particular file as subject to the "Classpath" exception as provided
   8  * by Oracle in the LICENSE file that accompanied this code.
   9  *
  10  * This code is distributed in the hope that it will be useful, but WITHOUT
  11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13  * version 2 for more details (a copy is included in the LICENSE file that
  14  * accompanied this code).
  15  *
  16  * You should have received a copy of the GNU General Public License version
  17  * 2 along with this work; if not, write to the Free Software Foundation,
  18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19  *
  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  */
  24 
  25 #ifndef __glx_glxext_h_
  26 #define __glx_glxext_h_ 1
  27 
  28 #ifdef __cplusplus
  29 extern "C" {
  30 #endif
  31 
  32 /*
  33 ** This file is available under and governed by the GNU General Public
  34 ** License version 2 only, as published by the Free Software Foundation.
  35 ** However, the following notice accompanied the original version of this
  36 ** file:
  37 **
  38 ** Copyright (c) 2013-2018 The Khronos Group Inc.
  39 **
  40 ** Permission is hereby granted, free of charge, to any person obtaining a
  41 ** copy of this software and/or associated documentation files (the
  42 ** "Materials"), to deal in the Materials without restriction, including
  43 ** without limitation the rights to use, copy, modify, merge, publish,
  44 ** distribute, sublicense, and/or sell copies of the Materials, and to
  45 ** permit persons to whom the Materials are furnished to do so, subject to
  46 ** the following conditions:
  47 **
  48 ** The above copyright notice and this permission notice shall be included
  49 ** in all copies or substantial portions of the Materials.
  50 **
  51 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  52 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  53 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  54 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  55 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  56 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  57 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  58 */
  59 /*
  60 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
  61 ** API Registry. The current version of the Registry, generator scripts
  62 ** used to make the header, and the header can be found at
  63 **   https://github.com/KhronosGroup/OpenGL-Registry
  64 */
  65 
  66 #define GLX_GLXEXT_VERSION 20180525
  67 
  68 /* Generated C header for:
  69  * API: glx
  70  * Versions considered: .*
  71  * Versions emitted: 1\.[3-9]
  72  * Default extensions included: glx
  73  * Additional extensions included: _nomatch_^
  74  * Extensions removed: _nomatch_^
  75  */
  76 
  77 #ifndef GLX_VERSION_1_3
  78 #define GLX_VERSION_1_3 1
  79 typedef XID GLXContextID;
  80 typedef struct __GLXFBConfigRec *GLXFBConfig;
  81 typedef XID GLXWindow;
  82 typedef XID GLXPbuffer;
  83 #define GLX_WINDOW_BIT                    0x00000001
  84 #define GLX_PIXMAP_BIT                    0x00000002
  85 #define GLX_PBUFFER_BIT                   0x00000004
  86 #define GLX_RGBA_BIT                      0x00000001
  87 #define GLX_COLOR_INDEX_BIT               0x00000002
  88 #define GLX_PBUFFER_CLOBBER_MASK          0x08000000
  89 #define GLX_FRONT_LEFT_BUFFER_BIT         0x00000001
  90 #define GLX_FRONT_RIGHT_BUFFER_BIT        0x00000002
  91 #define GLX_BACK_LEFT_BUFFER_BIT          0x00000004
  92 #define GLX_BACK_RIGHT_BUFFER_BIT         0x00000008
  93 #define GLX_AUX_BUFFERS_BIT               0x00000010
  94 #define GLX_DEPTH_BUFFER_BIT              0x00000020
  95 #define GLX_STENCIL_BUFFER_BIT            0x00000040
  96 #define GLX_ACCUM_BUFFER_BIT              0x00000080
  97 #define GLX_CONFIG_CAVEAT                 0x20
  98 #define GLX_X_VISUAL_TYPE                 0x22
  99 #define GLX_TRANSPARENT_TYPE              0x23
 100 #define GLX_TRANSPARENT_INDEX_VALUE       0x24
 101 #define GLX_TRANSPARENT_RED_VALUE         0x25
 102 #define GLX_TRANSPARENT_GREEN_VALUE       0x26
 103 #define GLX_TRANSPARENT_BLUE_VALUE        0x27
 104 #define GLX_TRANSPARENT_ALPHA_VALUE       0x28
 105 #define GLX_DONT_CARE                     0xFFFFFFFF
 106 #define GLX_NONE                          0x8000
 107 #define GLX_SLOW_CONFIG                   0x8001
 108 #define GLX_TRUE_COLOR                    0x8002
 109 #define GLX_DIRECT_COLOR                  0x8003
 110 #define GLX_PSEUDO_COLOR                  0x8004
 111 #define GLX_STATIC_COLOR                  0x8005
 112 #define GLX_GRAY_SCALE                    0x8006
 113 #define GLX_STATIC_GRAY                   0x8007
 114 #define GLX_TRANSPARENT_RGB               0x8008
 115 #define GLX_TRANSPARENT_INDEX             0x8009
 116 #define GLX_VISUAL_ID                     0x800B
 117 #define GLX_SCREEN                        0x800C
 118 #define GLX_NON_CONFORMANT_CONFIG         0x800D
 119 #define GLX_DRAWABLE_TYPE                 0x8010
 120 #define GLX_RENDER_TYPE                   0x8011
 121 #define GLX_X_RENDERABLE                  0x8012
 122 #define GLX_FBCONFIG_ID                   0x8013
 123 #define GLX_RGBA_TYPE                     0x8014
 124 #define GLX_COLOR_INDEX_TYPE              0x8015
 125 #define GLX_MAX_PBUFFER_WIDTH             0x8016
 126 #define GLX_MAX_PBUFFER_HEIGHT            0x8017
 127 #define GLX_MAX_PBUFFER_PIXELS            0x8018
 128 #define GLX_PRESERVED_CONTENTS            0x801B
 129 #define GLX_LARGEST_PBUFFER               0x801C
 130 #define GLX_WIDTH                         0x801D
 131 #define GLX_HEIGHT                        0x801E
 132 #define GLX_EVENT_MASK                    0x801F
 133 #define GLX_DAMAGED                       0x8020
 134 #define GLX_SAVED                         0x8021
 135 #define GLX_WINDOW                        0x8022
 136 #define GLX_PBUFFER                       0x8023
 137 #define GLX_PBUFFER_HEIGHT                0x8040
 138 #define GLX_PBUFFER_WIDTH                 0x8041
 139 typedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
 140 typedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
 141 typedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
 142 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
 143 typedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
 144 typedef void ( *PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
 145 typedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
 146 typedef void ( *PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
 147 typedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
 148 typedef void ( *PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
 149 typedef void ( *PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
 150 typedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
 151 typedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
 152 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
 153 typedef int ( *PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
 154 typedef void ( *PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
 155 typedef void ( *PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
 156 #ifdef GLX_GLXEXT_PROTOTYPES
 157 GLXFBConfig *glXGetFBConfigs (Display *dpy, int screen, int *nelements);
 158 GLXFBConfig *glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements);
 159 int glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value);
 160 XVisualInfo *glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config);
 161 GLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
 162 void glXDestroyWindow (Display *dpy, GLXWindow win);
 163 GLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
 164 void glXDestroyPixmap (Display *dpy, GLXPixmap pixmap);
 165 GLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list);
 166 void glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf);
 167 void glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
 168 GLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
 169 Bool glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
 170 GLXDrawable glXGetCurrentReadDrawable (void);
 171 int glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value);
 172 void glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask);
 173 void glXGetSelectedEvent (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
 174 #endif
 175 #endif /* GLX_VERSION_1_3 */
 176 
 177 #ifndef GLX_VERSION_1_4
 178 #define GLX_VERSION_1_4 1
 179 typedef void ( *__GLXextFuncPtr)(void);
 180 #define GLX_SAMPLE_BUFFERS                100000
 181 #define GLX_SAMPLES                       100001
 182 typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
 183 #ifdef GLX_GLXEXT_PROTOTYPES
 184 __GLXextFuncPtr glXGetProcAddress (const GLubyte *procName);
 185 #endif
 186 #endif /* GLX_VERSION_1_4 */
 187 
 188 #ifndef GLX_ARB_context_flush_control
 189 #define GLX_ARB_context_flush_control 1
 190 #define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB  0x2097
 191 #define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0
 192 #define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
 193 #endif /* GLX_ARB_context_flush_control */
 194 
 195 #ifndef GLX_ARB_create_context
 196 #define GLX_ARB_create_context 1
 197 #define GLX_CONTEXT_DEBUG_BIT_ARB         0x00000001
 198 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
 199 #define GLX_CONTEXT_MAJOR_VERSION_ARB     0x2091
 200 #define GLX_CONTEXT_MINOR_VERSION_ARB     0x2092
 201 #define GLX_CONTEXT_FLAGS_ARB             0x2094
 202 typedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
 203 #ifdef GLX_GLXEXT_PROTOTYPES
 204 GLXContext glXCreateContextAttribsARB (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
 205 #endif
 206 #endif /* GLX_ARB_create_context */
 207 
 208 #ifndef GLX_ARB_create_context_no_error
 209 #define GLX_ARB_create_context_no_error 1
 210 #define GLX_CONTEXT_OPENGL_NO_ERROR_ARB   0x31B3
 211 #endif /* GLX_ARB_create_context_no_error */
 212 
 213 #ifndef GLX_ARB_create_context_profile
 214 #define GLX_ARB_create_context_profile 1
 215 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB  0x00000001
 216 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
 217 #define GLX_CONTEXT_PROFILE_MASK_ARB      0x9126
 218 #endif /* GLX_ARB_create_context_profile */
 219 
 220 #ifndef GLX_ARB_create_context_robustness
 221 #define GLX_ARB_create_context_robustness 1
 222 #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
 223 #define GLX_LOSE_CONTEXT_ON_RESET_ARB     0x8252
 224 #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
 225 #define GLX_NO_RESET_NOTIFICATION_ARB     0x8261
 226 #endif /* GLX_ARB_create_context_robustness */
 227 
 228 #ifndef GLX_ARB_fbconfig_float
 229 #define GLX_ARB_fbconfig_float 1
 230 #define GLX_RGBA_FLOAT_TYPE_ARB           0x20B9
 231 #define GLX_RGBA_FLOAT_BIT_ARB            0x00000004
 232 #endif /* GLX_ARB_fbconfig_float */
 233 
 234 #ifndef GLX_ARB_framebuffer_sRGB
 235 #define GLX_ARB_framebuffer_sRGB 1
 236 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB  0x20B2
 237 #endif /* GLX_ARB_framebuffer_sRGB */
 238 
 239 #ifndef GLX_ARB_get_proc_address
 240 #define GLX_ARB_get_proc_address 1
 241 typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
 242 #ifdef GLX_GLXEXT_PROTOTYPES
 243 __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *procName);
 244 #endif
 245 #endif /* GLX_ARB_get_proc_address */
 246 
 247 #ifndef GLX_ARB_multisample
 248 #define GLX_ARB_multisample 1
 249 #define GLX_SAMPLE_BUFFERS_ARB            100000
 250 #define GLX_SAMPLES_ARB                   100001
 251 #endif /* GLX_ARB_multisample */
 252 
 253 #ifndef GLX_ARB_robustness_application_isolation
 254 #define GLX_ARB_robustness_application_isolation 1
 255 #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
 256 #endif /* GLX_ARB_robustness_application_isolation */
 257 
 258 #ifndef GLX_ARB_robustness_share_group_isolation
 259 #define GLX_ARB_robustness_share_group_isolation 1
 260 #endif /* GLX_ARB_robustness_share_group_isolation */
 261 
 262 #ifndef GLX_ARB_vertex_buffer_object
 263 #define GLX_ARB_vertex_buffer_object 1
 264 #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
 265 #endif /* GLX_ARB_vertex_buffer_object */
 266 
 267 #ifndef GLX_3DFX_multisample
 268 #define GLX_3DFX_multisample 1
 269 #define GLX_SAMPLE_BUFFERS_3DFX           0x8050
 270 #define GLX_SAMPLES_3DFX                  0x8051
 271 #endif /* GLX_3DFX_multisample */
 272 
 273 #ifndef GLX_AMD_gpu_association
 274 #define GLX_AMD_gpu_association 1
 275 #define GLX_GPU_VENDOR_AMD                0x1F00
 276 #define GLX_GPU_RENDERER_STRING_AMD       0x1F01
 277 #define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
 278 #define GLX_GPU_FASTEST_TARGET_GPUS_AMD   0x21A2
 279 #define GLX_GPU_RAM_AMD                   0x21A3
 280 #define GLX_GPU_CLOCK_AMD                 0x21A4
 281 #define GLX_GPU_NUM_PIPES_AMD             0x21A5
 282 #define GLX_GPU_NUM_SIMD_AMD              0x21A6
 283 #define GLX_GPU_NUM_RB_AMD                0x21A7
 284 #define GLX_GPU_NUM_SPI_AMD               0x21A8
 285 typedef unsigned int ( *PFNGLXGETGPUIDSAMDPROC) (unsigned int maxCount, unsigned int *ids);
 286 typedef int ( *PFNGLXGETGPUINFOAMDPROC) (unsigned int id, int property, GLenum dataType, unsigned int size, void *data);
 287 typedef unsigned int ( *PFNGLXGETCONTEXTGPUIDAMDPROC) (GLXContext ctx);
 288 typedef GLXContext ( *PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC) (unsigned int id, GLXContext share_list);
 289 typedef GLXContext ( *PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (unsigned int id, GLXContext share_context, const int *attribList);
 290 typedef Bool ( *PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC) (GLXContext ctx);
 291 typedef Bool ( *PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (GLXContext ctx);
 292 typedef GLXContext ( *PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
 293 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);
 294 #ifdef GLX_GLXEXT_PROTOTYPES
 295 unsigned int glXGetGPUIDsAMD (unsigned int maxCount, unsigned int *ids);
 296 int glXGetGPUInfoAMD (unsigned int id, int property, GLenum dataType, unsigned int size, void *data);
 297 unsigned int glXGetContextGPUIDAMD (GLXContext ctx);
 298 GLXContext glXCreateAssociatedContextAMD (unsigned int id, GLXContext share_list);
 299 GLXContext glXCreateAssociatedContextAttribsAMD (unsigned int id, GLXContext share_context, const int *attribList);
 300 Bool glXDeleteAssociatedContextAMD (GLXContext ctx);
 301 Bool glXMakeAssociatedContextCurrentAMD (GLXContext ctx);
 302 GLXContext glXGetCurrentAssociatedContextAMD (void);
 303 void glXBlitContextFramebufferAMD (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
 304 #endif
 305 #endif /* GLX_AMD_gpu_association */
 306 
 307 #ifndef GLX_EXT_buffer_age
 308 #define GLX_EXT_buffer_age 1
 309 #define GLX_BACK_BUFFER_AGE_EXT           0x20F4
 310 #endif /* GLX_EXT_buffer_age */
 311 
 312 #ifndef GLX_EXT_create_context_es2_profile
 313 #define GLX_EXT_create_context_es2_profile 1
 314 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT   0x00000004
 315 #endif /* GLX_EXT_create_context_es2_profile */
 316 
 317 #ifndef GLX_EXT_create_context_es_profile
 318 #define GLX_EXT_create_context_es_profile 1
 319 #define GLX_CONTEXT_ES_PROFILE_BIT_EXT    0x00000004
 320 #endif /* GLX_EXT_create_context_es_profile */
 321 
 322 #ifndef GLX_EXT_fbconfig_packed_float
 323 #define GLX_EXT_fbconfig_packed_float 1
 324 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT  0x20B1
 325 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT   0x00000008
 326 #endif /* GLX_EXT_fbconfig_packed_float */
 327 
 328 #ifndef GLX_EXT_framebuffer_sRGB
 329 #define GLX_EXT_framebuffer_sRGB 1
 330 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT  0x20B2
 331 #endif /* GLX_EXT_framebuffer_sRGB */
 332 
 333 #ifndef GLX_EXT_import_context
 334 #define GLX_EXT_import_context 1
 335 #define GLX_SHARE_CONTEXT_EXT             0x800A
 336 #define GLX_VISUAL_ID_EXT                 0x800B
 337 #define GLX_SCREEN_EXT                    0x800C
 338 typedef Display *( *PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
 339 typedef int ( *PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
 340 typedef GLXContextID ( *PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
 341 typedef GLXContext ( *PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
 342 typedef void ( *PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
 343 #ifdef GLX_GLXEXT_PROTOTYPES
 344 Display *glXGetCurrentDisplayEXT (void);
 345 int glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value);
 346 GLXContextID glXGetContextIDEXT (const GLXContext context);
 347 GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID);
 348 void glXFreeContextEXT (Display *dpy, GLXContext context);
 349 #endif
 350 #endif /* GLX_EXT_import_context */
 351 
 352 #ifndef GLX_EXT_libglvnd
 353 #define GLX_EXT_libglvnd 1
 354 #define GLX_VENDOR_NAMES_EXT              0x20F6
 355 #endif /* GLX_EXT_libglvnd */
 356 
 357 #ifndef GLX_EXT_no_config_context
 358 #define GLX_EXT_no_config_context 1
 359 #endif /* GLX_EXT_no_config_context */
 360 
 361 #ifndef GLX_EXT_stereo_tree
 362 #define GLX_EXT_stereo_tree 1
 363 typedef struct {
 364     int type;
 365     unsigned long serial;
 366     Bool send_event;
 367     Display *display;
 368     int extension;
 369     int evtype;
 370     GLXDrawable window;
 371     Bool stereo_tree;
 372 } GLXStereoNotifyEventEXT;
 373 #define GLX_STEREO_TREE_EXT               0x20F5
 374 #define GLX_STEREO_NOTIFY_MASK_EXT        0x00000001
 375 #define GLX_STEREO_NOTIFY_EXT             0x00000000
 376 #endif /* GLX_EXT_stereo_tree */
 377 
 378 #ifndef GLX_EXT_swap_control
 379 #define GLX_EXT_swap_control 1
 380 #define GLX_SWAP_INTERVAL_EXT             0x20F1
 381 #define GLX_MAX_SWAP_INTERVAL_EXT         0x20F2
 382 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
 383 #ifdef GLX_GLXEXT_PROTOTYPES
 384 void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
 385 #endif
 386 #endif /* GLX_EXT_swap_control */
 387 
 388 #ifndef GLX_EXT_swap_control_tear
 389 #define GLX_EXT_swap_control_tear 1
 390 #define GLX_LATE_SWAPS_TEAR_EXT           0x20F3
 391 #endif /* GLX_EXT_swap_control_tear */
 392 
 393 #ifndef GLX_EXT_texture_from_pixmap
 394 #define GLX_EXT_texture_from_pixmap 1
 395 #define GLX_TEXTURE_1D_BIT_EXT            0x00000001
 396 #define GLX_TEXTURE_2D_BIT_EXT            0x00000002
 397 #define GLX_TEXTURE_RECTANGLE_BIT_EXT     0x00000004
 398 #define GLX_BIND_TO_TEXTURE_RGB_EXT       0x20D0
 399 #define GLX_BIND_TO_TEXTURE_RGBA_EXT      0x20D1
 400 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT    0x20D2
 401 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT   0x20D3
 402 #define GLX_Y_INVERTED_EXT                0x20D4
 403 #define GLX_TEXTURE_FORMAT_EXT            0x20D5
 404 #define GLX_TEXTURE_TARGET_EXT            0x20D6
 405 #define GLX_MIPMAP_TEXTURE_EXT            0x20D7
 406 #define GLX_TEXTURE_FORMAT_NONE_EXT       0x20D8
 407 #define GLX_TEXTURE_FORMAT_RGB_EXT        0x20D9
 408 #define GLX_TEXTURE_FORMAT_RGBA_EXT       0x20DA
 409 #define GLX_TEXTURE_1D_EXT                0x20DB
 410 #define GLX_TEXTURE_2D_EXT                0x20DC
 411 #define GLX_TEXTURE_RECTANGLE_EXT         0x20DD
 412 #define GLX_FRONT_LEFT_EXT                0x20DE
 413 #define GLX_FRONT_RIGHT_EXT               0x20DF
 414 #define GLX_BACK_LEFT_EXT                 0x20E0
 415 #define GLX_BACK_RIGHT_EXT                0x20E1
 416 #define GLX_FRONT_EXT                     0x20DE
 417 #define GLX_BACK_EXT                      0x20E0
 418 #define GLX_AUX0_EXT                      0x20E2
 419 #define GLX_AUX1_EXT                      0x20E3
 420 #define GLX_AUX2_EXT                      0x20E4
 421 #define GLX_AUX3_EXT                      0x20E5
 422 #define GLX_AUX4_EXT                      0x20E6
 423 #define GLX_AUX5_EXT                      0x20E7
 424 #define GLX_AUX6_EXT                      0x20E8
 425 #define GLX_AUX7_EXT                      0x20E9
 426 #define GLX_AUX8_EXT                      0x20EA
 427 #define GLX_AUX9_EXT                      0x20EB
 428 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
 429 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
 430 #ifdef GLX_GLXEXT_PROTOTYPES
 431 void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
 432 void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
 433 #endif
 434 #endif /* GLX_EXT_texture_from_pixmap */
 435 
 436 #ifndef GLX_EXT_visual_info
 437 #define GLX_EXT_visual_info 1
 438 #define GLX_X_VISUAL_TYPE_EXT             0x22
 439 #define GLX_TRANSPARENT_TYPE_EXT          0x23
 440 #define GLX_TRANSPARENT_INDEX_VALUE_EXT   0x24
 441 #define GLX_TRANSPARENT_RED_VALUE_EXT     0x25
 442 #define GLX_TRANSPARENT_GREEN_VALUE_EXT   0x26
 443 #define GLX_TRANSPARENT_BLUE_VALUE_EXT    0x27
 444 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT   0x28
 445 #define GLX_NONE_EXT                      0x8000
 446 #define GLX_TRUE_COLOR_EXT                0x8002
 447 #define GLX_DIRECT_COLOR_EXT              0x8003
 448 #define GLX_PSEUDO_COLOR_EXT              0x8004
 449 #define GLX_STATIC_COLOR_EXT              0x8005
 450 #define GLX_GRAY_SCALE_EXT                0x8006
 451 #define GLX_STATIC_GRAY_EXT               0x8007
 452 #define GLX_TRANSPARENT_RGB_EXT           0x8008
 453 #define GLX_TRANSPARENT_INDEX_EXT         0x8009
 454 #endif /* GLX_EXT_visual_info */
 455 
 456 #ifndef GLX_EXT_visual_rating
 457 #define GLX_EXT_visual_rating 1
 458 #define GLX_VISUAL_CAVEAT_EXT             0x20
 459 #define GLX_SLOW_VISUAL_EXT               0x8001
 460 #define GLX_NON_CONFORMANT_VISUAL_EXT     0x800D
 461 #endif /* GLX_EXT_visual_rating */
 462 
 463 #ifndef GLX_INTEL_swap_event
 464 #define GLX_INTEL_swap_event 1
 465 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
 466 #define GLX_EXCHANGE_COMPLETE_INTEL       0x8180
 467 #define GLX_COPY_COMPLETE_INTEL           0x8181
 468 #define GLX_FLIP_COMPLETE_INTEL           0x8182
 469 #endif /* GLX_INTEL_swap_event */
 470 
 471 #ifndef GLX_MESA_agp_offset
 472 #define GLX_MESA_agp_offset 1
 473 typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
 474 #ifdef GLX_GLXEXT_PROTOTYPES
 475 unsigned int glXGetAGPOffsetMESA (const void *pointer);
 476 #endif
 477 #endif /* GLX_MESA_agp_offset */
 478 
 479 #ifndef GLX_MESA_copy_sub_buffer
 480 #define GLX_MESA_copy_sub_buffer 1
 481 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
 482 #ifdef GLX_GLXEXT_PROTOTYPES
 483 void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
 484 #endif
 485 #endif /* GLX_MESA_copy_sub_buffer */
 486 
 487 #ifndef GLX_MESA_pixmap_colormap
 488 #define GLX_MESA_pixmap_colormap 1
 489 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
 490 #ifdef GLX_GLXEXT_PROTOTYPES
 491 GLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
 492 #endif
 493 #endif /* GLX_MESA_pixmap_colormap */
 494 
 495 #ifndef GLX_MESA_query_renderer
 496 #define GLX_MESA_query_renderer 1
 497 #define GLX_RENDERER_VENDOR_ID_MESA       0x8183
 498 #define GLX_RENDERER_DEVICE_ID_MESA       0x8184
 499 #define GLX_RENDERER_VERSION_MESA         0x8185
 500 #define GLX_RENDERER_ACCELERATED_MESA     0x8186
 501 #define GLX_RENDERER_VIDEO_MEMORY_MESA    0x8187
 502 #define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
 503 #define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
 504 #define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
 505 #define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
 506 #define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
 507 #define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
 508 #define GLX_RENDERER_ID_MESA              0x818E
 509 typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
 510 typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
 511 typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
 512 typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
 513 #ifdef GLX_GLXEXT_PROTOTYPES
 514 Bool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value);
 515 const char *glXQueryCurrentRendererStringMESA (int attribute);
 516 Bool glXQueryRendererIntegerMESA (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
 517 const char *glXQueryRendererStringMESA (Display *dpy, int screen, int renderer, int attribute);
 518 #endif
 519 #endif /* GLX_MESA_query_renderer */
 520 
 521 #ifndef GLX_MESA_release_buffers
 522 #define GLX_MESA_release_buffers 1
 523 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
 524 #ifdef GLX_GLXEXT_PROTOTYPES
 525 Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
 526 #endif
 527 #endif /* GLX_MESA_release_buffers */
 528 
 529 #ifndef GLX_MESA_set_3dfx_mode
 530 #define GLX_MESA_set_3dfx_mode 1
 531 #define GLX_3DFX_WINDOW_MODE_MESA         0x1
 532 #define GLX_3DFX_FULLSCREEN_MODE_MESA     0x2
 533 typedef Bool ( *PFNGLXSET3DFXMODEMESAPROC) (int mode);
 534 #ifdef GLX_GLXEXT_PROTOTYPES
 535 Bool glXSet3DfxModeMESA (int mode);
 536 #endif
 537 #endif /* GLX_MESA_set_3dfx_mode */
 538 
 539 #ifndef GLX_MESA_swap_control
 540 #define GLX_MESA_swap_control 1
 541 typedef int ( *PFNGLXGETSWAPINTERVALMESAPROC) (void);
 542 typedef int ( *PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval);
 543 #ifdef GLX_GLXEXT_PROTOTYPES
 544 int glXGetSwapIntervalMESA (void);
 545 int glXSwapIntervalMESA (unsigned int interval);
 546 #endif
 547 #endif /* GLX_MESA_swap_control */
 548 
 549 #ifndef GLX_NV_copy_buffer
 550 #define GLX_NV_copy_buffer 1
 551 typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
 552 typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
 553 #ifdef GLX_GLXEXT_PROTOTYPES
 554 void glXCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
 555 void glXNamedCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
 556 #endif
 557 #endif /* GLX_NV_copy_buffer */
 558 
 559 #ifndef GLX_NV_copy_image
 560 #define GLX_NV_copy_image 1
 561 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);
 562 #ifdef GLX_GLXEXT_PROTOTYPES
 563 void glXCopyImageSubDataNV (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);
 564 #endif
 565 #endif /* GLX_NV_copy_image */
 566 
 567 #ifndef GLX_NV_delay_before_swap
 568 #define GLX_NV_delay_before_swap 1
 569 typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (Display *dpy, GLXDrawable drawable, GLfloat seconds);
 570 #ifdef GLX_GLXEXT_PROTOTYPES
 571 Bool glXDelayBeforeSwapNV (Display *dpy, GLXDrawable drawable, GLfloat seconds);
 572 #endif
 573 #endif /* GLX_NV_delay_before_swap */
 574 
 575 #ifndef GLX_NV_float_buffer
 576 #define GLX_NV_float_buffer 1
 577 #define GLX_FLOAT_COMPONENTS_NV           0x20B0
 578 #endif /* GLX_NV_float_buffer */
 579 
 580 #ifndef GLX_NV_multisample_coverage
 581 #define GLX_NV_multisample_coverage 1
 582 #define GLX_COVERAGE_SAMPLES_NV           100001
 583 #define GLX_COLOR_SAMPLES_NV              0x20B3
 584 #endif /* GLX_NV_multisample_coverage */
 585 
 586 #ifndef GLX_NV_present_video
 587 #define GLX_NV_present_video 1
 588 #define GLX_NUM_VIDEO_SLOTS_NV            0x20F0
 589 typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
 590 typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
 591 #ifdef GLX_GLXEXT_PROTOTYPES
 592 unsigned int *glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements);
 593 int glXBindVideoDeviceNV (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
 594 #endif
 595 #endif /* GLX_NV_present_video */
 596 
 597 #ifndef GLX_NV_robustness_video_memory_purge
 598 #define GLX_NV_robustness_video_memory_purge 1
 599 #define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7
 600 #endif /* GLX_NV_robustness_video_memory_purge */
 601 
 602 #ifndef GLX_NV_swap_group
 603 #define GLX_NV_swap_group 1
 604 typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
 605 typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
 606 typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
 607 typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
 608 typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
 609 typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
 610 #ifdef GLX_GLXEXT_PROTOTYPES
 611 Bool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group);
 612 Bool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier);
 613 Bool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
 614 Bool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
 615 Bool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count);
 616 Bool glXResetFrameCountNV (Display *dpy, int screen);
 617 #endif
 618 #endif /* GLX_NV_swap_group */
 619 
 620 #ifndef GLX_NV_video_capture
 621 #define GLX_NV_video_capture 1
 622 typedef XID GLXVideoCaptureDeviceNV;
 623 #define GLX_DEVICE_ID_NV                  0x20CD
 624 #define GLX_UNIQUE_ID_NV                  0x20CE
 625 #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV    0x20CF
 626 typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
 627 typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
 628 typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
 629 typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
 630 typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
 631 #ifdef GLX_GLXEXT_PROTOTYPES
 632 int glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
 633 GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements);
 634 void glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
 635 int glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
 636 void glXReleaseVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
 637 #endif
 638 #endif /* GLX_NV_video_capture */
 639 
 640 #ifndef GLX_NV_video_out
 641 #define GLX_NV_video_out 1
 642 typedef unsigned int GLXVideoDeviceNV;
 643 #define GLX_VIDEO_OUT_COLOR_NV            0x20C3
 644 #define GLX_VIDEO_OUT_ALPHA_NV            0x20C4
 645 #define GLX_VIDEO_OUT_DEPTH_NV            0x20C5
 646 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV  0x20C6
 647 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV  0x20C7
 648 #define GLX_VIDEO_OUT_FRAME_NV            0x20C8
 649 #define GLX_VIDEO_OUT_FIELD_1_NV          0x20C9
 650 #define GLX_VIDEO_OUT_FIELD_2_NV          0x20CA
 651 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
 652 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
 653 typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
 654 typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
 655 typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
 656 typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
 657 typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
 658 typedef int ( *PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
 659 #ifdef GLX_GLXEXT_PROTOTYPES
 660 int glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
 661 int glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
 662 int glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
 663 int glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf);
 664 int glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
 665 int glXGetVideoInfoNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
 666 #endif
 667 #endif /* GLX_NV_video_out */
 668 
 669 #ifndef GLX_OML_swap_method
 670 #define GLX_OML_swap_method 1
 671 #define GLX_SWAP_METHOD_OML               0x8060
 672 #define GLX_SWAP_EXCHANGE_OML             0x8061
 673 #define GLX_SWAP_COPY_OML                 0x8062
 674 #define GLX_SWAP_UNDEFINED_OML            0x8063
 675 #endif /* GLX_OML_swap_method */
 676 
 677 #ifndef GLX_OML_sync_control
 678 #define GLX_OML_sync_control 1
 679 #ifndef GLEXT_64_TYPES_DEFINED
 680 /* This code block is duplicated in glext.h, so must be protected */
 681 #define GLEXT_64_TYPES_DEFINED
 682 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
 683 /* (as used in the GLX_OML_sync_control extension). */
 684 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 685 /* JDK modification */
 686 #elif defined(__sun__)
 687 #include <inttypes.h>
 688 #elif defined(__digital__)
 689 #include <inttypes.h>
 690 #if defined(__STDC__)
 691 #if defined(__arch64__) || defined(_LP64)
 692 typedef long int int64_t;
 693 typedef unsigned long int uint64_t;
 694 #else
 695 typedef long long int int64_t;
 696 typedef unsigned long long int uint64_t;
 697 #endif /* __arch64__ */
 698 #endif /* __STDC__ */
 699 
 700 #elif defined( __VMS ) || defined(__sgi)
 701 #include <inttypes.h>
 702 #elif defined(__SCO__) || defined(__USLC__)
 703 #include <stdint.h>
 704 #elif defined(__UNIXOS2__) || defined(__SOL64__)
 705 typedef long int int32_t;
 706 typedef long long int int64_t;
 707 typedef unsigned long long int uint64_t;
 708 #elif defined(_WIN32) && defined(__GNUC__)
 709 #include <stdint.h>
 710 #elif defined(_WIN32)
 711 typedef __int32 int32_t;
 712 typedef __int64 int64_t;
 713 typedef unsigned __int64 uint64_t;
 714 #else
 715 /* Fallback if nothing above works */
 716 #include <inttypes.h>
 717 #endif
 718 #endif
 719 typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
 720 typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
 721 typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
 722 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);
 723 typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
 724 #ifdef GLX_GLXEXT_PROTOTYPES
 725 Bool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
 726 Bool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
 727 int64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
 728 Bool glXWaitForMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
 729 Bool glXWaitForSbcOML (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
 730 #endif
 731 #endif /* GLX_OML_sync_control */
 732 
 733 #ifndef GLX_SGIS_blended_overlay
 734 #define GLX_SGIS_blended_overlay 1
 735 #define GLX_BLENDED_RGBA_SGIS             0x8025
 736 #endif /* GLX_SGIS_blended_overlay */
 737 
 738 #ifndef GLX_SGIS_multisample
 739 #define GLX_SGIS_multisample 1
 740 #define GLX_SAMPLE_BUFFERS_SGIS           100000
 741 #define GLX_SAMPLES_SGIS                  100001
 742 #endif /* GLX_SGIS_multisample */
 743 
 744 #ifndef GLX_SGIS_shared_multisample
 745 #define GLX_SGIS_shared_multisample 1
 746 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
 747 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
 748 #endif /* GLX_SGIS_shared_multisample */
 749 
 750 #ifndef GLX_SGIX_dmbuffer
 751 #define GLX_SGIX_dmbuffer 1
 752 typedef XID GLXPbufferSGIX;
 753 #ifdef _DM_BUFFER_H_
 754 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX    0x8024
 755 typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
 756 #ifdef GLX_GLXEXT_PROTOTYPES
 757 Bool glXAssociateDMPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
 758 #endif
 759 #endif /* _DM_BUFFER_H_ */
 760 #endif /* GLX_SGIX_dmbuffer */
 761 
 762 #ifndef GLX_SGIX_fbconfig
 763 #define GLX_SGIX_fbconfig 1
 764 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
 765 #define GLX_WINDOW_BIT_SGIX               0x00000001
 766 #define GLX_PIXMAP_BIT_SGIX               0x00000002
 767 #define GLX_RGBA_BIT_SGIX                 0x00000001
 768 #define GLX_COLOR_INDEX_BIT_SGIX          0x00000002
 769 #define GLX_DRAWABLE_TYPE_SGIX            0x8010
 770 #define GLX_RENDER_TYPE_SGIX              0x8011
 771 #define GLX_X_RENDERABLE_SGIX             0x8012
 772 #define GLX_FBCONFIG_ID_SGIX              0x8013
 773 #define GLX_RGBA_TYPE_SGIX                0x8014
 774 #define GLX_COLOR_INDEX_TYPE_SGIX         0x8015
 775 typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
 776 typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
 777 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
 778 typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
 779 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
 780 typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
 781 #ifdef GLX_GLXEXT_PROTOTYPES
 782 int glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
 783 GLXFBConfigSGIX *glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements);
 784 GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
 785 GLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
 786 XVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config);
 787 GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis);
 788 #endif
 789 #endif /* GLX_SGIX_fbconfig */
 790 
 791 #ifndef GLX_SGIX_hyperpipe
 792 #define GLX_SGIX_hyperpipe 1
 793 typedef struct {
 794     char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
 795     int     networkId;
 796 } GLXHyperpipeNetworkSGIX;
 797 typedef struct {
 798     char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
 799     int     channel;
 800     unsigned int participationType;
 801     int     timeSlice;
 802 } GLXHyperpipeConfigSGIX;
 803 typedef struct {
 804     char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
 805     int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
 806     int destXOrigin, destYOrigin, destWidth, destHeight;
 807 } GLXPipeRect;
 808 typedef struct {
 809     char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
 810     int XOrigin, YOrigin, maxHeight, maxWidth;
 811 } GLXPipeRectLimits;
 812 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
 813 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX     91
 814 #define GLX_BAD_HYPERPIPE_SGIX            92
 815 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX   0x00000001
 816 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX    0x00000002
 817 #define GLX_PIPE_RECT_SGIX                0x00000001
 818 #define GLX_PIPE_RECT_LIMITS_SGIX         0x00000002
 819 #define GLX_HYPERPIPE_STEREO_SGIX         0x00000003
 820 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX  0x00000004
 821 #define GLX_HYPERPIPE_ID_SGIX             0x8030
 822 typedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
 823 typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
 824 typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
 825 typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
 826 typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
 827 typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
 828 typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
 829 typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
 830 #ifdef GLX_GLXEXT_PROTOTYPES
 831 GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes);
 832 int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
 833 GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes);
 834 int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId);
 835 int glXBindHyperpipeSGIX (Display *dpy, int hpId);
 836 int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
 837 int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
 838 int glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
 839 #endif
 840 #endif /* GLX_SGIX_hyperpipe */
 841 
 842 #ifndef GLX_SGIX_pbuffer
 843 #define GLX_SGIX_pbuffer 1
 844 #define GLX_PBUFFER_BIT_SGIX              0x00000004
 845 #define GLX_BUFFER_CLOBBER_MASK_SGIX      0x08000000
 846 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX    0x00000001
 847 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX   0x00000002
 848 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX     0x00000004
 849 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX    0x00000008
 850 #define GLX_AUX_BUFFERS_BIT_SGIX          0x00000010
 851 #define GLX_DEPTH_BUFFER_BIT_SGIX         0x00000020
 852 #define GLX_STENCIL_BUFFER_BIT_SGIX       0x00000040
 853 #define GLX_ACCUM_BUFFER_BIT_SGIX         0x00000080
 854 #define GLX_SAMPLE_BUFFERS_BIT_SGIX       0x00000100
 855 #define GLX_MAX_PBUFFER_WIDTH_SGIX        0x8016
 856 #define GLX_MAX_PBUFFER_HEIGHT_SGIX       0x8017
 857 #define GLX_MAX_PBUFFER_PIXELS_SGIX       0x8018
 858 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX    0x8019
 859 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX   0x801A
 860 #define GLX_PRESERVED_CONTENTS_SGIX       0x801B
 861 #define GLX_LARGEST_PBUFFER_SGIX          0x801C
 862 #define GLX_WIDTH_SGIX                    0x801D
 863 #define GLX_HEIGHT_SGIX                   0x801E
 864 #define GLX_EVENT_MASK_SGIX               0x801F
 865 #define GLX_DAMAGED_SGIX                  0x8020
 866 #define GLX_SAVED_SGIX                    0x8021
 867 #define GLX_WINDOW_SGIX                   0x8022
 868 #define GLX_PBUFFER_SGIX                  0x8023
 869 typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
 870 typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
 871 typedef int ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
 872 typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
 873 typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
 874 #ifdef GLX_GLXEXT_PROTOTYPES
 875 GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
 876 void glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf);
 877 int glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
 878 void glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask);
 879 void glXGetSelectedEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long *mask);
 880 #endif
 881 #endif /* GLX_SGIX_pbuffer */
 882 
 883 #ifndef GLX_SGIX_swap_barrier
 884 #define GLX_SGIX_swap_barrier 1
 885 typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
 886 typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
 887 #ifdef GLX_GLXEXT_PROTOTYPES
 888 void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier);
 889 Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max);
 890 #endif
 891 #endif /* GLX_SGIX_swap_barrier */
 892 
 893 #ifndef GLX_SGIX_swap_group
 894 #define GLX_SGIX_swap_group 1
 895 typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
 896 #ifdef GLX_GLXEXT_PROTOTYPES
 897 void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member);
 898 #endif
 899 #endif /* GLX_SGIX_swap_group */
 900 
 901 #ifndef GLX_SGIX_video_resize
 902 #define GLX_SGIX_video_resize 1
 903 #define GLX_SYNC_FRAME_SGIX               0x00000000
 904 #define GLX_SYNC_SWAP_SGIX                0x00000001
 905 typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
 906 typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
 907 typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
 908 typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
 909 typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
 910 #ifdef GLX_GLXEXT_PROTOTYPES
 911 int glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window);
 912 int glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h);
 913 int glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
 914 int glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
 915 int glXChannelRectSyncSGIX (Display *display, int screen, int channel, GLenum synctype);
 916 #endif
 917 #endif /* GLX_SGIX_video_resize */
 918 
 919 #ifndef GLX_SGIX_video_source
 920 #define GLX_SGIX_video_source 1
 921 typedef XID GLXVideoSourceSGIX;
 922 #ifdef _VL_H
 923 typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
 924 typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
 925 #ifdef GLX_GLXEXT_PROTOTYPES
 926 GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
 927 void glXDestroyGLXVideoSourceSGIX (Display *dpy, GLXVideoSourceSGIX glxvideosource);
 928 #endif
 929 #endif /* _VL_H */
 930 #endif /* GLX_SGIX_video_source */
 931 
 932 #ifndef GLX_SGIX_visual_select_group
 933 #define GLX_SGIX_visual_select_group 1
 934 #define GLX_VISUAL_SELECT_GROUP_SGIX      0x8028
 935 #endif /* GLX_SGIX_visual_select_group */
 936 
 937 #ifndef GLX_SGI_cushion
 938 #define GLX_SGI_cushion 1
 939 typedef void ( *PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
 940 #ifdef GLX_GLXEXT_PROTOTYPES
 941 void glXCushionSGI (Display *dpy, Window window, float cushion);
 942 #endif
 943 #endif /* GLX_SGI_cushion */
 944 
 945 #ifndef GLX_SGI_make_current_read
 946 #define GLX_SGI_make_current_read 1
 947 typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
 948 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
 949 #ifdef GLX_GLXEXT_PROTOTYPES
 950 Bool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
 951 GLXDrawable glXGetCurrentReadDrawableSGI (void);
 952 #endif
 953 #endif /* GLX_SGI_make_current_read */
 954 
 955 #ifndef GLX_SGI_swap_control
 956 #define GLX_SGI_swap_control 1
 957 typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval);
 958 #ifdef GLX_GLXEXT_PROTOTYPES
 959 int glXSwapIntervalSGI (int interval);
 960 #endif
 961 #endif /* GLX_SGI_swap_control */
 962 
 963 #ifndef GLX_SGI_video_sync
 964 #define GLX_SGI_video_sync 1
 965 typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
 966 typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
 967 #ifdef GLX_GLXEXT_PROTOTYPES
 968 int glXGetVideoSyncSGI (unsigned int *count);
 969 int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count);
 970 #endif
 971 #endif /* GLX_SGI_video_sync */
 972 
 973 /*
 974  * JDK modification
 975  * REMIND: This is a Sun-private constant used to get the gamma value for
 976  *         a GLXFBConfig.  This was never publically documented as part of
 977  *         a Sun extension, and therefore never ended up in the official SGI
 978  *         glxext.h header file, so we've copied it here from the Sun OpenGL
 979  *         headers (glxtokens.h).
 980  */
 981 #define GLX_GAMMA_VALUE_SUN                0x8173
 982 
 983 #ifndef GLX_SUN_get_transparent_index
 984 #define GLX_SUN_get_transparent_index 1
 985 typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
 986 #ifdef GLX_GLXEXT_PROTOTYPES
 987 Status glXGetTransparentIndexSUN (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
 988 #endif
 989 #endif /* GLX_SUN_get_transparent_index */
 990 
 991 #ifdef __cplusplus
 992 }
 993 #endif
 994 
 995 #endif