xref: /aosp_15_r20/external/mesa3d/include/GL/glxext.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 #ifndef __glx_glxext_h_
2 #define __glx_glxext_h_ 1
3 
4 #ifdef __cplusplus
5 extern "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 20220930
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
31 typedef XID GLXContextID;
32 typedef struct __GLXFBConfigRec *GLXFBConfig;
33 typedef XID GLXWindow;
34 typedef 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
91 typedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
92 typedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
93 typedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
94 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
95 typedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
96 typedef void ( *PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
97 typedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
98 typedef void ( *PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
99 typedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
100 typedef void ( *PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
101 typedef void ( *PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
102 typedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
103 typedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
104 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
105 typedef int ( *PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
106 typedef void ( *PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
107 typedef void ( *PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
108 #ifdef GLX_GLXEXT_PROTOTYPES
109 GLXFBConfig *glXGetFBConfigs (Display *dpy, int screen, int *nelements);
110 GLXFBConfig *glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements);
111 int glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value);
112 XVisualInfo *glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config);
113 GLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
114 void glXDestroyWindow (Display *dpy, GLXWindow win);
115 GLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
116 void glXDestroyPixmap (Display *dpy, GLXPixmap pixmap);
117 GLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list);
118 void glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf);
119 void glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
120 GLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
121 Bool glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
122 GLXDrawable glXGetCurrentReadDrawable (void);
123 int glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value);
124 void glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask);
125 void 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
131 typedef void ( *__GLXextFuncPtr)(void);
132 #define GLX_SAMPLE_BUFFERS                100000
133 #define GLX_SAMPLES                       100001
134 typedef __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
154 typedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
155 #ifdef GLX_GLXEXT_PROTOTYPES
156 GLXContext 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
193 typedef __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
237 typedef unsigned int ( *PFNGLXGETGPUIDSAMDPROC) (unsigned int maxCount, unsigned int *ids);
238 typedef int ( *PFNGLXGETGPUINFOAMDPROC) (unsigned int id, int property, GLenum dataType, unsigned int size, void *data);
239 typedef unsigned int ( *PFNGLXGETCONTEXTGPUIDAMDPROC) (GLXContext ctx);
240 typedef GLXContext ( *PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC) (unsigned int id, GLXContext share_list);
241 typedef GLXContext ( *PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (unsigned int id, GLXContext share_context, const int *attribList);
242 typedef Bool ( *PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC) (GLXContext ctx);
243 typedef Bool ( *PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (GLXContext ctx);
244 typedef GLXContext ( *PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
245 typedef 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
247 unsigned int glXGetGPUIDsAMD (unsigned int maxCount, unsigned int *ids);
248 int glXGetGPUInfoAMD (unsigned int id, int property, GLenum dataType, unsigned int size, void *data);
249 unsigned int glXGetContextGPUIDAMD (GLXContext ctx);
250 GLXContext glXCreateAssociatedContextAMD (unsigned int id, GLXContext share_list);
251 GLXContext glXCreateAssociatedContextAttribsAMD (unsigned int id, GLXContext share_context, const int *attribList);
252 Bool glXDeleteAssociatedContextAMD (GLXContext ctx);
253 Bool glXMakeAssociatedContextCurrentAMD (GLXContext ctx);
254 GLXContext glXGetCurrentAssociatedContextAMD (void);
255 void 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
302 typedef Display *( *PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
303 typedef int ( *PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
304 typedef GLXContextID ( *PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
305 typedef GLXContext ( *PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
306 typedef void ( *PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
307 #ifdef GLX_GLXEXT_PROTOTYPES
308 Display *glXGetCurrentDisplayEXT (void);
309 int glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value);
310 GLXContextID glXGetContextIDEXT (const GLXContext context);
311 GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID);
312 void 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
327 typedef 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
346 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
347 #ifdef GLX_GLXEXT_PROTOTYPES
348 void 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
392 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
393 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
394 #ifdef GLX_GLXEXT_PROTOTYPES
395 void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
396 void 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
437 typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
438 #ifdef GLX_GLXEXT_PROTOTYPES
439 unsigned 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
445 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
446 #ifdef GLX_GLXEXT_PROTOTYPES
447 void 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
453 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
454 #ifdef GLX_GLXEXT_PROTOTYPES
455 GLXPixmap 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
472 typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
473 typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
474 typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
475 typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
476 #ifdef GLX_GLXEXT_PROTOTYPES
477 Bool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value);
478 const char *glXQueryCurrentRendererStringMESA (int attribute);
479 Bool glXQueryRendererIntegerMESA (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
480 const 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
486 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
487 #ifdef GLX_GLXEXT_PROTOTYPES
488 Bool 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
496 typedef GLboolean ( *PFNGLXSET3DFXMODEMESAPROC) (GLint mode);
497 #ifdef GLX_GLXEXT_PROTOTYPES
498 GLboolean 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
504 typedef int ( *PFNGLXGETSWAPINTERVALMESAPROC) (void);
505 typedef int ( *PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval);
506 #ifdef GLX_GLXEXT_PROTOTYPES
507 int glXGetSwapIntervalMESA (void);
508 int 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
514 typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
515 typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
516 #ifdef GLX_GLXEXT_PROTOTYPES
517 void glXCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
518 void 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
524 typedef void ( *PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
525 #ifdef GLX_GLXEXT_PROTOTYPES
526 void glXCopyImageSubDataNV (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
527 #endif
528 #endif /* GLX_NV_copy_image */
529 
530 #ifndef GLX_NV_delay_before_swap
531 #define GLX_NV_delay_before_swap 1
532 typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (Display *dpy, GLXDrawable drawable, GLfloat seconds);
533 #ifdef GLX_GLXEXT_PROTOTYPES
534 Bool 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
561 typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
562 typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
563 #ifdef GLX_GLXEXT_PROTOTYPES
564 unsigned int *glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements);
565 int 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
576 typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
577 typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
578 typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
579 typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
580 typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
581 typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
582 #ifdef GLX_GLXEXT_PROTOTYPES
583 Bool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group);
584 Bool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier);
585 Bool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
586 Bool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
587 Bool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count);
588 Bool 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
594 typedef 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
598 typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
599 typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
600 typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
601 typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
602 typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
603 #ifdef GLX_GLXEXT_PROTOTYPES
604 int glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
605 GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements);
606 void glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
607 int glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
608 void 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
614 typedef 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
625 typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
626 typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
627 typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
628 typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
629 typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
630 typedef int ( *PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
631 #ifdef GLX_GLXEXT_PROTOTYPES
632 int glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
633 int glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
634 int glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
635 int glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf);
636 int glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
637 int 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)
662 typedef long int int64_t;
663 typedef unsigned long int uint64_t;
664 #else
665 typedef long long int int64_t;
666 typedef 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__)
674 typedef long int int32_t;
675 typedef long long int int64_t;
676 typedef unsigned long long int uint64_t;
677 #elif defined(_WIN32) && defined(__GNUC__)
678 #include <stdint.h>
679 #elif defined(_WIN32)
680 typedef __int32 int32_t;
681 typedef __int64 int64_t;
682 typedef unsigned __int64 uint64_t;
683 #else
684 /* Fallback if nothing above works */
685 #include <inttypes.h>
686 #endif
687 #endif
688 typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
689 typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
690 typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
691 typedef Bool ( *PFNGLXWAITFORMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
692 typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
693 #ifdef GLX_GLXEXT_PROTOTYPES
694 Bool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
695 Bool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
696 int64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
697 Bool glXWaitForMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
698 Bool 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
721 typedef XID GLXPbufferSGIX;
722 #ifdef _DM_BUFFER_H_
723 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX    0x8024
724 typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
725 #ifdef GLX_GLXEXT_PROTOTYPES
726 Bool 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
733 typedef 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
744 typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
745 typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
746 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
747 typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
748 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
749 typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
750 #ifdef GLX_GLXEXT_PROTOTYPES
751 int glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
752 GLXFBConfigSGIX *glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements);
753 GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
754 GLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
755 XVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config);
756 GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis);
757 #endif
758 #endif /* GLX_SGIX_fbconfig */
759 
760 #ifndef GLX_SGIX_hyperpipe
761 #define GLX_SGIX_hyperpipe 1
762 typedef struct {
763     char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
764     int     networkId;
765 } GLXHyperpipeNetworkSGIX;
766 typedef 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;
772 typedef 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;
777 typedef 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
791 typedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
792 typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
793 typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
794 typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
795 typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
796 typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
797 typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
798 typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
799 #ifdef GLX_GLXEXT_PROTOTYPES
800 GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes);
801 int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
802 GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes);
803 int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId);
804 int glXBindHyperpipeSGIX (Display *dpy, int hpId);
805 int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
806 int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
807 int 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
838 typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
839 typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
840 typedef void ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
841 typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
842 typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
843 #ifdef GLX_GLXEXT_PROTOTYPES
844 GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
845 void glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf);
846 void glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
847 void glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask);
848 void 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
854 typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
855 typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
856 #ifdef GLX_GLXEXT_PROTOTYPES
857 void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier);
858 Bool 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
864 typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
865 #ifdef GLX_GLXEXT_PROTOTYPES
866 void 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
874 typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
875 typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
876 typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
877 typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
878 typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
879 #ifdef GLX_GLXEXT_PROTOTYPES
880 int glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window);
881 int glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h);
882 int glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
883 int glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
884 int 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
890 typedef XID GLXVideoSourceSGIX;
891 #ifdef _VL_H
892 typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
893 typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
894 #ifdef GLX_GLXEXT_PROTOTYPES
895 GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
896 void 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
908 typedef void ( *PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
909 #ifdef GLX_GLXEXT_PROTOTYPES
910 void 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
916 typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
917 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
918 #ifdef GLX_GLXEXT_PROTOTYPES
919 Bool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
920 GLXDrawable 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
926 typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval);
927 #ifdef GLX_GLXEXT_PROTOTYPES
928 int 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
934 typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
935 typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
936 #ifdef GLX_GLXEXT_PROTOTYPES
937 int glXGetVideoSyncSGI (unsigned int *count);
938 int 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
944 typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex);
945 #ifdef GLX_GLXEXT_PROTOTYPES
946 Status 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