Magellan Linux

Annotation of /trunk/opengl-update-magellan/glxext.h-11

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (hide annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 29621 byte(s)
-import

1 niro 153 #ifndef __glxext_h_
2     #define __glxext_h_
3    
4     #ifdef __cplusplus
5     extern "C" {
6     #endif
7    
8     /*
9     ** License Applicability. Except to the extent portions of this file are
10     ** made subject to an alternative license as permitted in the SGI Free
11     ** Software License B, Version 1.1 (the "License"), the contents of this
12     ** file are subject only to the provisions of the License. You may not use
13     ** this file except in compliance with the License. You may obtain a copy
14     ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
15     ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
16     **
17     ** http://oss.sgi.com/projects/FreeB
18     **
19     ** Note that, as provided in the License, the Software is distributed on an
20     ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
21     ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
22     ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
23     ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
24     **
25     ** Original Code. The Original Code is: OpenGL Sample Implementation,
26     ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
27     ** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
28     ** Copyright in any portions created by third parties is as indicated
29     ** elsewhere herein. All Rights Reserved.
30     **
31     ** Additional Notice Provisions: This software was created using the
32     ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
33     ** not been independently verified as being compliant with the OpenGL(R)
34     ** version 1.2.1 Specification.
35     */
36    
37     #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
38     #define WIN32_LEAN_AND_MEAN 1
39     #include <windows.h>
40     #endif
41    
42     #ifndef APIENTRY
43     #define APIENTRY
44     #endif
45     #ifndef APIENTRYP
46     #define APIENTRYP APIENTRY *
47     #endif
48     #ifndef GLAPI
49     #define GLAPI extern
50     #endif
51    
52     /*************************************************************/
53    
54     /* Header file version number, required by OpenGL ABI for Linux */
55     /* glxext.h last updated 2005/04/28 */
56     /* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
57     #define GLX_GLXEXT_VERSION 11
58    
59     #ifndef GLX_VERSION_1_3
60     #define GLX_WINDOW_BIT 0x00000001
61     #define GLX_PIXMAP_BIT 0x00000002
62     #define GLX_PBUFFER_BIT 0x00000004
63     #define GLX_RGBA_BIT 0x00000001
64     #define GLX_COLOR_INDEX_BIT 0x00000002
65     #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
66     #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
67     #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
68     #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
69     #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
70     #define GLX_AUX_BUFFERS_BIT 0x00000010
71     #define GLX_DEPTH_BUFFER_BIT 0x00000020
72     #define GLX_STENCIL_BUFFER_BIT 0x00000040
73     #define GLX_ACCUM_BUFFER_BIT 0x00000080
74     #define GLX_CONFIG_CAVEAT 0x20
75     #define GLX_X_VISUAL_TYPE 0x22
76     #define GLX_TRANSPARENT_TYPE 0x23
77     #define GLX_TRANSPARENT_INDEX_VALUE 0x24
78     #define GLX_TRANSPARENT_RED_VALUE 0x25
79     #define GLX_TRANSPARENT_GREEN_VALUE 0x26
80     #define GLX_TRANSPARENT_BLUE_VALUE 0x27
81     #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
82     #define GLX_DONT_CARE 0xFFFFFFFF
83     #define GLX_NONE 0x8000
84     #define GLX_SLOW_CONFIG 0x8001
85     #define GLX_TRUE_COLOR 0x8002
86     #define GLX_DIRECT_COLOR 0x8003
87     #define GLX_PSEUDO_COLOR 0x8004
88     #define GLX_STATIC_COLOR 0x8005
89     #define GLX_GRAY_SCALE 0x8006
90     #define GLX_STATIC_GRAY 0x8007
91     #define GLX_TRANSPARENT_RGB 0x8008
92     #define GLX_TRANSPARENT_INDEX 0x8009
93     #define GLX_VISUAL_ID 0x800B
94     #define GLX_SCREEN 0x800C
95     #define GLX_NON_CONFORMANT_CONFIG 0x800D
96     #define GLX_DRAWABLE_TYPE 0x8010
97     #define GLX_RENDER_TYPE 0x8011
98     #define GLX_X_RENDERABLE 0x8012
99     #define GLX_FBCONFIG_ID 0x8013
100     #define GLX_RGBA_TYPE 0x8014
101     #define GLX_COLOR_INDEX_TYPE 0x8015
102     #define GLX_MAX_PBUFFER_WIDTH 0x8016
103     #define GLX_MAX_PBUFFER_HEIGHT 0x8017
104     #define GLX_MAX_PBUFFER_PIXELS 0x8018
105     #define GLX_PRESERVED_CONTENTS 0x801B
106     #define GLX_LARGEST_PBUFFER 0x801C
107     #define GLX_WIDTH 0x801D
108     #define GLX_HEIGHT 0x801E
109     #define GLX_EVENT_MASK 0x801F
110     #define GLX_DAMAGED 0x8020
111     #define GLX_SAVED 0x8021
112     #define GLX_WINDOW 0x8022
113     #define GLX_PBUFFER 0x8023
114     #define GLX_PBUFFER_HEIGHT 0x8040
115     #define GLX_PBUFFER_WIDTH 0x8041
116     #endif
117    
118     #ifndef GLX_VERSION_1_4
119     #define GLX_SAMPLE_BUFFERS 100000
120     #define GLX_SAMPLES 100001
121     #endif
122    
123     #ifndef GLX_ARB_get_proc_address
124     #endif
125    
126     #ifndef GLX_ARB_multisample
127     #define GLX_SAMPLE_BUFFERS_ARB 100000
128     #define GLX_SAMPLES_ARB 100001
129     #endif
130    
131     #ifndef GLX_ARB_fbconfig_float
132     #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
133     #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
134     #endif
135    
136     #ifndef GLX_SGIS_multisample
137     #define GLX_SAMPLE_BUFFERS_SGIS 100000
138     #define GLX_SAMPLES_SGIS 100001
139     #endif
140    
141     #ifndef GLX_EXT_visual_info
142     #define GLX_X_VISUAL_TYPE_EXT 0x22
143     #define GLX_TRANSPARENT_TYPE_EXT 0x23
144     #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
145     #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
146     #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
147     #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
148     #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
149     #define GLX_NONE_EXT 0x8000
150     #define GLX_TRUE_COLOR_EXT 0x8002
151     #define GLX_DIRECT_COLOR_EXT 0x8003
152     #define GLX_PSEUDO_COLOR_EXT 0x8004
153     #define GLX_STATIC_COLOR_EXT 0x8005
154     #define GLX_GRAY_SCALE_EXT 0x8006
155     #define GLX_STATIC_GRAY_EXT 0x8007
156     #define GLX_TRANSPARENT_RGB_EXT 0x8008
157     #define GLX_TRANSPARENT_INDEX_EXT 0x8009
158     #endif
159    
160     #ifndef GLX_SGI_swap_control
161     #endif
162    
163     #ifndef GLX_SGI_video_sync
164     #endif
165    
166     #ifndef GLX_SGI_make_current_read
167     #endif
168    
169     #ifndef GLX_SGIX_video_source
170     #endif
171    
172     #ifndef GLX_EXT_visual_rating
173     #define GLX_VISUAL_CAVEAT_EXT 0x20
174     #define GLX_SLOW_VISUAL_EXT 0x8001
175     #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
176     /* reuse GLX_NONE_EXT */
177     #endif
178    
179     #ifndef GLX_EXT_import_context
180     #define GLX_SHARE_CONTEXT_EXT 0x800A
181     #define GLX_VISUAL_ID_EXT 0x800B
182     #define GLX_SCREEN_EXT 0x800C
183     #endif
184    
185     #ifndef GLX_SGIX_fbconfig
186     #define GLX_WINDOW_BIT_SGIX 0x00000001
187     #define GLX_PIXMAP_BIT_SGIX 0x00000002
188     #define GLX_RGBA_BIT_SGIX 0x00000001
189     #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
190     #define GLX_DRAWABLE_TYPE_SGIX 0x8010
191     #define GLX_RENDER_TYPE_SGIX 0x8011
192     #define GLX_X_RENDERABLE_SGIX 0x8012
193     #define GLX_FBCONFIG_ID_SGIX 0x8013
194     #define GLX_RGBA_TYPE_SGIX 0x8014
195     #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
196     /* reuse GLX_SCREEN_EXT */
197     #endif
198    
199     #ifndef GLX_SGIX_pbuffer
200     #define GLX_PBUFFER_BIT_SGIX 0x00000004
201     #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
202     #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
203     #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
204     #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
205     #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
206     #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
207     #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
208     #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
209     #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
210     #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
211     #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
212     #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
213     #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
214     #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
215     #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
216     #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
217     #define GLX_LARGEST_PBUFFER_SGIX 0x801C
218     #define GLX_WIDTH_SGIX 0x801D
219     #define GLX_HEIGHT_SGIX 0x801E
220     #define GLX_EVENT_MASK_SGIX 0x801F
221     #define GLX_DAMAGED_SGIX 0x8020
222     #define GLX_SAVED_SGIX 0x8021
223     #define GLX_WINDOW_SGIX 0x8022
224     #define GLX_PBUFFER_SGIX 0x8023
225     #endif
226    
227     #ifndef GLX_SGI_cushion
228     #endif
229    
230     #ifndef GLX_SGIX_video_resize
231     #define GLX_SYNC_FRAME_SGIX 0x00000000
232     #define GLX_SYNC_SWAP_SGIX 0x00000001
233     #endif
234    
235     #ifndef GLX_SGIX_dmbuffer
236     #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
237     #endif
238    
239     #ifndef GLX_SGIX_swap_group
240     #endif
241    
242     #ifndef GLX_SGIX_swap_barrier
243     #endif
244    
245     #ifndef GLX_SGIS_blended_overlay
246     #define GLX_BLENDED_RGBA_SGIS 0x8025
247     #endif
248    
249     #ifndef GLX_SGIS_shared_multisample
250     #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
251     #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
252     #endif
253    
254     #ifndef GLX_SUN_get_transparent_index
255     #endif
256    
257     #ifndef GLX_3DFX_multisample
258     #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
259     #define GLX_SAMPLES_3DFX 0x8051
260     #endif
261    
262     #ifndef GLX_MESA_copy_sub_buffer
263     #endif
264    
265     #ifndef GLX_MESA_pixmap_colormap
266     #endif
267    
268     #ifndef GLX_MESA_release_buffers
269     #endif
270    
271     #ifndef GLX_MESA_set_3dfx_mode
272     #define GLX_3DFX_WINDOW_MODE_MESA 0x1
273     #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
274     #endif
275    
276     #ifndef GLX_SGIX_visual_select_group
277     #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
278     #endif
279    
280     #ifndef GLX_OML_swap_method
281     #define GLX_SWAP_METHOD_OML 0x8060
282     #define GLX_SWAP_EXCHANGE_OML 0x8061
283     #define GLX_SWAP_COPY_OML 0x8062
284     #define GLX_SWAP_UNDEFINED_OML 0x8063
285     #endif
286    
287     #ifndef GLX_OML_sync_control
288     #endif
289    
290     #ifndef GLX_NV_float_buffer
291     #define GLX_FLOAT_COMPONENTS_NV 0x20B0
292     #endif
293    
294     #ifndef GLX_SGIX_hyperpipe
295     #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
296     #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
297     #define GLX_BAD_HYPERPIPE_SGIX 92
298     #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
299     #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
300     #define GLX_PIPE_RECT_SGIX 0x00000001
301     #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
302     #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
303     #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
304     #define GLX_HYPERPIPE_ID_SGIX 0x8030
305     #endif
306    
307     #ifndef GLX_MESA_agp_offset
308     #endif
309    
310    
311     /*************************************************************/
312    
313     #ifndef GLX_ARB_get_proc_address
314     typedef void (*__GLXextFuncPtr)(void);
315     #endif
316    
317     #ifndef GLX_SGIX_video_source
318     typedef XID GLXVideoSourceSGIX;
319     #endif
320    
321     #ifndef GLX_SGIX_fbconfig
322     typedef XID GLXFBConfigIDSGIX;
323     typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
324     #endif
325    
326     #ifndef GLX_SGIX_pbuffer
327     typedef XID GLXPbufferSGIX;
328     typedef struct {
329     int type;
330     unsigned long serial; /* # of last request processed by server */
331     Bool send_event; /* true if this came for SendEvent request */
332     Display *display; /* display the event was read from */
333     GLXDrawable drawable; /* i.d. of Drawable */
334     int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
335     int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
336     unsigned int mask; /* mask indicating which buffers are affected*/
337     int x, y;
338     int width, height;
339     int count; /* if nonzero, at least this many more */
340     } GLXBufferClobberEventSGIX;
341     #endif
342    
343     /* Define int32_t and int64_t types for UST/MSC */
344     /* (as used in the GLX_OML_sync_control extension). */
345     #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
346     #include <inttypes.h>
347     #elif defined( __VMS )
348     #include <inttypes.h>
349     #elif defined(__SCO__) || defined(__USLC__)
350     #include <stdint.h>
351     #elif defined(__UNIXOS2__) || defined(__SOL64__)
352     typedef long int int32_t;
353     typedef long long int int64_t;
354     #else
355     #include <inttypes.h> /* Fallback option */
356     #endif
357    
358     #ifndef GLX_VERSION_1_3
359     #define GLX_VERSION_1_3 1
360     #ifdef GLX_GLXEXT_PROTOTYPES
361     extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
362     extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
363     extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
364     extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
365     extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
366     extern void glXDestroyWindow (Display *, GLXWindow);
367     extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
368     extern void glXDestroyPixmap (Display *, GLXPixmap);
369     extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
370     extern void glXDestroyPbuffer (Display *, GLXPbuffer);
371     extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
372     extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
373     extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
374     extern GLXDrawable glXGetCurrentReadDrawable (void);
375     extern Display * glXGetCurrentDisplay (void);
376     extern int glXQueryContext (Display *, GLXContext, int, int *);
377     extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
378     extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
379     #endif /* GLX_GLXEXT_PROTOTYPES */
380     typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
381     typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
382     typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
383     typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
384     typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
385     typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
386     typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
387     typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
388     typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
389     typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
390     typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
391     typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
392     typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
393     typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
394     typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
395     typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
396     typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
397     typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
398     #endif
399    
400     #ifndef GLX_VERSION_1_4
401     #define GLX_VERSION_1_4 1
402     #ifdef GLX_GLXEXT_PROTOTYPES
403     extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
404     #endif /* GLX_GLXEXT_PROTOTYPES */
405     typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
406     #endif
407    
408     #ifndef GLX_ARB_get_proc_address
409     #define GLX_ARB_get_proc_address 1
410     #ifdef GLX_GLXEXT_PROTOTYPES
411     extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
412     #endif /* GLX_GLXEXT_PROTOTYPES */
413     typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
414     #endif
415    
416     #ifndef GLX_ARB_multisample
417     #define GLX_ARB_multisample 1
418     #endif
419    
420     #ifndef GLX_ARB_fbconfig_float
421     #define GLX_ARB_fbconfig_float 1
422     #endif
423    
424     #ifndef GLX_SGIS_multisample
425     #define GLX_SGIS_multisample 1
426     #endif
427    
428     #ifndef GLX_EXT_visual_info
429     #define GLX_EXT_visual_info 1
430     #endif
431    
432     #ifndef GLX_SGI_swap_control
433     #define GLX_SGI_swap_control 1
434     #ifdef GLX_GLXEXT_PROTOTYPES
435     extern int glXSwapIntervalSGI (int);
436     #endif /* GLX_GLXEXT_PROTOTYPES */
437     typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
438     #endif
439    
440     #ifndef GLX_SGI_video_sync
441     #define GLX_SGI_video_sync 1
442     #ifdef GLX_GLXEXT_PROTOTYPES
443     extern int glXGetVideoSyncSGI (unsigned int *);
444     extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
445     #endif /* GLX_GLXEXT_PROTOTYPES */
446     typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
447     typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
448     #endif
449    
450     #ifndef GLX_SGI_make_current_read
451     #define GLX_SGI_make_current_read 1
452     #ifdef GLX_GLXEXT_PROTOTYPES
453     extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
454     extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
455     #endif /* GLX_GLXEXT_PROTOTYPES */
456     typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
457     typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
458     #endif
459    
460     #ifndef GLX_SGIX_video_source
461     #define GLX_SGIX_video_source 1
462     #ifdef _VL_H
463     #ifdef GLX_GLXEXT_PROTOTYPES
464     extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
465     extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
466     #endif /* GLX_GLXEXT_PROTOTYPES */
467     typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
468     typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
469     #endif /* _VL_H */
470     #endif
471    
472     #ifndef GLX_EXT_visual_rating
473     #define GLX_EXT_visual_rating 1
474     #endif
475    
476     #ifndef GLX_EXT_import_context
477     #define GLX_EXT_import_context 1
478     #ifdef GLX_GLXEXT_PROTOTYPES
479     extern Display * glXGetCurrentDisplayEXT (void);
480     extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
481     extern GLXContextID glXGetContextIDEXT (const GLXContext);
482     extern GLXContext glXImportContextEXT (Display *, GLXContextID);
483     extern void glXFreeContextEXT (Display *, GLXContext);
484     #endif /* GLX_GLXEXT_PROTOTYPES */
485     typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
486     typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
487     typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
488     typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
489     typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
490     #endif
491    
492     #ifndef GLX_SGIX_fbconfig
493     #define GLX_SGIX_fbconfig 1
494     #ifdef GLX_GLXEXT_PROTOTYPES
495     extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
496     extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
497     extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
498     extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
499     extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
500     extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
501     #endif /* GLX_GLXEXT_PROTOTYPES */
502     typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
503     typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
504     typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
505     typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
506     typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
507     typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
508     #endif
509    
510     #ifndef GLX_SGIX_pbuffer
511     #define GLX_SGIX_pbuffer 1
512     #ifdef GLX_GLXEXT_PROTOTYPES
513     extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
514     extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
515     extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
516     extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
517     extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
518     #endif /* GLX_GLXEXT_PROTOTYPES */
519     typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
520     typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
521     typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
522     typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
523     typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
524     #endif
525    
526     #ifndef GLX_SGI_cushion
527     #define GLX_SGI_cushion 1
528     #ifdef GLX_GLXEXT_PROTOTYPES
529     extern void glXCushionSGI (Display *, Window, float);
530     #endif /* GLX_GLXEXT_PROTOTYPES */
531     typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
532     #endif
533    
534     #ifndef GLX_SGIX_video_resize
535     #define GLX_SGIX_video_resize 1
536     #ifdef GLX_GLXEXT_PROTOTYPES
537     extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
538     extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
539     extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
540     extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
541     extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
542     #endif /* GLX_GLXEXT_PROTOTYPES */
543     typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
544     typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
545     typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
546     typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
547     typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
548     #endif
549    
550     #ifndef GLX_SGIX_dmbuffer
551     #define GLX_SGIX_dmbuffer 1
552     #ifdef _DM_BUFFER_H_
553     #ifdef GLX_GLXEXT_PROTOTYPES
554     extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
555     #endif /* GLX_GLXEXT_PROTOTYPES */
556     typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
557     #endif /* _DM_BUFFER_H_ */
558     #endif
559    
560     #ifndef GLX_SGIX_swap_group
561     #define GLX_SGIX_swap_group 1
562     #ifdef GLX_GLXEXT_PROTOTYPES
563     extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
564     #endif /* GLX_GLXEXT_PROTOTYPES */
565     typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
566     #endif
567    
568     #ifndef GLX_SGIX_swap_barrier
569     #define GLX_SGIX_swap_barrier 1
570     #ifdef GLX_GLXEXT_PROTOTYPES
571     extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
572     extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
573     #endif /* GLX_GLXEXT_PROTOTYPES */
574     typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
575     typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
576     #endif
577    
578     #ifndef GLX_SUN_get_transparent_index
579     #define GLX_SUN_get_transparent_index 1
580     #ifdef GLX_GLXEXT_PROTOTYPES
581     extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
582     #endif /* GLX_GLXEXT_PROTOTYPES */
583     typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
584     #endif
585    
586     #ifndef GLX_MESA_copy_sub_buffer
587     #define GLX_MESA_copy_sub_buffer 1
588     #ifdef GLX_GLXEXT_PROTOTYPES
589     extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
590     #endif /* GLX_GLXEXT_PROTOTYPES */
591     typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
592     #endif
593    
594     #ifndef GLX_MESA_pixmap_colormap
595     #define GLX_MESA_pixmap_colormap 1
596     #ifdef GLX_GLXEXT_PROTOTYPES
597     extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
598     #endif /* GLX_GLXEXT_PROTOTYPES */
599     typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
600     #endif
601    
602     #ifndef GLX_MESA_release_buffers
603     #define GLX_MESA_release_buffers 1
604     #ifdef GLX_GLXEXT_PROTOTYPES
605     extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
606     #endif /* GLX_GLXEXT_PROTOTYPES */
607     typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
608     #endif
609    
610     #ifndef GLX_MESA_set_3dfx_mode
611     #define GLX_MESA_set_3dfx_mode 1
612     #ifdef GLX_GLXEXT_PROTOTYPES
613     extern Bool glXSet3DfxModeMESA (int);
614     #endif /* GLX_GLXEXT_PROTOTYPES */
615     typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
616     #endif
617    
618     #ifndef GLX_SGIX_visual_select_group
619     #define GLX_SGIX_visual_select_group 1
620     #endif
621    
622     #ifndef GLX_OML_swap_method
623     #define GLX_OML_swap_method 1
624     #endif
625    
626     #ifndef GLX_OML_sync_control
627     #define GLX_OML_sync_control 1
628     #ifdef GLX_GLXEXT_PROTOTYPES
629     extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
630     extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
631     extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
632     extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
633     extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
634     #endif /* GLX_GLXEXT_PROTOTYPES */
635     typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
636     typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
637     typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
638     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);
639     typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
640     #endif
641    
642     #ifndef GLX_NV_float_buffer
643     #define GLX_NV_float_buffer 1
644     #endif
645    
646     #ifndef GLX_SGIX_hyperpipe
647     #define GLX_SGIX_hyperpipe 1
648    
649     typedef struct {
650     char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
651     int networkId;
652     } GLXHyperpipeNetworkSGIX;
653    
654     typedef struct {
655     char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
656     int channel;
657     unsigned int
658     participationType;
659     int timeSlice;
660     } GLXHyperpipeConfigSGIX;
661    
662     typedef struct {
663     char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
664     int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
665     int destXOrigin, destYOrigin, destWidth, destHeight;
666     } GLXPipeRect;
667    
668     typedef struct {
669     char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
670     int XOrigin, YOrigin, maxHeight, maxWidth;
671     } GLXPipeRectLimits;
672    
673     #ifdef GLX_GLXEXT_PROTOTYPES
674     extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *, int *);
675     extern int glXHyperpipeConfigSGIX (Display *, int, int, GLXHyperpipeConfigSGIX *, int *);
676     extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *, int, int *);
677     extern int glXDestroyHyperpipeConfigSGIX (Display *, int);
678     extern int glXBindHyperpipeSGIX (Display *, int);
679     extern int glXQueryHyperpipeBestAttribSGIX (Display *, int, int, int, void *, void *);
680     extern int glXHyperpipeAttribSGIX (Display *, int, int, int, void *);
681     extern int glXQueryHyperpipeAttribSGIX (Display *, int, int, int, void *);
682     #endif /* GLX_GLXEXT_PROTOTYPES */
683     typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
684     typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
685     typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
686     typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
687     typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
688     typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
689     typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
690     typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
691     #endif
692    
693     #ifndef GLX_MESA_agp_offset
694     #define GLX_MESA_agp_offset 1
695     #ifdef GLX_GLXEXT_PROTOTYPES
696     extern unsigned int glXGetAGPOffsetMESA (const void *);
697     #endif /* GLX_GLXEXT_PROTOTYPES */
698     typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
699     #endif
700    
701    
702     #ifdef __cplusplus
703     }
704     #endif
705    
706     #endif