9 ** Copyright (c) 2007-2010 The Khronos Group Inc.
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:
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
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.
31 /* Function declaration macros - to move into glplatform.h */
33 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
34 #define WIN32_LEAN_AND_MEAN 1
42 #define APIENTRYP APIENTRY *
48 /*************************************************************/
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
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
114 #ifndef GLX_VERSION_1_4
115 #define GLX_SAMPLE_BUFFERS 100000
116 #define GLX_SAMPLES 100001
119 #ifndef GLX_ARB_get_proc_address
122 #ifndef GLX_ARB_multisample
123 #define GLX_SAMPLE_BUFFERS_ARB 100000
124 #define GLX_SAMPLES_ARB 100001
127 #ifndef GLX_ARB_vertex_buffer_object
128 #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
131 #ifndef GLX_ARB_fbconfig_float
132 #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
133 #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
136 #ifndef GLX_ARB_create_context
137 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
138 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
139 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
140 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
141 #define GLX_CONTEXT_FLAGS_ARB 0x2094
144 #ifndef GLX_ARB_create_context_profile
145 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
146 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
147 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
150 #ifndef GLX_SGIS_multisample
151 #define GLX_SAMPLE_BUFFERS_SGIS 100000
152 #define GLX_SAMPLES_SGIS 100001
155 #ifndef GLX_EXT_visual_info
156 #define GLX_X_VISUAL_TYPE_EXT 0x22
157 #define GLX_TRANSPARENT_TYPE_EXT 0x23
158 #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
159 #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
160 #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
161 #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
162 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
163 #define GLX_NONE_EXT 0x8000
164 #define GLX_TRUE_COLOR_EXT 0x8002
165 #define GLX_DIRECT_COLOR_EXT 0x8003
166 #define GLX_PSEUDO_COLOR_EXT 0x8004
167 #define GLX_STATIC_COLOR_EXT 0x8005
168 #define GLX_GRAY_SCALE_EXT 0x8006
169 #define GLX_STATIC_GRAY_EXT 0x8007
170 #define GLX_TRANSPARENT_RGB_EXT 0x8008
171 #define GLX_TRANSPARENT_INDEX_EXT 0x8009
174 #ifndef GLX_SGI_swap_control
177 #ifndef GLX_SGI_video_sync
180 #ifndef GLX_SGI_make_current_read
183 #ifndef GLX_SGIX_video_source
186 #ifndef GLX_EXT_visual_rating
187 #define GLX_VISUAL_CAVEAT_EXT 0x20
188 #define GLX_SLOW_VISUAL_EXT 0x8001
189 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
190 /* reuse GLX_NONE_EXT */
193 #ifndef GLX_EXT_import_context
194 #define GLX_SHARE_CONTEXT_EXT 0x800A
195 #define GLX_VISUAL_ID_EXT 0x800B
196 #define GLX_SCREEN_EXT 0x800C
199 #ifndef GLX_SGIX_fbconfig
200 #define GLX_WINDOW_BIT_SGIX 0x00000001
201 #define GLX_PIXMAP_BIT_SGIX 0x00000002
202 #define GLX_RGBA_BIT_SGIX 0x00000001
203 #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
204 #define GLX_DRAWABLE_TYPE_SGIX 0x8010
205 #define GLX_RENDER_TYPE_SGIX 0x8011
206 #define GLX_X_RENDERABLE_SGIX 0x8012
207 #define GLX_FBCONFIG_ID_SGIX 0x8013
208 #define GLX_RGBA_TYPE_SGIX 0x8014
209 #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
210 /* reuse GLX_SCREEN_EXT */
213 #ifndef GLX_SGIX_pbuffer
214 #define GLX_PBUFFER_BIT_SGIX 0x00000004
215 #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
216 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
217 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
218 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
219 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
220 #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
221 #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
222 #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
223 #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
224 #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
225 #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
226 #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
227 #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
228 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
229 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
230 #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
231 #define GLX_LARGEST_PBUFFER_SGIX 0x801C
232 #define GLX_WIDTH_SGIX 0x801D
233 #define GLX_HEIGHT_SGIX 0x801E
234 #define GLX_EVENT_MASK_SGIX 0x801F
235 #define GLX_DAMAGED_SGIX 0x8020
236 #define GLX_SAVED_SGIX 0x8021
237 #define GLX_WINDOW_SGIX 0x8022
238 #define GLX_PBUFFER_SGIX 0x8023
241 #ifndef GLX_SGI_cushion
244 #ifndef GLX_SGIX_video_resize
245 #define GLX_SYNC_FRAME_SGIX 0x00000000
246 #define GLX_SYNC_SWAP_SGIX 0x00000001
249 #ifndef GLX_SGIX_dmbuffer
250 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
253 #ifndef GLX_SGIX_swap_group
256 #ifndef GLX_SGIX_swap_barrier
259 #ifndef GLX_SGIS_blended_overlay
260 #define GLX_BLENDED_RGBA_SGIS 0x8025
263 #ifndef GLX_SGIS_shared_multisample
264 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
265 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
268 #ifndef GLX_SUN_get_transparent_index
271 #ifndef GLX_3DFX_multisample
272 #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
273 #define GLX_SAMPLES_3DFX 0x8051
276 #ifndef GLX_MESA_copy_sub_buffer
279 #ifndef GLX_MESA_pixmap_colormap
282 #ifndef GLX_MESA_release_buffers
285 #ifndef GLX_MESA_set_3dfx_mode
286 #define GLX_3DFX_WINDOW_MODE_MESA 0x1
287 #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
290 #ifndef GLX_SGIX_visual_select_group
291 #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
294 #ifndef GLX_OML_swap_method
295 #define GLX_SWAP_METHOD_OML 0x8060
296 #define GLX_SWAP_EXCHANGE_OML 0x8061
297 #define GLX_SWAP_COPY_OML 0x8062
298 #define GLX_SWAP_UNDEFINED_OML 0x8063
301 #ifndef GLX_OML_sync_control
304 #ifndef GLX_NV_float_buffer
305 #define GLX_FLOAT_COMPONENTS_NV 0x20B0
308 #ifndef GLX_SGIX_hyperpipe
309 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
310 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
311 #define GLX_BAD_HYPERPIPE_SGIX 92
312 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
313 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
314 #define GLX_PIPE_RECT_SGIX 0x00000001
315 #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
316 #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
317 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
318 #define GLX_HYPERPIPE_ID_SGIX 0x8030
321 #ifndef GLX_MESA_agp_offset
324 #ifndef GLX_EXT_fbconfig_packed_float
325 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
326 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
329 #ifndef GLX_EXT_framebuffer_sRGB
330 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
333 #ifndef GLX_EXT_texture_from_pixmap
334 #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
335 #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
336 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
337 #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
338 #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
339 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
340 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
341 #define GLX_Y_INVERTED_EXT 0x20D4
342 #define GLX_TEXTURE_FORMAT_EXT 0x20D5
343 #define GLX_TEXTURE_TARGET_EXT 0x20D6
344 #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
345 #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
346 #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
347 #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
348 #define GLX_TEXTURE_1D_EXT 0x20DB
349 #define GLX_TEXTURE_2D_EXT 0x20DC
350 #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
351 #define GLX_FRONT_LEFT_EXT 0x20DE
352 #define GLX_FRONT_RIGHT_EXT 0x20DF
353 #define GLX_BACK_LEFT_EXT 0x20E0
354 #define GLX_BACK_RIGHT_EXT 0x20E1
355 #define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT
356 #define GLX_BACK_EXT GLX_BACK_LEFT_EXT
357 #define GLX_AUX0_EXT 0x20E2
358 #define GLX_AUX1_EXT 0x20E3
359 #define GLX_AUX2_EXT 0x20E4
360 #define GLX_AUX3_EXT 0x20E5
361 #define GLX_AUX4_EXT 0x20E6
362 #define GLX_AUX5_EXT 0x20E7
363 #define GLX_AUX6_EXT 0x20E8
364 #define GLX_AUX7_EXT 0x20E9
365 #define GLX_AUX8_EXT 0x20EA
366 #define GLX_AUX9_EXT 0x20EB
369 #ifndef GLX_NV_present_video
370 #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
373 #ifndef GLX_NV_video_out
374 #define GLX_VIDEO_OUT_COLOR_NV 0x20C3
375 #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
376 #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
377 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
378 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
379 #define GLX_VIDEO_OUT_FRAME_NV 0x20C8
380 #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
381 #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
382 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
383 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
386 #ifndef GLX_NV_swap_group
389 #ifndef GLX_NV_video_capture
390 #define GLX_DEVICE_ID_NV 0x20CD
391 #define GLX_UNIQUE_ID_NV 0x20CE
392 #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
395 #ifndef GLX_EXT_swap_control
396 #define GLX_SWAP_INTERVAL_EXT 0x20F1
397 #define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
400 #ifndef GLX_NV_copy_image
403 #ifndef GLX_INTEL_swap_event
404 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
405 #define GLX_EXCHANGE_COMPLETE_INTEL 0x8180
406 #define GLX_COPY_COMPLETE_INTEL 0x8181
407 #define GLX_FLIP_COMPLETE_INTEL 0x8182
411 /*************************************************************/
413 #ifndef GLX_ARB_get_proc_address
414 typedef void (*__GLXextFuncPtr
)(void);
417 #ifndef GLX_SGIX_video_source
418 typedef XID GLXVideoSourceSGIX
;
421 #ifndef GLX_SGIX_fbconfig
422 typedef XID GLXFBConfigIDSGIX
;
423 typedef struct __GLXFBConfigRec
*GLXFBConfigSGIX
;
426 #ifndef GLX_SGIX_pbuffer
427 typedef XID GLXPbufferSGIX
;
430 unsigned long serial
; /* # of last request processed by server */
431 Bool send_event
; /* true if this came for SendEvent request */
432 Display
*display
; /* display the event was read from */
433 GLXDrawable drawable
; /* i.d. of Drawable */
434 int event_type
; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
435 int draw_type
; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
436 unsigned int mask
; /* mask indicating which buffers are affected*/
439 int count
; /* if nonzero, at least this many more */
440 } GLXBufferClobberEventSGIX
;
443 #ifndef GLX_NV_video_output
444 typedef unsigned int GLXVideoDeviceNV
;
447 #ifndef GLX_NV_video_capture
448 typedef XID GLXVideoCaptureDeviceNV
;
451 #ifndef GLEXT_64_TYPES_DEFINED
452 /* This code block is duplicated in glext.h, so must be protected */
453 #define GLEXT_64_TYPES_DEFINED
454 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
455 /* (as used in the GLX_OML_sync_control extension). */
456 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
457 #include <inttypes.h>
458 #elif defined(__sun__) || defined(__digital__)
459 #include <inttypes.h>
460 #if defined(__STDC__)
461 #if defined(__arch64__) || defined(_LP64)
462 typedef long int int64_t;
463 typedef unsigned long int uint64_t;
465 typedef long long int int64_t;
466 typedef unsigned long long int uint64_t;
467 #endif /* __arch64__ */
468 #endif /* __STDC__ */
469 #elif defined( __VMS ) || defined(__sgi)
470 #include <inttypes.h>
471 #elif defined(__SCO__) || defined(__USLC__)
473 #elif defined(__UNIXOS2__) || defined(__SOL64__)
474 typedef long int int32_t;
475 typedef long long int int64_t;
476 typedef unsigned long long int uint64_t;
477 #elif defined(_WIN32) && defined(__GNUC__)
479 #elif defined(_WIN32)
480 typedef __int32
int32_t;
481 typedef __int64
int64_t;
482 typedef unsigned __int64
uint64_t;
484 #include <inttypes.h> /* Fallback option */
488 #ifndef GLX_VERSION_1_3
489 #define GLX_VERSION_1_3 1
490 #ifdef GLX_GLXEXT_PROTOTYPES
491 extern GLXFBConfig
* glXGetFBConfigs (Display
*dpy
, int screen
, int *nelements
);
492 extern GLXFBConfig
* glXChooseFBConfig (Display
*dpy
, int screen
, const int *attrib_list
, int *nelements
);
493 extern int glXGetFBConfigAttrib (Display
*dpy
, GLXFBConfig config
, int attribute
, int *value
);
494 extern XVisualInfo
* glXGetVisualFromFBConfig (Display
*dpy
, GLXFBConfig config
);
495 extern GLXWindow
glXCreateWindow (Display
*dpy
, GLXFBConfig config
, Window win
, const int *attrib_list
);
496 extern void glXDestroyWindow (Display
*dpy
, GLXWindow win
);
497 extern GLXPixmap
glXCreatePixmap (Display
*dpy
, GLXFBConfig config
, Pixmap pixmap
, const int *attrib_list
);
498 extern void glXDestroyPixmap (Display
*dpy
, GLXPixmap pixmap
);
499 extern GLXPbuffer
glXCreatePbuffer (Display
*dpy
, GLXFBConfig config
, const int *attrib_list
);
500 extern void glXDestroyPbuffer (Display
*dpy
, GLXPbuffer pbuf
);
501 extern void glXQueryDrawable (Display
*dpy
, GLXDrawable draw
, int attribute
, unsigned int *value
);
502 extern GLXContext
glXCreateNewContext (Display
*dpy
, GLXFBConfig config
, int render_type
, GLXContext share_list
, Bool direct
);
503 extern Bool
glXMakeContextCurrent (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
504 extern GLXDrawable
glXGetCurrentReadDrawable (void);
505 extern Display
* glXGetCurrentDisplay (void);
506 extern int glXQueryContext (Display
*dpy
, GLXContext ctx
, int attribute
, int *value
);
507 extern void glXSelectEvent (Display
*dpy
, GLXDrawable draw
, unsigned long event_mask
);
508 extern void glXGetSelectedEvent (Display
*dpy
, GLXDrawable draw
, unsigned long *event_mask
);
509 #endif /* GLX_GLXEXT_PROTOTYPES */
510 typedef GLXFBConfig
* ( * PFNGLXGETFBCONFIGSPROC
) (Display
*dpy
, int screen
, int *nelements
);
511 typedef GLXFBConfig
* ( * PFNGLXCHOOSEFBCONFIGPROC
) (Display
*dpy
, int screen
, const int *attrib_list
, int *nelements
);
512 typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC
) (Display
*dpy
, GLXFBConfig config
, int attribute
, int *value
);
513 typedef XVisualInfo
* ( * PFNGLXGETVISUALFROMFBCONFIGPROC
) (Display
*dpy
, GLXFBConfig config
);
514 typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC
) (Display
*dpy
, GLXFBConfig config
, Window win
, const int *attrib_list
);
515 typedef void ( * PFNGLXDESTROYWINDOWPROC
) (Display
*dpy
, GLXWindow win
);
516 typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC
) (Display
*dpy
, GLXFBConfig config
, Pixmap pixmap
, const int *attrib_list
);
517 typedef void ( * PFNGLXDESTROYPIXMAPPROC
) (Display
*dpy
, GLXPixmap pixmap
);
518 typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC
) (Display
*dpy
, GLXFBConfig config
, const int *attrib_list
);
519 typedef void ( * PFNGLXDESTROYPBUFFERPROC
) (Display
*dpy
, GLXPbuffer pbuf
);
520 typedef void ( * PFNGLXQUERYDRAWABLEPROC
) (Display
*dpy
, GLXDrawable draw
, int attribute
, unsigned int *value
);
521 typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC
) (Display
*dpy
, GLXFBConfig config
, int render_type
, GLXContext share_list
, Bool direct
);
522 typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC
) (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
523 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC
) (void);
524 typedef Display
* ( * PFNGLXGETCURRENTDISPLAYPROC
) (void);
525 typedef int ( * PFNGLXQUERYCONTEXTPROC
) (Display
*dpy
, GLXContext ctx
, int attribute
, int *value
);
526 typedef void ( * PFNGLXSELECTEVENTPROC
) (Display
*dpy
, GLXDrawable draw
, unsigned long event_mask
);
527 typedef void ( * PFNGLXGETSELECTEDEVENTPROC
) (Display
*dpy
, GLXDrawable draw
, unsigned long *event_mask
);
530 #ifndef GLX_VERSION_1_4
531 #define GLX_VERSION_1_4 1
532 #ifdef GLX_GLXEXT_PROTOTYPES
533 extern __GLXextFuncPtr
glXGetProcAddress (const GLubyte
*procName
);
534 #endif /* GLX_GLXEXT_PROTOTYPES */
535 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC
) (const GLubyte
*procName
);
538 #ifndef GLX_ARB_get_proc_address
539 #define GLX_ARB_get_proc_address 1
540 #ifdef GLX_GLXEXT_PROTOTYPES
541 extern __GLXextFuncPtr
glXGetProcAddressARB (const GLubyte
*procName
);
542 #endif /* GLX_GLXEXT_PROTOTYPES */
543 typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC
) (const GLubyte
*procName
);
546 #ifndef GLX_ARB_multisample
547 #define GLX_ARB_multisample 1
550 #ifndef GLX_ARB_fbconfig_float
551 #define GLX_ARB_fbconfig_float 1
554 #ifndef GLX_ARB_create_context
555 #define GLX_ARB_create_context 1
556 #ifdef GLX_GLXEXT_PROTOTYPES
557 extern GLXContext
glXCreateContextAttribsARB (Display
*dpy
, GLXFBConfig config
, GLXContext share_context
, Bool direct
, const int *attrib_list
);
558 #endif /* GLX_GLXEXT_PROTOTYPES */
559 typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC
) (Display
*dpy
, GLXFBConfig config
, GLXContext share_context
, Bool direct
, const int *attrib_list
);
562 #ifndef GLX_ARB_create_context_profile
563 #define GLX_ARB_create_context_profile 1
566 #ifndef GLX_SGIS_multisample
567 #define GLX_SGIS_multisample 1
570 #ifndef GLX_EXT_visual_info
571 #define GLX_EXT_visual_info 1
574 #ifndef GLX_SGI_swap_control
575 #define GLX_SGI_swap_control 1
576 #ifdef GLX_GLXEXT_PROTOTYPES
577 extern int glXSwapIntervalSGI (int interval
);
578 #endif /* GLX_GLXEXT_PROTOTYPES */
579 typedef int ( * PFNGLXSWAPINTERVALSGIPROC
) (int interval
);
582 #ifndef GLX_SGI_video_sync
583 #define GLX_SGI_video_sync 1
584 #ifdef GLX_GLXEXT_PROTOTYPES
585 extern int glXGetVideoSyncSGI (unsigned int *count
);
586 extern int glXWaitVideoSyncSGI (int divisor
, int remainder
, unsigned int *count
);
587 #endif /* GLX_GLXEXT_PROTOTYPES */
588 typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC
) (unsigned int *count
);
589 typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC
) (int divisor
, int remainder
, unsigned int *count
);
592 #ifndef GLX_SGI_make_current_read
593 #define GLX_SGI_make_current_read 1
594 #ifdef GLX_GLXEXT_PROTOTYPES
595 extern Bool
glXMakeCurrentReadSGI (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
596 extern GLXDrawable
glXGetCurrentReadDrawableSGI (void);
597 #endif /* GLX_GLXEXT_PROTOTYPES */
598 typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC
) (Display
*dpy
, GLXDrawable draw
, GLXDrawable read
, GLXContext ctx
);
599 typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC
) (void);
602 #ifndef GLX_SGIX_video_source
603 #define GLX_SGIX_video_source 1
605 #ifdef GLX_GLXEXT_PROTOTYPES
606 extern GLXVideoSourceSGIX
glXCreateGLXVideoSourceSGIX (Display
*display
, int screen
, VLServer server
, VLPath path
, int nodeClass
, VLNode drainNode
);
607 extern void glXDestroyGLXVideoSourceSGIX (Display
*dpy
, GLXVideoSourceSGIX glxvideosource
);
608 #endif /* GLX_GLXEXT_PROTOTYPES */
609 typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC
) (Display
*display
, int screen
, VLServer server
, VLPath path
, int nodeClass
, VLNode drainNode
);
610 typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC
) (Display
*dpy
, GLXVideoSourceSGIX glxvideosource
);
614 #ifndef GLX_EXT_visual_rating
615 #define GLX_EXT_visual_rating 1
618 #ifndef GLX_EXT_import_context
619 #define GLX_EXT_import_context 1
620 #ifdef GLX_GLXEXT_PROTOTYPES
621 extern Display
* glXGetCurrentDisplayEXT (void);
622 extern int glXQueryContextInfoEXT (Display
*dpy
, GLXContext context
, int attribute
, int *value
);
623 extern GLXContextID
glXGetContextIDEXT (const GLXContext context
);
624 extern GLXContext
glXImportContextEXT (Display
*dpy
, GLXContextID contextID
);
625 extern void glXFreeContextEXT (Display
*dpy
, GLXContext context
);
626 #endif /* GLX_GLXEXT_PROTOTYPES */
627 typedef Display
* ( * PFNGLXGETCURRENTDISPLAYEXTPROC
) (void);
628 typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC
) (Display
*dpy
, GLXContext context
, int attribute
, int *value
);
629 typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC
) (const GLXContext context
);
630 typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC
) (Display
*dpy
, GLXContextID contextID
);
631 typedef void ( * PFNGLXFREECONTEXTEXTPROC
) (Display
*dpy
, GLXContext context
);
634 #ifndef GLX_SGIX_fbconfig
635 #define GLX_SGIX_fbconfig 1
636 #ifdef GLX_GLXEXT_PROTOTYPES
637 extern int glXGetFBConfigAttribSGIX (Display
*dpy
, GLXFBConfigSGIX config
, int attribute
, int *value
);
638 extern GLXFBConfigSGIX
* glXChooseFBConfigSGIX (Display
*dpy
, int screen
, int *attrib_list
, int *nelements
);
639 extern GLXPixmap
glXCreateGLXPixmapWithConfigSGIX (Display
*dpy
, GLXFBConfigSGIX config
, Pixmap pixmap
);
640 extern GLXContext
glXCreateContextWithConfigSGIX (Display
*dpy
, GLXFBConfigSGIX config
, int render_type
, GLXContext share_list
, Bool direct
);
641 extern XVisualInfo
* glXGetVisualFromFBConfigSGIX (Display
*dpy
, GLXFBConfigSGIX config
);
642 extern GLXFBConfigSGIX
glXGetFBConfigFromVisualSGIX (Display
*dpy
, XVisualInfo
*vis
);
643 #endif /* GLX_GLXEXT_PROTOTYPES */
644 typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, int attribute
, int *value
);
645 typedef GLXFBConfigSGIX
* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC
) (Display
*dpy
, int screen
, int *attrib_list
, int *nelements
);
646 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, Pixmap pixmap
);
647 typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, int render_type
, GLXContext share_list
, Bool direct
);
648 typedef XVisualInfo
* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
);
649 typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC
) (Display
*dpy
, XVisualInfo
*vis
);
652 #ifndef GLX_SGIX_pbuffer
653 #define GLX_SGIX_pbuffer 1
654 #ifdef GLX_GLXEXT_PROTOTYPES
655 extern GLXPbufferSGIX
glXCreateGLXPbufferSGIX (Display
*dpy
, GLXFBConfigSGIX config
, unsigned int width
, unsigned int height
, int *attrib_list
);
656 extern void glXDestroyGLXPbufferSGIX (Display
*dpy
, GLXPbufferSGIX pbuf
);
657 extern int glXQueryGLXPbufferSGIX (Display
*dpy
, GLXPbufferSGIX pbuf
, int attribute
, unsigned int *value
);
658 extern void glXSelectEventSGIX (Display
*dpy
, GLXDrawable drawable
, unsigned long mask
);
659 extern void glXGetSelectedEventSGIX (Display
*dpy
, GLXDrawable drawable
, unsigned long *mask
);
660 #endif /* GLX_GLXEXT_PROTOTYPES */
661 typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXFBConfigSGIX config
, unsigned int width
, unsigned int height
, int *attrib_list
);
662 typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuf
);
663 typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuf
, int attribute
, unsigned int *value
);
664 typedef void ( * PFNGLXSELECTEVENTSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, unsigned long mask
);
665 typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, unsigned long *mask
);
668 #ifndef GLX_SGI_cushion
669 #define GLX_SGI_cushion 1
670 #ifdef GLX_GLXEXT_PROTOTYPES
671 extern void glXCushionSGI (Display
*dpy
, Window window
, float cushion
);
672 #endif /* GLX_GLXEXT_PROTOTYPES */
673 typedef void ( * PFNGLXCUSHIONSGIPROC
) (Display
*dpy
, Window window
, float cushion
);
676 #ifndef GLX_SGIX_video_resize
677 #define GLX_SGIX_video_resize 1
678 #ifdef GLX_GLXEXT_PROTOTYPES
679 extern int glXBindChannelToWindowSGIX (Display
*display
, int screen
, int channel
, Window window
);
680 extern int glXChannelRectSGIX (Display
*display
, int screen
, int channel
, int x
, int y
, int w
, int h
);
681 extern int glXQueryChannelRectSGIX (Display
*display
, int screen
, int channel
, int *dx
, int *dy
, int *dw
, int *dh
);
682 extern int glXQueryChannelDeltasSGIX (Display
*display
, int screen
, int channel
, int *x
, int *y
, int *w
, int *h
);
683 extern int glXChannelRectSyncSGIX (Display
*display
, int screen
, int channel
, GLenum synctype
);
684 #endif /* GLX_GLXEXT_PROTOTYPES */
685 typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC
) (Display
*display
, int screen
, int channel
, Window window
);
686 typedef int ( * PFNGLXCHANNELRECTSGIXPROC
) (Display
*display
, int screen
, int channel
, int x
, int y
, int w
, int h
);
687 typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC
) (Display
*display
, int screen
, int channel
, int *dx
, int *dy
, int *dw
, int *dh
);
688 typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC
) (Display
*display
, int screen
, int channel
, int *x
, int *y
, int *w
, int *h
);
689 typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC
) (Display
*display
, int screen
, int channel
, GLenum synctype
);
692 #ifndef GLX_SGIX_dmbuffer
693 #define GLX_SGIX_dmbuffer 1
695 #ifdef GLX_GLXEXT_PROTOTYPES
696 extern Bool
glXAssociateDMPbufferSGIX (Display
*dpy
, GLXPbufferSGIX pbuffer
, DMparams
*params
, DMbuffer dmbuffer
);
697 #endif /* GLX_GLXEXT_PROTOTYPES */
698 typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC
) (Display
*dpy
, GLXPbufferSGIX pbuffer
, DMparams
*params
, DMbuffer dmbuffer
);
699 #endif /* _DM_BUFFER_H_ */
702 #ifndef GLX_SGIX_swap_group
703 #define GLX_SGIX_swap_group 1
704 #ifdef GLX_GLXEXT_PROTOTYPES
705 extern void glXJoinSwapGroupSGIX (Display
*dpy
, GLXDrawable drawable
, GLXDrawable member
);
706 #endif /* GLX_GLXEXT_PROTOTYPES */
707 typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, GLXDrawable member
);
710 #ifndef GLX_SGIX_swap_barrier
711 #define GLX_SGIX_swap_barrier 1
712 #ifdef GLX_GLXEXT_PROTOTYPES
713 extern void glXBindSwapBarrierSGIX (Display
*dpy
, GLXDrawable drawable
, int barrier
);
714 extern Bool
glXQueryMaxSwapBarriersSGIX (Display
*dpy
, int screen
, int *max
);
715 #endif /* GLX_GLXEXT_PROTOTYPES */
716 typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC
) (Display
*dpy
, GLXDrawable drawable
, int barrier
);
717 typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC
) (Display
*dpy
, int screen
, int *max
);
720 #ifndef GLX_SUN_get_transparent_index
721 #define GLX_SUN_get_transparent_index 1
722 #ifdef GLX_GLXEXT_PROTOTYPES
723 extern Status
glXGetTransparentIndexSUN (Display
*dpy
, Window overlay
, Window underlay
, long *pTransparentIndex
);
724 #endif /* GLX_GLXEXT_PROTOTYPES */
725 typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC
) (Display
*dpy
, Window overlay
, Window underlay
, long *pTransparentIndex
);
728 #ifndef GLX_MESA_copy_sub_buffer
729 #define GLX_MESA_copy_sub_buffer 1
730 #ifdef GLX_GLXEXT_PROTOTYPES
731 extern void glXCopySubBufferMESA (Display
*dpy
, GLXDrawable drawable
, int x
, int y
, int width
, int height
);
732 #endif /* GLX_GLXEXT_PROTOTYPES */
733 typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC
) (Display
*dpy
, GLXDrawable drawable
, int x
, int y
, int width
, int height
);
736 #ifndef GLX_MESA_pixmap_colormap
737 #define GLX_MESA_pixmap_colormap 1
738 #ifdef GLX_GLXEXT_PROTOTYPES
739 extern GLXPixmap
glXCreateGLXPixmapMESA (Display
*dpy
, XVisualInfo
*visual
, Pixmap pixmap
, Colormap cmap
);
740 #endif /* GLX_GLXEXT_PROTOTYPES */
741 typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC
) (Display
*dpy
, XVisualInfo
*visual
, Pixmap pixmap
, Colormap cmap
);
744 #ifndef GLX_MESA_release_buffers
745 #define GLX_MESA_release_buffers 1
746 #ifdef GLX_GLXEXT_PROTOTYPES
747 extern Bool
glXReleaseBuffersMESA (Display
*dpy
, GLXDrawable drawable
);
748 #endif /* GLX_GLXEXT_PROTOTYPES */
749 typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC
) (Display
*dpy
, GLXDrawable drawable
);
752 #ifndef GLX_MESA_set_3dfx_mode
753 #define GLX_MESA_set_3dfx_mode 1
754 #ifdef GLX_GLXEXT_PROTOTYPES
755 extern Bool
glXSet3DfxModeMESA (int mode
);
756 #endif /* GLX_GLXEXT_PROTOTYPES */
757 typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC
) (int mode
);
760 #ifndef GLX_SGIX_visual_select_group
761 #define GLX_SGIX_visual_select_group 1
764 #ifndef GLX_OML_swap_method
765 #define GLX_OML_swap_method 1
768 #ifndef GLX_OML_sync_control
769 #define GLX_OML_sync_control 1
770 #ifdef GLX_GLXEXT_PROTOTYPES
771 extern Bool
glXGetSyncValuesOML (Display
*dpy
, GLXDrawable drawable
, int64_t *ust
, int64_t *msc
, int64_t *sbc
);
772 extern Bool
glXGetMscRateOML (Display
*dpy
, GLXDrawable drawable
, int32_t *numerator
, int32_t *denominator
);
773 extern int64_t glXSwapBuffersMscOML (Display
*dpy
, GLXDrawable drawable
, int64_t target_msc
, int64_t divisor
, int64_t remainder
);
774 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
);
775 extern Bool
glXWaitForSbcOML (Display
*dpy
, GLXDrawable drawable
, int64_t target_sbc
, int64_t *ust
, int64_t *msc
, int64_t *sbc
);
776 #endif /* GLX_GLXEXT_PROTOTYPES */
777 typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC
) (Display
*dpy
, GLXDrawable drawable
, int64_t *ust
, int64_t *msc
, int64_t *sbc
);
778 typedef Bool ( * PFNGLXGETMSCRATEOMLPROC
) (Display
*dpy
, GLXDrawable drawable
, int32_t *numerator
, int32_t *denominator
);
779 typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC
) (Display
*dpy
, GLXDrawable drawable
, int64_t target_msc
, int64_t divisor
, int64_t remainder
);
780 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
);
781 typedef Bool ( * PFNGLXWAITFORSBCOMLPROC
) (Display
*dpy
, GLXDrawable drawable
, int64_t target_sbc
, int64_t *ust
, int64_t *msc
, int64_t *sbc
);
784 #ifndef GLX_NV_float_buffer
785 #define GLX_NV_float_buffer 1
788 #ifndef GLX_SGIX_hyperpipe
789 #define GLX_SGIX_hyperpipe 1
792 char pipeName
[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX
];
794 } GLXHyperpipeNetworkSGIX
;
797 char pipeName
[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX
];
802 } GLXHyperpipeConfigSGIX
;
805 char pipeName
[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX
];
806 int srcXOrigin
, srcYOrigin
, srcWidth
, srcHeight
;
807 int destXOrigin
, destYOrigin
, destWidth
, destHeight
;
811 char pipeName
[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX
];
812 int XOrigin
, YOrigin
, maxHeight
, maxWidth
;
815 #ifdef GLX_GLXEXT_PROTOTYPES
816 extern GLXHyperpipeNetworkSGIX
* glXQueryHyperpipeNetworkSGIX (Display
*dpy
, int *npipes
);
817 extern int glXHyperpipeConfigSGIX (Display
*dpy
, int networkId
, int npipes
, GLXHyperpipeConfigSGIX
*cfg
, int *hpId
);
818 extern GLXHyperpipeConfigSGIX
* glXQueryHyperpipeConfigSGIX (Display
*dpy
, int hpId
, int *npipes
);
819 extern int glXDestroyHyperpipeConfigSGIX (Display
*dpy
, int hpId
);
820 extern int glXBindHyperpipeSGIX (Display
*dpy
, int hpId
);
821 extern int glXQueryHyperpipeBestAttribSGIX (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *attribList
, void *returnAttribList
);
822 extern int glXHyperpipeAttribSGIX (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *attribList
);
823 extern int glXQueryHyperpipeAttribSGIX (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *returnAttribList
);
824 #endif /* GLX_GLXEXT_PROTOTYPES */
825 typedef GLXHyperpipeNetworkSGIX
* ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC
) (Display
*dpy
, int *npipes
);
826 typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC
) (Display
*dpy
, int networkId
, int npipes
, GLXHyperpipeConfigSGIX
*cfg
, int *hpId
);
827 typedef GLXHyperpipeConfigSGIX
* ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC
) (Display
*dpy
, int hpId
, int *npipes
);
828 typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC
) (Display
*dpy
, int hpId
);
829 typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC
) (Display
*dpy
, int hpId
);
830 typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC
) (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *attribList
, void *returnAttribList
);
831 typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC
) (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *attribList
);
832 typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC
) (Display
*dpy
, int timeSlice
, int attrib
, int size
, void *returnAttribList
);
835 #ifndef GLX_MESA_agp_offset
836 #define GLX_MESA_agp_offset 1
837 #ifdef GLX_GLXEXT_PROTOTYPES
838 extern unsigned int glXGetAGPOffsetMESA (const void *pointer
);
839 #endif /* GLX_GLXEXT_PROTOTYPES */
840 typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC
) (const void *pointer
);
843 #ifndef GLX_EXT_fbconfig_packed_float
844 #define GLX_EXT_fbconfig_packed_float 1
847 #ifndef GLX_EXT_framebuffer_sRGB
848 #define GLX_EXT_framebuffer_sRGB 1
851 #ifndef GLX_EXT_texture_from_pixmap
852 #define GLX_EXT_texture_from_pixmap 1
853 #ifdef GLX_GLXEXT_PROTOTYPES
854 extern void glXBindTexImageEXT (Display
*dpy
, GLXDrawable drawable
, int buffer
, const int *attrib_list
);
855 extern void glXReleaseTexImageEXT (Display
*dpy
, GLXDrawable drawable
, int buffer
);
856 #endif /* GLX_GLXEXT_PROTOTYPES */
857 typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC
) (Display
*dpy
, GLXDrawable drawable
, int buffer
, const int *attrib_list
);
858 typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC
) (Display
*dpy
, GLXDrawable drawable
, int buffer
);
861 #ifndef GLX_NV_present_video
862 #define GLX_NV_present_video 1
863 #ifdef GLX_GLXEXT_PROTOTYPES
864 extern unsigned int * glXEnumerateVideoDevicesNV (Display
*dpy
, int screen
, int *nelements
);
865 extern int glXBindVideoDeviceNV (Display
*dpy
, unsigned int video_slot
, unsigned int video_device
, const int *attrib_list
);
866 #endif /* GLX_GLXEXT_PROTOTYPES */
867 typedef unsigned int * ( * PFNGLXENUMERATEVIDEODEVICESNVPROC
) (Display
*dpy
, int screen
, int *nelements
);
868 typedef int ( * PFNGLXBINDVIDEODEVICENVPROC
) (Display
*dpy
, unsigned int video_slot
, unsigned int video_device
, const int *attrib_list
);
871 #ifndef GLX_NV_video_output
872 #define GLX_NV_video_output 1
873 #ifdef GLX_GLXEXT_PROTOTYPES
874 extern int glXGetVideoDeviceNV (Display
*dpy
, int screen
, int numVideoDevices
, GLXVideoDeviceNV
*pVideoDevice
);
875 extern int glXReleaseVideoDeviceNV (Display
*dpy
, int screen
, GLXVideoDeviceNV VideoDevice
);
876 extern int glXBindVideoImageNV (Display
*dpy
, GLXVideoDeviceNV VideoDevice
, GLXPbuffer pbuf
, int iVideoBuffer
);
877 extern int glXReleaseVideoImageNV (Display
*dpy
, GLXPbuffer pbuf
);
878 extern int glXSendPbufferToVideoNV (Display
*dpy
, GLXPbuffer pbuf
, int iBufferType
, unsigned long *pulCounterPbuffer
, GLboolean bBlock
);
879 extern int glXGetVideoInfoNV (Display
*dpy
, int screen
, GLXVideoDeviceNV VideoDevice
, unsigned long *pulCounterOutputPbuffer
, unsigned long *pulCounterOutputVideo
);
880 #endif /* GLX_GLXEXT_PROTOTYPES */
881 typedef int ( * PFNGLXGETVIDEODEVICENVPROC
) (Display
*dpy
, int screen
, int numVideoDevices
, GLXVideoDeviceNV
*pVideoDevice
);
882 typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC
) (Display
*dpy
, int screen
, GLXVideoDeviceNV VideoDevice
);
883 typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC
) (Display
*dpy
, GLXVideoDeviceNV VideoDevice
, GLXPbuffer pbuf
, int iVideoBuffer
);
884 typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC
) (Display
*dpy
, GLXPbuffer pbuf
);
885 typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC
) (Display
*dpy
, GLXPbuffer pbuf
, int iBufferType
, unsigned long *pulCounterPbuffer
, GLboolean bBlock
);
886 typedef int ( * PFNGLXGETVIDEOINFONVPROC
) (Display
*dpy
, int screen
, GLXVideoDeviceNV VideoDevice
, unsigned long *pulCounterOutputPbuffer
, unsigned long *pulCounterOutputVideo
);
889 #ifndef GLX_NV_swap_group
890 #define GLX_NV_swap_group 1
891 #ifdef GLX_GLXEXT_PROTOTYPES
892 extern Bool
glXJoinSwapGroupNV (Display
*dpy
, GLXDrawable drawable
, GLuint group
);
893 extern Bool
glXBindSwapBarrierNV (Display
*dpy
, GLuint group
, GLuint barrier
);
894 extern Bool
glXQuerySwapGroupNV (Display
*dpy
, GLXDrawable drawable
, GLuint
*group
, GLuint
*barrier
);
895 extern Bool
glXQueryMaxSwapGroupsNV (Display
*dpy
, int screen
, GLuint
*maxGroups
, GLuint
*maxBarriers
);
896 extern Bool
glXQueryFrameCountNV (Display
*dpy
, int screen
, GLuint
*count
);
897 extern Bool
glXResetFrameCountNV (Display
*dpy
, int screen
);
898 #endif /* GLX_GLXEXT_PROTOTYPES */
899 typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC
) (Display
*dpy
, GLXDrawable drawable
, GLuint group
);
900 typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC
) (Display
*dpy
, GLuint group
, GLuint barrier
);
901 typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC
) (Display
*dpy
, GLXDrawable drawable
, GLuint
*group
, GLuint
*barrier
);
902 typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC
) (Display
*dpy
, int screen
, GLuint
*maxGroups
, GLuint
*maxBarriers
);
903 typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC
) (Display
*dpy
, int screen
, GLuint
*count
);
904 typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC
) (Display
*dpy
, int screen
);
907 #ifndef GLX_NV_video_capture
908 #define GLX_NV_video_capture 1
909 #ifdef GLX_GLXEXT_PROTOTYPES
910 extern int glXBindVideoCaptureDeviceNV (Display
*dpy
, unsigned int video_capture_slot
, GLXVideoCaptureDeviceNV device
);
911 extern GLXVideoCaptureDeviceNV
* glXEnumerateVideoCaptureDevicesNV (Display
*dpy
, int screen
, int *nelements
);
912 extern void glXLockVideoCaptureDeviceNV (Display
*dpy
, GLXVideoCaptureDeviceNV device
);
913 extern int glXQueryVideoCaptureDeviceNV (Display
*dpy
, GLXVideoCaptureDeviceNV device
, int attribute
, int *value
);
914 extern void glXReleaseVideoCaptureDeviceNV (Display
*dpy
, GLXVideoCaptureDeviceNV device
);
915 #endif /* GLX_GLXEXT_PROTOTYPES */
916 typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC
) (Display
*dpy
, unsigned int video_capture_slot
, GLXVideoCaptureDeviceNV device
);
917 typedef GLXVideoCaptureDeviceNV
* ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC
) (Display
*dpy
, int screen
, int *nelements
);
918 typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC
) (Display
*dpy
, GLXVideoCaptureDeviceNV device
);
919 typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC
) (Display
*dpy
, GLXVideoCaptureDeviceNV device
, int attribute
, int *value
);
920 typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC
) (Display
*dpy
, GLXVideoCaptureDeviceNV device
);
923 #ifndef GLX_EXT_swap_control
924 #define GLX_EXT_swap_control 1
925 #ifdef GLX_GLXEXT_PROTOTYPES
926 extern int glXSwapIntervalEXT (Display
*dpy
, GLXDrawable drawable
, int interval
);
927 #endif /* GLX_GLXEXT_PROTOTYPES */
928 typedef int ( * PFNGLXSWAPINTERVALEXTPROC
) (Display
*dpy
, GLXDrawable drawable
, int interval
);
931 #ifndef GLX_NV_copy_image
932 #define GLX_NV_copy_image 1
933 #ifdef GLX_GLXEXT_PROTOTYPES
934 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
);
935 #endif /* GLX_GLXEXT_PROTOTYPES */
936 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
);
939 #ifndef GLX_INTEL_swap_event
940 #define GLX_INTEL_swap_event 1