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

source code of include/GL/glxext.h