VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/vmsvga_glext/glxext.h@ 100307

Last change on this file since 100307 was 95751, checked in by vboxsync, 2 years ago

Devices/Graphics: Switch to new OpenGL headers, bugref:8515

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette