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