source: branches/VUT/DummyModules/chcdemo/GL/glxew.h @ 10

Revision 10, 40.3 KB checked in by gametools, 20 years ago (diff)

vienna university of technology first files

Line 
1/*
2** The OpenGL Extension Wrangler Library
3** Copyright (C) 2004, 2003, 2002, Milan Ikits <milan ikits[at]ieee org>
4** Copyright (C) 2004, 2003, 2002, Marcelo E. Magallon <mmagallo[at]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** The contents of this file are subject to the GLX Public License Version 1.0
34** (the "License"). You may not use this file except in compliance with the
35** License. You may obtain a copy of the License at Silicon Graphics, Inc.,
36** attn: Legal Services, 2011 N. Shoreline Blvd., Mountain View, CA 94043
37** or at http://www.sgi.com/software/opensource/glx/license.html.
38**
39** Software distributed under the License is distributed on an "AS IS"
40** basis. ALL WARRANTIES ARE DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY
41** IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR
42** PURPOSE OR OF NON- INFRINGEMENT. See the License for the specific
43** language governing rights and limitations under the License.
44**
45** The Original Software is GLX version 1.2 source code, released February,
46** 1999. The developer of the Original Software is Silicon Graphics, Inc.
47** Those portions of the Subject Software created by Silicon Graphics, Inc.
48** are Copyright (c) 1991-9 Silicon Graphics, Inc. All Rights Reserved.
49*/
50
51#ifndef __glxew_h__
52#define __glxew_h__
53#define __GLXEW_H__
54
55#ifdef __glxext_h_
56#error glxext.h included before glxew.h
57#endif
58
59#define __glxext_h_
60
61#include <X11/Xlib.h>
62#include <X11/Xutil.h>
63#include <X11/Xmd.h>
64#include <GL/glew.h>
65
66#ifdef __cplusplus
67extern "C" {
68#endif
69
70/* ---------------------------- GLX_VERSION_1_0 --------------------------- */
71
72#ifndef GLX_VERSION_1_0
73#define GLX_VERSION_1_0 1
74
75#define GLX_USE_GL 1
76#define GLX_BUFFER_SIZE 2
77#define GLX_LEVEL 3
78#define GLX_RGBA 4
79#define GLX_DOUBLEBUFFER 5
80#define GLX_STEREO 6
81#define GLX_AUX_BUFFERS 7
82#define GLX_RED_SIZE 8
83#define GLX_GREEN_SIZE 9
84#define GLX_BLUE_SIZE 10
85#define GLX_ALPHA_SIZE 11
86#define GLX_DEPTH_SIZE 12
87#define GLX_STENCIL_SIZE 13
88#define GLX_ACCUM_RED_SIZE 14
89#define GLX_ACCUM_GREEN_SIZE 15
90#define GLX_ACCUM_BLUE_SIZE 16
91#define GLX_ACCUM_ALPHA_SIZE 17
92#define GLX_BAD_SCREEN 1
93#define GLX_BAD_ATTRIBUTE 2
94#define GLX_NO_EXTENSION 3
95#define GLX_BAD_VISUAL 4
96#define GLX_BAD_CONTEXT 5
97#define GLX_BAD_VALUE 6
98#define GLX_BAD_ENUM 7
99
100typedef XID GLXDrawable;
101typedef XID GLXPixmap;
102typedef struct __GLXcontextRec *GLXContext;
103
104extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase);
105extern Bool glXQueryVersion (Display *dpy, int *major, int *minor);
106extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value);
107extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList);
108extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap);
109extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix);
110extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
111extern void glXDestroyContext (Display *dpy, GLXContext ctx);
112extern Bool glXIsDirect (Display *dpy, GLXContext ctx);
113extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLuint mask);
114extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx);
115extern GLXContext glXGetCurrentContext (void);
116extern GLXDrawable glXGetCurrentDrawable (void);
117extern void glXWaitGL (void);
118extern void glXWaitX (void);
119extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable);
120extern void glXUseXFont (Font font, int first, int count, int listBase);
121
122#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
123
124#endif /* GLX_VERSION_1_0 */
125
126/* ---------------------------- GLX_VERSION_1_1 --------------------------- */
127
128#ifndef GLX_VERSION_1_1
129#define GLX_VERSION_1_1
130
131#define GLX_VENDOR 0x1
132#define GLX_VERSION 0x2
133#define GLX_EXTENSIONS 0x3
134
135extern const char* glXQueryExtensionsString (Display *dpy, int screen);
136extern const char* glXGetClientString (Display *dpy, int name);
137extern const char* glXQueryServerString (Display *dpy, int screen, int name);
138
139#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
140
141#endif /* GLX_VERSION_1_1 */
142
143/* ---------------------------- GLX_VERSION_1_2 ---------------------------- */
144
145#ifndef GLX_VERSION_1_2
146#define GLX_VERSION_1_2 1
147
148typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
149
150#define glXGetCurrentDisplay GLXEW_GET_FUN(__glewXGetCurrentDisplay)
151
152#define GLXEW_VERSION_1_2 GLXEW_GET_VAR(__GLXEW_VERSION_1_2)
153
154#endif /* GLX_VERSION_1_2 */
155
156/* ---------------------------- GLX_VERSION_1_3 ---------------------------- */
157
158#ifndef GLX_VERSION_1_3
159#define GLX_VERSION_1_3 1
160
161#define GLX_RGBA_BIT 0x00000001
162#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
163#define GLX_WINDOW_BIT 0x00000001
164#define GLX_COLOR_INDEX_BIT 0x00000002
165#define GLX_PIXMAP_BIT 0x00000002
166#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
167#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
168#define GLX_PBUFFER_BIT 0x00000004
169#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
170#define GLX_AUX_BUFFERS_BIT 0x00000010
171#define GLX_CONFIG_CAVEAT 0x20
172#define GLX_DEPTH_BUFFER_BIT 0x00000020
173#define GLX_X_VISUAL_TYPE 0x22
174#define GLX_TRANSPARENT_TYPE 0x23
175#define GLX_TRANSPARENT_INDEX_VALUE 0x24
176#define GLX_TRANSPARENT_RED_VALUE 0x25
177#define GLX_TRANSPARENT_GREEN_VALUE 0x26
178#define GLX_TRANSPARENT_BLUE_VALUE 0x27
179#define GLX_TRANSPARENT_ALPHA_VALUE 0x28
180#define GLX_STENCIL_BUFFER_BIT 0x00000040
181#define GLX_ACCUM_BUFFER_BIT 0x00000080
182#define GLX_NONE 0x8000
183#define GLX_SLOW_CONFIG 0x8001
184#define GLX_TRUE_COLOR 0x8002
185#define GLX_DIRECT_COLOR 0x8003
186#define GLX_PSEUDO_COLOR 0x8004
187#define GLX_STATIC_COLOR 0x8005
188#define GLX_GRAY_SCALE 0x8006
189#define GLX_STATIC_GRAY 0x8007
190#define GLX_TRANSPARENT_RGB 0x8008
191#define GLX_TRANSPARENT_INDEX 0x8009
192#define GLX_VISUAL_ID 0x800B
193#define GLX_SCREEN 0x800C
194#define GLX_NON_CONFORMANT_CONFIG 0x800D
195#define GLX_DRAWABLE_TYPE 0x8010
196#define GLX_RENDER_TYPE 0x8011
197#define GLX_X_RENDERABLE 0x8012
198#define GLX_FBCONFIG_ID 0x8013
199#define GLX_RGBA_TYPE 0x8014
200#define GLX_COLOR_INDEX_TYPE 0x8015
201#define GLX_MAX_PBUFFER_WIDTH 0x8016
202#define GLX_MAX_PBUFFER_HEIGHT 0x8017
203#define GLX_MAX_PBUFFER_PIXELS 0x8018
204#define GLX_PRESERVED_CONTENTS 0x801B
205#define GLX_LARGEST_PBUFFER 0x801C
206#define GLX_WIDTH 0x801D
207#define GLX_HEIGHT 0x801E
208#define GLX_EVENT_MASK 0x801F
209#define GLX_DAMAGED 0x8020
210#define GLX_SAVED 0x8021
211#define GLX_WINDOW 0x8022
212#define GLX_PBUFFER 0x8023
213#define GLX_PBUFFER_HEIGHT 0x8040
214#define GLX_PBUFFER_WIDTH 0x8041
215#define GLX_PBUFFER_CLOBBER_MASK 0x08000000
216#define GLX_DONT_CARE 0xFFFFFFFF
217
218typedef XID GLXFBConfigID;
219typedef XID GLXWindow;
220typedef XID GLXPbuffer;
221typedef struct __GLXFBConfigRec *GLXFBConfig;
222typedef struct { int event_type; int draw_type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; unsigned int buffer_mask; unsigned int aux_buffer; int x, y; int width, height; int count; } GLXPbufferClobberEvent;
223typedef union __GLXEvent { GLXPbufferClobberEvent glxpbufferclobber; long pad[24]; } GLXEvent;
224
225typedef GLXFBConfig* ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
226typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
227typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
228typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
229typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
230typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
231typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
232typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
233typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
234typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
235typedef GLXFBConfig* ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
236typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
237typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
238typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
239typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
240typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
241typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
242
243#define glXChooseFBConfig GLXEW_GET_FUN(__glewXChooseFBConfig)
244#define glXCreateNewContext GLXEW_GET_FUN(__glewXCreateNewContext)
245#define glXCreatePbuffer GLXEW_GET_FUN(__glewXCreatePbuffer)
246#define glXCreatePixmap GLXEW_GET_FUN(__glewXCreatePixmap)
247#define glXCreateWindow GLXEW_GET_FUN(__glewXCreateWindow)
248#define glXDestroyPbuffer GLXEW_GET_FUN(__glewXDestroyPbuffer)
249#define glXDestroyPixmap GLXEW_GET_FUN(__glewXDestroyPixmap)
250#define glXDestroyWindow GLXEW_GET_FUN(__glewXDestroyWindow)
251#define glXGetCurrentReadDrawable GLXEW_GET_FUN(__glewXGetCurrentReadDrawable)
252#define glXGetFBConfigAttrib GLXEW_GET_FUN(__glewXGetFBConfigAttrib)
253#define glXGetFBConfigs GLXEW_GET_FUN(__glewXGetFBConfigs)
254#define glXGetSelectedEvent GLXEW_GET_FUN(__glewXGetSelectedEvent)
255#define glXGetVisualFromFBConfig GLXEW_GET_FUN(__glewXGetVisualFromFBConfig)
256#define glXMakeContextCurrent GLXEW_GET_FUN(__glewXMakeContextCurrent)
257#define glXQueryContext GLXEW_GET_FUN(__glewXQueryContext)
258#define glXQueryDrawable GLXEW_GET_FUN(__glewXQueryDrawable)
259#define glXSelectEvent GLXEW_GET_FUN(__glewXSelectEvent)
260
261#define GLXEW_VERSION_1_3 GLXEW_GET_VAR(__GLXEW_VERSION_1_3)
262
263#endif /* GLX_VERSION_1_3 */
264
265/* ---------------------------- GLX_VERSION_1_4 ---------------------------- */
266
267#ifndef GLX_VERSION_1_4
268#define GLX_VERSION_1_4 1
269
270#define GLX_SAMPLE_BUFFERS 100000
271#define GLX_SAMPLES 100001
272
273extern void ( * glXGetProcAddress (const GLubyte *procName)) (void);
274
275#define GLXEW_VERSION_1_4 GLXEW_GET_VAR(__GLXEW_VERSION_1_4)
276
277#endif /* GLX_VERSION_1_4 */
278
279/* -------------------------- GLX_3DFX_multisample ------------------------- */
280
281#ifndef GLX_3DFX_multisample
282#define GLX_3DFX_multisample 1
283
284#define GLX_SAMPLE_BUFFERS_3DFX 0x8050
285#define GLX_SAMPLES_3DFX 0x8051
286
287#define GLXEW_3DFX_multisample GLXEW_GET_VAR(__GLXEW_3DFX_multisample)
288
289#endif /* GLX_3DFX_multisample */
290
291/* ------------------------- GLX_ARB_fbconfig_float ------------------------ */
292
293#ifndef GLX_ARB_fbconfig_float
294#define GLX_ARB_fbconfig_float 1
295
296#define GLX_RGBA_FLOAT_BIT 0x00000004
297#define GLX_RGBA_FLOAT_TYPE 0x20B9
298
299#define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float)
300
301#endif /* GLX_ARB_fbconfig_float */
302
303/* ------------------------ GLX_ARB_get_proc_address ----------------------- */
304
305#ifndef GLX_ARB_get_proc_address
306#define GLX_ARB_get_proc_address 1
307
308extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void);
309
310#define GLXEW_ARB_get_proc_address GLXEW_GET_VAR(__GLXEW_ARB_get_proc_address)
311
312#endif /* GLX_ARB_get_proc_address */
313
314/* -------------------------- GLX_ARB_multisample -------------------------- */
315
316#ifndef GLX_ARB_multisample
317#define GLX_ARB_multisample 1
318
319#define GLX_SAMPLE_BUFFERS_ARB 100000
320#define GLX_SAMPLES_ARB 100001
321
322#define GLXEW_ARB_multisample GLXEW_GET_VAR(__GLXEW_ARB_multisample)
323
324#endif /* GLX_ARB_multisample */
325
326/* ----------------------- GLX_ATI_pixel_format_float ---------------------- */
327
328#ifndef GLX_ATI_pixel_format_float
329#define GLX_ATI_pixel_format_float 1
330
331#define GLX_RGBA_FLOAT_ATI_BIT 0x00000100
332
333#define GLXEW_ATI_pixel_format_float GLXEW_GET_VAR(__GLXEW_ATI_pixel_format_float)
334
335#endif /* GLX_ATI_pixel_format_float */
336
337/* ------------------------- GLX_ATI_render_texture ------------------------ */
338
339#ifndef GLX_ATI_render_texture
340#define GLX_ATI_render_texture 1
341
342#define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800
343#define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801
344#define GLX_TEXTURE_FORMAT_ATI 0x9802
345#define GLX_TEXTURE_TARGET_ATI 0x9803
346#define GLX_MIPMAP_TEXTURE_ATI 0x9804
347#define GLX_TEXTURE_RGB_ATI 0x9805
348#define GLX_TEXTURE_RGBA_ATI 0x9806
349#define GLX_NO_TEXTURE_ATI 0x9807
350#define GLX_TEXTURE_CUBE_MAP_ATI 0x9808
351#define GLX_TEXTURE_1D_ATI 0x9809
352#define GLX_TEXTURE_2D_ATI 0x980A
353#define GLX_MIPMAP_LEVEL_ATI 0x980B
354#define GLX_CUBE_MAP_FACE_ATI 0x980C
355#define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D
356#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E
357#define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F
358#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810
359#define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811
360#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812
361#define GLX_FRONT_LEFT_ATI 0x9813
362#define GLX_FRONT_RIGHT_ATI 0x9814
363#define GLX_BACK_LEFT_ATI 0x9815
364#define GLX_BACK_RIGHT_ATI 0x9816
365#define GLX_AUX0_ATI 0x9817
366#define GLX_AUX1_ATI 0x9818
367#define GLX_AUX2_ATI 0x9819
368#define GLX_AUX3_ATI 0x981A
369#define GLX_AUX4_ATI 0x981B
370#define GLX_AUX5_ATI 0x981C
371#define GLX_AUX6_ATI 0x981D
372#define GLX_AUX7_ATI 0x981E
373#define GLX_AUX8_ATI 0x981F
374#define GLX_AUX9_ATI 0x9820
375#define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821
376#define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822
377
378typedef void ( * PFNGLXBINDTEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer);
379typedef void ( * PFNGLXDRAWABLEATTRIBATIPROC) (Display *dpy, GLXDrawable draw, const int *attrib_list);
380typedef void ( * PFNGLXRELEASETEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer);
381
382#define glXBindTexImageATI GLXEW_GET_FUN(__glewXBindTexImageATI)
383#define glXDrawableAttribATI GLXEW_GET_FUN(__glewXDrawableAttribATI)
384#define glXReleaseTexImageATI GLXEW_GET_FUN(__glewXReleaseTexImageATI)
385
386#define GLXEW_ATI_render_texture GLXEW_GET_VAR(__GLXEW_ATI_render_texture)
387
388#endif /* GLX_ATI_render_texture */
389
390/* ------------------------- GLX_EXT_import_context ------------------------ */
391
392#ifndef GLX_EXT_import_context
393#define GLX_EXT_import_context 1
394
395#define GLX_SHARE_CONTEXT_EXT 0x800A
396#define GLX_VISUAL_ID_EXT 0x800B
397#define GLX_SCREEN_EXT 0x800C
398
399typedef XID GLXContextID;
400
401typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display* dpy, GLXContext context);
402typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
403typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display* dpy, GLXContextID contextID);
404typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display* dpy, GLXContext context, int attribute,int *value);
405
406#define glXFreeContextEXT GLXEW_GET_FUN(__glewXFreeContextEXT)
407#define glXGetContextIDEXT GLXEW_GET_FUN(__glewXGetContextIDEXT)
408#define glXImportContextEXT GLXEW_GET_FUN(__glewXImportContextEXT)
409#define glXQueryContextInfoEXT GLXEW_GET_FUN(__glewXQueryContextInfoEXT)
410
411#define GLXEW_EXT_import_context GLXEW_GET_VAR(__GLXEW_EXT_import_context)
412
413#endif /* GLX_EXT_import_context */
414
415/* -------------------------- GLX_EXT_scene_marker ------------------------- */
416
417#ifndef GLX_EXT_scene_marker
418#define GLX_EXT_scene_marker 1
419
420#define GLXEW_EXT_scene_marker GLXEW_GET_VAR(__GLXEW_EXT_scene_marker)
421
422#endif /* GLX_EXT_scene_marker */
423
424/* -------------------------- GLX_EXT_visual_info -------------------------- */
425
426#ifndef GLX_EXT_visual_info
427#define GLX_EXT_visual_info 1
428
429#define GLX_X_VISUAL_TYPE_EXT 0x22
430#define GLX_TRANSPARENT_TYPE_EXT 0x23
431#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
432#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
433#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
434#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
435#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
436#define GLX_NONE_EXT 0x8000
437#define GLX_TRUE_COLOR_EXT 0x8002
438#define GLX_DIRECT_COLOR_EXT 0x8003
439#define GLX_PSEUDO_COLOR_EXT 0x8004
440#define GLX_STATIC_COLOR_EXT 0x8005
441#define GLX_GRAY_SCALE_EXT 0x8006
442#define GLX_STATIC_GRAY_EXT 0x8007
443#define GLX_TRANSPARENT_RGB_EXT 0x8008
444#define GLX_TRANSPARENT_INDEX_EXT 0x8009
445
446#define GLXEW_EXT_visual_info GLXEW_GET_VAR(__GLXEW_EXT_visual_info)
447
448#endif /* GLX_EXT_visual_info */
449
450/* ------------------------- GLX_EXT_visual_rating ------------------------- */
451
452#ifndef GLX_EXT_visual_rating
453#define GLX_EXT_visual_rating 1
454
455#define GLX_VISUAL_CAVEAT_EXT 0x20
456#define GLX_SLOW_VISUAL_EXT 0x8001
457#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
458
459#define GLXEW_EXT_visual_rating GLXEW_GET_VAR(__GLXEW_EXT_visual_rating)
460
461#endif /* GLX_EXT_visual_rating */
462
463/* -------------------------- GLX_MESA_agp_offset -------------------------- */
464
465#ifndef GLX_MESA_agp_offset
466#define GLX_MESA_agp_offset 1
467
468typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void* pointer);
469
470#define glXGetAGPOffsetMESA GLXEW_GET_FUN(__glewXGetAGPOffsetMESA)
471
472#define GLXEW_MESA_agp_offset GLXEW_GET_VAR(__GLXEW_MESA_agp_offset)
473
474#endif /* GLX_MESA_agp_offset */
475
476/* ------------------------ GLX_MESA_copy_sub_buffer ----------------------- */
477
478#ifndef GLX_MESA_copy_sub_buffer
479#define GLX_MESA_copy_sub_buffer 1
480
481typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display* dpy, GLXDrawable drawable, int x, int y, int width, int height);
482
483#define glXCopySubBufferMESA GLXEW_GET_FUN(__glewXCopySubBufferMESA)
484
485#define GLXEW_MESA_copy_sub_buffer GLXEW_GET_VAR(__GLXEW_MESA_copy_sub_buffer)
486
487#endif /* GLX_MESA_copy_sub_buffer */
488
489/* ------------------------ GLX_MESA_pixmap_colormap ----------------------- */
490
491#ifndef GLX_MESA_pixmap_colormap
492#define GLX_MESA_pixmap_colormap 1
493
494typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display* dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
495
496#define glXCreateGLXPixmapMESA GLXEW_GET_FUN(__glewXCreateGLXPixmapMESA)
497
498#define GLXEW_MESA_pixmap_colormap GLXEW_GET_VAR(__GLXEW_MESA_pixmap_colormap)
499
500#endif /* GLX_MESA_pixmap_colormap */
501
502/* ------------------------ GLX_MESA_release_buffers ----------------------- */
503
504#ifndef GLX_MESA_release_buffers
505#define GLX_MESA_release_buffers 1
506
507typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display* dpy, GLXDrawable d);
508
509#define glXReleaseBuffersMESA GLXEW_GET_FUN(__glewXReleaseBuffersMESA)
510
511#define GLXEW_MESA_release_buffers GLXEW_GET_VAR(__GLXEW_MESA_release_buffers)
512
513#endif /* GLX_MESA_release_buffers */
514
515/* ------------------------- GLX_MESA_set_3dfx_mode ------------------------ */
516
517#ifndef GLX_MESA_set_3dfx_mode
518#define GLX_MESA_set_3dfx_mode 1
519
520#define GLX_3DFX_WINDOW_MODE_MESA 0x1
521#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
522
523typedef GLboolean ( * PFNGLXSET3DFXMODEMESAPROC) (GLint mode);
524
525#define glXSet3DfxModeMESA GLXEW_GET_FUN(__glewXSet3DfxModeMESA)
526
527#define GLXEW_MESA_set_3dfx_mode GLXEW_GET_VAR(__GLXEW_MESA_set_3dfx_mode)
528
529#endif /* GLX_MESA_set_3dfx_mode */
530
531/* -------------------------- GLX_NV_float_buffer -------------------------- */
532
533#ifndef GLX_NV_float_buffer
534#define GLX_NV_float_buffer 1
535
536#define GLX_FLOAT_COMPONENTS_NV 0x20B0
537
538#define GLXEW_NV_float_buffer GLXEW_GET_VAR(__GLXEW_NV_float_buffer)
539
540#endif /* GLX_NV_float_buffer */
541
542/* ----------------------- GLX_NV_vertex_array_range ----------------------- */
543
544#ifndef GLX_NV_vertex_array_range
545#define GLX_NV_vertex_array_range 1
546
547typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
548typedef void ( * PFNGLXFREEMEMORYNVPROC) (void *pointer);
549
550#define glXAllocateMemoryNV GLXEW_GET_FUN(__glewXAllocateMemoryNV)
551#define glXFreeMemoryNV GLXEW_GET_FUN(__glewXFreeMemoryNV)
552
553#define GLXEW_NV_vertex_array_range GLXEW_GET_VAR(__GLXEW_NV_vertex_array_range)
554
555#endif /* GLX_NV_vertex_array_range */
556
557/* -------------------------- GLX_OML_swap_method -------------------------- */
558
559#ifndef GLX_OML_swap_method
560#define GLX_OML_swap_method 1
561
562#define GLX_SWAP_METHOD_OML 0x8060
563#define GLX_SWAP_EXCHANGE_OML 0x8061
564#define GLX_SWAP_COPY_OML 0x8062
565#define GLX_SWAP_UNDEFINED_OML 0x8063
566
567#define GLXEW_OML_swap_method GLXEW_GET_VAR(__GLXEW_OML_swap_method)
568
569#endif /* GLX_OML_swap_method */
570
571/* -------------------------- GLX_OML_sync_control ------------------------- */
572
573#if !defined(GLX_OML_sync_control) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
574#include <inttypes.h>
575#define GLX_OML_sync_control 1
576
577typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator);
578typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc);
579typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
580typedef 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);
581typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_sbc, int64_t* ust, int64_t* msc, int64_t* sbc);
582
583#define glXGetMscRateOML GLXEW_GET_FUN(__glewXGetMscRateOML)
584#define glXGetSyncValuesOML GLXEW_GET_FUN(__glewXGetSyncValuesOML)
585#define glXSwapBuffersMscOML GLXEW_GET_FUN(__glewXSwapBuffersMscOML)
586#define glXWaitForMscOML GLXEW_GET_FUN(__glewXWaitForMscOML)
587#define glXWaitForSbcOML GLXEW_GET_FUN(__glewXWaitForSbcOML)
588
589#define GLXEW_OML_sync_control GLXEW_GET_VAR(__GLXEW_OML_sync_control)
590
591#endif /* GLX_OML_sync_control */
592
593/* ------------------------ GLX_SGIS_blended_overlay ----------------------- */
594
595#ifndef GLX_SGIS_blended_overlay
596#define GLX_SGIS_blended_overlay 1
597
598#define GLX_BLENDED_RGBA_SGIS 0x8025
599
600#define GLXEW_SGIS_blended_overlay GLXEW_GET_VAR(__GLXEW_SGIS_blended_overlay)
601
602#endif /* GLX_SGIS_blended_overlay */
603
604/* -------------------------- GLX_SGIS_color_range ------------------------- */
605
606#ifndef GLX_SGIS_color_range
607#define GLX_SGIS_color_range 1
608
609#define GLX_MIN_RED_SGIS 0
610#define GLX_MAX_GREEN_SGIS 0
611#define GLX_MIN_BLUE_SGIS 0
612#define GLX_MAX_ALPHA_SGIS 0
613#define GLX_MIN_GREEN_SGIS 0
614#define GLX_MIN_ALPHA_SGIS 0
615#define GLX_MAX_RED_SGIS 0
616#define GLX_EXTENDED_RANGE_SGIS 0
617#define GLX_MAX_BLUE_SGIS 0
618
619#define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range)
620
621#endif /* GLX_SGIS_color_range */
622
623/* -------------------------- GLX_SGIS_multisample ------------------------- */
624
625#ifndef GLX_SGIS_multisample
626#define GLX_SGIS_multisample 1
627
628#define GLX_SAMPLE_BUFFERS_SGIS 100000
629#define GLX_SAMPLES_SGIS 100001
630
631#define GLXEW_SGIS_multisample GLXEW_GET_VAR(__GLXEW_SGIS_multisample)
632
633#endif /* GLX_SGIS_multisample */
634
635/* ---------------------- GLX_SGIS_shared_multisample ---------------------- */
636
637#ifndef GLX_SGIS_shared_multisample
638#define GLX_SGIS_shared_multisample 1
639
640#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
641#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
642
643#define GLXEW_SGIS_shared_multisample GLXEW_GET_VAR(__GLXEW_SGIS_shared_multisample)
644
645#endif /* GLX_SGIS_shared_multisample */
646
647/* --------------------------- GLX_SGIX_fbconfig --------------------------- */
648
649#ifndef GLX_SGIX_fbconfig
650#define GLX_SGIX_fbconfig 1
651
652#define GLX_WINDOW_BIT_SGIX 0x00000001
653#define GLX_RGBA_BIT_SGIX 0x00000001
654#define GLX_PIXMAP_BIT_SGIX 0x00000002
655#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
656#define GLX_SCREEN_EXT 0x800C
657#define GLX_DRAWABLE_TYPE_SGIX 0x8010
658#define GLX_RENDER_TYPE_SGIX 0x8011
659#define GLX_X_RENDERABLE_SGIX 0x8012
660#define GLX_FBCONFIG_ID_SGIX 0x8013
661#define GLX_RGBA_TYPE_SGIX 0x8014
662#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
663
664typedef XID GLXFBConfigIDSGIX;
665typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
666
667typedef GLXFBConfigSGIX* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
668typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
669typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, Pixmap pixmap);
670typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display* dpy, GLXFBConfigSGIX config, int attribute, int *value);
671typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display* dpy, XVisualInfo *vis);
672typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfig config);
673
674#define glXChooseFBConfigSGIX GLXEW_GET_FUN(__glewXChooseFBConfigSGIX)
675#define glXCreateContextWithConfigSGIX GLXEW_GET_FUN(__glewXCreateContextWithConfigSGIX)
676#define glXCreateGLXPixmapWithConfigSGIX GLXEW_GET_FUN(__glewXCreateGLXPixmapWithConfigSGIX)
677#define glXGetFBConfigAttribSGIX GLXEW_GET_FUN(__glewXGetFBConfigAttribSGIX)
678#define glXGetFBConfigFromVisualSGIX GLXEW_GET_FUN(__glewXGetFBConfigFromVisualSGIX)
679#define glXGetVisualFromFBConfigSGIX GLXEW_GET_FUN(__glewXGetVisualFromFBConfigSGIX)
680
681#define GLXEW_SGIX_fbconfig GLXEW_GET_VAR(__GLXEW_SGIX_fbconfig)
682
683#endif /* GLX_SGIX_fbconfig */
684
685/* ---------------------------- GLX_SGIX_pbuffer --------------------------- */
686
687#ifndef GLX_SGIX_pbuffer
688#define GLX_SGIX_pbuffer 1
689
690#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
691#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
692#define GLX_PBUFFER_BIT_SGIX 0x00000004
693#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
694#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
695#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
696#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
697#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
698#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
699#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
700#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
701#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
702#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
703#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
704#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
705#define GLX_PRESERVED_CONTENTS_SGIX 0x801B
706#define GLX_LARGEST_PBUFFER_SGIX 0x801C
707#define GLX_WIDTH_SGIX 0x801D
708#define GLX_HEIGHT_SGIX 0x801E
709#define GLX_EVENT_MASK_SGIX 0x801F
710#define GLX_DAMAGED_SGIX 0x8020
711#define GLX_SAVED_SGIX 0x8021
712#define GLX_WINDOW_SGIX 0x8022
713#define GLX_PBUFFER_SGIX 0x8023
714#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
715
716typedef XID GLXPbufferSGIX;
717typedef 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;
718
719typedef GLXPbuffer ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display* dpy, GLXFBConfig config, unsigned int width, unsigned int height, int *attrib_list);
720typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf);
721typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long *mask);
722typedef void ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf, int attribute, unsigned int *value);
723typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long mask);
724
725#define glXCreateGLXPbufferSGIX GLXEW_GET_FUN(__glewXCreateGLXPbufferSGIX)
726#define glXDestroyGLXPbufferSGIX GLXEW_GET_FUN(__glewXDestroyGLXPbufferSGIX)
727#define glXGetSelectedEventSGIX GLXEW_GET_FUN(__glewXGetSelectedEventSGIX)
728#define glXQueryGLXPbufferSGIX GLXEW_GET_FUN(__glewXQueryGLXPbufferSGIX)
729#define glXSelectEventSGIX GLXEW_GET_FUN(__glewXSelectEventSGIX)
730
731#define GLXEW_SGIX_pbuffer GLXEW_GET_VAR(__GLXEW_SGIX_pbuffer)
732
733#endif /* GLX_SGIX_pbuffer */
734
735/* ------------------------- GLX_SGIX_swap_barrier ------------------------- */
736
737#ifndef GLX_SGIX_swap_barrier
738#define GLX_SGIX_swap_barrier 1
739
740typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
741typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
742
743#define glXBindSwapBarrierSGIX GLXEW_GET_FUN(__glewXBindSwapBarrierSGIX)
744#define glXQueryMaxSwapBarriersSGIX GLXEW_GET_FUN(__glewXQueryMaxSwapBarriersSGIX)
745
746#define GLXEW_SGIX_swap_barrier GLXEW_GET_VAR(__GLXEW_SGIX_swap_barrier)
747
748#endif /* GLX_SGIX_swap_barrier */
749
750/* -------------------------- GLX_SGIX_swap_group -------------------------- */
751
752#ifndef GLX_SGIX_swap_group
753#define GLX_SGIX_swap_group 1
754
755typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
756
757#define glXJoinSwapGroupSGIX GLXEW_GET_FUN(__glewXJoinSwapGroupSGIX)
758
759#define GLXEW_SGIX_swap_group GLXEW_GET_VAR(__GLXEW_SGIX_swap_group)
760
761#endif /* GLX_SGIX_swap_group */
762
763/* ------------------------- GLX_SGIX_video_resize ------------------------- */
764
765#ifndef GLX_SGIX_video_resize
766#define GLX_SGIX_video_resize 1
767
768#define GLX_SYNC_FRAME_SGIX 0x00000000
769#define GLX_SYNC_SWAP_SGIX 0x00000001
770
771typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display* display, int screen, int channel, Window window);
772typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int x, int y, int w, int h);
773typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display* display, int screen, int channel, GLenum synctype);
774typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display* display, int screen, int channel, int *x, int *y, int *w, int *h);
775typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
776
777#define glXBindChannelToWindowSGIX GLXEW_GET_FUN(__glewXBindChannelToWindowSGIX)
778#define glXChannelRectSGIX GLXEW_GET_FUN(__glewXChannelRectSGIX)
779#define glXChannelRectSyncSGIX GLXEW_GET_FUN(__glewXChannelRectSyncSGIX)
780#define glXQueryChannelDeltasSGIX GLXEW_GET_FUN(__glewXQueryChannelDeltasSGIX)
781#define glXQueryChannelRectSGIX GLXEW_GET_FUN(__glewXQueryChannelRectSGIX)
782
783#define GLXEW_SGIX_video_resize GLXEW_GET_VAR(__GLXEW_SGIX_video_resize)
784
785#endif /* GLX_SGIX_video_resize */
786
787/* ---------------------- GLX_SGIX_visual_select_group --------------------- */
788
789#ifndef GLX_SGIX_visual_select_group
790#define GLX_SGIX_visual_select_group 1
791
792#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
793
794#define GLXEW_SGIX_visual_select_group GLXEW_GET_VAR(__GLXEW_SGIX_visual_select_group)
795
796#endif /* GLX_SGIX_visual_select_group */
797
798/* ---------------------------- GLX_SGI_cushion ---------------------------- */
799
800#ifndef GLX_SGI_cushion
801#define GLX_SGI_cushion 1
802
803typedef void ( * PFNGLXCUSHIONSGIPROC) (Display* dpy, Window window, float cushion);
804
805#define glXCushionSGI GLXEW_GET_FUN(__glewXCushionSGI)
806
807#define GLXEW_SGI_cushion GLXEW_GET_VAR(__GLXEW_SGI_cushion)
808
809#endif /* GLX_SGI_cushion */
810
811/* ----------------------- GLX_SGI_make_current_read ----------------------- */
812
813#ifndef GLX_SGI_make_current_read
814#define GLX_SGI_make_current_read 1
815
816typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
817typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
818
819#define glXGetCurrentReadDrawableSGI GLXEW_GET_FUN(__glewXGetCurrentReadDrawableSGI)
820#define glXMakeCurrentReadSGI GLXEW_GET_FUN(__glewXMakeCurrentReadSGI)
821
822#define GLXEW_SGI_make_current_read GLXEW_GET_VAR(__GLXEW_SGI_make_current_read)
823
824#endif /* GLX_SGI_make_current_read */
825
826/* -------------------------- GLX_SGI_swap_control ------------------------- */
827
828#ifndef GLX_SGI_swap_control
829#define GLX_SGI_swap_control 1
830
831typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
832
833#define glXSwapIntervalSGI GLXEW_GET_FUN(__glewXSwapIntervalSGI)
834
835#define GLXEW_SGI_swap_control GLXEW_GET_VAR(__GLXEW_SGI_swap_control)
836
837#endif /* GLX_SGI_swap_control */
838
839/* --------------------------- GLX_SGI_video_sync -------------------------- */
840
841#ifndef GLX_SGI_video_sync
842#define GLX_SGI_video_sync 1
843
844typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (uint* count);
845typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int* count);
846
847#define glXGetVideoSyncSGI GLXEW_GET_FUN(__glewXGetVideoSyncSGI)
848#define glXWaitVideoSyncSGI GLXEW_GET_FUN(__glewXWaitVideoSyncSGI)
849
850#define GLXEW_SGI_video_sync GLXEW_GET_VAR(__GLXEW_SGI_video_sync)
851
852#endif /* GLX_SGI_video_sync */
853
854/* --------------------- GLX_SUN_get_transparent_index --------------------- */
855
856#ifndef GLX_SUN_get_transparent_index
857#define GLX_SUN_get_transparent_index 1
858
859typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display* dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex);
860
861#define glXGetTransparentIndexSUN GLXEW_GET_FUN(__glewXGetTransparentIndexSUN)
862
863#define GLXEW_SUN_get_transparent_index GLXEW_GET_VAR(__GLXEW_SUN_get_transparent_index)
864
865#endif /* GLX_SUN_get_transparent_index */
866
867/* -------------------------- GLX_SUN_video_resize ------------------------- */
868
869#ifndef GLX_SUN_video_resize
870#define GLX_SUN_video_resize 1
871
872#define GLX_VIDEO_RESIZE_SUN 0x8171
873#define GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD
874
875typedef int ( * PFNGLXGETVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float* factor);
876typedef int ( * PFNGLXVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float factor);
877
878#define glXGetVideoResizeSUN GLXEW_GET_FUN(__glewXGetVideoResizeSUN)
879#define glXVideoResizeSUN GLXEW_GET_FUN(__glewXVideoResizeSUN)
880
881#define GLXEW_SUN_video_resize GLXEW_GET_VAR(__GLXEW_SUN_video_resize)
882
883#endif /* GLX_SUN_video_resize */
884
885/* ------------------------------------------------------------------------- */
886
887#ifdef GLEW_MX
888#define GLXEW_EXPORT
889#else
890#define GLXEW_EXPORT extern
891#endif /* GLEW_MX */
892
893extern PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay;
894
895extern PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig;
896extern PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext;
897extern PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer;
898extern PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap;
899extern PFNGLXCREATEWINDOWPROC __glewXCreateWindow;
900extern PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer;
901extern PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap;
902extern PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow;
903extern PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable;
904extern PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib;
905extern PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs;
906extern PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent;
907extern PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig;
908extern PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent;
909extern PFNGLXQUERYCONTEXTPROC __glewXQueryContext;
910extern PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable;
911extern PFNGLXSELECTEVENTPROC __glewXSelectEvent;
912
913extern PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI;
914extern PFNGLXDRAWABLEATTRIBATIPROC __glewXDrawableAttribATI;
915extern PFNGLXRELEASETEXIMAGEATIPROC __glewXReleaseTexImageATI;
916
917extern PFNGLXFREECONTEXTEXTPROC __glewXFreeContextEXT;
918extern PFNGLXGETCONTEXTIDEXTPROC __glewXGetContextIDEXT;
919extern PFNGLXIMPORTCONTEXTEXTPROC __glewXImportContextEXT;
920extern PFNGLXQUERYCONTEXTINFOEXTPROC __glewXQueryContextInfoEXT;
921
922extern PFNGLXGETAGPOFFSETMESAPROC __glewXGetAGPOffsetMESA;
923
924extern PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA;
925
926extern PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA;
927
928extern PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA;
929
930extern PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA;
931
932extern PFNGLXALLOCATEMEMORYNVPROC __glewXAllocateMemoryNV;
933extern PFNGLXFREEMEMORYNVPROC __glewXFreeMemoryNV;
934
935#ifdef GLX_OML_sync_control
936extern PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML;
937extern PFNGLXGETSYNCVALUESOMLPROC __glewXGetSyncValuesOML;
938extern PFNGLXSWAPBUFFERSMSCOMLPROC __glewXSwapBuffersMscOML;
939extern PFNGLXWAITFORMSCOMLPROC __glewXWaitForMscOML;
940extern PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML;
941#endif
942
943extern PFNGLXCHOOSEFBCONFIGSGIXPROC __glewXChooseFBConfigSGIX;
944extern PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC __glewXCreateContextWithConfigSGIX;
945extern PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC __glewXCreateGLXPixmapWithConfigSGIX;
946extern PFNGLXGETFBCONFIGATTRIBSGIXPROC __glewXGetFBConfigAttribSGIX;
947extern PFNGLXGETFBCONFIGFROMVISUALSGIXPROC __glewXGetFBConfigFromVisualSGIX;
948extern PFNGLXGETVISUALFROMFBCONFIGSGIXPROC __glewXGetVisualFromFBConfigSGIX;
949
950extern PFNGLXCREATEGLXPBUFFERSGIXPROC __glewXCreateGLXPbufferSGIX;
951extern PFNGLXDESTROYGLXPBUFFERSGIXPROC __glewXDestroyGLXPbufferSGIX;
952extern PFNGLXGETSELECTEDEVENTSGIXPROC __glewXGetSelectedEventSGIX;
953extern PFNGLXQUERYGLXPBUFFERSGIXPROC __glewXQueryGLXPbufferSGIX;
954extern PFNGLXSELECTEVENTSGIXPROC __glewXSelectEventSGIX;
955
956extern PFNGLXBINDSWAPBARRIERSGIXPROC __glewXBindSwapBarrierSGIX;
957extern PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC __glewXQueryMaxSwapBarriersSGIX;
958
959extern PFNGLXJOINSWAPGROUPSGIXPROC __glewXJoinSwapGroupSGIX;
960
961extern PFNGLXBINDCHANNELTOWINDOWSGIXPROC __glewXBindChannelToWindowSGIX;
962extern PFNGLXCHANNELRECTSGIXPROC __glewXChannelRectSGIX;
963extern PFNGLXCHANNELRECTSYNCSGIXPROC __glewXChannelRectSyncSGIX;
964extern PFNGLXQUERYCHANNELDELTASSGIXPROC __glewXQueryChannelDeltasSGIX;
965extern PFNGLXQUERYCHANNELRECTSGIXPROC __glewXQueryChannelRectSGIX;
966
967extern PFNGLXCUSHIONSGIPROC __glewXCushionSGI;
968
969extern PFNGLXGETCURRENTREADDRAWABLESGIPROC __glewXGetCurrentReadDrawableSGI;
970extern PFNGLXMAKECURRENTREADSGIPROC __glewXMakeCurrentReadSGI;
971
972extern PFNGLXSWAPINTERVALSGIPROC __glewXSwapIntervalSGI;
973
974extern PFNGLXGETVIDEOSYNCSGIPROC __glewXGetVideoSyncSGI;
975extern PFNGLXWAITVIDEOSYNCSGIPROC __glewXWaitVideoSyncSGI;
976
977extern PFNGLXGETTRANSPARENTINDEXSUNPROC __glewXGetTransparentIndexSUN;
978
979extern PFNGLXGETVIDEORESIZESUNPROC __glewXGetVideoResizeSUN;
980extern PFNGLXVIDEORESIZESUNPROC __glewXVideoResizeSUN;
981
982#if defined(GLEW_MX)
983struct GLXEWContextStruct
984{
985#endif /* GLEW_MX */
986
987GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_0;
988GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_1;
989GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_2;
990GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_3;
991GLXEW_EXPORT GLboolean __GLXEW_VERSION_1_4;
992GLXEW_EXPORT GLboolean __GLXEW_3DFX_multisample;
993GLXEW_EXPORT GLboolean __GLXEW_ARB_fbconfig_float;
994GLXEW_EXPORT GLboolean __GLXEW_ARB_get_proc_address;
995GLXEW_EXPORT GLboolean __GLXEW_ARB_multisample;
996GLXEW_EXPORT GLboolean __GLXEW_ATI_pixel_format_float;
997GLXEW_EXPORT GLboolean __GLXEW_ATI_render_texture;
998GLXEW_EXPORT GLboolean __GLXEW_EXT_import_context;
999GLXEW_EXPORT GLboolean __GLXEW_EXT_scene_marker;
1000GLXEW_EXPORT GLboolean __GLXEW_EXT_visual_info;
1001GLXEW_EXPORT GLboolean __GLXEW_EXT_visual_rating;
1002GLXEW_EXPORT GLboolean __GLXEW_MESA_agp_offset;
1003GLXEW_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer;
1004GLXEW_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap;
1005GLXEW_EXPORT GLboolean __GLXEW_MESA_release_buffers;
1006GLXEW_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode;
1007GLXEW_EXPORT GLboolean __GLXEW_NV_float_buffer;
1008GLXEW_EXPORT GLboolean __GLXEW_NV_vertex_array_range;
1009GLXEW_EXPORT GLboolean __GLXEW_OML_swap_method;
1010GLXEW_EXPORT GLboolean __GLXEW_OML_sync_control;
1011GLXEW_EXPORT GLboolean __GLXEW_SGIS_blended_overlay;
1012GLXEW_EXPORT GLboolean __GLXEW_SGIS_color_range;
1013GLXEW_EXPORT GLboolean __GLXEW_SGIS_multisample;
1014GLXEW_EXPORT GLboolean __GLXEW_SGIS_shared_multisample;
1015GLXEW_EXPORT GLboolean __GLXEW_SGIX_fbconfig;
1016GLXEW_EXPORT GLboolean __GLXEW_SGIX_pbuffer;
1017GLXEW_EXPORT GLboolean __GLXEW_SGIX_swap_barrier;
1018GLXEW_EXPORT GLboolean __GLXEW_SGIX_swap_group;
1019GLXEW_EXPORT GLboolean __GLXEW_SGIX_video_resize;
1020GLXEW_EXPORT GLboolean __GLXEW_SGIX_visual_select_group;
1021GLXEW_EXPORT GLboolean __GLXEW_SGI_cushion;
1022GLXEW_EXPORT GLboolean __GLXEW_SGI_make_current_read;
1023GLXEW_EXPORT GLboolean __GLXEW_SGI_swap_control;
1024GLXEW_EXPORT GLboolean __GLXEW_SGI_video_sync;
1025GLXEW_EXPORT GLboolean __GLXEW_SUN_get_transparent_index;
1026GLXEW_EXPORT GLboolean __GLXEW_SUN_video_resize;
1027
1028#ifdef GLEW_MX
1029}; /* GLXEWContextStruct */
1030#endif /* GLEW_MX */
1031
1032/* ------------------------------------------------------------------------ */
1033
1034#ifdef GLEW_MX
1035
1036typedef struct GLXEWContextStruct GLXEWContext;
1037extern GLenum glxewContextInit (GLXEWContext* ctx);
1038
1039#define GLXEW_GET_VAR(x) glxewGetContext()->x
1040#define GLXEW_GET_FUN(x) x
1041
1042#else /* GLEW_MX */
1043
1044#define GLXEW_GET_VAR(x) x
1045#define GLXEW_GET_FUN(x) x
1046
1047#endif /* GLEW_MX */
1048
1049extern GLboolean glxewGetExtension (const char* name);
1050
1051#ifdef __cplusplus
1052}
1053#endif
1054
1055#endif /* __glxew_h__ */
Note: See TracBrowser for help on using the repository browser.