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