glxext.h revision 848b8605
1848b8605Smrg#ifndef __glxext_h_
2848b8605Smrg#define __glxext_h_ 1
3848b8605Smrg
4848b8605Smrg#ifdef __cplusplus
5848b8605Smrgextern "C" {
6848b8605Smrg#endif
7848b8605Smrg
8848b8605Smrg/*
9848b8605Smrg** Copyright (c) 2013-2014 The Khronos Group Inc.
10848b8605Smrg**
11848b8605Smrg** Permission is hereby granted, free of charge, to any person obtaining a
12848b8605Smrg** copy of this software and/or associated documentation files (the
13848b8605Smrg** "Materials"), to deal in the Materials without restriction, including
14848b8605Smrg** without limitation the rights to use, copy, modify, merge, publish,
15848b8605Smrg** distribute, sublicense, and/or sell copies of the Materials, and to
16848b8605Smrg** permit persons to whom the Materials are furnished to do so, subject to
17848b8605Smrg** the following conditions:
18848b8605Smrg**
19848b8605Smrg** The above copyright notice and this permission notice shall be included
20848b8605Smrg** in all copies or substantial portions of the Materials.
21848b8605Smrg**
22848b8605Smrg** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23848b8605Smrg** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24848b8605Smrg** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
25848b8605Smrg** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
26848b8605Smrg** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
27848b8605Smrg** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
28848b8605Smrg** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
29848b8605Smrg*/
30848b8605Smrg/*
31848b8605Smrg** This header is generated from the Khronos OpenGL / OpenGL ES XML
32848b8605Smrg** API Registry. The current version of the Registry, generator scripts
33848b8605Smrg** used to make the header, and the header can be found at
34848b8605Smrg**   http://www.opengl.org/registry/
35848b8605Smrg**
36848b8605Smrg** Khronos $Revision: 1.1.1.1 $ on $Date: 2019/03/08 10:19:24 $
37848b8605Smrg*/
38848b8605Smrg
39848b8605Smrg#define GLX_GLXEXT_VERSION 20140810
40848b8605Smrg
41848b8605Smrg/* Generated C header for:
42848b8605Smrg * API: glx
43848b8605Smrg * Versions considered: .*
44848b8605Smrg * Versions emitted: 1\.[3-9]
45848b8605Smrg * Default extensions included: glx
46848b8605Smrg * Additional extensions included: _nomatch_^
47848b8605Smrg * Extensions removed: _nomatch_^
48848b8605Smrg */
49848b8605Smrg
50848b8605Smrg#ifndef GLX_VERSION_1_3
51848b8605Smrg#define GLX_VERSION_1_3 1
52848b8605Smrgtypedef XID GLXContextID;
53848b8605Smrgtypedef struct __GLXFBConfigRec *GLXFBConfig;
54848b8605Smrgtypedef XID GLXWindow;
55848b8605Smrgtypedef XID GLXPbuffer;
56848b8605Smrg#define GLX_WINDOW_BIT                    0x00000001
57848b8605Smrg#define GLX_PIXMAP_BIT                    0x00000002
58848b8605Smrg#define GLX_PBUFFER_BIT                   0x00000004
59848b8605Smrg#define GLX_RGBA_BIT                      0x00000001
60848b8605Smrg#define GLX_COLOR_INDEX_BIT               0x00000002
61848b8605Smrg#define GLX_PBUFFER_CLOBBER_MASK          0x08000000
62848b8605Smrg#define GLX_FRONT_LEFT_BUFFER_BIT         0x00000001
63848b8605Smrg#define GLX_FRONT_RIGHT_BUFFER_BIT        0x00000002
64848b8605Smrg#define GLX_BACK_LEFT_BUFFER_BIT          0x00000004
65848b8605Smrg#define GLX_BACK_RIGHT_BUFFER_BIT         0x00000008
66848b8605Smrg#define GLX_AUX_BUFFERS_BIT               0x00000010
67848b8605Smrg#define GLX_DEPTH_BUFFER_BIT              0x00000020
68848b8605Smrg#define GLX_STENCIL_BUFFER_BIT            0x00000040
69848b8605Smrg#define GLX_ACCUM_BUFFER_BIT              0x00000080
70848b8605Smrg#define GLX_CONFIG_CAVEAT                 0x20
71848b8605Smrg#define GLX_X_VISUAL_TYPE                 0x22
72848b8605Smrg#define GLX_TRANSPARENT_TYPE              0x23
73848b8605Smrg#define GLX_TRANSPARENT_INDEX_VALUE       0x24
74848b8605Smrg#define GLX_TRANSPARENT_RED_VALUE         0x25
75848b8605Smrg#define GLX_TRANSPARENT_GREEN_VALUE       0x26
76848b8605Smrg#define GLX_TRANSPARENT_BLUE_VALUE        0x27
77848b8605Smrg#define GLX_TRANSPARENT_ALPHA_VALUE       0x28
78848b8605Smrg#define GLX_DONT_CARE                     0xFFFFFFFF
79848b8605Smrg#define GLX_NONE                          0x8000
80848b8605Smrg#define GLX_SLOW_CONFIG                   0x8001
81848b8605Smrg#define GLX_TRUE_COLOR                    0x8002
82848b8605Smrg#define GLX_DIRECT_COLOR                  0x8003
83848b8605Smrg#define GLX_PSEUDO_COLOR                  0x8004
84848b8605Smrg#define GLX_STATIC_COLOR                  0x8005
85848b8605Smrg#define GLX_GRAY_SCALE                    0x8006
86848b8605Smrg#define GLX_STATIC_GRAY                   0x8007
87848b8605Smrg#define GLX_TRANSPARENT_RGB               0x8008
88848b8605Smrg#define GLX_TRANSPARENT_INDEX             0x8009
89848b8605Smrg#define GLX_VISUAL_ID                     0x800B
90848b8605Smrg#define GLX_SCREEN                        0x800C
91848b8605Smrg#define GLX_NON_CONFORMANT_CONFIG         0x800D
92848b8605Smrg#define GLX_DRAWABLE_TYPE                 0x8010
93848b8605Smrg#define GLX_RENDER_TYPE                   0x8011
94848b8605Smrg#define GLX_X_RENDERABLE                  0x8012
95848b8605Smrg#define GLX_FBCONFIG_ID                   0x8013
96848b8605Smrg#define GLX_RGBA_TYPE                     0x8014
97848b8605Smrg#define GLX_COLOR_INDEX_TYPE              0x8015
98848b8605Smrg#define GLX_MAX_PBUFFER_WIDTH             0x8016
99848b8605Smrg#define GLX_MAX_PBUFFER_HEIGHT            0x8017
100848b8605Smrg#define GLX_MAX_PBUFFER_PIXELS            0x8018
101848b8605Smrg#define GLX_PRESERVED_CONTENTS            0x801B
102848b8605Smrg#define GLX_LARGEST_PBUFFER               0x801C
103848b8605Smrg#define GLX_WIDTH                         0x801D
104848b8605Smrg#define GLX_HEIGHT                        0x801E
105848b8605Smrg#define GLX_EVENT_MASK                    0x801F
106848b8605Smrg#define GLX_DAMAGED                       0x8020
107848b8605Smrg#define GLX_SAVED                         0x8021
108848b8605Smrg#define GLX_WINDOW                        0x8022
109848b8605Smrg#define GLX_PBUFFER                       0x8023
110848b8605Smrg#define GLX_PBUFFER_HEIGHT                0x8040
111848b8605Smrg#define GLX_PBUFFER_WIDTH                 0x8041
112848b8605Smrgtypedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
113848b8605Smrgtypedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
114848b8605Smrgtypedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
115848b8605Smrgtypedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
116848b8605Smrgtypedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
117848b8605Smrgtypedef void ( *PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
118848b8605Smrgtypedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
119848b8605Smrgtypedef void ( *PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
120848b8605Smrgtypedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
121848b8605Smrgtypedef void ( *PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
122848b8605Smrgtypedef void ( *PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
123848b8605Smrgtypedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
124848b8605Smrgtypedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
125848b8605Smrgtypedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
126848b8605Smrgtypedef int ( *PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
127848b8605Smrgtypedef void ( *PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
128848b8605Smrgtypedef void ( *PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
129848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
130848b8605SmrgGLXFBConfig *glXGetFBConfigs (Display *dpy, int screen, int *nelements);
131848b8605SmrgGLXFBConfig *glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements);
132848b8605Smrgint glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value);
133848b8605SmrgXVisualInfo *glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config);
134848b8605SmrgGLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
135848b8605Smrgvoid glXDestroyWindow (Display *dpy, GLXWindow win);
136848b8605SmrgGLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
137848b8605Smrgvoid glXDestroyPixmap (Display *dpy, GLXPixmap pixmap);
138848b8605SmrgGLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list);
139848b8605Smrgvoid glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf);
140848b8605Smrgvoid glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
141848b8605SmrgGLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
142848b8605SmrgBool glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
143848b8605SmrgGLXDrawable glXGetCurrentReadDrawable (void);
144848b8605Smrgint glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value);
145848b8605Smrgvoid glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask);
146848b8605Smrgvoid glXGetSelectedEvent (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
147848b8605Smrg#endif
148848b8605Smrg#endif /* GLX_VERSION_1_3 */
149848b8605Smrg
150848b8605Smrg#ifndef GLX_VERSION_1_4
151848b8605Smrg#define GLX_VERSION_1_4 1
152848b8605Smrgtypedef void ( *__GLXextFuncPtr)(void);
153848b8605Smrg#define GLX_SAMPLE_BUFFERS                100000
154848b8605Smrg#define GLX_SAMPLES                       100001
155848b8605Smrgtypedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
156848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
157848b8605Smrg__GLXextFuncPtr glXGetProcAddress (const GLubyte *procName);
158848b8605Smrg#endif
159848b8605Smrg#endif /* GLX_VERSION_1_4 */
160848b8605Smrg
161848b8605Smrg#ifndef GLX_ARB_context_flush_control
162848b8605Smrg#define GLX_ARB_context_flush_control 1
163848b8605Smrg#define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB  0x2097
164848b8605Smrg#define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0
165848b8605Smrg#define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
166848b8605Smrg#endif /* GLX_ARB_context_flush_control */
167848b8605Smrg
168848b8605Smrg#ifndef GLX_ARB_create_context
169848b8605Smrg#define GLX_ARB_create_context 1
170848b8605Smrg#define GLX_CONTEXT_DEBUG_BIT_ARB         0x00000001
171848b8605Smrg#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
172848b8605Smrg#define GLX_CONTEXT_MAJOR_VERSION_ARB     0x2091
173848b8605Smrg#define GLX_CONTEXT_MINOR_VERSION_ARB     0x2092
174848b8605Smrg#define GLX_CONTEXT_FLAGS_ARB             0x2094
175848b8605Smrgtypedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
176848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
177848b8605SmrgGLXContext glXCreateContextAttribsARB (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
178848b8605Smrg#endif
179848b8605Smrg#endif /* GLX_ARB_create_context */
180848b8605Smrg
181848b8605Smrg#ifndef GLX_ARB_create_context_profile
182848b8605Smrg#define GLX_ARB_create_context_profile 1
183848b8605Smrg#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB  0x00000001
184848b8605Smrg#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
185848b8605Smrg#define GLX_CONTEXT_PROFILE_MASK_ARB      0x9126
186848b8605Smrg#endif /* GLX_ARB_create_context_profile */
187848b8605Smrg
188848b8605Smrg#ifndef GLX_ARB_create_context_robustness
189848b8605Smrg#define GLX_ARB_create_context_robustness 1
190848b8605Smrg#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
191848b8605Smrg#define GLX_LOSE_CONTEXT_ON_RESET_ARB     0x8252
192848b8605Smrg#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
193848b8605Smrg#define GLX_NO_RESET_NOTIFICATION_ARB     0x8261
194848b8605Smrg#endif /* GLX_ARB_create_context_robustness */
195848b8605Smrg
196848b8605Smrg#ifndef GLX_ARB_fbconfig_float
197848b8605Smrg#define GLX_ARB_fbconfig_float 1
198848b8605Smrg#define GLX_RGBA_FLOAT_TYPE_ARB           0x20B9
199848b8605Smrg#define GLX_RGBA_FLOAT_BIT_ARB            0x00000004
200848b8605Smrg#endif /* GLX_ARB_fbconfig_float */
201848b8605Smrg
202848b8605Smrg#ifndef GLX_ARB_framebuffer_sRGB
203848b8605Smrg#define GLX_ARB_framebuffer_sRGB 1
204848b8605Smrg#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB  0x20B2
205848b8605Smrg#endif /* GLX_ARB_framebuffer_sRGB */
206848b8605Smrg
207848b8605Smrg#ifndef GLX_ARB_get_proc_address
208848b8605Smrg#define GLX_ARB_get_proc_address 1
209848b8605Smrgtypedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
210848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
211848b8605Smrg__GLXextFuncPtr glXGetProcAddressARB (const GLubyte *procName);
212848b8605Smrg#endif
213848b8605Smrg#endif /* GLX_ARB_get_proc_address */
214848b8605Smrg
215848b8605Smrg#ifndef GLX_ARB_multisample
216848b8605Smrg#define GLX_ARB_multisample 1
217848b8605Smrg#define GLX_SAMPLE_BUFFERS_ARB            100000
218848b8605Smrg#define GLX_SAMPLES_ARB                   100001
219848b8605Smrg#endif /* GLX_ARB_multisample */
220848b8605Smrg
221848b8605Smrg#ifndef GLX_ARB_robustness_application_isolation
222848b8605Smrg#define GLX_ARB_robustness_application_isolation 1
223848b8605Smrg#define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
224848b8605Smrg#endif /* GLX_ARB_robustness_application_isolation */
225848b8605Smrg
226848b8605Smrg#ifndef GLX_ARB_robustness_share_group_isolation
227848b8605Smrg#define GLX_ARB_robustness_share_group_isolation 1
228848b8605Smrg#endif /* GLX_ARB_robustness_share_group_isolation */
229848b8605Smrg
230848b8605Smrg#ifndef GLX_ARB_vertex_buffer_object
231848b8605Smrg#define GLX_ARB_vertex_buffer_object 1
232848b8605Smrg#define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
233848b8605Smrg#endif /* GLX_ARB_vertex_buffer_object */
234848b8605Smrg
235848b8605Smrg#ifndef GLX_3DFX_multisample
236848b8605Smrg#define GLX_3DFX_multisample 1
237848b8605Smrg#define GLX_SAMPLE_BUFFERS_3DFX           0x8050
238848b8605Smrg#define GLX_SAMPLES_3DFX                  0x8051
239848b8605Smrg#endif /* GLX_3DFX_multisample */
240848b8605Smrg
241848b8605Smrg#ifndef GLX_AMD_gpu_association
242848b8605Smrg#define GLX_AMD_gpu_association 1
243848b8605Smrg#define GLX_GPU_VENDOR_AMD                0x1F00
244848b8605Smrg#define GLX_GPU_RENDERER_STRING_AMD       0x1F01
245848b8605Smrg#define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
246848b8605Smrg#define GLX_GPU_FASTEST_TARGET_GPUS_AMD   0x21A2
247848b8605Smrg#define GLX_GPU_RAM_AMD                   0x21A3
248848b8605Smrg#define GLX_GPU_CLOCK_AMD                 0x21A4
249848b8605Smrg#define GLX_GPU_NUM_PIPES_AMD             0x21A5
250848b8605Smrg#define GLX_GPU_NUM_SIMD_AMD              0x21A6
251848b8605Smrg#define GLX_GPU_NUM_RB_AMD                0x21A7
252848b8605Smrg#define GLX_GPU_NUM_SPI_AMD               0x21A8
253848b8605Smrg#endif /* GLX_AMD_gpu_association */
254848b8605Smrg
255848b8605Smrg#ifndef GLX_EXT_buffer_age
256848b8605Smrg#define GLX_EXT_buffer_age 1
257848b8605Smrg#define GLX_BACK_BUFFER_AGE_EXT           0x20F4
258848b8605Smrg#endif /* GLX_EXT_buffer_age */
259848b8605Smrg
260848b8605Smrg#ifndef GLX_EXT_create_context_es2_profile
261848b8605Smrg#define GLX_EXT_create_context_es2_profile 1
262848b8605Smrg#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT   0x00000004
263848b8605Smrg#endif /* GLX_EXT_create_context_es2_profile */
264848b8605Smrg
265848b8605Smrg#ifndef GLX_EXT_create_context_es_profile
266848b8605Smrg#define GLX_EXT_create_context_es_profile 1
267848b8605Smrg#define GLX_CONTEXT_ES_PROFILE_BIT_EXT    0x00000004
268848b8605Smrg#endif /* GLX_EXT_create_context_es_profile */
269848b8605Smrg
270848b8605Smrg#ifndef GLX_EXT_fbconfig_packed_float
271848b8605Smrg#define GLX_EXT_fbconfig_packed_float 1
272848b8605Smrg#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT  0x20B1
273848b8605Smrg#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT   0x00000008
274848b8605Smrg#endif /* GLX_EXT_fbconfig_packed_float */
275848b8605Smrg
276848b8605Smrg#ifndef GLX_EXT_framebuffer_sRGB
277848b8605Smrg#define GLX_EXT_framebuffer_sRGB 1
278848b8605Smrg#define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT  0x20B2
279848b8605Smrg#endif /* GLX_EXT_framebuffer_sRGB */
280848b8605Smrg
281848b8605Smrg#ifndef GLX_EXT_import_context
282848b8605Smrg#define GLX_EXT_import_context 1
283848b8605Smrg#define GLX_SHARE_CONTEXT_EXT             0x800A
284848b8605Smrg#define GLX_VISUAL_ID_EXT                 0x800B
285848b8605Smrg#define GLX_SCREEN_EXT                    0x800C
286848b8605Smrgtypedef Display *( *PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
287848b8605Smrgtypedef int ( *PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
288848b8605Smrgtypedef GLXContextID ( *PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
289848b8605Smrgtypedef GLXContext ( *PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
290848b8605Smrgtypedef void ( *PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
291848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
292848b8605SmrgDisplay *glXGetCurrentDisplayEXT (void);
293848b8605Smrgint glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value);
294848b8605SmrgGLXContextID glXGetContextIDEXT (const GLXContext context);
295848b8605SmrgGLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID);
296848b8605Smrgvoid glXFreeContextEXT (Display *dpy, GLXContext context);
297848b8605Smrg#endif
298848b8605Smrg#endif /* GLX_EXT_import_context */
299848b8605Smrg
300848b8605Smrg#ifndef GLX_EXT_stereo_tree
301848b8605Smrg#define GLX_EXT_stereo_tree 1
302848b8605Smrgtypedef struct {
303848b8605Smrg    int type;
304848b8605Smrg    unsigned long serial;
305848b8605Smrg    Bool send_event;
306848b8605Smrg    Display *display;
307848b8605Smrg    int extension;
308848b8605Smrg    int evtype;
309848b8605Smrg    GLXDrawable window;
310848b8605Smrg    Bool stereo_tree;
311848b8605Smrg} GLXStereoNotifyEventEXT;
312848b8605Smrg#define GLX_STEREO_TREE_EXT               0x20F5
313848b8605Smrg#define GLX_STEREO_NOTIFY_MASK_EXT        0x00000001
314848b8605Smrg#define GLX_STEREO_NOTIFY_EXT             0x00000000
315848b8605Smrg#endif /* GLX_EXT_stereo_tree */
316848b8605Smrg
317848b8605Smrg#ifndef GLX_EXT_swap_control
318848b8605Smrg#define GLX_EXT_swap_control 1
319848b8605Smrg#define GLX_SWAP_INTERVAL_EXT             0x20F1
320848b8605Smrg#define GLX_MAX_SWAP_INTERVAL_EXT         0x20F2
321848b8605Smrgtypedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
322848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
323848b8605Smrgvoid glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
324848b8605Smrg#endif
325848b8605Smrg#endif /* GLX_EXT_swap_control */
326848b8605Smrg
327848b8605Smrg#ifndef GLX_EXT_swap_control_tear
328848b8605Smrg#define GLX_EXT_swap_control_tear 1
329848b8605Smrg#define GLX_LATE_SWAPS_TEAR_EXT           0x20F3
330848b8605Smrg#endif /* GLX_EXT_swap_control_tear */
331848b8605Smrg
332848b8605Smrg#ifndef GLX_EXT_texture_from_pixmap
333848b8605Smrg#define GLX_EXT_texture_from_pixmap 1
334848b8605Smrg#define GLX_TEXTURE_1D_BIT_EXT            0x00000001
335848b8605Smrg#define GLX_TEXTURE_2D_BIT_EXT            0x00000002
336848b8605Smrg#define GLX_TEXTURE_RECTANGLE_BIT_EXT     0x00000004
337848b8605Smrg#define GLX_BIND_TO_TEXTURE_RGB_EXT       0x20D0
338848b8605Smrg#define GLX_BIND_TO_TEXTURE_RGBA_EXT      0x20D1
339848b8605Smrg#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT    0x20D2
340848b8605Smrg#define GLX_BIND_TO_TEXTURE_TARGETS_EXT   0x20D3
341848b8605Smrg#define GLX_Y_INVERTED_EXT                0x20D4
342848b8605Smrg#define GLX_TEXTURE_FORMAT_EXT            0x20D5
343848b8605Smrg#define GLX_TEXTURE_TARGET_EXT            0x20D6
344848b8605Smrg#define GLX_MIPMAP_TEXTURE_EXT            0x20D7
345848b8605Smrg#define GLX_TEXTURE_FORMAT_NONE_EXT       0x20D8
346848b8605Smrg#define GLX_TEXTURE_FORMAT_RGB_EXT        0x20D9
347848b8605Smrg#define GLX_TEXTURE_FORMAT_RGBA_EXT       0x20DA
348848b8605Smrg#define GLX_TEXTURE_1D_EXT                0x20DB
349848b8605Smrg#define GLX_TEXTURE_2D_EXT                0x20DC
350848b8605Smrg#define GLX_TEXTURE_RECTANGLE_EXT         0x20DD
351848b8605Smrg#define GLX_FRONT_LEFT_EXT                0x20DE
352848b8605Smrg#define GLX_FRONT_RIGHT_EXT               0x20DF
353848b8605Smrg#define GLX_BACK_LEFT_EXT                 0x20E0
354848b8605Smrg#define GLX_BACK_RIGHT_EXT                0x20E1
355848b8605Smrg#define GLX_FRONT_EXT                     0x20DE
356848b8605Smrg#define GLX_BACK_EXT                      0x20E0
357848b8605Smrg#define GLX_AUX0_EXT                      0x20E2
358848b8605Smrg#define GLX_AUX1_EXT                      0x20E3
359848b8605Smrg#define GLX_AUX2_EXT                      0x20E4
360848b8605Smrg#define GLX_AUX3_EXT                      0x20E5
361848b8605Smrg#define GLX_AUX4_EXT                      0x20E6
362848b8605Smrg#define GLX_AUX5_EXT                      0x20E7
363848b8605Smrg#define GLX_AUX6_EXT                      0x20E8
364848b8605Smrg#define GLX_AUX7_EXT                      0x20E9
365848b8605Smrg#define GLX_AUX8_EXT                      0x20EA
366848b8605Smrg#define GLX_AUX9_EXT                      0x20EB
367848b8605Smrgtypedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
368848b8605Smrgtypedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
369848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
370848b8605Smrgvoid glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
371848b8605Smrgvoid glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
372848b8605Smrg#endif
373848b8605Smrg#endif /* GLX_EXT_texture_from_pixmap */
374848b8605Smrg
375848b8605Smrg#ifndef GLX_EXT_visual_info
376848b8605Smrg#define GLX_EXT_visual_info 1
377848b8605Smrg#define GLX_X_VISUAL_TYPE_EXT             0x22
378848b8605Smrg#define GLX_TRANSPARENT_TYPE_EXT          0x23
379848b8605Smrg#define GLX_TRANSPARENT_INDEX_VALUE_EXT   0x24
380848b8605Smrg#define GLX_TRANSPARENT_RED_VALUE_EXT     0x25
381848b8605Smrg#define GLX_TRANSPARENT_GREEN_VALUE_EXT   0x26
382848b8605Smrg#define GLX_TRANSPARENT_BLUE_VALUE_EXT    0x27
383848b8605Smrg#define GLX_TRANSPARENT_ALPHA_VALUE_EXT   0x28
384848b8605Smrg#define GLX_NONE_EXT                      0x8000
385848b8605Smrg#define GLX_TRUE_COLOR_EXT                0x8002
386848b8605Smrg#define GLX_DIRECT_COLOR_EXT              0x8003
387848b8605Smrg#define GLX_PSEUDO_COLOR_EXT              0x8004
388848b8605Smrg#define GLX_STATIC_COLOR_EXT              0x8005
389848b8605Smrg#define GLX_GRAY_SCALE_EXT                0x8006
390848b8605Smrg#define GLX_STATIC_GRAY_EXT               0x8007
391848b8605Smrg#define GLX_TRANSPARENT_RGB_EXT           0x8008
392848b8605Smrg#define GLX_TRANSPARENT_INDEX_EXT         0x8009
393848b8605Smrg#endif /* GLX_EXT_visual_info */
394848b8605Smrg
395848b8605Smrg#ifndef GLX_EXT_visual_rating
396848b8605Smrg#define GLX_EXT_visual_rating 1
397848b8605Smrg#define GLX_VISUAL_CAVEAT_EXT             0x20
398848b8605Smrg#define GLX_SLOW_VISUAL_EXT               0x8001
399848b8605Smrg#define GLX_NON_CONFORMANT_VISUAL_EXT     0x800D
400848b8605Smrg#endif /* GLX_EXT_visual_rating */
401848b8605Smrg
402848b8605Smrg#ifndef GLX_INTEL_swap_event
403848b8605Smrg#define GLX_INTEL_swap_event 1
404848b8605Smrg#define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
405848b8605Smrg#define GLX_EXCHANGE_COMPLETE_INTEL       0x8180
406848b8605Smrg#define GLX_COPY_COMPLETE_INTEL           0x8181
407848b8605Smrg#define GLX_FLIP_COMPLETE_INTEL           0x8182
408848b8605Smrg#endif /* GLX_INTEL_swap_event */
409848b8605Smrg
410848b8605Smrg#ifndef GLX_MESA_agp_offset
411848b8605Smrg#define GLX_MESA_agp_offset 1
412848b8605Smrgtypedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
413848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
414848b8605Smrgunsigned int glXGetAGPOffsetMESA (const void *pointer);
415848b8605Smrg#endif
416848b8605Smrg#endif /* GLX_MESA_agp_offset */
417848b8605Smrg
418848b8605Smrg#ifndef GLX_MESA_copy_sub_buffer
419848b8605Smrg#define GLX_MESA_copy_sub_buffer 1
420848b8605Smrgtypedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
421848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
422848b8605Smrgvoid glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
423848b8605Smrg#endif
424848b8605Smrg#endif /* GLX_MESA_copy_sub_buffer */
425848b8605Smrg
426848b8605Smrg#ifndef GLX_MESA_pixmap_colormap
427848b8605Smrg#define GLX_MESA_pixmap_colormap 1
428848b8605Smrgtypedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
429848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
430848b8605SmrgGLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
431848b8605Smrg#endif
432848b8605Smrg#endif /* GLX_MESA_pixmap_colormap */
433848b8605Smrg
434848b8605Smrg#ifndef GLX_MESA_query_renderer
435848b8605Smrg#define GLX_MESA_query_renderer 1
436848b8605Smrg#define GLX_RENDERER_VENDOR_ID_MESA       0x8183
437848b8605Smrg#define GLX_RENDERER_DEVICE_ID_MESA       0x8184
438848b8605Smrg#define GLX_RENDERER_VERSION_MESA         0x8185
439848b8605Smrg#define GLX_RENDERER_ACCELERATED_MESA     0x8186
440848b8605Smrg#define GLX_RENDERER_VIDEO_MEMORY_MESA    0x8187
441848b8605Smrg#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
442848b8605Smrg#define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
443848b8605Smrg#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
444848b8605Smrg#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
445848b8605Smrg#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
446848b8605Smrg#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
447848b8605Smrg#define GLX_RENDERER_ID_MESA              0x818E
448848b8605Smrgtypedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
449848b8605Smrgtypedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
450848b8605Smrgtypedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
451848b8605Smrgtypedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
452848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
453848b8605SmrgBool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value);
454848b8605Smrgconst char *glXQueryCurrentRendererStringMESA (int attribute);
455848b8605SmrgBool glXQueryRendererIntegerMESA (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
456848b8605Smrgconst char *glXQueryRendererStringMESA (Display *dpy, int screen, int renderer, int attribute);
457848b8605Smrg#endif
458848b8605Smrg#endif /* GLX_MESA_query_renderer */
459848b8605Smrg
460848b8605Smrg#ifndef GLX_MESA_release_buffers
461848b8605Smrg#define GLX_MESA_release_buffers 1
462848b8605Smrgtypedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
463848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
464848b8605SmrgBool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
465848b8605Smrg#endif
466848b8605Smrg#endif /* GLX_MESA_release_buffers */
467848b8605Smrg
468848b8605Smrg#ifndef GLX_MESA_set_3dfx_mode
469848b8605Smrg#define GLX_MESA_set_3dfx_mode 1
470848b8605Smrg#define GLX_3DFX_WINDOW_MODE_MESA         0x1
471848b8605Smrg#define GLX_3DFX_FULLSCREEN_MODE_MESA     0x2
472848b8605Smrgtypedef Bool ( *PFNGLXSET3DFXMODEMESAPROC) (int mode);
473848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
474848b8605SmrgBool glXSet3DfxModeMESA (int mode);
475848b8605Smrg#endif
476848b8605Smrg#endif /* GLX_MESA_set_3dfx_mode */
477848b8605Smrg
478848b8605Smrg#ifndef GLX_NV_copy_buffer
479848b8605Smrg#define GLX_NV_copy_buffer 1
480848b8605Smrgtypedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
481848b8605Smrgtypedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
482848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
483848b8605Smrgvoid glXCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
484848b8605Smrgvoid glXNamedCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
485848b8605Smrg#endif
486848b8605Smrg#endif /* GLX_NV_copy_buffer */
487848b8605Smrg
488848b8605Smrg#ifndef GLX_NV_copy_image
489848b8605Smrg#define GLX_NV_copy_image 1
490848b8605Smrgtypedef 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);
491848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
492848b8605Smrgvoid 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);
493848b8605Smrg#endif
494848b8605Smrg#endif /* GLX_NV_copy_image */
495848b8605Smrg
496848b8605Smrg#ifndef GLX_NV_delay_before_swap
497848b8605Smrg#define GLX_NV_delay_before_swap 1
498848b8605Smrgtypedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (Display *dpy, GLXDrawable drawable, GLfloat seconds);
499848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
500848b8605SmrgBool glXDelayBeforeSwapNV (Display *dpy, GLXDrawable drawable, GLfloat seconds);
501848b8605Smrg#endif
502848b8605Smrg#endif /* GLX_NV_delay_before_swap */
503848b8605Smrg
504848b8605Smrg#ifndef GLX_NV_float_buffer
505848b8605Smrg#define GLX_NV_float_buffer 1
506848b8605Smrg#define GLX_FLOAT_COMPONENTS_NV           0x20B0
507848b8605Smrg#endif /* GLX_NV_float_buffer */
508848b8605Smrg
509848b8605Smrg#ifndef GLX_NV_multisample_coverage
510848b8605Smrg#define GLX_NV_multisample_coverage 1
511848b8605Smrg#define GLX_COVERAGE_SAMPLES_NV           100001
512848b8605Smrg#define GLX_COLOR_SAMPLES_NV              0x20B3
513848b8605Smrg#endif /* GLX_NV_multisample_coverage */
514848b8605Smrg
515848b8605Smrg#ifndef GLX_NV_present_video
516848b8605Smrg#define GLX_NV_present_video 1
517848b8605Smrg#define GLX_NUM_VIDEO_SLOTS_NV            0x20F0
518848b8605Smrgtypedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
519848b8605Smrgtypedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
520848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
521848b8605Smrgunsigned int *glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements);
522848b8605Smrgint glXBindVideoDeviceNV (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
523848b8605Smrg#endif
524848b8605Smrg#endif /* GLX_NV_present_video */
525848b8605Smrg
526848b8605Smrg#ifndef GLX_NV_swap_group
527848b8605Smrg#define GLX_NV_swap_group 1
528848b8605Smrgtypedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
529848b8605Smrgtypedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
530848b8605Smrgtypedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
531848b8605Smrgtypedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
532848b8605Smrgtypedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
533848b8605Smrgtypedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
534848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
535848b8605SmrgBool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group);
536848b8605SmrgBool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier);
537848b8605SmrgBool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
538848b8605SmrgBool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
539848b8605SmrgBool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count);
540848b8605SmrgBool glXResetFrameCountNV (Display *dpy, int screen);
541848b8605Smrg#endif
542848b8605Smrg#endif /* GLX_NV_swap_group */
543848b8605Smrg
544848b8605Smrg#ifndef GLX_NV_video_capture
545848b8605Smrg#define GLX_NV_video_capture 1
546848b8605Smrgtypedef XID GLXVideoCaptureDeviceNV;
547848b8605Smrg#define GLX_DEVICE_ID_NV                  0x20CD
548848b8605Smrg#define GLX_UNIQUE_ID_NV                  0x20CE
549848b8605Smrg#define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV    0x20CF
550848b8605Smrgtypedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
551848b8605Smrgtypedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
552848b8605Smrgtypedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
553848b8605Smrgtypedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
554848b8605Smrgtypedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
555848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
556848b8605Smrgint glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
557848b8605SmrgGLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements);
558848b8605Smrgvoid glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
559848b8605Smrgint glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
560848b8605Smrgvoid glXReleaseVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
561848b8605Smrg#endif
562848b8605Smrg#endif /* GLX_NV_video_capture */
563848b8605Smrg
564848b8605Smrg#ifndef GLX_NV_video_out
565848b8605Smrg#define GLX_NV_video_out 1
566848b8605Smrgtypedef unsigned int GLXVideoDeviceNV;
567848b8605Smrg#define GLX_VIDEO_OUT_COLOR_NV            0x20C3
568848b8605Smrg#define GLX_VIDEO_OUT_ALPHA_NV            0x20C4
569848b8605Smrg#define GLX_VIDEO_OUT_DEPTH_NV            0x20C5
570848b8605Smrg#define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV  0x20C6
571848b8605Smrg#define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV  0x20C7
572848b8605Smrg#define GLX_VIDEO_OUT_FRAME_NV            0x20C8
573848b8605Smrg#define GLX_VIDEO_OUT_FIELD_1_NV          0x20C9
574848b8605Smrg#define GLX_VIDEO_OUT_FIELD_2_NV          0x20CA
575848b8605Smrg#define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
576848b8605Smrg#define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
577848b8605Smrgtypedef int ( *PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
578848b8605Smrgtypedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
579848b8605Smrgtypedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
580848b8605Smrgtypedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
581848b8605Smrgtypedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
582848b8605Smrgtypedef int ( *PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
583848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
584848b8605Smrgint glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
585848b8605Smrgint glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
586848b8605Smrgint glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
587848b8605Smrgint glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf);
588848b8605Smrgint glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
589848b8605Smrgint glXGetVideoInfoNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
590848b8605Smrg#endif
591848b8605Smrg#endif /* GLX_NV_video_out */
592848b8605Smrg
593848b8605Smrg#ifndef GLX_OML_swap_method
594848b8605Smrg#define GLX_OML_swap_method 1
595848b8605Smrg#define GLX_SWAP_METHOD_OML               0x8060
596848b8605Smrg#define GLX_SWAP_EXCHANGE_OML             0x8061
597848b8605Smrg#define GLX_SWAP_COPY_OML                 0x8062
598848b8605Smrg#define GLX_SWAP_UNDEFINED_OML            0x8063
599848b8605Smrg#endif /* GLX_OML_swap_method */
600848b8605Smrg
601848b8605Smrg#ifndef GLX_OML_sync_control
602848b8605Smrg#define GLX_OML_sync_control 1
603848b8605Smrg#ifndef GLEXT_64_TYPES_DEFINED
604848b8605Smrg/* This code block is duplicated in glext.h, so must be protected */
605848b8605Smrg#define GLEXT_64_TYPES_DEFINED
606848b8605Smrg/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
607848b8605Smrg/* (as used in the GLX_OML_sync_control extension). */
608848b8605Smrg#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
609848b8605Smrg#include <inttypes.h>
610848b8605Smrg#elif defined(__sun__) || defined(__digital__)
611848b8605Smrg#include <inttypes.h>
612848b8605Smrg#if defined(__STDC__)
613848b8605Smrg#if defined(__arch64__) || defined(_LP64)
614848b8605Smrgtypedef long int int64_t;
615848b8605Smrgtypedef unsigned long int uint64_t;
616848b8605Smrg#else
617848b8605Smrgtypedef long long int int64_t;
618848b8605Smrgtypedef unsigned long long int uint64_t;
619848b8605Smrg#endif /* __arch64__ */
620848b8605Smrg#endif /* __STDC__ */
621848b8605Smrg#elif defined( __VMS ) || defined(__sgi)
622848b8605Smrg#include <inttypes.h>
623848b8605Smrg#elif defined(__SCO__) || defined(__USLC__)
624848b8605Smrg#include <stdint.h>
625848b8605Smrg#elif defined(__UNIXOS2__) || defined(__SOL64__)
626848b8605Smrgtypedef long int int32_t;
627848b8605Smrgtypedef long long int int64_t;
628848b8605Smrgtypedef unsigned long long int uint64_t;
629848b8605Smrg#elif defined(_WIN32) && defined(__GNUC__)
630848b8605Smrg#include <stdint.h>
631848b8605Smrg#elif defined(_WIN32)
632848b8605Smrgtypedef __int32 int32_t;
633848b8605Smrgtypedef __int64 int64_t;
634848b8605Smrgtypedef unsigned __int64 uint64_t;
635848b8605Smrg#else
636848b8605Smrg/* Fallback if nothing above works */
637848b8605Smrg#include <inttypes.h>
638848b8605Smrg#endif
639848b8605Smrg#endif
640848b8605Smrgtypedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
641848b8605Smrgtypedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
642848b8605Smrgtypedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
643848b8605Smrgtypedef 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);
644848b8605Smrgtypedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
645848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
646848b8605SmrgBool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
647848b8605SmrgBool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
648848b8605Smrgint64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
649848b8605SmrgBool glXWaitForMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
650848b8605SmrgBool glXWaitForSbcOML (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
651848b8605Smrg#endif
652848b8605Smrg#endif /* GLX_OML_sync_control */
653848b8605Smrg
654848b8605Smrg#ifndef GLX_SGIS_blended_overlay
655848b8605Smrg#define GLX_SGIS_blended_overlay 1
656848b8605Smrg#define GLX_BLENDED_RGBA_SGIS             0x8025
657848b8605Smrg#endif /* GLX_SGIS_blended_overlay */
658848b8605Smrg
659848b8605Smrg#ifndef GLX_SGIS_multisample
660848b8605Smrg#define GLX_SGIS_multisample 1
661848b8605Smrg#define GLX_SAMPLE_BUFFERS_SGIS           100000
662848b8605Smrg#define GLX_SAMPLES_SGIS                  100001
663848b8605Smrg#endif /* GLX_SGIS_multisample */
664848b8605Smrg
665848b8605Smrg#ifndef GLX_SGIS_shared_multisample
666848b8605Smrg#define GLX_SGIS_shared_multisample 1
667848b8605Smrg#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
668848b8605Smrg#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
669848b8605Smrg#endif /* GLX_SGIS_shared_multisample */
670848b8605Smrg
671848b8605Smrg#ifndef GLX_SGIX_dmbuffer
672848b8605Smrg#define GLX_SGIX_dmbuffer 1
673848b8605Smrgtypedef XID GLXPbufferSGIX;
674848b8605Smrg#ifdef _DM_BUFFER_H_
675848b8605Smrg#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX    0x8024
676848b8605Smrgtypedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
677848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
678848b8605SmrgBool glXAssociateDMPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
679848b8605Smrg#endif
680848b8605Smrg#endif /* _DM_BUFFER_H_ */
681848b8605Smrg#endif /* GLX_SGIX_dmbuffer */
682848b8605Smrg
683848b8605Smrg#ifndef GLX_SGIX_fbconfig
684848b8605Smrg#define GLX_SGIX_fbconfig 1
685848b8605Smrgtypedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
686848b8605Smrg#define GLX_WINDOW_BIT_SGIX               0x00000001
687848b8605Smrg#define GLX_PIXMAP_BIT_SGIX               0x00000002
688848b8605Smrg#define GLX_RGBA_BIT_SGIX                 0x00000001
689848b8605Smrg#define GLX_COLOR_INDEX_BIT_SGIX          0x00000002
690848b8605Smrg#define GLX_DRAWABLE_TYPE_SGIX            0x8010
691848b8605Smrg#define GLX_RENDER_TYPE_SGIX              0x8011
692848b8605Smrg#define GLX_X_RENDERABLE_SGIX             0x8012
693848b8605Smrg#define GLX_FBCONFIG_ID_SGIX              0x8013
694848b8605Smrg#define GLX_RGBA_TYPE_SGIX                0x8014
695848b8605Smrg#define GLX_COLOR_INDEX_TYPE_SGIX         0x8015
696848b8605Smrgtypedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
697848b8605Smrgtypedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
698848b8605Smrgtypedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
699848b8605Smrgtypedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
700848b8605Smrgtypedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
701848b8605Smrgtypedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
702848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
703848b8605Smrgint glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
704848b8605SmrgGLXFBConfigSGIX *glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements);
705848b8605SmrgGLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
706848b8605SmrgGLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
707848b8605SmrgXVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config);
708848b8605SmrgGLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis);
709848b8605Smrg#endif
710848b8605Smrg#endif /* GLX_SGIX_fbconfig */
711848b8605Smrg
712848b8605Smrg#ifndef GLX_SGIX_hyperpipe
713848b8605Smrg#define GLX_SGIX_hyperpipe 1
714848b8605Smrgtypedef struct {
715848b8605Smrg    char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
716848b8605Smrg    int     networkId;
717848b8605Smrg} GLXHyperpipeNetworkSGIX;
718848b8605Smrgtypedef struct {
719848b8605Smrg    char    pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
720848b8605Smrg    int     channel;
721848b8605Smrg    unsigned int participationType;
722848b8605Smrg    int     timeSlice;
723848b8605Smrg} GLXHyperpipeConfigSGIX;
724848b8605Smrgtypedef struct {
725848b8605Smrg    char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
726848b8605Smrg    int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
727848b8605Smrg    int destXOrigin, destYOrigin, destWidth, destHeight;
728848b8605Smrg} GLXPipeRect;
729848b8605Smrgtypedef struct {
730848b8605Smrg    char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
731848b8605Smrg    int XOrigin, YOrigin, maxHeight, maxWidth;
732848b8605Smrg} GLXPipeRectLimits;
733848b8605Smrg#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
734848b8605Smrg#define GLX_BAD_HYPERPIPE_CONFIG_SGIX     91
735848b8605Smrg#define GLX_BAD_HYPERPIPE_SGIX            92
736848b8605Smrg#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX   0x00000001
737848b8605Smrg#define GLX_HYPERPIPE_RENDER_PIPE_SGIX    0x00000002
738848b8605Smrg#define GLX_PIPE_RECT_SGIX                0x00000001
739848b8605Smrg#define GLX_PIPE_RECT_LIMITS_SGIX         0x00000002
740848b8605Smrg#define GLX_HYPERPIPE_STEREO_SGIX         0x00000003
741848b8605Smrg#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX  0x00000004
742848b8605Smrg#define GLX_HYPERPIPE_ID_SGIX             0x8030
743848b8605Smrgtypedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
744848b8605Smrgtypedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
745848b8605Smrgtypedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
746848b8605Smrgtypedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
747848b8605Smrgtypedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
748848b8605Smrgtypedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
749848b8605Smrgtypedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
750848b8605Smrgtypedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
751848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
752848b8605SmrgGLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes);
753848b8605Smrgint glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
754848b8605SmrgGLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes);
755848b8605Smrgint glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId);
756848b8605Smrgint glXBindHyperpipeSGIX (Display *dpy, int hpId);
757848b8605Smrgint glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
758848b8605Smrgint glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
759848b8605Smrgint glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
760848b8605Smrg#endif
761848b8605Smrg#endif /* GLX_SGIX_hyperpipe */
762848b8605Smrg
763848b8605Smrg#ifndef GLX_SGIX_pbuffer
764848b8605Smrg#define GLX_SGIX_pbuffer 1
765848b8605Smrg#define GLX_PBUFFER_BIT_SGIX              0x00000004
766848b8605Smrg#define GLX_BUFFER_CLOBBER_MASK_SGIX      0x08000000
767848b8605Smrg#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX    0x00000001
768848b8605Smrg#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX   0x00000002
769848b8605Smrg#define GLX_BACK_LEFT_BUFFER_BIT_SGIX     0x00000004
770848b8605Smrg#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX    0x00000008
771848b8605Smrg#define GLX_AUX_BUFFERS_BIT_SGIX          0x00000010
772848b8605Smrg#define GLX_DEPTH_BUFFER_BIT_SGIX         0x00000020
773848b8605Smrg#define GLX_STENCIL_BUFFER_BIT_SGIX       0x00000040
774848b8605Smrg#define GLX_ACCUM_BUFFER_BIT_SGIX         0x00000080
775848b8605Smrg#define GLX_SAMPLE_BUFFERS_BIT_SGIX       0x00000100
776848b8605Smrg#define GLX_MAX_PBUFFER_WIDTH_SGIX        0x8016
777848b8605Smrg#define GLX_MAX_PBUFFER_HEIGHT_SGIX       0x8017
778848b8605Smrg#define GLX_MAX_PBUFFER_PIXELS_SGIX       0x8018
779848b8605Smrg#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX    0x8019
780848b8605Smrg#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX   0x801A
781848b8605Smrg#define GLX_PRESERVED_CONTENTS_SGIX       0x801B
782848b8605Smrg#define GLX_LARGEST_PBUFFER_SGIX          0x801C
783848b8605Smrg#define GLX_WIDTH_SGIX                    0x801D
784848b8605Smrg#define GLX_HEIGHT_SGIX                   0x801E
785848b8605Smrg#define GLX_EVENT_MASK_SGIX               0x801F
786848b8605Smrg#define GLX_DAMAGED_SGIX                  0x8020
787848b8605Smrg#define GLX_SAVED_SGIX                    0x8021
788848b8605Smrg#define GLX_WINDOW_SGIX                   0x8022
789848b8605Smrg#define GLX_PBUFFER_SGIX                  0x8023
790848b8605Smrgtypedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
791848b8605Smrgtypedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
792848b8605Smrgtypedef int ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
793848b8605Smrgtypedef void ( *PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
794848b8605Smrgtypedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
795848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
796848b8605SmrgGLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
797848b8605Smrgvoid glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf);
798848b8605Smrgint glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
799848b8605Smrgvoid glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask);
800848b8605Smrgvoid glXGetSelectedEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long *mask);
801848b8605Smrg#endif
802848b8605Smrg#endif /* GLX_SGIX_pbuffer */
803848b8605Smrg
804848b8605Smrg#ifndef GLX_SGIX_swap_barrier
805848b8605Smrg#define GLX_SGIX_swap_barrier 1
806848b8605Smrgtypedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
807848b8605Smrgtypedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
808848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
809848b8605Smrgvoid glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier);
810848b8605SmrgBool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max);
811848b8605Smrg#endif
812848b8605Smrg#endif /* GLX_SGIX_swap_barrier */
813848b8605Smrg
814848b8605Smrg#ifndef GLX_SGIX_swap_group
815848b8605Smrg#define GLX_SGIX_swap_group 1
816848b8605Smrgtypedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
817848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
818848b8605Smrgvoid glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member);
819848b8605Smrg#endif
820848b8605Smrg#endif /* GLX_SGIX_swap_group */
821848b8605Smrg
822848b8605Smrg#ifndef GLX_SGIX_video_resize
823848b8605Smrg#define GLX_SGIX_video_resize 1
824848b8605Smrg#define GLX_SYNC_FRAME_SGIX               0x00000000
825848b8605Smrg#define GLX_SYNC_SWAP_SGIX                0x00000001
826848b8605Smrgtypedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
827848b8605Smrgtypedef int ( *PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
828848b8605Smrgtypedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
829848b8605Smrgtypedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
830848b8605Smrgtypedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
831848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
832848b8605Smrgint glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window);
833848b8605Smrgint glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h);
834848b8605Smrgint glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
835848b8605Smrgint glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
836848b8605Smrgint glXChannelRectSyncSGIX (Display *display, int screen, int channel, GLenum synctype);
837848b8605Smrg#endif
838848b8605Smrg#endif /* GLX_SGIX_video_resize */
839848b8605Smrg
840848b8605Smrg#ifndef GLX_SGIX_video_source
841848b8605Smrg#define GLX_SGIX_video_source 1
842848b8605Smrgtypedef XID GLXVideoSourceSGIX;
843848b8605Smrg#ifdef _VL_H
844848b8605Smrgtypedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
845848b8605Smrgtypedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
846848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
847848b8605SmrgGLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
848848b8605Smrgvoid glXDestroyGLXVideoSourceSGIX (Display *dpy, GLXVideoSourceSGIX glxvideosource);
849848b8605Smrg#endif
850848b8605Smrg#endif /* _VL_H */
851848b8605Smrg#endif /* GLX_SGIX_video_source */
852848b8605Smrg
853848b8605Smrg#ifndef GLX_SGIX_visual_select_group
854848b8605Smrg#define GLX_SGIX_visual_select_group 1
855848b8605Smrg#define GLX_VISUAL_SELECT_GROUP_SGIX      0x8028
856848b8605Smrg#endif /* GLX_SGIX_visual_select_group */
857848b8605Smrg
858848b8605Smrg#ifndef GLX_SGI_cushion
859848b8605Smrg#define GLX_SGI_cushion 1
860848b8605Smrgtypedef void ( *PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
861848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
862848b8605Smrgvoid glXCushionSGI (Display *dpy, Window window, float cushion);
863848b8605Smrg#endif
864848b8605Smrg#endif /* GLX_SGI_cushion */
865848b8605Smrg
866848b8605Smrg#ifndef GLX_SGI_make_current_read
867848b8605Smrg#define GLX_SGI_make_current_read 1
868848b8605Smrgtypedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
869848b8605Smrgtypedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
870848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
871848b8605SmrgBool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
872848b8605SmrgGLXDrawable glXGetCurrentReadDrawableSGI (void);
873848b8605Smrg#endif
874848b8605Smrg#endif /* GLX_SGI_make_current_read */
875848b8605Smrg
876848b8605Smrg#ifndef GLX_SGI_swap_control
877848b8605Smrg#define GLX_SGI_swap_control 1
878848b8605Smrgtypedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval);
879848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
880848b8605Smrgint glXSwapIntervalSGI (int interval);
881848b8605Smrg#endif
882848b8605Smrg#endif /* GLX_SGI_swap_control */
883848b8605Smrg
884848b8605Smrg#ifndef GLX_SGI_video_sync
885848b8605Smrg#define GLX_SGI_video_sync 1
886848b8605Smrgtypedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
887848b8605Smrgtypedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
888848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
889848b8605Smrgint glXGetVideoSyncSGI (unsigned int *count);
890848b8605Smrgint glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count);
891848b8605Smrg#endif
892848b8605Smrg#endif /* GLX_SGI_video_sync */
893848b8605Smrg
894848b8605Smrg#ifndef GLX_SUN_get_transparent_index
895848b8605Smrg#define GLX_SUN_get_transparent_index 1
896848b8605Smrgtypedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
897848b8605Smrg#ifdef GLX_GLXEXT_PROTOTYPES
898848b8605SmrgStatus glXGetTransparentIndexSUN (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
899848b8605Smrg#endif
900848b8605Smrg#endif /* GLX_SUN_get_transparent_index */
901848b8605Smrg
902848b8605Smrg#ifdef __cplusplus
903848b8605Smrg}
904848b8605Smrg#endif
905848b8605Smrg
906848b8605Smrg#endif
907