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