Panda3D
panda_glxext.h
1 #ifndef panda__glxext_h_
2 #define panda__glxext_h_ 1
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 /*
9 ** Copyright (c) 2013-2014 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 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
32 ** API Registry. The current version of the Registry, generator scripts
33 ** used to make the header, and the header can be found at
34 ** http://www.opengl.org/registry/
35 **
36 ** Khronos $Revision$ on $Date$
37 */
38 
39 #define GLX_GLXEXT_VERSION 20140416
40 
41 /* Generated C header for:
42  * API: glx
43  * Versions considered: .*
44  * Versions emitted: 1\.[3-9]
45  * Default extensions included: glx
46  * Additional extensions included: _nomatch_^
47  * Extensions removed: _nomatch_^
48  */
49 
50 #ifndef GLX_VERSION_1_3
51 #define GLX_VERSION_1_3 1
52 typedef XID GLXContextID;
53 typedef struct __GLXFBConfigRec *GLXFBConfig;
54 typedef XID GLXWindow;
55 typedef XID GLXPbuffer;
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 typedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (X11_Display *dpy, int screen, int *nelements);
113 typedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (X11_Display *dpy, int screen, const int *attrib_list, int *nelements);
114 typedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (X11_Display *dpy, GLXFBConfig config, int attribute, int *value);
115 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (X11_Display *dpy, GLXFBConfig config);
116 typedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (X11_Display *dpy, GLXFBConfig config, X11_Window win, const int *attrib_list);
117 typedef void ( *PFNGLXDESTROYWINDOWPROC) (X11_Display *dpy, GLXWindow win);
118 typedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (X11_Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
119 typedef void ( *PFNGLXDESTROYPIXMAPPROC) (X11_Display *dpy, GLXPixmap pixmap);
120 typedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (X11_Display *dpy, GLXFBConfig config, const int *attrib_list);
121 typedef void ( *PFNGLXDESTROYPBUFFERPROC) (X11_Display *dpy, GLXPbuffer pbuf);
122 typedef void ( *PFNGLXQUERYDRAWABLEPROC) (X11_Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
123 typedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (X11_Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
124 typedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (X11_Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
125 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
126 typedef int ( *PFNGLXQUERYCONTEXTPROC) (X11_Display *dpy, GLXContext ctx, int attribute, int *value);
127 typedef void ( *PFNGLXSELECTEVENTPROC) (X11_Display *dpy, GLXDrawable draw, unsigned long event_mask);
128 typedef void ( *PFNGLXGETSELECTEDEVENTPROC) (X11_Display *dpy, GLXDrawable draw, unsigned long *event_mask);
129 #ifdef GLX_GLXEXT_PROTOTYPES
130 GLXFBConfig *glXGetFBConfigs (X11_Display *dpy, int screen, int *nelements);
131 GLXFBConfig *glXChooseFBConfig (X11_Display *dpy, int screen, const int *attrib_list, int *nelements);
132 int glXGetFBConfigAttrib (X11_Display *dpy, GLXFBConfig config, int attribute, int *value);
133 XVisualInfo *glXGetVisualFromFBConfig (X11_Display *dpy, GLXFBConfig config);
134 GLXWindow glXCreateWindow (X11_Display *dpy, GLXFBConfig config, X11_Window win, const int *attrib_list);
135 void glXDestroyWindow (X11_Display *dpy, GLXWindow win);
136 GLXPixmap glXCreatePixmap (X11_Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
137 void glXDestroyPixmap (X11_Display *dpy, GLXPixmap pixmap);
138 GLXPbuffer glXCreatePbuffer (X11_Display *dpy, GLXFBConfig config, const int *attrib_list);
139 void glXDestroyPbuffer (X11_Display *dpy, GLXPbuffer pbuf);
140 void glXQueryDrawable (X11_Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
141 GLXContext glXCreateNewContext (X11_Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
142 Bool glXMakeContextCurrent (X11_Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
143 GLXDrawable glXGetCurrentReadDrawable (void);
144 int glXQueryContext (X11_Display *dpy, GLXContext ctx, int attribute, int *value);
145 void glXSelectEvent (X11_Display *dpy, GLXDrawable draw, unsigned long event_mask);
146 void glXGetSelectedEvent (X11_Display *dpy, GLXDrawable draw, unsigned long *event_mask);
147 #endif
148 #endif /* GLX_VERSION_1_3 */
149 
150 #ifndef GLX_VERSION_1_4
151 #define GLX_VERSION_1_4 1
152 typedef void ( *__GLXextFuncPtr)(void);
153 #define GLX_SAMPLE_BUFFERS 100000
154 #define GLX_SAMPLES 100001
155 typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
156 #ifdef GLX_GLXEXT_PROTOTYPES
157 __GLXextFuncPtr glXGetProcAddress (const GLubyte *procName);
158 #endif
159 #endif /* GLX_VERSION_1_4 */
160 
161 #ifndef GLX_ARB_create_context
162 #define GLX_ARB_create_context 1
163 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
164 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
165 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
166 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
167 #define GLX_CONTEXT_FLAGS_ARB 0x2094
168 typedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (X11_Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
169 #ifdef GLX_GLXEXT_PROTOTYPES
170 GLXContext glXCreateContextAttribsARB (X11_Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
171 #endif
172 #endif /* GLX_ARB_create_context */
173 
174 #ifndef GLX_ARB_create_context_profile
175 #define GLX_ARB_create_context_profile 1
176 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
177 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
178 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
179 #endif /* GLX_ARB_create_context_profile */
180 
181 #ifndef GLX_ARB_create_context_robustness
182 #define GLX_ARB_create_context_robustness 1
183 #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
184 #define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252
185 #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
186 #define GLX_NO_RESET_NOTIFICATION_ARB 0x8261
187 #endif /* GLX_ARB_create_context_robustness */
188 
189 #ifndef GLX_ARB_fbconfig_float
190 #define GLX_ARB_fbconfig_float 1
191 #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
192 #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
193 #endif /* GLX_ARB_fbconfig_float */
194 
195 #ifndef GLX_ARB_framebuffer_sRGB
196 #define GLX_ARB_framebuffer_sRGB 1
197 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2
198 #endif /* GLX_ARB_framebuffer_sRGB */
199 
200 #ifndef GLX_ARB_get_proc_address
201 #define GLX_ARB_get_proc_address 1
202 typedef void (*__GLXextFuncPtr)(void);
203 typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
204 #ifdef GLX_GLXEXT_PROTOTYPES
205 __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *procName);
206 #endif
207 #endif /* GLX_ARB_get_proc_address */
208 
209 #ifndef GLX_ARB_multisample
210 #define GLX_ARB_multisample 1
211 #define GLX_SAMPLE_BUFFERS_ARB 100000
212 #define GLX_SAMPLES_ARB 100001
213 #endif /* GLX_ARB_multisample */
214 
215 #ifndef GLX_ARB_robustness_application_isolation
216 #define GLX_ARB_robustness_application_isolation 1
217 #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
218 #endif /* GLX_ARB_robustness_application_isolation */
219 
220 #ifndef GLX_ARB_robustness_share_group_isolation
221 #define GLX_ARB_robustness_share_group_isolation 1
222 #endif /* GLX_ARB_robustness_share_group_isolation */
223 
224 #ifndef GLX_ARB_vertex_buffer_object
225 #define GLX_ARB_vertex_buffer_object 1
226 #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
227 #endif /* GLX_ARB_vertex_buffer_object */
228 
229 #ifndef GLX_3DFX_multisample
230 #define GLX_3DFX_multisample 1
231 #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
232 #define GLX_SAMPLES_3DFX 0x8051
233 #endif /* GLX_3DFX_multisample */
234 
235 #ifndef GLX_AMD_gpu_association
236 #define GLX_AMD_gpu_association 1
237 #define GLX_GPU_VENDOR_AMD 0x1F00
238 #define GLX_GPU_RENDERER_STRING_AMD 0x1F01
239 #define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
240 #define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
241 #define GLX_GPU_RAM_AMD 0x21A3
242 #define GLX_GPU_CLOCK_AMD 0x21A4
243 #define GLX_GPU_NUM_PIPES_AMD 0x21A5
244 #define GLX_GPU_NUM_SIMD_AMD 0x21A6
245 #define GLX_GPU_NUM_RB_AMD 0x21A7
246 #define GLX_GPU_NUM_SPI_AMD 0x21A8
247 #endif /* GLX_AMD_gpu_association */
248 
249 #ifndef GLX_EXT_buffer_age
250 #define GLX_EXT_buffer_age 1
251 #define GLX_BACK_BUFFER_AGE_EXT 0x20F4
252 #endif /* GLX_EXT_buffer_age */
253 
254 #ifndef GLX_EXT_create_context_es2_profile
255 #define GLX_EXT_create_context_es2_profile 1
256 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
257 #endif /* GLX_EXT_create_context_es2_profile */
258 
259 #ifndef GLX_EXT_create_context_es_profile
260 #define GLX_EXT_create_context_es_profile 1
261 #define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
262 #endif /* GLX_EXT_create_context_es_profile */
263 
264 #ifndef GLX_EXT_fbconfig_packed_float
265 #define GLX_EXT_fbconfig_packed_float 1
266 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
267 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
268 #endif /* GLX_EXT_fbconfig_packed_float */
269 
270 #ifndef GLX_EXT_framebuffer_sRGB
271 #define GLX_EXT_framebuffer_sRGB 1
272 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
273 #endif /* GLX_EXT_framebuffer_sRGB */
274 
275 #ifndef GLX_EXT_stereo_tree
276 #define GLX_EXT_stereo_tree 1
277 typedef struct {
278  int type;
279  unsigned long serial;
280  Bool send_event;
281  X11_Display *display;
282  int extension;
283  int evtype;
284  GLXDrawable window;
285  Bool stereo_tree;
287 #define GLX_STEREO_TREE_EXT 0x20F5
288 #define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001
289 #define GLX_STEREO_NOTIFY_EXT 0x00000000
290 #endif /* GLX_EXT_stereo_tree */
291 
292 #ifndef GLX_EXT_swap_control
293 #define GLX_EXT_swap_control 1
294 #define GLX_SWAP_INTERVAL_EXT 0x20F1
295 #define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
296 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (X11_Display *dpy, GLXDrawable drawable, int interval);
297 #ifdef GLX_GLXEXT_PROTOTYPES
298 void glXSwapIntervalEXT (X11_Display *dpy, GLXDrawable drawable, int interval);
299 #endif
300 #endif /* GLX_EXT_swap_control */
301 
302 #ifndef GLX_EXT_swap_control_tear
303 #define GLX_EXT_swap_control_tear 1
304 #define GLX_LATE_SWAPS_TEAR_EXT 0x20F3
305 #endif /* GLX_EXT_swap_control_tear */
306 
307 #ifndef GLX_EXT_texture_from_pixmap
308 #define GLX_EXT_texture_from_pixmap 1
309 #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
310 #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
311 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
312 #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
313 #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
314 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
315 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
316 #define GLX_Y_INVERTED_EXT 0x20D4
317 #define GLX_TEXTURE_FORMAT_EXT 0x20D5
318 #define GLX_TEXTURE_TARGET_EXT 0x20D6
319 #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
320 #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
321 #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
322 #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
323 #define GLX_TEXTURE_1D_EXT 0x20DB
324 #define GLX_TEXTURE_2D_EXT 0x20DC
325 #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
326 #define GLX_FRONT_LEFT_EXT 0x20DE
327 #define GLX_FRONT_RIGHT_EXT 0x20DF
328 #define GLX_BACK_LEFT_EXT 0x20E0
329 #define GLX_BACK_RIGHT_EXT 0x20E1
330 #define GLX_FRONT_EXT 0x20DE
331 #define GLX_BACK_EXT 0x20E0
332 #define GLX_AUX0_EXT 0x20E2
333 #define GLX_AUX1_EXT 0x20E3
334 #define GLX_AUX2_EXT 0x20E4
335 #define GLX_AUX3_EXT 0x20E5
336 #define GLX_AUX4_EXT 0x20E6
337 #define GLX_AUX5_EXT 0x20E7
338 #define GLX_AUX6_EXT 0x20E8
339 #define GLX_AUX7_EXT 0x20E9
340 #define GLX_AUX8_EXT 0x20EA
341 #define GLX_AUX9_EXT 0x20EB
342 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (X11_Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
343 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (X11_Display *dpy, GLXDrawable drawable, int buffer);
344 #ifdef GLX_GLXEXT_PROTOTYPES
345 void glXBindTexImageEXT (X11_Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
346 void glXReleaseTexImageEXT (X11_Display *dpy, GLXDrawable drawable, int buffer);
347 #endif
348 #endif /* GLX_EXT_texture_from_pixmap */
349 
350 #ifndef GLX_EXT_visual_info
351 #define GLX_EXT_visual_info 1
352 #define GLX_X_VISUAL_TYPE_EXT 0x22
353 #define GLX_TRANSPARENT_TYPE_EXT 0x23
354 #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
355 #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
356 #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
357 #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
358 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
359 #define GLX_NONE_EXT 0x8000
360 #define GLX_TRUE_COLOR_EXT 0x8002
361 #define GLX_DIRECT_COLOR_EXT 0x8003
362 #define GLX_PSEUDO_COLOR_EXT 0x8004
363 #define GLX_STATIC_COLOR_EXT 0x8005
364 #define GLX_GRAY_SCALE_EXT 0x8006
365 #define GLX_STATIC_GRAY_EXT 0x8007
366 #define GLX_TRANSPARENT_RGB_EXT 0x8008
367 #define GLX_TRANSPARENT_INDEX_EXT 0x8009
368 #endif /* GLX_EXT_visual_info */
369 
370 #ifndef GLX_EXT_visual_rating
371 #define GLX_EXT_visual_rating 1
372 #define GLX_VISUAL_CAVEAT_EXT 0x20
373 #define GLX_SLOW_VISUAL_EXT 0x8001
374 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
375 #endif /* GLX_EXT_visual_rating */
376 
377 #ifndef GLX_INTEL_swap_event
378 #define GLX_INTEL_swap_event 1
379 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
380 #define GLX_EXCHANGE_COMPLETE_INTEL 0x8180
381 #define GLX_COPY_COMPLETE_INTEL 0x8181
382 #define GLX_FLIP_COMPLETE_INTEL 0x8182
383 #endif /* GLX_INTEL_swap_event */
384 
385 #ifndef GLX_MESA_agp_offset
386 #define GLX_MESA_agp_offset 1
387 typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
388 #ifdef GLX_GLXEXT_PROTOTYPES
389 unsigned int glXGetAGPOffsetMESA (const void *pointer);
390 #endif
391 #endif /* GLX_MESA_agp_offset */
392 
393 #ifndef GLX_MESA_copy_sub_buffer
394 #define GLX_MESA_copy_sub_buffer 1
395 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (X11_Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
396 #ifdef GLX_GLXEXT_PROTOTYPES
397 void glXCopySubBufferMESA (X11_Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
398 #endif
399 #endif /* GLX_MESA_copy_sub_buffer */
400 
401 #ifndef GLX_MESA_pixmap_colormap
402 #define GLX_MESA_pixmap_colormap 1
403 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (X11_Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
404 #ifdef GLX_GLXEXT_PROTOTYPES
405 GLXPixmap glXCreateGLXPixmapMESA (X11_Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
406 #endif
407 #endif /* GLX_MESA_pixmap_colormap */
408 
409 #ifndef GLX_MESA_query_renderer
410 #define GLX_MESA_query_renderer 1
411 #define GLX_RENDERER_VENDOR_ID_MESA 0x8183
412 #define GLX_RENDERER_DEVICE_ID_MESA 0x8184
413 #define GLX_RENDERER_VERSION_MESA 0x8185
414 #define GLX_RENDERER_ACCELERATED_MESA 0x8186
415 #define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187
416 #define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
417 #define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
418 #define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
419 #define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
420 #define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
421 #define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
422 #define GLX_RENDERER_ID_MESA 0x818E
423 typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
424 typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
425 typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (X11_Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
426 typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (X11_Display *dpy, int screen, int renderer, int attribute);
427 #ifdef GLX_GLXEXT_PROTOTYPES
428 Bool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value);
429 const char *glXQueryCurrentRendererStringMESA (int attribute);
430 Bool glXQueryRendererIntegerMESA (X11_Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
431 const char *glXQueryRendererStringMESA (X11_Display *dpy, int screen, int renderer, int attribute);
432 #endif
433 #endif /* GLX_MESA_query_renderer */
434 
435 #ifndef GLX_MESA_release_buffers
436 #define GLX_MESA_release_buffers 1
437 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (X11_Display *dpy, GLXDrawable drawable);
438 #ifdef GLX_GLXEXT_PROTOTYPES
439 Bool glXReleaseBuffersMESA (X11_Display *dpy, GLXDrawable drawable);
440 #endif
441 #endif /* GLX_MESA_release_buffers */
442 
443 #ifndef GLX_MESA_set_3dfx_mode
444 #define GLX_MESA_set_3dfx_mode 1
445 #define GLX_3DFX_WINDOW_MODE_MESA 0x1
446 #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
447 typedef Bool ( *PFNGLXSET3DFXMODEMESAPROC) (int mode);
448 #ifdef GLX_GLXEXT_PROTOTYPES
449 Bool glXSet3DfxModeMESA (int mode);
450 #endif
451 #endif /* GLX_MESA_set_3dfx_mode */
452 
453 #ifndef GLX_NV_copy_image
454 #define GLX_NV_copy_image 1
455 typedef void ( *PFNGLXCOPYIMAGESUBDATANVPROC) (X11_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);
456 #ifdef GLX_GLXEXT_PROTOTYPES
457 void glXCopyImageSubDataNV (X11_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);
458 #endif
459 #endif /* GLX_NV_copy_image */
460 
461 #ifndef GLX_NV_delay_before_swap
462 #define GLX_NV_delay_before_swap 1
463 typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (X11_Display *dpy, GLXDrawable drawable, GLfloat seconds);
464 #ifdef GLX_GLXEXT_PROTOTYPES
465 Bool glXDelayBeforeSwapNV (X11_Display *dpy, GLXDrawable drawable, GLfloat seconds);
466 #endif
467 #endif /* GLX_NV_delay_before_swap */
468 
469 #ifndef GLX_NV_float_buffer
470 #define GLX_NV_float_buffer 1
471 #define GLX_FLOAT_COMPONENTS_NV 0x20B0
472 #endif /* GLX_NV_float_buffer */
473 
474 #ifndef GLX_NV_multisample_coverage
475 #define GLX_NV_multisample_coverage 1
476 #define GLX_COVERAGE_SAMPLES_NV 100001
477 #define GLX_COLOR_SAMPLES_NV 0x20B3
478 #endif /* GLX_NV_multisample_coverage */
479 
480 #ifndef GLX_NV_present_video
481 #define GLX_NV_present_video 1
482 #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
483 typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (X11_Display *dpy, int screen, int *nelements);
484 typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (X11_Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
485 #ifdef GLX_GLXEXT_PROTOTYPES
486 unsigned int *glXEnumerateVideoDevicesNV (X11_Display *dpy, int screen, int *nelements);
487 int glXBindVideoDeviceNV (X11_Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
488 #endif
489 #endif /* GLX_NV_present_video */
490 
491 #ifndef GLX_NV_swap_group
492 #define GLX_NV_swap_group 1
493 typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (X11_Display *dpy, GLXDrawable drawable, GLuint group);
494 typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (X11_Display *dpy, GLuint group, GLuint barrier);
495 typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (X11_Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
496 typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (X11_Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
497 typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (X11_Display *dpy, int screen, GLuint *count);
498 typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (X11_Display *dpy, int screen);
499 #ifdef GLX_GLXEXT_PROTOTYPES
500 Bool glXJoinSwapGroupNV (X11_Display *dpy, GLXDrawable drawable, GLuint group);
501 Bool glXBindSwapBarrierNV (X11_Display *dpy, GLuint group, GLuint barrier);
502 Bool glXQuerySwapGroupNV (X11_Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
503 Bool glXQueryMaxSwapGroupsNV (X11_Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
504 Bool glXQueryFrameCountNV (X11_Display *dpy, int screen, GLuint *count);
505 Bool glXResetFrameCountNV (X11_Display *dpy, int screen);
506 #endif
507 #endif /* GLX_NV_swap_group */
508 
509 #ifndef GLX_NV_video_capture
510 #define GLX_NV_video_capture 1
511 typedef XID GLXVideoCaptureDeviceNV;
512 #define GLX_DEVICE_ID_NV 0x20CD
513 #define GLX_UNIQUE_ID_NV 0x20CE
514 #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
515 typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (X11_Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
516 typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (X11_Display *dpy, int screen, int *nelements);
517 typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (X11_Display *dpy, GLXVideoCaptureDeviceNV device);
518 typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (X11_Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
519 typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (X11_Display *dpy, GLXVideoCaptureDeviceNV device);
520 #ifdef GLX_GLXEXT_PROTOTYPES
521 int glXBindVideoCaptureDeviceNV (X11_Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
522 GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (X11_Display *dpy, int screen, int *nelements);
523 void glXLockVideoCaptureDeviceNV (X11_Display *dpy, GLXVideoCaptureDeviceNV device);
524 int glXQueryVideoCaptureDeviceNV (X11_Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
525 void glXReleaseVideoCaptureDeviceNV (X11_Display *dpy, GLXVideoCaptureDeviceNV device);
526 #endif
527 #endif /* GLX_NV_video_capture */
528 
529 #ifndef GLX_NV_video_output
530 #define GLX_NV_video_output 1
531 typedef unsigned int GLXVideoDeviceNV;
532 #define GLX_VIDEO_OUT_COLOR_NV 0x20C3
533 #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
534 #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
535 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
536 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
537 #define GLX_VIDEO_OUT_FRAME_NV 0x20C8
538 #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
539 #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
540 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
541 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
542 typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (X11_Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
543 typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (X11_Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
544 typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (X11_Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
545 typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (X11_Display *dpy, GLXPbuffer pbuf);
546 typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (X11_Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
547 typedef int ( *PFNGLXGETVIDEOINFONVPROC) (X11_Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
548 #ifdef GLX_GLXEXT_PROTOTYPES
549 int glXGetVideoDeviceNV (X11_Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
550 int glXReleaseVideoDeviceNV (X11_Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
551 int glXBindVideoImageNV (X11_Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
552 int glXReleaseVideoImageNV (X11_Display *dpy, GLXPbuffer pbuf);
553 int glXSendPbufferToVideoNV (X11_Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
554 int glXGetVideoInfoNV (X11_Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
555 #endif
556 #endif /* GLX_NV_video_output */
557 
558 #ifndef GLX_OML_swap_method
559 #define GLX_OML_swap_method 1
560 #define GLX_SWAP_METHOD_OML 0x8060
561 #define GLX_SWAP_EXCHANGE_OML 0x8061
562 #define GLX_SWAP_COPY_OML 0x8062
563 #define GLX_SWAP_UNDEFINED_OML 0x8063
564 #endif /* GLX_OML_swap_method */
565 
566 #ifndef GLX_OML_sync_control
567 #define GLX_OML_sync_control 1
568 #ifndef GLEXT_64_TYPES_DEFINED
569 /* This code block is duplicated in glext.h, so must be protected */
570 #define GLEXT_64_TYPES_DEFINED
571 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
572 /* (as used in the GLX_OML_sync_control extension). */
573 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
574 #include <inttypes.h>
575 #elif defined(__sun__) || defined(__digital__)
576 #include <inttypes.h>
577 #if defined(__STDC__)
578 #if defined(__arch64__) || defined(_LP64)
579 typedef long int int64_t;
580 typedef unsigned long int uint64_t;
581 #else
582 typedef long long int int64_t;
583 typedef unsigned long long int uint64_t;
584 #endif /* __arch64__ */
585 #endif /* __STDC__ */
586 #elif defined( __VMS ) || defined(__sgi)
587 #include <inttypes.h>
588 #elif defined(__SCO__) || defined(__USLC__)
589 #include <stdint.h>
590 #elif defined(__UNIXOS2__) || defined(__SOL64__)
591 typedef long int int32_t;
592 typedef long long int int64_t;
593 typedef unsigned long long int uint64_t;
594 #elif defined(_WIN32) && defined(__GNUC__)
595 #include <stdint.h>
596 #elif defined(_WIN32)
597 typedef __int32 int32_t;
598 typedef __int64 int64_t;
599 typedef unsigned __int64 uint64_t;
600 #else
601 /* Fallback if nothing above works */
602 #include <inttypes.h>
603 #endif
604 #endif
605 typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
606 typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
607 typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
608 typedef Bool ( *PFNGLXWAITFORMSCOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
609 typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
610 #ifdef GLX_GLXEXT_PROTOTYPES
611 Bool glXGetSyncValuesOML (X11_Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
612 Bool glXGetMscRateOML (X11_Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
613 int64_t glXSwapBuffersMscOML (X11_Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
614 Bool glXWaitForMscOML (X11_Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
615 Bool glXWaitForSbcOML (X11_Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
616 #endif
617 #endif /* GLX_OML_sync_control */
618 
619 #ifndef GLX_SGIS_blended_overlay
620 #define GLX_SGIS_blended_overlay 1
621 #define GLX_BLENDED_RGBA_SGIS 0x8025
622 #endif /* GLX_SGIS_blended_overlay */
623 
624 #ifndef GLX_SGIS_multisample
625 #define GLX_SGIS_multisample 1
626 #define GLX_SAMPLE_BUFFERS_SGIS 100000
627 #define GLX_SAMPLES_SGIS 100001
628 #endif /* GLX_SGIS_multisample */
629 
630 #ifndef GLX_SGIS_shared_multisample
631 #define GLX_SGIS_shared_multisample 1
632 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
633 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
634 #endif /* GLX_SGIS_shared_multisample */
635 
636 #ifndef GLX_SGIX_dmbuffer
637 #define GLX_SGIX_dmbuffer 1
638 typedef XID GLXPbufferSGIX;
639 #ifdef _DM_BUFFER_H_
640 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
641 typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (X11_Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
642 #ifdef GLX_GLXEXT_PROTOTYPES
643 Bool glXAssociateDMPbufferSGIX (X11_Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
644 #endif
645 #endif /* _DM_BUFFER_H_ */
646 #endif /* GLX_SGIX_dmbuffer */
647 
648 #ifndef GLX_SGIX_fbconfig
649 #define GLX_SGIX_fbconfig 1
650 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
651 #define GLX_WINDOW_BIT_SGIX 0x00000001
652 #define GLX_PIXMAP_BIT_SGIX 0x00000002
653 #define GLX_RGBA_BIT_SGIX 0x00000001
654 #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
655 #define GLX_DRAWABLE_TYPE_SGIX 0x8010
656 #define GLX_RENDER_TYPE_SGIX 0x8011
657 #define GLX_X_RENDERABLE_SGIX 0x8012
658 #define GLX_FBCONFIG_ID_SGIX 0x8013
659 #define GLX_RGBA_TYPE_SGIX 0x8014
660 #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
661 typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
662 typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (X11_Display *dpy, int screen, int *attrib_list, int *nelements);
663 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
664 typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
665 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config);
666 typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (X11_Display *dpy, XVisualInfo *vis);
667 #ifdef GLX_GLXEXT_PROTOTYPES
668 int glXGetFBConfigAttribSGIX (X11_Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
669 GLXFBConfigSGIX *glXChooseFBConfigSGIX (X11_Display *dpy, int screen, int *attrib_list, int *nelements);
670 GLXPixmap glXCreateGLXPixmapWithConfigSGIX (X11_Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
671 GLXContext glXCreateContextWithConfigSGIX (X11_Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
672 XVisualInfo *glXGetVisualFromFBConfigSGIX (X11_Display *dpy, GLXFBConfigSGIX config);
673 GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (X11_Display *dpy, XVisualInfo *vis);
674 #endif
675 #endif /* GLX_SGIX_fbconfig */
676 
677 #ifndef GLX_SGIX_hyperpipe
678 #define GLX_SGIX_hyperpipe 1
679 typedef struct {
680  char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
681  int networkId;
683 typedef struct {
684  char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
685  int channel;
686  unsigned int participationType;
687  int timeSlice;
689 typedef struct {
690  char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
691  int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
692  int destXOrigin, destYOrigin, destWidth, destHeight;
693 } GLXPipeRect;
694 typedef struct {
695  char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
696  int XOrigin, YOrigin, maxHeight, maxWidth;
698 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
699 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
700 #define GLX_BAD_HYPERPIPE_SGIX 92
701 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
702 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
703 #define GLX_PIPE_RECT_SGIX 0x00000001
704 #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
705 #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
706 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
707 #define GLX_HYPERPIPE_ID_SGIX 0x8030
708 typedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (X11_Display *dpy, int *npipes);
709 typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (X11_Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
710 typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (X11_Display *dpy, int hpId, int *npipes);
711 typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (X11_Display *dpy, int hpId);
712 typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (X11_Display *dpy, int hpId);
713 typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (X11_Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
714 typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (X11_Display *dpy, int timeSlice, int attrib, int size, void *attribList);
715 typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (X11_Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
716 #ifdef GLX_GLXEXT_PROTOTYPES
717 GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (X11_Display *dpy, int *npipes);
718 int glXHyperpipeConfigSGIX (X11_Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
719 GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (X11_Display *dpy, int hpId, int *npipes);
720 int glXDestroyHyperpipeConfigSGIX (X11_Display *dpy, int hpId);
721 int glXBindHyperpipeSGIX (X11_Display *dpy, int hpId);
722 int glXQueryHyperpipeBestAttribSGIX (X11_Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
723 int glXHyperpipeAttribSGIX (X11_Display *dpy, int timeSlice, int attrib, int size, void *attribList);
724 int glXQueryHyperpipeAttribSGIX (X11_Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
725 #endif
726 #endif /* GLX_SGIX_hyperpipe */
727 
728 #ifndef GLX_SGIX_pbuffer
729 #define GLX_SGIX_pbuffer 1
730 #define GLX_PBUFFER_BIT_SGIX 0x00000004
731 #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
732 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
733 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
734 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
735 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
736 #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
737 #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
738 #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
739 #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
740 #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
741 #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
742 #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
743 #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
744 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
745 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
746 #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
747 #define GLX_LARGEST_PBUFFER_SGIX 0x801C
748 #define GLX_WIDTH_SGIX 0x801D
749 #define GLX_HEIGHT_SGIX 0x801E
750 #define GLX_EVENT_MASK_SGIX 0x801F
751 #define GLX_DAMAGED_SGIX 0x8020
752 #define GLX_SAVED_SGIX 0x8021
753 #define GLX_WINDOW_SGIX 0x8022
754 #define GLX_PBUFFER_SGIX 0x8023
755 typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
756 typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (X11_Display *dpy, GLXPbufferSGIX pbuf);
757 typedef int ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (X11_Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
758 typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (X11_Display *dpy, GLXDrawable drawable, unsigned long mask);
759 typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (X11_Display *dpy, GLXDrawable drawable, unsigned long *mask);
760 #ifdef GLX_GLXEXT_PROTOTYPES
761 GLXPbufferSGIX glXCreateGLXPbufferSGIX (X11_Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
762 void glXDestroyGLXPbufferSGIX (X11_Display *dpy, GLXPbufferSGIX pbuf);
763 int glXQueryGLXPbufferSGIX (X11_Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
764 void glXSelectEventSGIX (X11_Display *dpy, GLXDrawable drawable, unsigned long mask);
765 void glXGetSelectedEventSGIX (X11_Display *dpy, GLXDrawable drawable, unsigned long *mask);
766 #endif
767 #endif /* GLX_SGIX_pbuffer */
768 
769 #ifndef GLX_SGIX_swap_barrier
770 #define GLX_SGIX_swap_barrier 1
771 typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (X11_Display *dpy, GLXDrawable drawable, int barrier);
772 typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (X11_Display *dpy, int screen, int *max);
773 #ifdef GLX_GLXEXT_PROTOTYPES
774 void glXBindSwapBarrierSGIX (X11_Display *dpy, GLXDrawable drawable, int barrier);
775 Bool glXQueryMaxSwapBarriersSGIX (X11_Display *dpy, int screen, int *max);
776 #endif
777 #endif /* GLX_SGIX_swap_barrier */
778 
779 #ifndef GLX_SGIX_swap_group
780 #define GLX_SGIX_swap_group 1
781 typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (X11_Display *dpy, GLXDrawable drawable, GLXDrawable member);
782 #ifdef GLX_GLXEXT_PROTOTYPES
783 void glXJoinSwapGroupSGIX (X11_Display *dpy, GLXDrawable drawable, GLXDrawable member);
784 #endif
785 #endif /* GLX_SGIX_swap_group */
786 
787 #ifndef GLX_SGIX_video_resize
788 #define GLX_SGIX_video_resize 1
789 #define GLX_SYNC_FRAME_SGIX 0x00000000
790 #define GLX_SYNC_SWAP_SGIX 0x00000001
791 typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (X11_Display *display, int screen, int channel, X11_Window window);
792 typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (X11_Display *display, int screen, int channel, int x, int y, int w, int h);
793 typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (X11_Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
794 typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (X11_Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
795 typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (X11_Display *display, int screen, int channel, GLenum synctype);
796 #ifdef GLX_GLXEXT_PROTOTYPES
797 int glXBindChannelToWindowSGIX (X11_Display *display, int screen, int channel, X11_Window window);
798 int glXChannelRectSGIX (X11_Display *display, int screen, int channel, int x, int y, int w, int h);
799 int glXQueryChannelRectSGIX (X11_Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
800 int glXQueryChannelDeltasSGIX (X11_Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
801 int glXChannelRectSyncSGIX (X11_Display *display, int screen, int channel, GLenum synctype);
802 #endif
803 #endif /* GLX_SGIX_video_resize */
804 
805 #ifndef GLX_SGIX_video_source
806 #define GLX_SGIX_video_source 1
807 typedef XID GLXVideoSourceSGIX;
808 #ifdef _VL_H
809 typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (X11_Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
810 typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (X11_Display *dpy, GLXVideoSourceSGIX glxvideosource);
811 #ifdef GLX_GLXEXT_PROTOTYPES
812 GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (X11_Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
813 void glXDestroyGLXVideoSourceSGIX (X11_Display *dpy, GLXVideoSourceSGIX glxvideosource);
814 #endif
815 #endif /* _VL_H */
816 #endif /* GLX_SGIX_video_source */
817 
818 #ifndef GLX_SGIX_visual_select_group
819 #define GLX_SGIX_visual_select_group 1
820 #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
821 #endif /* GLX_SGIX_visual_select_group */
822 
823 #ifndef GLX_SGI_cushion
824 #define GLX_SGI_cushion 1
825 typedef void ( *PFNGLXCUSHIONSGIPROC) (X11_Display *dpy, X11_Window window, float cushion);
826 #ifdef GLX_GLXEXT_PROTOTYPES
827 void glXCushionSGI (X11_Display *dpy, X11_Window window, float cushion);
828 #endif
829 #endif /* GLX_SGI_cushion */
830 
831 #ifndef GLX_SGI_make_current_read
832 #define GLX_SGI_make_current_read 1
833 typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (X11_Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
834 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
835 #ifdef GLX_GLXEXT_PROTOTYPES
836 Bool glXMakeCurrentReadSGI (X11_Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
837 GLXDrawable glXGetCurrentReadDrawableSGI (void);
838 #endif
839 #endif /* GLX_SGI_make_current_read */
840 
841 #ifndef GLX_SGI_swap_control
842 #define GLX_SGI_swap_control 1
843 typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval);
844 #ifdef GLX_GLXEXT_PROTOTYPES
845 int glXSwapIntervalSGI (int interval);
846 #endif
847 #endif /* GLX_SGI_swap_control */
848 
849 #ifndef GLX_SGI_video_sync
850 #define GLX_SGI_video_sync 1
851 typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
852 typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
853 #ifdef GLX_GLXEXT_PROTOTYPES
854 int glXGetVideoSyncSGI (unsigned int *count);
855 int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count);
856 #endif
857 #endif /* GLX_SGI_video_sync */
858 
859 #ifndef GLX_SUN_get_transparent_index
860 #define GLX_SUN_get_transparent_index 1
861 typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (X11_Display *dpy, X11_Window overlay, X11_Window underlay, long *pTransparentIndex);
862 #ifdef GLX_GLXEXT_PROTOTYPES
863 Status glXGetTransparentIndexSUN (X11_Display *dpy, X11_Window overlay, X11_Window underlay, long *pTransparentIndex);
864 #endif
865 #endif /* GLX_SUN_get_transparent_index */
866 
867 #ifdef __cplusplus
868 }
869 #endif
870 
871 #endif