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:
17 ** http://oss.sgi.com/projects/FreeB
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.
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-2000 Silicon Graphics, Inc.
28 ** Copyright in any portions created by third parties is as indicated
29 ** elsewhere herein. All Rights Reserved.
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.
37 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
38 #define WIN32_LEAN_AND_MEAN 1
46 /*************************************************************/
48 /* Header file version number, required by OpenGL ABI for Linux */
49 #define GLX_GLXEXT_VERSION 2
51 #ifndef GLX_VERSION_1_3
52 #define GLX_WINDOW_BIT 0x00000001
53 #define GLX_PIXMAP_BIT 0x00000002
54 #define GLX_PBUFFER_BIT 0x00000004
55 #define GLX_RGBA_BIT 0x00000001
56 #define GLX_COLOR_INDEX_BIT 0x00000002
57 #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
58 #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
59 #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
60 #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
61 #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
62 #define GLX_AUX_BUFFERS_BIT 0x00000010
63 #define GLX_DEPTH_BUFFER_BIT 0x00000020
64 #define GLX_STENCIL_BUFFER_BIT 0x00000040
65 #define GLX_ACCUM_BUFFER_BIT 0x00000080
66 #define GLX_CONFIG_CAVEAT 0x20
67 #define GLX_X_VISUAL_TYPE 0x22
68 #define GLX_TRANSPARENT_TYPE 0x23
69 #define GLX_TRANSPARENT_INDEX_VALUE 0x24
70 #define GLX_TRANSPARENT_RED_VALUE 0x25
71 #define GLX_TRANSPARENT_GREEN_VALUE 0x26
72 #define GLX_TRANSPARENT_BLUE_VALUE 0x27
73 #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
74 #define GLX_DONT_CARE 0xFFFFFFFF
75 #define GLX_NONE 0x8000
76 #define GLX_SLOW_CONFIG 0x8001
77 #define GLX_TRUE_COLOR 0x8002
78 #define GLX_DIRECT_COLOR 0x8003
79 #define GLX_PSEUDO_COLOR 0x8004
80 #define GLX_STATIC_COLOR 0x8005
81 #define GLX_GRAY_SCALE 0x8006
82 #define GLX_STATIC_GRAY 0x8007
83 #define GLX_TRANSPARENT_RGB 0x8008
84 #define GLX_TRANSPARENT_INDEX 0x8009
85 #define GLX_VISUAL_ID 0x800B
86 #define GLX_SCREEN 0x800C
87 #define GLX_NON_CONFORMANT_CONFIG 0x800D
88 #define GLX_DRAWABLE_TYPE 0x8010
89 #define GLX_RENDER_TYPE 0x8011
90 #define GLX_X_RENDERABLE 0x8012
91 #define GLX_FBCONFIG_ID 0x8013
92 #define GLX_RGBA_TYPE 0x8014
93 #define GLX_COLOR_INDEX_TYPE 0x8015
94 #define GLX_MAX_PBUFFER_WIDTH 0x8016
95 #define GLX_MAX_PBUFFER_HEIGHT 0x8017
96 #define GLX_MAX_PBUFFER_PIXELS 0x8018
97 #define GLX_PRESERVED_CONTENTS 0x801B
98 #define GLX_LARGEST_PBUFFER 0x801C
99 #define GLX_WIDTH 0x801D
100 #define GLX_HEIGHT 0x801E
101 #define GLX_EVENT_MASK 0x801F
102 #define GLX_DAMAGED 0x8020
103 #define GLX_SAVED 0x8021
104 #define GLX_WINDOW 0x8022
105 #define GLX_PBUFFER 0x8023
106 #define GLX_PBUFFER_HEIGHT 0x8040
107 #define GLX_PBUFFER_WIDTH 0x8041
110 /* XXX Added by BrianP */
111 #ifndef GLX_SGIS_multisample
112 #define GLX_SAMPLE_BUFFERS_SGIS 100000
113 #define GLX_SAMPLES_SGIS 100001
116 #ifndef GLX_EXT_visual_info
117 #define GLX_X_VISUAL_TYPE_EXT 0x22
118 #define GLX_TRANSPARENT_TYPE_EXT 0x23
119 #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
120 #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
121 #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
122 #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
123 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
124 #define GLX_NONE_EXT 0x8000
125 #define GLX_TRUE_COLOR_EXT 0x8002
126 #define GLX_DIRECT_COLOR_EXT 0x8003
127 #define GLX_PSEUDO_COLOR_EXT 0x8004
128 #define GLX_STATIC_COLOR_EXT 0x8005
129 #define GLX_GRAY_SCALE_EXT 0x8006
130 #define GLX_STATIC_GRAY_EXT 0x8007
131 #define GLX_TRANSPARENT_RGB_EXT 0x8008
132 #define GLX_TRANSPARENT_INDEX_EXT 0x8009
135 #ifndef GLX_SGI_swap_control
138 #ifndef GLX_SGI_video_sync
141 #ifndef GLX_SGI_make_current_read
144 #ifndef GLX_SGIX_video_source
147 #ifndef GLX_EXT_visual_rating
148 #define GLX_VISUAL_CAVEAT_EXT 0x20
149 #define GLX_SLOW_VISUAL_EXT 0x8001
150 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
151 /* reuse GLX_NONE_EXT */
154 #ifndef GLX_EXT_import_context
155 #define GLX_SHARE_CONTEXT_EXT 0x800A
156 #define GLX_VISUAL_ID_EXT 0x800B
157 #define GLX_SCREEN_EXT 0x800C
160 #ifndef GLX_SGIX_fbconfig
161 #define GLX_WINDOW_BIT_SGIX 0x00000001
162 #define GLX_PIXMAP_BIT_SGIX 0x00000002
163 #define GLX_RGBA_BIT_SGIX 0x00000001
164 #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
165 #define GLX_DRAWABLE_TYPE_SGIX 0x8010
166 #define GLX_RENDER_TYPE_SGIX 0x8011
167 #define GLX_X_RENDERABLE_SGIX 0x8012
168 #define GLX_FBCONFIG_ID_SGIX 0x8013
169 #define GLX_RGBA_TYPE_SGIX 0x8014
170 #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
171 /* reuse GLX_SCREEN_EXT */
174 #ifndef GLX_SGIX_pbuffer
175 #define GLX_PBUFFER_BIT_SGIX 0x00000004
176 #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
177 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
178 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
179 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
180 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
181 #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
182 #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
183 #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
184 #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
185 #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
186 #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
187 #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
188 #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
189 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
190 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
191 #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
192 #define GLX_LARGEST_PBUFFER_SGIX 0x801C
193 #define GLX_WIDTH_SGIX 0x801D
194 #define GLX_HEIGHT_SGIX 0x801E
195 #define GLX_EVENT_MASK_SGIX 0x801F
196 #define GLX_DAMAGED_SGIX 0x8020
197 #define GLX_SAVED_SGIX 0x8021
198 #define GLX_WINDOW_SGIX 0x8022
199 #define GLX_PBUFFER_SGIX 0x8023
202 #ifndef GLX_SGI_cushion
205 #ifndef GLX_SGIX_video_resize
206 #define GLX_SYNC_FRAME_SGIX 0x00000000
207 #define GLX_SYNC_SWAP_SGIX 0x00000001
210 #ifndef GLX_SGIX_dmbuffer
211 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
214 #ifndef GLX_SGIX_swap_group
217 #ifndef GLX_SGIX_swap_barrier
220 #ifndef GLX_SGIS_blended_overlay
221 #define GLX_BLENDED_RGBA_SGIS 0x8025
224 #ifndef GLX_SGIS_shared_multisample
225 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
226 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
229 #ifndef GLX_SUN_get_transparent_index
232 #ifndef GLX_3DFX_multisample
233 #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
234 #define GLX_SAMPLES_3DFX 0x8051
237 #ifndef GLX_MESA_copy_sub_buffer
240 #ifndef GLX_MESA_pixmap_colormap
243 #ifndef GLX_MESA_release_buffers
246 #ifndef GLX_MESA_set_3dfx_mode
247 #define GLX_3DFX_WINDOW_MODE_MESA 0x1
248 #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
252 /*************************************************************/
254 #ifndef GLX_ARB_get_proc_address
255 /* XXX Added void parameter to silence many, many warnings (BrianP) */
256 typedef void (*__GLXextFuncPtr
)(void);
259 #ifndef GLX_SGIX_video_source
260 typedef XID GLXVideoSourceSGIX
;
263 #ifndef GLX_SGIX_fbconfig
264 typedef XID GLXFBConfigIDSGIX
;
265 typedef struct __GLXFBConfigRec
*GLXFBConfigSGIX
;
268 #ifndef GLX_SGIX_pbuffer
269 typedef XID GLXPbufferSGIX
;
272 unsigned long serial
; /* # of last request processed by server */
273 Bool send_event
; /* true if this came for SendEvent request */
274 Display
*display
; /* display the event was read from */
275 GLXDrawable drawable
; /* i.d. of Drawable */
276 int event_type
; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
277 int draw_type
; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
278 unsigned int mask
; /* mask indicating which buffers are affected*/
281 int count
; /* if nonzero, at least this many more */
282 } GLXBufferClobberEventSGIX
;
285 #ifndef GLX_VERSION_1_3
286 #define GLX_VERSION_1_3 1
287 #ifdef GLX_GLXEXT_PROTOTYPES
288 extern GLXFBConfig
* glXGetFBConfigs (Display
*, int, int *);
289 extern GLXFBConfig
* glXChooseFBConfig (Display
*, int, const int *, int *);
290 extern int glXGetFBConfigAttrib (Display
*, GLXFBConfig
, int, int *);
291 extern XVisualInfo
* glXGetVisualFromFBConfig (Display
*, GLXFBConfig
);
292 extern GLXWindow
glXCreateWindow (Display
*, GLXFBConfig
, Window
, const int *);
293 extern void glXDestroyWindow (Display
*, GLXWindow
);
294 extern GLXPixmap
glXCreatePixmap (Display
*, GLXFBConfig
, Pixmap
, const int *);
295 extern void glXDestroyPixmap (Display
*, GLXPixmap
);
296 extern GLXPbuffer
glXCreatePbuffer (Display
*, GLXFBConfig
, const int *);
297 extern void glXDestroyPbuffer (Display
*, GLXPbuffer
);
298 extern void glXQueryDrawable (Display
*, GLXDrawable
, int, unsigned int *);
299 extern GLXContext
glXCreateNewContext (Display
*, GLXFBConfig
, int, GLXContext
, Bool
);
300 extern Bool
glXMakeContextCurrent (Display
*, GLXDrawable
, GLXDrawable
, GLXContext
);
301 extern GLXDrawable
glXGetCurrentReadDrawable (void);
302 extern Display
* glXGetCurrentDisplay (void);
303 extern int glXQueryContext (Display
*, GLXContext
, int, int *);
304 extern void glXSelectEvent (Display
*, GLXDrawable
, unsigned long);
305 extern void glXGetSelectedEvent (Display
*, GLXDrawable
, unsigned long *);
306 #endif /* GLX_GLXEXT_PROTOTYPES */
307 typedef GLXFBConfig
* ( * PFNGLXGETFBCONFIGSPROC
) (Display
*dpy
, int screen
, int *nelements
);
308 typedef GLXFBConfig
* ( * PFNGLXCHOOSEFBCONFIGPROC
) (Display
*dpy
, int screen
, const int *attrib_list
, int *nelements
);
309 typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC
) (Display
*dpy
, GLXFBConfig config
, int attribute
, int *value
);
310 typedef XVisualInfo
* ( * PFNGLXGETVISUALFROMFBCONFIGPROC
) (Display
*dpy
, GLXFBConfig config
);
311 typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC
) (Display
*dpy
, GLXFBConfig config
, Window win
, const int *attrib_list
);
312 typedef void ( * PFNGLXDESTROYWINDOWPROC
) (Display
*dpy
, GLXWindow win
);
313 typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC
) (Display
*dpy
, GLXFBConfig config
, Pixmap pixmap
, const int *attrib_list
);
314 typedef void ( * PFNGLXDESTROYPIXMAPPROC
) (Display
*dpy
, GLXPixmap pixmap
);
315 typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC
) (Display
*dpy
, GLXFBConfig config
, const int *attrib_list
);
316 typedef void ( * PFNGLXDESTROYPBUFFERPROC
) (Display
*dpy
, GLXPbuffer pbuf
);
317 typedef void ( * PFNGLXQUERYDRAWABLEPROC
) (Display
*dpy
, GLXDrawable draw
, int attribute
, unsigned int *value
);
318 typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC
) (Display
*dpy
, GLXFBConfig config
, int render_type
, GLXContext share_list
, Bool direct
);
319 typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC
) (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
320 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC
) (void);
321 typedef Display
* ( * PFNGLXGETCURRENTDISPLAYPROC
) (void);
322 typedef int ( * PFNGLXQUERYCONTEXTPROC
) (Display
*dpy
, GLXContext ctx
, int attribute
, int *value
);
323 typedef void ( * PFNGLXSELECTEVENTPROC
) (Display
*dpy
, GLXDrawable draw
, unsigned long event_mask
);
324 typedef void ( * PFNGLXGETSELECTEDEVENTPROC
) (Display
*dpy
, GLXDrawable draw
, unsigned long *event_mask
);
327 #ifndef GLX_ARB_get_proc_address
328 #define GLX_ARB_get_proc_address 1
329 #ifdef GLX_GLXEXT_PROTOTYPES
330 extern __GLXextFuncPtr
glXGetProcAddressARB (const GLubyte
*);
331 #endif /* GLX_GLXEXT_PROTOTYPES */
332 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC
) (const GLubyte
*procName
);
335 #ifndef GLX_SGIS_multisample
336 #define GLX_SGIS_multisample 1
339 #ifndef GLX_EXT_visual_info
340 #define GLX_EXT_visual_info 1
343 #ifndef GLX_SGI_swap_control
344 #define GLX_SGI_swap_control 1
345 #ifdef GLX_GLXEXT_PROTOTYPES
346 extern int glXSwapIntervalSGI (int);
347 #endif /* GLX_GLXEXT_PROTOTYPES */
348 typedef int ( * PFNGLXSWAPINTERVALSGIPROC
) (int interval
);
351 #ifndef GLX_SGI_video_sync
352 #define GLX_SGI_video_sync 1
353 #ifdef GLX_GLXEXT_PROTOTYPES
354 extern int glXGetVideoSyncSGI (unsigned int *);
355 extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
356 #endif /* GLX_GLXEXT_PROTOTYPES */
357 typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC
) (unsigned int *count
);
358 typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC
) (int divisor
, int remainder
, unsigned int *count
);
361 #ifndef GLX_SGI_make_current_read
362 #define GLX_SGI_make_current_read 1
363 #ifdef GLX_GLXEXT_PROTOTYPES
364 extern Bool
glXMakeCurrentReadSGI (Display
*, GLXDrawable
, GLXDrawable
, GLXContext
);
365 extern GLXDrawable
glXGetCurrentReadDrawableSGI (void);
366 #endif /* GLX_GLXEXT_PROTOTYPES */
367 typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC
) (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
368 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC
) (void);
372 #ifndef GLX_SGIX_video_source
373 #define GLX_SGIX_video_source 1
374 #ifdef GLX_GLXEXT_PROTOTYPES
375 extern GLXVideoSourceSGIX
glXCreateGLXVideoSourceSGIX (Display
*, int, VLServer
, VLPath
, int, VLNode
);
376 extern void glXDestroyGLXVideoSourceSGIX (Display
*, GLXVideoSourceSGIX
);
377 #endif /* GLX_GLXEXT_PROTOTYPES */
378 typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC
) (Display
*display
, int screen
, VLServer server
, VLPath path
, int nodeClass
, VLNode drainNode
);
379 typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC
) (Display
*dpy
, GLXVideoSourceSGIX glxvideosource
);
383 #ifndef GLX_EXT_visual_rating
384 #define GLX_EXT_visual_rating 1
387 #ifndef GLX_EXT_import_context
388 #define GLX_EXT_import_context 1
389 #ifdef GLX_GLXEXT_PROTOTYPES
390 extern Display
* glXGetCurrentDisplayEXT (void);
391 extern int glXQueryContextInfoEXT (Display
*, GLXContext
, int, int *);
392 extern GLXContextID
glXGetContextIDEXT (GLXContext
);
393 extern GLXContext
glXImportContextEXT (Display
*, GLXContextID
);
394 extern void glXFreeContextEXT (Display
*, GLXContext
);
395 #endif /* GLX_GLXEXT_PROTOTYPES */
396 typedef Display
* ( * PFNGLXGETCURRENTDISPLAYEXTPROC
) (void);
397 typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC
) (Display
*dpy
, GLXContext context
, int attribute
, int *value
);
398 typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC
) (GLXContext context
);
399 typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC
) (Display
*dpy
, GLXContextID contextID
);
400 typedef void ( * PFNGLXFREECONTEXTEXTPROC
) (Display
*dpy
, GLXContext context
);
403 #ifndef GLX_SGIX_fbconfig
404 #define GLX_SGIX_fbconfig 1
405 #ifdef GLX_GLXEXT_PROTOTYPES
406 extern int glXGetFBConfigAttribSGIX (Display
*, GLXFBConfigSGIX
, int, int *);
407 extern GLXFBConfigSGIX
* glXChooseFBConfigSGIX (Display
*, int, int *, int *);
408 extern GLXPixmap
glXCreateGLXPixmapWithConfigSGIX (Display
*, GLXFBConfigSGIX
, Pixmap
);
409 extern GLXContext
glXCreateContextWithConfigSGIX (Display
*, GLXFBConfigSGIX
, int, GLXContext
, Bool
);
410 extern XVisualInfo
* glXGetVisualFromFBConfigSGIX (Display
*, GLXFBConfigSGIX
);
411 extern GLXFBConfigSGIX
glXGetFBConfigFromVisualSGIX (Display
*, XVisualInfo
*);
412 #endif /* GLX_GLXEXT_PROTOTYPES */
413 typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, int attribute
, int *value
);
414 typedef GLXFBConfigSGIX
* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC
) (Display
*dpy
, int screen
, int *attrib_list
, int *nelements
);
415 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, Pixmap pixmap
);
416 typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, int render_type
, GLXContext share_list
, Bool direct
);
417 typedef XVisualInfo
* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
);
418 typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC
) (Display
*dpy
, XVisualInfo
*vis
);
421 #ifndef GLX_SGIX_pbuffer
422 #define GLX_SGIX_pbuffer 1
423 #ifdef GLX_GLXEXT_PROTOTYPES
424 extern GLXPbufferSGIX
glXCreateGLXPbufferSGIX (Display
*, GLXFBConfigSGIX
, unsigned int, unsigned int, int *);
425 extern void glXDestroyGLXPbufferSGIX (Display
*, GLXPbufferSGIX
);
426 extern int glXQueryGLXPbufferSGIX (Display
*, GLXPbufferSGIX
, int, unsigned int *);
427 extern void glXSelectEventSGIX (Display
*, GLXDrawable
, unsigned long);
428 extern void glXGetSelectedEventSGIX (Display
*, GLXDrawable
, unsigned long *);
429 #endif /* GLX_GLXEXT_PROTOTYPES */
430 typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, unsigned int width
, unsigned int height
, int *attrib_list
);
431 typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuf
);
432 typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuf
, int attribute
, unsigned int *value
);
433 typedef void ( * PFNGLXSELECTEVENTSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, unsigned long mask
);
434 typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, unsigned long *mask
);
437 #ifndef GLX_SGI_cushion
438 #define GLX_SGI_cushion 1
439 #ifdef GLX_GLXEXT_PROTOTYPES
440 extern void glXCushionSGI (Display
*, Window
, float);
441 #endif /* GLX_GLXEXT_PROTOTYPES */
442 typedef void ( * PFNGLXCUSHIONSGIPROC
) (Display
*dpy
, Window window
, float cushion
);
445 #ifndef GLX_SGIX_video_resize
446 #define GLX_SGIX_video_resize 1
447 #ifdef GLX_GLXEXT_PROTOTYPES
448 extern int glXBindChannelToWindowSGIX (Display
*, int, int, Window
);
449 extern int glXChannelRectSGIX (Display
*, int, int, int, int, int, int);
450 extern int glXQueryChannelRectSGIX (Display
*, int, int, int *, int *, int *, int *);
451 extern int glXQueryChannelDeltasSGIX (Display
*, int, int, int *, int *, int *, int *);
452 extern int glXChannelRectSyncSGIX (Display
*, int, int, GLenum
);
453 #endif /* GLX_GLXEXT_PROTOTYPES */
454 typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC
) (Display
*display
, int screen
, int channel
, Window window
);
455 typedef int ( * PFNGLXCHANNELRECTSGIXPROC
) (Display
*display
, int screen
, int channel
, int x
, int y
, int w
, int h
);
456 typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC
) (Display
*display
, int screen
, int channel
, int *dx
, int *dy
, int *dw
, int *dh
);
457 typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC
) (Display
*display
, int screen
, int channel
, int *x
, int *y
, int *w
, int *h
);
458 typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC
) (Display
*display
, int screen
, int channel
, GLenum synctype
);
462 #ifndef GLX_SGIX_dmbuffer
463 #define GLX_SGIX_dmbuffer 1
464 #ifdef GLX_GLXEXT_PROTOTYPES
465 extern Bool
glXAssociateDMPbufferSGIX (Display
*, GLXPbufferSGIX
, DMparams
*, DMbuffer
);
466 #endif /* GLX_GLXEXT_PROTOTYPES */
467 typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuffer
, DMparams
*params
, DMbuffer dmbuffer
);
470 #endif /* _DM_BUFFER_H_ */
471 #ifndef GLX_SGIX_swap_group
472 #define GLX_SGIX_swap_group 1
473 #ifdef GLX_GLXEXT_PROTOTYPES
474 extern void glXJoinSwapGroupSGIX (Display
*, GLXDrawable
, GLXDrawable
);
475 #endif /* GLX_GLXEXT_PROTOTYPES */
476 typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, GLXDrawable member
);
479 #ifndef GLX_SGIX_swap_barrier
480 #define GLX_SGIX_swap_barrier 1
481 #ifdef GLX_GLXEXT_PROTOTYPES
482 extern void glXBindSwapBarrierSGIX (Display
*, GLXDrawable
, int);
483 extern Bool
glXQueryMaxSwapBarriersSGIX (Display
*, int, int *);
484 #endif /* GLX_GLXEXT_PROTOTYPES */
485 typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, int barrier
);
486 typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC
) (Display
*dpy
, int screen
, int *max
);
489 #ifndef GLX_SUN_get_transparent_index
490 #define GLX_SUN_get_transparent_index 1
491 #ifdef GLX_GLXEXT_PROTOTYPES
492 extern Status
glXGetTransparentIndexSUN (Display
*, Window
, Window
, long *);
493 #endif /* GLX_GLXEXT_PROTOTYPES */
494 typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC
) (Display
*dpy
, Window overlay
, Window underlay
, long *pTransparentIndex
);
497 #ifndef GLX_MESA_copy_sub_buffer
498 #define GLX_MESA_copy_sub_buffer 1
499 #ifdef GLX_GLXEXT_PROTOTYPES
500 extern void glXCopySubBufferMESA (Display
*, GLXDrawable
, int, int, int, int);
501 #endif /* GLX_GLXEXT_PROTOTYPES */
502 typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC
) (Display
*dpy
, GLXDrawable drawable
, int x
, int y
, int width
, int height
);
505 #ifndef GLX_MESA_pixmap_colormap
506 #define GLX_MESA_pixmap_colormap 1
507 #ifdef GLX_GLXEXT_PROTOTYPES
508 extern GLXPixmap
glXCreateGLXPixmapMESA (Display
*, XVisualInfo
*, Pixmap
, Colormap
);
509 #endif /* GLX_GLXEXT_PROTOTYPES */
510 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC
) (Display
*dpy
, XVisualInfo
*visual
, Pixmap pixmap
, Colormap cmap
);
513 #ifndef GLX_MESA_release_buffers
514 #define GLX_MESA_release_buffers 1
515 #ifdef GLX_GLXEXT_PROTOTYPES
516 extern Bool
glXReleaseBuffersMESA (Display
*, GLXDrawable
);
517 #endif /* GLX_GLXEXT_PROTOTYPES */
518 typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC
) (Display
*dpy
, GLXDrawable drawable
);
521 #ifndef GLX_MESA_set_3dfx_mode
522 #define GLX_MESA_set_3dfx_mode 1
523 #ifdef GLX_GLXEXT_PROTOTYPES
524 extern Bool
glXSet3DfxModeMESA (int);
525 #endif /* GLX_GLXEXT_PROTOTYPES */
526 typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC
) (int mode
);