9 ** Copyright (c) 2007-2009 The Khronos Group Inc.
11 ** Permission is hereby granted, free of charge, to any person obtaining a
12 ** copy of this software and/or associated documentation files (the
13 ** "Materials"), to deal in the Materials without restriction, including
14 ** without limitation the rights to use, copy, modify, merge, publish,
15 ** distribute, sublicense, and/or sell copies of the Materials, and to
16 ** permit persons to whom the Materials are furnished to do so, subject to
17 ** the following conditions:
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
31 /* Function declaration macros - to move into glplatform.h */
33 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
34 #define WIN32_LEAN_AND_MEAN 1
42 #define APIENTRYP APIENTRY *
48 /*************************************************************/
50 /* Header file version number, required by OpenGL ABI for Linux */
51 /* glxext.h last updated 2009/08/03 */
52 /* Current version at http://www.opengl.org/registry/ */
53 #define GLX_GLXEXT_VERSION 23
55 #ifndef GLX_VERSION_1_3
56 #define GLX_WINDOW_BIT 0x00000001
57 #define GLX_PIXMAP_BIT 0x00000002
58 #define GLX_PBUFFER_BIT 0x00000004
59 #define GLX_RGBA_BIT 0x00000001
60 #define GLX_COLOR_INDEX_BIT 0x00000002
61 #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
62 #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
63 #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
64 #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
65 #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
66 #define GLX_AUX_BUFFERS_BIT 0x00000010
67 #define GLX_DEPTH_BUFFER_BIT 0x00000020
68 #define GLX_STENCIL_BUFFER_BIT 0x00000040
69 #define GLX_ACCUM_BUFFER_BIT 0x00000080
70 #define GLX_CONFIG_CAVEAT 0x20
71 #define GLX_X_VISUAL_TYPE 0x22
72 #define GLX_TRANSPARENT_TYPE 0x23
73 #define GLX_TRANSPARENT_INDEX_VALUE 0x24
74 #define GLX_TRANSPARENT_RED_VALUE 0x25
75 #define GLX_TRANSPARENT_GREEN_VALUE 0x26
76 #define GLX_TRANSPARENT_BLUE_VALUE 0x27
77 #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
78 #define GLX_DONT_CARE 0xFFFFFFFF
79 #define GLX_NONE 0x8000
80 #define GLX_SLOW_CONFIG 0x8001
81 #define GLX_TRUE_COLOR 0x8002
82 #define GLX_DIRECT_COLOR 0x8003
83 #define GLX_PSEUDO_COLOR 0x8004
84 #define GLX_STATIC_COLOR 0x8005
85 #define GLX_GRAY_SCALE 0x8006
86 #define GLX_STATIC_GRAY 0x8007
87 #define GLX_TRANSPARENT_RGB 0x8008
88 #define GLX_TRANSPARENT_INDEX 0x8009
89 #define GLX_VISUAL_ID 0x800B
90 #define GLX_SCREEN 0x800C
91 #define GLX_NON_CONFORMANT_CONFIG 0x800D
92 #define GLX_DRAWABLE_TYPE 0x8010
93 #define GLX_RENDER_TYPE 0x8011
94 #define GLX_X_RENDERABLE 0x8012
95 #define GLX_FBCONFIG_ID 0x8013
96 #define GLX_RGBA_TYPE 0x8014
97 #define GLX_COLOR_INDEX_TYPE 0x8015
98 #define GLX_MAX_PBUFFER_WIDTH 0x8016
99 #define GLX_MAX_PBUFFER_HEIGHT 0x8017
100 #define GLX_MAX_PBUFFER_PIXELS 0x8018
101 #define GLX_PRESERVED_CONTENTS 0x801B
102 #define GLX_LARGEST_PBUFFER 0x801C
103 #define GLX_WIDTH 0x801D
104 #define GLX_HEIGHT 0x801E
105 #define GLX_EVENT_MASK 0x801F
106 #define GLX_DAMAGED 0x8020
107 #define GLX_SAVED 0x8021
108 #define GLX_WINDOW 0x8022
109 #define GLX_PBUFFER 0x8023
110 #define GLX_PBUFFER_HEIGHT 0x8040
111 #define GLX_PBUFFER_WIDTH 0x8041
114 #ifndef GLX_VERSION_1_4
115 #define GLX_SAMPLE_BUFFERS 100000
116 #define GLX_SAMPLES 100001
119 #ifndef GLX_ARB_get_proc_address
122 #ifndef GLX_ARB_multisample
123 #define GLX_SAMPLE_BUFFERS_ARB 100000
124 #define GLX_SAMPLES_ARB 100001
127 #ifndef GLX_ARB_fbconfig_float
128 #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
129 #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
132 #ifndef GLX_ARB_create_context
133 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
134 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
135 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
136 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
137 #define GLX_CONTEXT_FLAGS_ARB 0x2094
140 #ifndef GLX_ARB_create_context_profile
141 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
142 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
143 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
146 #ifndef GLX_SGIS_multisample
147 #define GLX_SAMPLE_BUFFERS_SGIS 100000
148 #define GLX_SAMPLES_SGIS 100001
151 #ifndef GLX_EXT_visual_info
152 #define GLX_X_VISUAL_TYPE_EXT 0x22
153 #define GLX_TRANSPARENT_TYPE_EXT 0x23
154 #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
155 #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
156 #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
157 #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
158 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
159 #define GLX_NONE_EXT 0x8000
160 #define GLX_TRUE_COLOR_EXT 0x8002
161 #define GLX_DIRECT_COLOR_EXT 0x8003
162 #define GLX_PSEUDO_COLOR_EXT 0x8004
163 #define GLX_STATIC_COLOR_EXT 0x8005
164 #define GLX_GRAY_SCALE_EXT 0x8006
165 #define GLX_STATIC_GRAY_EXT 0x8007
166 #define GLX_TRANSPARENT_RGB_EXT 0x8008
167 #define GLX_TRANSPARENT_INDEX_EXT 0x8009
170 #ifndef GLX_SGI_swap_control
173 #ifndef GLX_SGI_video_sync
176 #ifndef GLX_SGI_make_current_read
179 #ifndef GLX_SGIX_video_source
182 #ifndef GLX_EXT_visual_rating
183 #define GLX_VISUAL_CAVEAT_EXT 0x20
184 #define GLX_SLOW_VISUAL_EXT 0x8001
185 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
186 /* reuse GLX_NONE_EXT */
189 #ifndef GLX_EXT_import_context
190 #define GLX_SHARE_CONTEXT_EXT 0x800A
191 #define GLX_VISUAL_ID_EXT 0x800B
192 #define GLX_SCREEN_EXT 0x800C
195 #ifndef GLX_SGIX_fbconfig
196 #define GLX_WINDOW_BIT_SGIX 0x00000001
197 #define GLX_PIXMAP_BIT_SGIX 0x00000002
198 #define GLX_RGBA_BIT_SGIX 0x00000001
199 #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
200 #define GLX_DRAWABLE_TYPE_SGIX 0x8010
201 #define GLX_RENDER_TYPE_SGIX 0x8011
202 #define GLX_X_RENDERABLE_SGIX 0x8012
203 #define GLX_FBCONFIG_ID_SGIX 0x8013
204 #define GLX_RGBA_TYPE_SGIX 0x8014
205 #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
206 /* reuse GLX_SCREEN_EXT */
209 #ifndef GLX_SGIX_pbuffer
210 #define GLX_PBUFFER_BIT_SGIX 0x00000004
211 #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
212 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
213 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
214 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
215 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
216 #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
217 #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
218 #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
219 #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
220 #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
221 #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
222 #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
223 #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
224 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
225 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
226 #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
227 #define GLX_LARGEST_PBUFFER_SGIX 0x801C
228 #define GLX_WIDTH_SGIX 0x801D
229 #define GLX_HEIGHT_SGIX 0x801E
230 #define GLX_EVENT_MASK_SGIX 0x801F
231 #define GLX_DAMAGED_SGIX 0x8020
232 #define GLX_SAVED_SGIX 0x8021
233 #define GLX_WINDOW_SGIX 0x8022
234 #define GLX_PBUFFER_SGIX 0x8023
237 #ifndef GLX_SGI_cushion
240 #ifndef GLX_SGIX_video_resize
241 #define GLX_SYNC_FRAME_SGIX 0x00000000
242 #define GLX_SYNC_SWAP_SGIX 0x00000001
245 #ifndef GLX_SGIX_dmbuffer
246 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
249 #ifndef GLX_SGIX_swap_group
252 #ifndef GLX_SGIX_swap_barrier
255 #ifndef GLX_SGIS_blended_overlay
256 #define GLX_BLENDED_RGBA_SGIS 0x8025
259 #ifndef GLX_SGIS_shared_multisample
260 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
261 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
264 #ifndef GLX_SUN_get_transparent_index
267 #ifndef GLX_3DFX_multisample
268 #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
269 #define GLX_SAMPLES_3DFX 0x8051
272 #ifndef GLX_MESA_copy_sub_buffer
275 #ifndef GLX_MESA_pixmap_colormap
278 #ifndef GLX_MESA_release_buffers
281 #ifndef GLX_MESA_set_3dfx_mode
282 #define GLX_3DFX_WINDOW_MODE_MESA 0x1
283 #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
286 #ifndef GLX_SGIX_visual_select_group
287 #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
290 #ifndef GLX_OML_swap_method
291 #define GLX_SWAP_METHOD_OML 0x8060
292 #define GLX_SWAP_EXCHANGE_OML 0x8061
293 #define GLX_SWAP_COPY_OML 0x8062
294 #define GLX_SWAP_UNDEFINED_OML 0x8063
297 #ifndef GLX_OML_sync_control
300 #ifndef GLX_NV_float_buffer
301 #define GLX_FLOAT_COMPONENTS_NV 0x20B0
304 #ifndef GLX_SGIX_hyperpipe
305 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
306 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
307 #define GLX_BAD_HYPERPIPE_SGIX 92
308 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
309 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
310 #define GLX_PIPE_RECT_SGIX 0x00000001
311 #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
312 #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
313 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
314 #define GLX_HYPERPIPE_ID_SGIX 0x8030
317 #ifndef GLX_MESA_agp_offset
320 #ifndef GLX_EXT_fbconfig_packed_float
321 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
322 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
325 #ifndef GLX_EXT_framebuffer_sRGB
326 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
329 #ifndef GLX_EXT_texture_from_pixmap
330 #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
331 #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
332 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
333 #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
334 #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
335 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
336 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
337 #define GLX_Y_INVERTED_EXT 0x20D4
338 #define GLX_TEXTURE_FORMAT_EXT 0x20D5
339 #define GLX_TEXTURE_TARGET_EXT 0x20D6
340 #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
341 #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
342 #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
343 #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
344 #define GLX_TEXTURE_1D_EXT 0x20DB
345 #define GLX_TEXTURE_2D_EXT 0x20DC
346 #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
347 #define GLX_FRONT_LEFT_EXT 0x20DE
348 #define GLX_FRONT_RIGHT_EXT 0x20DF
349 #define GLX_BACK_LEFT_EXT 0x20E0
350 #define GLX_BACK_RIGHT_EXT 0x20E1
351 #define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT
352 #define GLX_BACK_EXT GLX_BACK_LEFT_EXT
353 #define GLX_AUX0_EXT 0x20E2
354 #define GLX_AUX1_EXT 0x20E3
355 #define GLX_AUX2_EXT 0x20E4
356 #define GLX_AUX3_EXT 0x20E5
357 #define GLX_AUX4_EXT 0x20E6
358 #define GLX_AUX5_EXT 0x20E7
359 #define GLX_AUX6_EXT 0x20E8
360 #define GLX_AUX7_EXT 0x20E9
361 #define GLX_AUX8_EXT 0x20EA
362 #define GLX_AUX9_EXT 0x20EB
365 #ifndef GLX_NV_present_video
366 #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
369 #ifndef GLX_NV_video_out
370 #define GLX_VIDEO_OUT_COLOR_NV 0x20C3
371 #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
372 #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
373 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
374 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
375 #define GLX_VIDEO_OUT_FRAME_NV 0x20C8
376 #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
377 #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
378 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
379 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
382 #ifndef GLX_NV_swap_group
386 /*************************************************************/
388 #ifndef GLX_ARB_get_proc_address
389 typedef void (*__GLXextFuncPtr
)(void);
392 #ifndef GLX_SGIX_video_source
393 typedef XID GLXVideoSourceSGIX
;
396 #ifndef GLX_SGIX_fbconfig
397 typedef XID GLXFBConfigIDSGIX
;
398 typedef struct __GLXFBConfigRec
*GLXFBConfigSGIX
;
401 #ifndef GLX_SGIX_pbuffer
402 typedef XID GLXPbufferSGIX
;
405 unsigned long serial
; /* # of last request processed by server */
406 Bool send_event
; /* true if this came for SendEvent request */
407 Display
*display
; /* display the event was read from */
408 GLXDrawable drawable
; /* i.d. of Drawable */
409 int event_type
; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
410 int draw_type
; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
411 unsigned int mask
; /* mask indicating which buffers are affected*/
414 int count
; /* if nonzero, at least this many more */
415 } GLXBufferClobberEventSGIX
;
418 #ifndef GLEXT_64_TYPES_DEFINED
419 /* This code block is duplicated in glext.h, so must be protected */
420 #define GLEXT_64_TYPES_DEFINED
421 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
422 /* (as used in the GLX_OML_sync_control extension). */
423 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
424 #include <inttypes.h>
425 #elif defined(__sun__) || defined(__digital__)
426 #include <inttypes.h>
427 #if defined(__STDC__)
428 #if defined(__arch64__) || defined(_LP64)
429 typedef long int int64_t;
430 typedef unsigned long int uint64_t;
432 typedef long long int int64_t;
433 typedef unsigned long long int uint64_t;
434 #endif /* __arch64__ */
435 #endif /* __STDC__ */
436 #elif defined( __VMS ) || defined(__sgi)
437 #include <inttypes.h>
438 #elif defined(__SCO__) || defined(__USLC__)
440 #elif defined(__UNIXOS2__) || defined(__SOL64__)
441 typedef long int int32_t;
442 typedef long long int int64_t;
443 typedef unsigned long long int uint64_t;
444 #elif defined(_WIN32) && defined(__GNUC__)
446 #elif defined(_WIN32)
447 typedef __int32
int32_t;
448 typedef __int64
int64_t;
449 typedef unsigned __int64
uint64_t;
451 #include <inttypes.h> /* Fallback option */
455 #ifndef GLX_VERSION_1_3
456 #define GLX_VERSION_1_3 1
457 #ifdef GLX_GLXEXT_PROTOTYPES
458 extern GLXFBConfig
* glXGetFBConfigs (Display
*, int, int *);
459 extern GLXFBConfig
* glXChooseFBConfig (Display
*, int, const int *, int *);
460 extern int glXGetFBConfigAttrib (Display
*, GLXFBConfig
, int, int *);
461 extern XVisualInfo
* glXGetVisualFromFBConfig (Display
*, GLXFBConfig
);
462 extern GLXWindow
glXCreateWindow (Display
*, GLXFBConfig
, Window
, const int *);
463 extern void glXDestroyWindow (Display
*, GLXWindow
);
464 extern GLXPixmap
glXCreatePixmap (Display
*, GLXFBConfig
, Pixmap
, const int *);
465 extern void glXDestroyPixmap (Display
*, GLXPixmap
);
466 extern GLXPbuffer
glXCreatePbuffer (Display
*, GLXFBConfig
, const int *);
467 extern void glXDestroyPbuffer (Display
*, GLXPbuffer
);
468 extern void glXQueryDrawable (Display
*, GLXDrawable
, int, unsigned int *);
469 extern GLXContext
glXCreateNewContext (Display
*, GLXFBConfig
, int, GLXContext
, Bool
);
470 extern Bool
glXMakeContextCurrent (Display
*, GLXDrawable
, GLXDrawable
, GLXContext
);
471 extern GLXDrawable
glXGetCurrentReadDrawable (void);
472 extern Display
* glXGetCurrentDisplay (void);
473 extern int glXQueryContext (Display
*, GLXContext
, int, int *);
474 extern void glXSelectEvent (Display
*, GLXDrawable
, unsigned long);
475 extern void glXGetSelectedEvent (Display
*, GLXDrawable
, unsigned long *);
476 #endif /* GLX_GLXEXT_PROTOTYPES */
477 typedef GLXFBConfig
* ( * PFNGLXGETFBCONFIGSPROC
) (Display
*dpy
, int screen
, int *nelements
);
478 typedef GLXFBConfig
* ( * PFNGLXCHOOSEFBCONFIGPROC
) (Display
*dpy
, int screen
, const int *attrib_list
, int *nelements
);
479 typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC
) (Display
*dpy
, GLXFBConfig config
, int attribute
, int *value
);
480 typedef XVisualInfo
* ( * PFNGLXGETVISUALFROMFBCONFIGPROC
) (Display
*dpy
, GLXFBConfig config
);
481 typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC
) (Display
*dpy
, GLXFBConfig config
, Window win
, const int *attrib_list
);
482 typedef void ( * PFNGLXDESTROYWINDOWPROC
) (Display
*dpy
, GLXWindow win
);
483 typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC
) (Display
*dpy
, GLXFBConfig config
, Pixmap pixmap
, const int *attrib_list
);
484 typedef void ( * PFNGLXDESTROYPIXMAPPROC
) (Display
*dpy
, GLXPixmap pixmap
);
485 typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC
) (Display
*dpy
, GLXFBConfig config
, const int *attrib_list
);
486 typedef void ( * PFNGLXDESTROYPBUFFERPROC
) (Display
*dpy
, GLXPbuffer pbuf
);
487 typedef void ( * PFNGLXQUERYDRAWABLEPROC
) (Display
*dpy
, GLXDrawable draw
, int attribute
, unsigned int *value
);
488 typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC
) (Display
*dpy
, GLXFBConfig config
, int render_type
, GLXContext share_list
, Bool direct
);
489 typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC
) (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
490 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC
) (void);
491 typedef Display
* ( * PFNGLXGETCURRENTDISPLAYPROC
) (void);
492 typedef int ( * PFNGLXQUERYCONTEXTPROC
) (Display
*dpy
, GLXContext ctx
, int attribute
, int *value
);
493 typedef void ( * PFNGLXSELECTEVENTPROC
) (Display
*dpy
, GLXDrawable draw
, unsigned long event_mask
);
494 typedef void ( * PFNGLXGETSELECTEDEVENTPROC
) (Display
*dpy
, GLXDrawable draw
, unsigned long *event_mask
);
497 #ifndef GLX_VERSION_1_4
498 #define GLX_VERSION_1_4 1
499 #ifdef GLX_GLXEXT_PROTOTYPES
500 extern __GLXextFuncPtr
glXGetProcAddress (const GLubyte
*);
501 #endif /* GLX_GLXEXT_PROTOTYPES */
502 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC
) (const GLubyte
*procName
);
505 #ifndef GLX_ARB_get_proc_address
506 #define GLX_ARB_get_proc_address 1
507 #ifdef GLX_GLXEXT_PROTOTYPES
508 extern __GLXextFuncPtr
glXGetProcAddressARB (const GLubyte
*);
509 #endif /* GLX_GLXEXT_PROTOTYPES */
510 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC
) (const GLubyte
*procName
);
513 #ifndef GLX_ARB_multisample
514 #define GLX_ARB_multisample 1
517 #ifndef GLX_ARB_fbconfig_float
518 #define GLX_ARB_fbconfig_float 1
521 #ifndef GLX_ARB_create_context
522 #define GLX_ARB_create_context 1
523 #ifdef GLX_GLXEXT_PROTOTYPES
524 extern GLXContext
glXCreateContextAttribsARB (Display
*, GLXFBConfig
, GLXContext
, Bool
, const int *);
525 #endif /* GLX_GLXEXT_PROTOTYPES */
526 typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC
) (Display
*dpy
, GLXFBConfig config
, GLXContext share_context
, Bool direct
, const int *attrib_list
);
529 #ifndef GLX_ARB_create_context_profile
530 #define GLX_ARB_create_context_profile 1
533 #ifndef GLX_SGIS_multisample
534 #define GLX_SGIS_multisample 1
537 #ifndef GLX_EXT_visual_info
538 #define GLX_EXT_visual_info 1
541 #ifndef GLX_SGI_swap_control
542 #define GLX_SGI_swap_control 1
543 #ifdef GLX_GLXEXT_PROTOTYPES
544 extern int glXSwapIntervalSGI (int);
545 #endif /* GLX_GLXEXT_PROTOTYPES */
546 typedef int ( * PFNGLXSWAPINTERVALSGIPROC
) (int interval
);
549 #ifndef GLX_SGI_video_sync
550 #define GLX_SGI_video_sync 1
551 #ifdef GLX_GLXEXT_PROTOTYPES
552 extern int glXGetVideoSyncSGI (unsigned int *);
553 extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
554 #endif /* GLX_GLXEXT_PROTOTYPES */
555 typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC
) (unsigned int *count
);
556 typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC
) (int divisor
, int remainder
, unsigned int *count
);
559 #ifndef GLX_SGI_make_current_read
560 #define GLX_SGI_make_current_read 1
561 #ifdef GLX_GLXEXT_PROTOTYPES
562 extern Bool
glXMakeCurrentReadSGI (Display
*, GLXDrawable
, GLXDrawable
, GLXContext
);
563 extern GLXDrawable
glXGetCurrentReadDrawableSGI (void);
564 #endif /* GLX_GLXEXT_PROTOTYPES */
565 typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC
) (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
566 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC
) (void);
569 #ifndef GLX_SGIX_video_source
570 #define GLX_SGIX_video_source 1
572 #ifdef GLX_GLXEXT_PROTOTYPES
573 extern GLXVideoSourceSGIX
glXCreateGLXVideoSourceSGIX (Display
*, int, VLServer
, VLPath
, int, VLNode
);
574 extern void glXDestroyGLXVideoSourceSGIX (Display
*, GLXVideoSourceSGIX
);
575 #endif /* GLX_GLXEXT_PROTOTYPES */
576 typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC
) (Display
*display
, int screen
, VLServer server
, VLPath path
, int nodeClass
, VLNode drainNode
);
577 typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC
) (Display
*dpy
, GLXVideoSourceSGIX glxvideosource
);
581 #ifndef GLX_EXT_visual_rating
582 #define GLX_EXT_visual_rating 1
585 #ifndef GLX_EXT_import_context
586 #define GLX_EXT_import_context 1
587 #ifdef GLX_GLXEXT_PROTOTYPES
588 extern Display
* glXGetCurrentDisplayEXT (void);
589 extern int glXQueryContextInfoEXT (Display
*, GLXContext
, int, int *);
590 extern GLXContextID
glXGetContextIDEXT (const GLXContext
);
591 extern GLXContext
glXImportContextEXT (Display
*, GLXContextID
);
592 extern void glXFreeContextEXT (Display
*, GLXContext
);
593 #endif /* GLX_GLXEXT_PROTOTYPES */
594 typedef Display
* ( * PFNGLXGETCURRENTDISPLAYEXTPROC
) (void);
595 typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC
) (Display
*dpy
, GLXContext context
, int attribute
, int *value
);
596 typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC
) (const GLXContext context
);
597 typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC
) (Display
*dpy
, GLXContextID contextID
);
598 typedef void ( * PFNGLXFREECONTEXTEXTPROC
) (Display
*dpy
, GLXContext context
);
601 #ifndef GLX_SGIX_fbconfig
602 #define GLX_SGIX_fbconfig 1
603 #ifdef GLX_GLXEXT_PROTOTYPES
604 extern int glXGetFBConfigAttribSGIX (Display
*, GLXFBConfigSGIX
, int, int *);
605 extern GLXFBConfigSGIX
* glXChooseFBConfigSGIX (Display
*, int, int *, int *);
606 extern GLXPixmap
glXCreateGLXPixmapWithConfigSGIX (Display
*, GLXFBConfigSGIX
, Pixmap
);
607 extern GLXContext
glXCreateContextWithConfigSGIX (Display
*, GLXFBConfigSGIX
, int, GLXContext
, Bool
);
608 extern XVisualInfo
* glXGetVisualFromFBConfigSGIX (Display
*, GLXFBConfigSGIX
);
609 extern GLXFBConfigSGIX
glXGetFBConfigFromVisualSGIX (Display
*, XVisualInfo
*);
610 #endif /* GLX_GLXEXT_PROTOTYPES */
611 typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, int attribute
, int *value
);
612 typedef GLXFBConfigSGIX
* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC
) (Display
*dpy
, int screen
, int *attrib_list
, int *nelements
);
613 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, Pixmap pixmap
);
614 typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, int render_type
, GLXContext share_list
, Bool direct
);
615 typedef XVisualInfo
* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
);
616 typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC
) (Display
*dpy
, XVisualInfo
*vis
);
619 #ifndef GLX_SGIX_pbuffer
620 #define GLX_SGIX_pbuffer 1
621 #ifdef GLX_GLXEXT_PROTOTYPES
622 extern GLXPbufferSGIX
glXCreateGLXPbufferSGIX (Display
*, GLXFBConfigSGIX
, unsigned int, unsigned int, int *);
623 extern void glXDestroyGLXPbufferSGIX (Display
*, GLXPbufferSGIX
);
624 extern int glXQueryGLXPbufferSGIX (Display
*, GLXPbufferSGIX
, int, unsigned int *);
625 extern void glXSelectEventSGIX (Display
*, GLXDrawable
, unsigned long);
626 extern void glXGetSelectedEventSGIX (Display
*, GLXDrawable
, unsigned long *);
627 #endif /* GLX_GLXEXT_PROTOTYPES */
628 typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, unsigned int width
, unsigned int height
, int *attrib_list
);
629 typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuf
);
630 typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuf
, int attribute
, unsigned int *value
);
631 typedef void ( * PFNGLXSELECTEVENTSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, unsigned long mask
);
632 typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, unsigned long *mask
);
635 #ifndef GLX_SGI_cushion
636 #define GLX_SGI_cushion 1
637 #ifdef GLX_GLXEXT_PROTOTYPES
638 extern void glXCushionSGI (Display
*, Window
, float);
639 #endif /* GLX_GLXEXT_PROTOTYPES */
640 typedef void ( * PFNGLXCUSHIONSGIPROC
) (Display
*dpy
, Window window
, float cushion
);
643 #ifndef GLX_SGIX_video_resize
644 #define GLX_SGIX_video_resize 1
645 #ifdef GLX_GLXEXT_PROTOTYPES
646 extern int glXBindChannelToWindowSGIX (Display
*, int, int, Window
);
647 extern int glXChannelRectSGIX (Display
*, int, int, int, int, int, int);
648 extern int glXQueryChannelRectSGIX (Display
*, int, int, int *, int *, int *, int *);
649 extern int glXQueryChannelDeltasSGIX (Display
*, int, int, int *, int *, int *, int *);
650 extern int glXChannelRectSyncSGIX (Display
*, int, int, GLenum
);
651 #endif /* GLX_GLXEXT_PROTOTYPES */
652 typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC
) (Display
*display
, int screen
, int channel
, Window window
);
653 typedef int ( * PFNGLXCHANNELRECTSGIXPROC
) (Display
*display
, int screen
, int channel
, int x
, int y
, int w
, int h
);
654 typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC
) (Display
*display
, int screen
, int channel
, int *dx
, int *dy
, int *dw
, int *dh
);
655 typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC
) (Display
*display
, int screen
, int channel
, int *x
, int *y
, int *w
, int *h
);
656 typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC
) (Display
*display
, int screen
, int channel
, GLenum synctype
);
659 #ifndef GLX_SGIX_dmbuffer
660 #define GLX_SGIX_dmbuffer 1
662 #ifdef GLX_GLXEXT_PROTOTYPES
663 extern Bool
glXAssociateDMPbufferSGIX (Display
*, GLXPbufferSGIX
, DMparams
*, DMbuffer
);
664 #endif /* GLX_GLXEXT_PROTOTYPES */
665 typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuffer
, DMparams
*params
, DMbuffer dmbuffer
);
666 #endif /* _DM_BUFFER_H_ */
669 #ifndef GLX_SGIX_swap_group
670 #define GLX_SGIX_swap_group 1
671 #ifdef GLX_GLXEXT_PROTOTYPES
672 extern void glXJoinSwapGroupSGIX (Display
*, GLXDrawable
, GLXDrawable
);
673 #endif /* GLX_GLXEXT_PROTOTYPES */
674 typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, GLXDrawable member
);
677 #ifndef GLX_SGIX_swap_barrier
678 #define GLX_SGIX_swap_barrier 1
679 #ifdef GLX_GLXEXT_PROTOTYPES
680 extern void glXBindSwapBarrierSGIX (Display
*, GLXDrawable
, int);
681 extern Bool
glXQueryMaxSwapBarriersSGIX (Display
*, int, int *);
682 #endif /* GLX_GLXEXT_PROTOTYPES */
683 typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, int barrier
);
684 typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC
) (Display
*dpy
, int screen
, int *max
);
687 #ifndef GLX_SUN_get_transparent_index
688 #define GLX_SUN_get_transparent_index 1
689 #ifdef GLX_GLXEXT_PROTOTYPES
690 extern Status
glXGetTransparentIndexSUN (Display
*, Window
, Window
, long *);
691 #endif /* GLX_GLXEXT_PROTOTYPES */
692 typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC
) (Display
*dpy
, Window overlay
, Window underlay
, long *pTransparentIndex
);
695 #ifndef GLX_MESA_copy_sub_buffer
696 #define GLX_MESA_copy_sub_buffer 1
697 #ifdef GLX_GLXEXT_PROTOTYPES
698 extern void glXCopySubBufferMESA (Display
*, GLXDrawable
, int, int, int, int);
699 #endif /* GLX_GLXEXT_PROTOTYPES */
700 typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC
) (Display
*dpy
, GLXDrawable drawable
, int x
, int y
, int width
, int height
);
703 #ifndef GLX_MESA_pixmap_colormap
704 #define GLX_MESA_pixmap_colormap 1
705 #ifdef GLX_GLXEXT_PROTOTYPES
706 extern GLXPixmap
glXCreateGLXPixmapMESA (Display
*, XVisualInfo
*, Pixmap
, Colormap
);
707 #endif /* GLX_GLXEXT_PROTOTYPES */
708 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC
) (Display
*dpy
, XVisualInfo
*visual
, Pixmap pixmap
, Colormap cmap
);
711 #ifndef GLX_MESA_release_buffers
712 #define GLX_MESA_release_buffers 1
713 #ifdef GLX_GLXEXT_PROTOTYPES
714 extern Bool
glXReleaseBuffersMESA (Display
*, GLXDrawable
);
715 #endif /* GLX_GLXEXT_PROTOTYPES */
716 typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC
) (Display
*dpy
, GLXDrawable drawable
);
719 #ifndef GLX_MESA_set_3dfx_mode
720 #define GLX_MESA_set_3dfx_mode 1
721 #ifdef GLX_GLXEXT_PROTOTYPES
722 extern Bool
glXSet3DfxModeMESA (int);
723 #endif /* GLX_GLXEXT_PROTOTYPES */
724 typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC
) (int mode
);
727 #ifndef GLX_SGIX_visual_select_group
728 #define GLX_SGIX_visual_select_group 1
731 #ifndef GLX_OML_swap_method
732 #define GLX_OML_swap_method 1
735 #ifndef GLX_OML_sync_control
736 #define GLX_OML_sync_control 1
737 #ifdef GLX_GLXEXT_PROTOTYPES
738 extern Bool
glXGetSyncValuesOML (Display
*, GLXDrawable
, int64_t *, int64_t *, int64_t *);
739 extern Bool
glXGetMscRateOML (Display
*, GLXDrawable
, int32_t *, int32_t *);
740 extern int64_t glXSwapBuffersMscOML (Display
*, GLXDrawable
, int64_t, int64_t, int64_t);
741 extern Bool
glXWaitForMscOML (Display
*, GLXDrawable
, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
742 extern Bool
glXWaitForSbcOML (Display
*, GLXDrawable
, int64_t, int64_t *, int64_t *, int64_t *);
743 #endif /* GLX_GLXEXT_PROTOTYPES */
744 typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC
) (Display
*dpy
, GLXDrawable drawable
, int64_t *ust
, int64_t *msc
, int64_t *sbc
);
745 typedef Bool ( * PFNGLXGETMSCRATEOMLPROC
) (Display
*dpy
, GLXDrawable drawable
, int32_t *numerator
, int32_t *denominator
);
746 typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC
) (Display
*dpy
, GLXDrawable drawable
, int64_t target_msc
, int64_t divisor
, int64_t remainder
);
747 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
);
748 typedef Bool ( * PFNGLXWAITFORSBCOMLPROC
) (Display
*dpy
, GLXDrawable drawable
, int64_t target_sbc
, int64_t *ust
, int64_t *msc
, int64_t *sbc
);
751 #ifndef GLX_NV_float_buffer
752 #define GLX_NV_float_buffer 1
755 #ifndef GLX_SGIX_hyperpipe
756 #define GLX_SGIX_hyperpipe 1
759 char pipeName
[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX
];
761 } GLXHyperpipeNetworkSGIX
;
764 char pipeName
[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX
];
769 } GLXHyperpipeConfigSGIX
;
772 char pipeName
[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX
];
773 int srcXOrigin
, srcYOrigin
, srcWidth
, srcHeight
;
774 int destXOrigin
, destYOrigin
, destWidth
, destHeight
;
778 char pipeName
[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX
];
779 int XOrigin
, YOrigin
, maxHeight
, maxWidth
;
782 #ifdef GLX_GLXEXT_PROTOTYPES
783 extern GLXHyperpipeNetworkSGIX
* glXQueryHyperpipeNetworkSGIX (Display
*, int *);
784 extern int glXHyperpipeConfigSGIX (Display
*, int, int, GLXHyperpipeConfigSGIX
*, int *);
785 extern GLXHyperpipeConfigSGIX
* glXQueryHyperpipeConfigSGIX (Display
*, int, int *);
786 extern int glXDestroyHyperpipeConfigSGIX (Display
*, int);
787 extern int glXBindHyperpipeSGIX (Display
*, int);
788 extern int glXQueryHyperpipeBestAttribSGIX (Display
*, int, int, int, void *, void *);
789 extern int glXHyperpipeAttribSGIX (Display
*, int, int, int, void *);
790 extern int glXQueryHyperpipeAttribSGIX (Display
*, int, int, int, void *);
791 #endif /* GLX_GLXEXT_PROTOTYPES */
792 typedef GLXHyperpipeNetworkSGIX
* ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC
) (Display
*dpy
, int *npipes
);
793 typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC
) (Display
*dpy
, int networkId
, int npipes
, GLXHyperpipeConfigSGIX
*cfg
, int *hpId
);
794 typedef GLXHyperpipeConfigSGIX
* ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC
) (Display
*dpy
, int hpId
, int *npipes
);
795 typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC
) (Display
*dpy
, int hpId
);
796 typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC
) (Display
*dpy
, int hpId
);
797 typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC
) (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *attribList
, void *returnAttribList
);
798 typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC
) (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *attribList
);
799 typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC
) (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *returnAttribList
);
802 #ifndef GLX_MESA_agp_offset
803 #define GLX_MESA_agp_offset 1
804 #ifdef GLX_GLXEXT_PROTOTYPES
805 extern unsigned int glXGetAGPOffsetMESA (const void *);
806 #endif /* GLX_GLXEXT_PROTOTYPES */
807 typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC
) (const void *pointer
);
810 #ifndef GLX_EXT_fbconfig_packed_float
811 #define GLX_EXT_fbconfig_packed_float 1
814 #ifndef GLX_EXT_framebuffer_sRGB
815 #define GLX_EXT_framebuffer_sRGB 1
818 #ifndef GLX_EXT_texture_from_pixmap
819 #define GLX_EXT_texture_from_pixmap 1
820 #ifdef GLX_GLXEXT_PROTOTYPES
821 extern void glXBindTexImageEXT (Display
*, GLXDrawable
, int, const int *);
822 extern void glXReleaseTexImageEXT (Display
*, GLXDrawable
, int);
823 #endif /* GLX_GLXEXT_PROTOTYPES */
824 typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC
) (Display
*dpy
, GLXDrawable drawable
, int buffer
, const int *attrib_list
);
825 typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC
) (Display
*dpy
, GLXDrawable drawable
, int buffer
);
828 #ifndef GLX_NV_present_video
829 #define GLX_NV_present_video 1
832 #ifndef GLX_NV_video_out
833 #define GLX_NV_video_out 1
836 #ifndef GLX_NV_swap_group
837 #define GLX_NV_swap_group 1