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 20190911
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_context_priority
313 #define GLX_EXT_context_priority 1
314 #define GLX_CONTEXT_PRIORITY_LEVEL_EXT    0x3100
315 #define GLX_CONTEXT_PRIORITY_HIGH_EXT     0x3101
316 #define GLX_CONTEXT_PRIORITY_MEDIUM_EXT   0x3102
317 #define GLX_CONTEXT_PRIORITY_LOW_EXT      0x3103
318 #endif /* GLX_EXT_context_priority */
319 
320 #ifndef GLX_EXT_create_context_es2_profile
321 #define GLX_EXT_create_context_es2_profile 1
322 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT   0x00000004
323 #endif /* GLX_EXT_create_context_es2_profile */
324 
325 #ifndef GLX_EXT_create_context_es_profile
326 #define GLX_EXT_create_context_es_profile 1
327 #define GLX_CONTEXT_ES_PROFILE_BIT_EXT    0x00000004
328 #endif /* GLX_EXT_create_context_es_profile */
329 
330 #ifndef GLX_EXT_fbconfig_packed_float
331 #define GLX_EXT_fbconfig_packed_float 1
332 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT  0x20B1
333 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT   0x00000008
334 #endif /* GLX_EXT_fbconfig_packed_float */
335 
336 #ifndef GLX_EXT_framebuffer_sRGB
337 #define GLX_EXT_framebuffer_sRGB 1
338 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT  0x20B2
339 #endif /* GLX_EXT_framebuffer_sRGB */
340 
341 #ifndef GLX_EXT_import_context
342 #define GLX_EXT_import_context 1
343 #define GLX_SHARE_CONTEXT_EXT             0x800A
344 #define GLX_VISUAL_ID_EXT                 0x800B
345 #define GLX_SCREEN_EXT                    0x800C
346 typedef Display *( *PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
347 typedef int ( *PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
348 typedef GLXContextID ( *PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
349 typedef GLXContext ( *PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
350 typedef void ( *PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
351 #ifdef GLX_GLXEXT_PROTOTYPES
352 Display *glXGetCurrentDisplayEXT (void);
353 int glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value);
354 GLXContextID glXGetContextIDEXT (const GLXContext context);
355 GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID);
356 void glXFreeContextEXT (Display *dpy, GLXContext context);
357 #endif
358 #endif /* GLX_EXT_import_context */
359 
360 #ifndef GLX_EXT_libglvnd
361 #define GLX_EXT_libglvnd 1
362 #define GLX_VENDOR_NAMES_EXT              0x20F6
363 #endif /* GLX_EXT_libglvnd */
364 
365 #ifndef GLX_EXT_no_config_context
366 #define GLX_EXT_no_config_context 1
367 #endif /* GLX_EXT_no_config_context */
368 
369 #ifndef GLX_EXT_stereo_tree
370 #define GLX_EXT_stereo_tree 1
371 typedef struct {
372     int type;
373     unsigned long serial;
374     Bool send_event;
375     Display *display;
376     int extension;
377     int evtype;
378     GLXDrawable window;
379     Bool stereo_tree;
380 } GLXStereoNotifyEventEXT;
381 #define GLX_STEREO_TREE_EXT               0x20F5
382 #define GLX_STEREO_NOTIFY_MASK_EXT        0x00000001
383 #define GLX_STEREO_NOTIFY_EXT             0x00000000
384 #endif /* GLX_EXT_stereo_tree */
385 
386 #ifndef GLX_EXT_swap_control
387 #define GLX_EXT_swap_control 1
388 #define GLX_SWAP_INTERVAL_EXT             0x20F1
389 #define GLX_MAX_SWAP_INTERVAL_EXT         0x20F2
390 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
391 #ifdef GLX_GLXEXT_PROTOTYPES
392 void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
393 #endif
394 #endif /* GLX_EXT_swap_control */
395 
396 #ifndef GLX_EXT_swap_control_tear
397 #define GLX_EXT_swap_control_tear 1
398 #define GLX_LATE_SWAPS_TEAR_EXT           0x20F3
399 #endif /* GLX_EXT_swap_control_tear */
400 
401 #ifndef GLX_EXT_texture_from_pixmap
402 #define GLX_EXT_texture_from_pixmap 1
403 #define GLX_TEXTURE_1D_BIT_EXT            0x00000001
404 #define GLX_TEXTURE_2D_BIT_EXT            0x00000002
405 #define GLX_TEXTURE_RECTANGLE_BIT_EXT     0x00000004
406 #define GLX_BIND_TO_TEXTURE_RGB_EXT       0x20D0
407 #define GLX_BIND_TO_TEXTURE_RGBA_EXT      0x20D1
408 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT    0x20D2
409 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT   0x20D3
410 #define GLX_Y_INVERTED_EXT                0x20D4
411 #define GLX_TEXTURE_FORMAT_EXT            0x20D5
412 #define GLX_TEXTURE_TARGET_EXT            0x20D6
413 #define GLX_MIPMAP_TEXTURE_EXT            0x20D7
414 #define GLX_TEXTURE_FORMAT_NONE_EXT       0x20D8
415 #define GLX_TEXTURE_FORMAT_RGB_EXT        0x20D9
416 #define GLX_TEXTURE_FORMAT_RGBA_EXT       0x20DA
417 #define GLX_TEXTURE_1D_EXT                0x20DB
418 #define GLX_TEXTURE_2D_EXT                0x20DC
419 #define GLX_TEXTURE_RECTANGLE_EXT         0x20DD
420 #define GLX_FRONT_LEFT_EXT                0x20DE
421 #define GLX_FRONT_RIGHT_EXT               0x20DF
422 #define GLX_BACK_LEFT_EXT                 0x20E0
423 #define GLX_BACK_RIGHT_EXT                0x20E1
424 #define GLX_FRONT_EXT                     0x20DE
425 #define GLX_BACK_EXT                      0x20E0
426 #define GLX_AUX0_EXT                      0x20E2
427 #define GLX_AUX1_EXT                      0x20E3
428 #define GLX_AUX2_EXT                      0x20E4
429 #define GLX_AUX3_EXT                      0x20E5
430 #define GLX_AUX4_EXT                      0x20E6
431 #define GLX_AUX5_EXT                      0x20E7
432 #define GLX_AUX6_EXT                      0x20E8
433 #define GLX_AUX7_EXT                      0x20E9
434 #define GLX_AUX8_EXT                      0x20EA
435 #define GLX_AUX9_EXT                      0x20EB
436 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
437 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
438 #ifdef GLX_GLXEXT_PROTOTYPES
439 void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
440 void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
441 #endif
442 #endif /* GLX_EXT_texture_from_pixmap */
443 
444 #ifndef GLX_EXT_visual_info
445 #define GLX_EXT_visual_info 1
446 #define GLX_X_VISUAL_TYPE_EXT             0x22
447 #define GLX_TRANSPARENT_TYPE_EXT          0x23
448 #define GLX_TRANSPARENT_INDEX_VALUE_EXT   0x24
449 #define GLX_TRANSPARENT_RED_VALUE_EXT     0x25
450 #define GLX_TRANSPARENT_GREEN_VALUE_EXT   0x26
451 #define GLX_TRANSPARENT_BLUE_VALUE_EXT    0x27
452 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT   0x28
453 #define GLX_NONE_EXT                      0x8000
454 #define GLX_TRUE_COLOR_EXT                0x8002
455 #define GLX_DIRECT_COLOR_EXT              0x8003
456 #define GLX_PSEUDO_COLOR_EXT              0x8004
457 #define GLX_STATIC_COLOR_EXT              0x8005
458 #define GLX_GRAY_SCALE_EXT                0x8006
459 #define GLX_STATIC_GRAY_EXT               0x8007
460 #define GLX_TRANSPARENT_RGB_EXT           0x8008
461 #define GLX_TRANSPARENT_INDEX_EXT         0x8009
462 #endif /* GLX_EXT_visual_info */
463 
464 #ifndef GLX_EXT_visual_rating
465 #define GLX_EXT_visual_rating 1
466 #define GLX_VISUAL_CAVEAT_EXT             0x20
467 #define GLX_SLOW_VISUAL_EXT               0x8001
468 #define GLX_NON_CONFORMANT_VISUAL_EXT     0x800D
469 #endif /* GLX_EXT_visual_rating */
470 
471 #ifndef GLX_INTEL_swap_event
472 #define GLX_INTEL_swap_event 1
473 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
474 #define GLX_EXCHANGE_COMPLETE_INTEL       0x8180
475 #define GLX_COPY_COMPLETE_INTEL           0x8181
476 #define GLX_FLIP_COMPLETE_INTEL           0x8182
477 #endif /* GLX_INTEL_swap_event */
478 
479 #ifndef GLX_MESA_agp_offset
480 #define GLX_MESA_agp_offset 1
481 typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
482 #ifdef GLX_GLXEXT_PROTOTYPES
483 unsigned int glXGetAGPOffsetMESA (const void *pointer);
484 #endif
485 #endif /* GLX_MESA_agp_offset */
486 
487 #ifndef GLX_MESA_copy_sub_buffer
488 #define GLX_MESA_copy_sub_buffer 1
489 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
490 #ifdef GLX_GLXEXT_PROTOTYPES
491 void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
492 #endif
493 #endif /* GLX_MESA_copy_sub_buffer */
494 
495 #ifndef GLX_MESA_pixmap_colormap
496 #define GLX_MESA_pixmap_colormap 1
497 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
498 #ifdef GLX_GLXEXT_PROTOTYPES
499 GLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
500 #endif
501 #endif /* GLX_MESA_pixmap_colormap */
502 
503 #ifndef GLX_MESA_query_renderer
504 #define GLX_MESA_query_renderer 1
505 #define GLX_RENDERER_VENDOR_ID_MESA       0x8183
506 #define GLX_RENDERER_DEVICE_ID_MESA       0x8184
507 #define GLX_RENDERER_VERSION_MESA         0x8185
508 #define GLX_RENDERER_ACCELERATED_MESA     0x8186
509 #define GLX_RENDERER_VIDEO_MEMORY_MESA    0x8187
510 #define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
511 #define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
512 #define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
513 #define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
514 #define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
515 #define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
516 typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
517 typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
518 typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
519 typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
520 #ifdef GLX_GLXEXT_PROTOTYPES
521 Bool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value);
522 const char *glXQueryCurrentRendererStringMESA (int attribute);
523 Bool glXQueryRendererIntegerMESA (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
524 const char *glXQueryRendererStringMESA (Display *dpy, int screen, int renderer, int attribute);
525 #endif
526 #endif /* GLX_MESA_query_renderer */
527 
528 #ifndef GLX_MESA_release_buffers
529 #define GLX_MESA_release_buffers 1
530 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
531 #ifdef GLX_GLXEXT_PROTOTYPES
532 Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
533 #endif
534 #endif /* GLX_MESA_release_buffers */
535 
536 #ifndef GLX_MESA_set_3dfx_mode
537 #define GLX_MESA_set_3dfx_mode 1
538 #define GLX_3DFX_WINDOW_MODE_MESA         0x1
539 #define GLX_3DFX_FULLSCREEN_MODE_MESA     0x2
540 typedef GLboolean ( *PFNGLXSET3DFXMODEMESAPROC) (GLint mode);
541 #ifdef GLX_GLXEXT_PROTOTYPES
542 GLboolean glXSet3DfxModeMESA (GLint mode);
543 #endif
544 #endif /* GLX_MESA_set_3dfx_mode */
545 
546 #ifndef GLX_MESA_swap_control
547 #define GLX_MESA_swap_control 1
548 typedef int ( *PFNGLXGETSWAPINTERVALMESAPROC) (void);
549 typedef int ( *PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval);
550 #ifdef GLX_GLXEXT_PROTOTYPES
551 int glXGetSwapIntervalMESA (void);
552 int glXSwapIntervalMESA (unsigned int interval);
553 #endif
554 #endif /* GLX_MESA_swap_control */
555 
556 #ifndef GLX_NV_copy_buffer
557 #define GLX_NV_copy_buffer 1
558 typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
559 typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
560 #ifdef GLX_GLXEXT_PROTOTYPES
561 void glXCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
562 void glXNamedCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
563 #endif
564 #endif /* GLX_NV_copy_buffer */
565 
566 #ifndef GLX_NV_copy_image
567 #define GLX_NV_copy_image 1
568 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);
569 #ifdef GLX_GLXEXT_PROTOTYPES
570 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);
571 #endif
572 #endif /* GLX_NV_copy_image */
573 
574 #ifndef GLX_NV_delay_before_swap
575 #define GLX_NV_delay_before_swap 1
576 typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (Display *dpy, GLXDrawable drawable, GLfloat seconds);
577 #ifdef GLX_GLXEXT_PROTOTYPES
578 Bool glXDelayBeforeSwapNV (Display *dpy, GLXDrawable drawable, GLfloat seconds);
579 #endif
580 #endif /* GLX_NV_delay_before_swap */
581 
582 #ifndef GLX_NV_float_buffer
583 #define GLX_NV_float_buffer 1
584 #define GLX_FLOAT_COMPONENTS_NV           0x20B0
585 #endif /* GLX_NV_float_buffer */
586 
587 #ifndef GLX_NV_multigpu_context
588 #define GLX_NV_multigpu_context 1
589 #define GLX_CONTEXT_MULTIGPU_ATTRIB_NV    0x20AA
590 #define GLX_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB
591 #define GLX_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC
592 #define GLX_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD
593 #define GLX_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE
594 #endif /* GLX_NV_multigpu_context */
595 
596 #ifndef GLX_NV_multisample_coverage
597 #define GLX_NV_multisample_coverage 1
598 #define GLX_COVERAGE_SAMPLES_NV           100001
599 #define GLX_COLOR_SAMPLES_NV              0x20B3
600 #endif /* GLX_NV_multisample_coverage */
601 
602 #ifndef GLX_NV_present_video
603 #define GLX_NV_present_video 1
604 #define GLX_NUM_VIDEO_SLOTS_NV            0x20F0
605 typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
606 typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
607 #ifdef GLX_GLXEXT_PROTOTYPES
608 unsigned int *glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements);
609 int glXBindVideoDeviceNV (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
610 #endif
611 #endif /* GLX_NV_present_video */
612 
613 #ifndef GLX_NV_robustness_video_memory_purge
614 #define GLX_NV_robustness_video_memory_purge 1
615 #define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7
616 #endif /* GLX_NV_robustness_video_memory_purge */
617 
618 #ifndef GLX_NV_swap_group
619 #define GLX_NV_swap_group 1
620 typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
621 typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
622 typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
623 typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
624 typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
625 typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
626 #ifdef GLX_GLXEXT_PROTOTYPES
627 Bool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group);
628 Bool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier);
629 Bool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
630 Bool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
631 Bool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count);
632 Bool glXResetFrameCountNV (Display *dpy, int screen);
633 #endif
634 #endif /* GLX_NV_swap_group */
635 
636 #ifndef GLX_NV_video_capture
637 #define GLX_NV_video_capture 1
638 typedef XID GLXVideoCaptureDeviceNV;
639 #define GLX_DEVICE_ID_NV                  0x20CD
640 #define GLX_UNIQUE_ID_NV                  0x20CE
641 #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV    0x20CF
642 typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
643 typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
644 typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
645 typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
646 typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
647 #ifdef GLX_GLXEXT_PROTOTYPES
648 int glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
649 GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements);
650 void glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
651 int glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
652 void glXReleaseVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
653 #endif
654 #endif /* GLX_NV_video_capture */
655 
656 #ifndef GLX_NV_video_out
657 #define GLX_NV_video_out 1
658 typedef unsigned int GLXVideoDeviceNV;
659 #define GLX_VIDEO_OUT_COLOR_NV            0x20C3
660 #define GLX_VIDEO_OUT_ALPHA_NV            0x20C4
661 #define GLX_VIDEO_OUT_DEPTH_NV            0x20C5
662 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV  0x20C6
663 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV  0x20C7
664 #define GLX_VIDEO_OUT_FRAME_NV            0x20C8
665 #define GLX_VIDEO_OUT_FIELD_1_NV          0x20C9
666 #define GLX_VIDEO_OUT_FIELD_2_NV          0x20CA
667 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
668 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
669 typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
670 typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
671 typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
672 typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
673 typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
674 typedef int ( *PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
675 #ifdef GLX_GLXEXT_PROTOTYPES
676 int glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
677 int glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
678 int glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
679 int glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf);
680 int glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
681 int glXGetVideoInfoNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
682 #endif
683 #endif /* GLX_NV_video_out */
684 
685 #ifndef GLX_OML_swap_method
686 #define GLX_OML_swap_method 1
687 #define GLX_SWAP_METHOD_OML               0x8060
688 #define GLX_SWAP_EXCHANGE_OML             0x8061
689 #define GLX_SWAP_COPY_OML                 0x8062
690 #define GLX_SWAP_UNDEFINED_OML            0x8063
691 #endif /* GLX_OML_swap_method */
692 
693 #ifndef GLX_OML_sync_control
694 #define GLX_OML_sync_control 1
695 #ifndef GLEXT_64_TYPES_DEFINED
696 /* This code block is duplicated in glext.h, so must be protected */
697 #define GLEXT_64_TYPES_DEFINED
698 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
699 /* (as used in the GLX_OML_sync_control extension). */
700 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
701 #include <inttypes.h>
702 #elif defined(__sun__) || defined(__digital__)
703 #include <inttypes.h>
704 #if defined(__STDC__)
705 #if defined(__arch64__) || defined(_LP64)
706 typedef long int int64_t;
707 typedef unsigned long int uint64_t;
708 #else
709 typedef long long int int64_t;
710 typedef unsigned long long int uint64_t;
711 #endif /* __arch64__ */
712 #endif /* __STDC__ */
713 #elif defined( __VMS ) || defined(__sgi)
714 #include <inttypes.h>
715 #elif defined(__SCO__) || defined(__USLC__)
716 #include <stdint.h>
717 #elif defined(__UNIXOS2__) || defined(__SOL64__)
718 typedef long int int32_t;
719 typedef long long int int64_t;
720 typedef unsigned long long int uint64_t;
721 #elif defined(_WIN32) && defined(__GNUC__)
722 #include <stdint.h>
723 #elif defined(_WIN32)
724 typedef __int32 int32_t;
725 typedef __int64 int64_t;
726 typedef unsigned __int64 uint64_t;
727 #else
728 /* Fallback if nothing above works */
729 #include <inttypes.h>
730 #endif
731 #endif
732 typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
733 typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
734 typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
735 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);
736 typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
737 #ifdef GLX_GLXEXT_PROTOTYPES
738 Bool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
739 Bool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
740 int64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
741 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);
742 Bool glXWaitForSbcOML (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
743 #endif
744 #endif /* GLX_OML_sync_control */
745 
746 #ifndef GLX_SGIS_blended_overlay
747 #define GLX_SGIS_blended_overlay 1
748 #define GLX_BLENDED_RGBA_SGIS             0x8025
749 #endif /* GLX_SGIS_blended_overlay */
750 
751 #ifndef GLX_SGIS_multisample
752 #define GLX_SGIS_multisample 1
753 #define GLX_SAMPLE_BUFFERS_SGIS           100000
754 #define GLX_SAMPLES_SGIS                  100001
755 #endif /* GLX_SGIS_multisample */
756 
757 #ifndef GLX_SGIS_shared_multisample
758 #define GLX_SGIS_shared_multisample 1
759 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
760 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
761 #endif /* GLX_SGIS_shared_multisample */
762 
763 #ifndef GLX_SGIX_dmbuffer
764 #define GLX_SGIX_dmbuffer 1
765 typedef XID GLXPbufferSGIX;
766 #ifdef _DM_BUFFER_H_
767 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX    0x8024
768 typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
769 #ifdef GLX_GLXEXT_PROTOTYPES
770 Bool glXAssociateDMPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
771 #endif
772 #endif /* _DM_BUFFER_H_ */
773 #endif /* GLX_SGIX_dmbuffer */
774 
775 #ifndef GLX_SGIX_fbconfig
776 #define GLX_SGIX_fbconfig 1
777 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
778 #define GLX_WINDOW_BIT_SGIX               0x00000001
779 #define GLX_PIXMAP_BIT_SGIX               0x00000002
780 #define GLX_RGBA_BIT_SGIX                 0x00000001
781 #define GLX_COLOR_INDEX_BIT_SGIX          0x00000002
782 #define GLX_DRAWABLE_TYPE_SGIX            0x8010
783 #define GLX_RENDER_TYPE_SGIX              0x8011
784 #define GLX_X_RENDERABLE_SGIX             0x8012
785 #define GLX_FBCONFIG_ID_SGIX              0x8013
786 #define GLX_RGBA_TYPE_SGIX                0x8014
787 #define GLX_COLOR_INDEX_TYPE_SGIX         0x8015
788 typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
789 typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
790 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
791 typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
792 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
793 typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
794 #ifdef GLX_GLXEXT_PROTOTYPES
795 int glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
796 GLXFBConfigSGIX *glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements);
797 GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
798 GLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
799 XVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config);
800 GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis);
801 #endif
802 #endif /* GLX_SGIX_fbconfig */
803 
804 #ifndef GLX_SGIX_hyperpipe
805 #define GLX_SGIX_hyperpipe 1
806 typedef struct {
807     char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
808     int     networkId;
809 } GLXHyperpipeNetworkSGIX;
810 typedef struct {
811     char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
812     int     channel;
813     unsigned int participationType;
814     int     timeSlice;
815 } GLXHyperpipeConfigSGIX;
816 typedef struct {
817     char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
818     int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
819     int destXOrigin, destYOrigin, destWidth, destHeight;
820 } GLXPipeRect;
821 typedef struct {
822     char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
823     int XOrigin, YOrigin, maxHeight, maxWidth;
824 } GLXPipeRectLimits;
825 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
826 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX     91
827 #define GLX_BAD_HYPERPIPE_SGIX            92
828 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX   0x00000001
829 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX    0x00000002
830 #define GLX_PIPE_RECT_SGIX                0x00000001
831 #define GLX_PIPE_RECT_LIMITS_SGIX         0x00000002
832 #define GLX_HYPERPIPE_STEREO_SGIX         0x00000003
833 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX  0x00000004
834 #define GLX_HYPERPIPE_ID_SGIX             0x8030
835 typedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
836 typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
837 typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
838 typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
839 typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
840 typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
841 typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
842 typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
843 #ifdef GLX_GLXEXT_PROTOTYPES
844 GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes);
845 int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
846 GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes);
847 int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId);
848 int glXBindHyperpipeSGIX (Display *dpy, int hpId);
849 int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
850 int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
851 int glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
852 #endif
853 #endif /* GLX_SGIX_hyperpipe */
854 
855 #ifndef GLX_SGIX_pbuffer
856 #define GLX_SGIX_pbuffer 1
857 #define GLX_PBUFFER_BIT_SGIX              0x00000004
858 #define GLX_BUFFER_CLOBBER_MASK_SGIX      0x08000000
859 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX    0x00000001
860 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX   0x00000002
861 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX     0x00000004
862 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX    0x00000008
863 #define GLX_AUX_BUFFERS_BIT_SGIX          0x00000010
864 #define GLX_DEPTH_BUFFER_BIT_SGIX         0x00000020
865 #define GLX_STENCIL_BUFFER_BIT_SGIX       0x00000040
866 #define GLX_ACCUM_BUFFER_BIT_SGIX         0x00000080
867 #define GLX_SAMPLE_BUFFERS_BIT_SGIX       0x00000100
868 #define GLX_MAX_PBUFFER_WIDTH_SGIX        0x8016
869 #define GLX_MAX_PBUFFER_HEIGHT_SGIX       0x8017
870 #define GLX_MAX_PBUFFER_PIXELS_SGIX       0x8018
871 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX    0x8019
872 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX   0x801A
873 #define GLX_PRESERVED_CONTENTS_SGIX       0x801B
874 #define GLX_LARGEST_PBUFFER_SGIX          0x801C
875 #define GLX_WIDTH_SGIX                    0x801D
876 #define GLX_HEIGHT_SGIX                   0x801E
877 #define GLX_EVENT_MASK_SGIX               0x801F
878 #define GLX_DAMAGED_SGIX                  0x8020
879 #define GLX_SAVED_SGIX                    0x8021
880 #define GLX_WINDOW_SGIX                   0x8022
881 #define GLX_PBUFFER_SGIX                  0x8023
882 typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
883 typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
884 typedef void ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
885 typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
886 typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
887 #ifdef GLX_GLXEXT_PROTOTYPES
888 GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
889 void glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf);
890 void glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
891 void glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask);
892 void glXGetSelectedEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long *mask);
893 #endif
894 #endif /* GLX_SGIX_pbuffer */
895 
896 #ifndef GLX_SGIX_swap_barrier
897 #define GLX_SGIX_swap_barrier 1
898 typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
899 typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
900 #ifdef GLX_GLXEXT_PROTOTYPES
901 void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier);
902 Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max);
903 #endif
904 #endif /* GLX_SGIX_swap_barrier */
905 
906 #ifndef GLX_SGIX_swap_group
907 #define GLX_SGIX_swap_group 1
908 typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
909 #ifdef GLX_GLXEXT_PROTOTYPES
910 void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member);
911 #endif
912 #endif /* GLX_SGIX_swap_group */
913 
914 #ifndef GLX_SGIX_video_resize
915 #define GLX_SGIX_video_resize 1
916 #define GLX_SYNC_FRAME_SGIX               0x00000000
917 #define GLX_SYNC_SWAP_SGIX                0x00000001
918 typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
919 typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
920 typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
921 typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
922 typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
923 #ifdef GLX_GLXEXT_PROTOTYPES
924 int glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window);
925 int glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h);
926 int glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
927 int glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
928 int glXChannelRectSyncSGIX (Display *display, int screen, int channel, GLenum synctype);
929 #endif
930 #endif /* GLX_SGIX_video_resize */
931 
932 #ifndef GLX_SGIX_video_source
933 #define GLX_SGIX_video_source 1
934 typedef XID GLXVideoSourceSGIX;
935 #ifdef _VL_H
936 typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
937 typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
938 #ifdef GLX_GLXEXT_PROTOTYPES
939 GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
940 void glXDestroyGLXVideoSourceSGIX (Display *dpy, GLXVideoSourceSGIX glxvideosource);
941 #endif
942 #endif /* _VL_H */
943 #endif /* GLX_SGIX_video_source */
944 
945 #ifndef GLX_SGIX_visual_select_group
946 #define GLX_SGIX_visual_select_group 1
947 #define GLX_VISUAL_SELECT_GROUP_SGIX      0x8028
948 #endif /* GLX_SGIX_visual_select_group */
949 
950 #ifndef GLX_SGI_cushion
951 #define GLX_SGI_cushion 1
952 typedef void ( *PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
953 #ifdef GLX_GLXEXT_PROTOTYPES
954 void glXCushionSGI (Display *dpy, Window window, float cushion);
955 #endif
956 #endif /* GLX_SGI_cushion */
957 
958 #ifndef GLX_SGI_make_current_read
959 #define GLX_SGI_make_current_read 1
960 typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
961 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
962 #ifdef GLX_GLXEXT_PROTOTYPES
963 Bool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
964 GLXDrawable glXGetCurrentReadDrawableSGI (void);
965 #endif
966 #endif /* GLX_SGI_make_current_read */
967 
968 #ifndef GLX_SGI_swap_control
969 #define GLX_SGI_swap_control 1
970 typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval);
971 #ifdef GLX_GLXEXT_PROTOTYPES
972 int glXSwapIntervalSGI (int interval);
973 #endif
974 #endif /* GLX_SGI_swap_control */
975 
976 #ifndef GLX_SGI_video_sync
977 #define GLX_SGI_video_sync 1
978 typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
979 typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
980 #ifdef GLX_GLXEXT_PROTOTYPES
981 int glXGetVideoSyncSGI (unsigned int *count);
982 int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count);
983 #endif
984 #endif /* GLX_SGI_video_sync */
985 
986 /*
987  * JDK modification
988  * REMIND: This is a Sun-private constant used to get the gamma value for
989  *         a GLXFBConfig.  This was never publically documented as part of
990  *         a Sun extension, and therefore never ended up in the official SGI
991  *         glxext.h header file, so we've copied it here from the Sun OpenGL
992  *         headers (glxtokens.h).
993  */
994 #define GLX_GAMMA_VALUE_SUN                0x8173
995 
996 #ifndef GLX_SUN_get_transparent_index
997 #define GLX_SUN_get_transparent_index 1
998 typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex);
999 #ifdef GLX_GLXEXT_PROTOTYPES
1000 Status glXGetTransparentIndexSUN (Display *dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex);
1001 #endif
1002 #endif /* GLX_SUN_get_transparent_index */
1003 
1004 #ifdef __cplusplus
1005 }
1006 #endif
1007 
1008 #endif
1009