source: OGRE/trunk/ogrenew/Dependencies/include/GL/glxext.h @ 657

Revision 657, 25.8 KB checked in by mattausch, 19 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1#ifndef __glxext_h_
2#define __glxext_h_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/*
9** License Applicability. OGRE_EXCEPT to the extent portions of this file are
10** made subject to an alternative license as permitted in the SGI Free
11** Software License B, Version 1.1 (the "License"), the contents of this
12** file are subject only to the provisions of the License. You may not use
13** this file except in compliance with the License. You may obtain a copy
14** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
15** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
16**
17** http://oss.sgi.com/projects/FreeB
18**
19** Note that, as provided in the License, the Software is distributed on an
20** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
21** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
22** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
23** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
24**
25** Original Code. The Original Code is: OpenGL Sample Implementation,
26** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
27** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
28** Copyright in any portions created by third parties is as indicated
29** elsewhere herein. All Rights Reserved.
30**
31** Additional Notice Provisions: This software was created using the
32** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
33** not been independently verified as being compliant with the OpenGL(R)
34** version 1.2.1 Specification.
35*/
36
37#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
38#define WIN32_LEAN_AND_MEAN 1
39#include <windows.h>
40#endif
41
42#ifndef APIENTRY
43#define APIENTRY
44#endif
45#ifndef GLAPI
46#define GLAPI extern
47#endif
48
49/*************************************************************/
50
51/* Header file version number, required by OpenGL ABI for Linux */
52/* glxext.h last updated 2002/03/22 */
53/* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
54#define GLX_GLXEXT_VERSION 5
55
56#ifndef GLX_VERSION_1_3
57#define GLX_WINDOW_BIT                     0x00000001
58#define GLX_PIXMAP_BIT                     0x00000002
59#define GLX_PBUFFER_BIT                    0x00000004
60#define GLX_RGBA_BIT                       0x00000001
61#define GLX_COLOR_INDEX_BIT                0x00000002
62#define GLX_PBUFFER_CLOBBER_MASK           0x08000000
63#define GLX_FRONT_LEFT_BUFFER_BIT          0x00000001
64#define GLX_FRONT_RIGHT_BUFFER_BIT         0x00000002
65#define GLX_BACK_LEFT_BUFFER_BIT           0x00000004
66#define GLX_BACK_RIGHT_BUFFER_BIT          0x00000008
67#define GLX_AUX_BUFFERS_BIT                0x00000010
68#define GLX_DEPTH_BUFFER_BIT               0x00000020
69#define GLX_STENCIL_BUFFER_BIT             0x00000040
70#define GLX_ACCUM_BUFFER_BIT               0x00000080
71#define GLX_CONFIG_CAVEAT                  0x20
72#define GLX_X_VISUAL_TYPE                  0x22
73#define GLX_TRANSPARENT_TYPE               0x23
74#define GLX_TRANSPARENT_INDEX_VALUE        0x24
75#define GLX_TRANSPARENT_RED_VALUE          0x25
76#define GLX_TRANSPARENT_GREEN_VALUE        0x26
77#define GLX_TRANSPARENT_BLUE_VALUE         0x27
78#define GLX_TRANSPARENT_ALPHA_VALUE        0x28
79#define GLX_DONT_CARE                      0xFFFFFFFF
80#define GLX_NONE                           0x8000
81#define GLX_SLOW_CONFIG                    0x8001
82#define GLX_TRUE_COLOR                     0x8002
83#define GLX_DIRECT_COLOR                   0x8003
84#define GLX_PSEUDO_COLOR                   0x8004
85#define GLX_STATIC_COLOR                   0x8005
86#define GLX_GRAY_SCALE                     0x8006
87#define GLX_STATIC_GRAY                    0x8007
88#define GLX_TRANSPARENT_RGB                0x8008
89#define GLX_TRANSPARENT_INDEX              0x8009
90#define GLX_VISUAL_ID                      0x800B
91#define GLX_SCREEN                         0x800C
92#define GLX_NON_CONFORMANT_CONFIG          0x800D
93#define GLX_DRAWABLE_TYPE                  0x8010
94#define GLX_RENDER_TYPE                    0x8011
95#define GLX_X_RENDERABLE                   0x8012
96#define GLX_FBCONFIG_ID                    0x8013
97#define GLX_RGBA_TYPE                      0x8014
98#define GLX_COLOR_INDEX_TYPE               0x8015
99#define GLX_MAX_PBUFFER_WIDTH              0x8016
100#define GLX_MAX_PBUFFER_HEIGHT             0x8017
101#define GLX_MAX_PBUFFER_PIXELS             0x8018
102#define GLX_PRESERVED_CONTENTS             0x801B
103#define GLX_LARGEST_PBUFFER                0x801C
104#define GLX_WIDTH                          0x801D
105#define GLX_HEIGHT                         0x801E
106#define GLX_EVENT_MASK                     0x801F
107#define GLX_DAMAGED                        0x8020
108#define GLX_SAVED                          0x8021
109#define GLX_WINDOW                         0x8022
110#define GLX_PBUFFER                        0x8023
111#define GLX_PBUFFER_HEIGHT                 0x8040
112#define GLX_PBUFFER_WIDTH                  0x8041
113#endif
114
115#ifndef GLX_VERSION_1_4
116#define GLX_SAMPLE_BUFFERS                 100000
117#define GLX_SAMPLES                        100001
118#endif
119
120#ifndef GLX_ARB_get_proc_address
121#endif
122
123#ifndef GLX_ARB_multisample
124#define GLX_SAMPLE_BUFFERS_ARB             100000
125#define GLX_SAMPLES_ARB                    100001
126#endif
127
128#ifndef GLX_SGIS_multisample
129#define GLX_SAMPLE_BUFFERS_SGIS            100000
130#define GLX_SAMPLES_SGIS                   100001
131#endif
132
133#ifndef GLX_EXT_visual_info
134#define GLX_X_VISUAL_TYPE_EXT              0x22
135#define GLX_TRANSPARENT_TYPE_EXT           0x23
136#define GLX_TRANSPARENT_INDEX_VALUE_EXT    0x24
137#define GLX_TRANSPARENT_RED_VALUE_EXT      0x25
138#define GLX_TRANSPARENT_GREEN_VALUE_EXT    0x26
139#define GLX_TRANSPARENT_BLUE_VALUE_EXT     0x27
140#define GLX_TRANSPARENT_ALPHA_VALUE_EXT    0x28
141#define GLX_NONE_EXT                       0x8000
142#define GLX_TRUE_COLOR_EXT                 0x8002
143#define GLX_DIRECT_COLOR_EXT               0x8003
144#define GLX_PSEUDO_COLOR_EXT               0x8004
145#define GLX_STATIC_COLOR_EXT               0x8005
146#define GLX_GRAY_SCALE_EXT                 0x8006
147#define GLX_STATIC_GRAY_EXT                0x8007
148#define GLX_TRANSPARENT_RGB_EXT            0x8008
149#define GLX_TRANSPARENT_INDEX_EXT          0x8009
150#endif
151
152#ifndef GLX_SGI_swap_control
153#endif
154
155#ifndef GLX_SGI_video_sync
156#endif
157
158#ifndef GLX_SGI_make_current_read
159#endif
160
161#ifndef GLX_SGIX_video_source
162#endif
163
164#ifndef GLX_EXT_visual_rating
165#define GLX_VISUAL_CAVEAT_EXT              0x20
166#define GLX_SLOW_VISUAL_EXT                0x8001
167#define GLX_NON_CONFORMANT_VISUAL_EXT      0x800D
168/* reuse GLX_NONE_EXT */
169#endif
170
171#ifndef GLX_EXT_import_context
172#define GLX_SHARE_CONTEXT_EXT              0x800A
173#define GLX_VISUAL_ID_EXT                  0x800B
174#define GLX_SCREEN_EXT                     0x800C
175#endif
176
177#ifndef GLX_SGIX_fbconfig
178#define GLX_WINDOW_BIT_SGIX                0x00000001
179#define GLX_PIXMAP_BIT_SGIX                0x00000002
180#define GLX_RGBA_BIT_SGIX                  0x00000001
181#define GLX_COLOR_INDEX_BIT_SGIX           0x00000002
182#define GLX_DRAWABLE_TYPE_SGIX             0x8010
183#define GLX_RENDER_TYPE_SGIX               0x8011
184#define GLX_X_RENDERABLE_SGIX              0x8012
185#define GLX_FBCONFIG_ID_SGIX               0x8013
186#define GLX_RGBA_TYPE_SGIX                 0x8014
187#define GLX_COLOR_INDEX_TYPE_SGIX          0x8015
188/* reuse GLX_SCREEN_EXT */
189#endif
190
191#ifndef GLX_SGIX_pbuffer
192#define GLX_PBUFFER_BIT_SGIX               0x00000004
193#define GLX_BUFFER_CLOBBER_MASK_SGIX       0x08000000
194#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX     0x00000001
195#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX    0x00000002
196#define GLX_BACK_LEFT_BUFFER_BIT_SGIX      0x00000004
197#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX     0x00000008
198#define GLX_AUX_BUFFERS_BIT_SGIX           0x00000010
199#define GLX_DEPTH_BUFFER_BIT_SGIX          0x00000020
200#define GLX_STENCIL_BUFFER_BIT_SGIX        0x00000040
201#define GLX_ACCUM_BUFFER_BIT_SGIX          0x00000080
202#define GLX_SAMPLE_BUFFERS_BIT_SGIX        0x00000100
203#define GLX_MAX_PBUFFER_WIDTH_SGIX         0x8016
204#define GLX_MAX_PBUFFER_HEIGHT_SGIX        0x8017
205#define GLX_MAX_PBUFFER_PIXELS_SGIX        0x8018
206#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX     0x8019
207#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX    0x801A
208#define GLX_PRESERVED_CONTENTS_SGIX        0x801B
209#define GLX_LARGEST_PBUFFER_SGIX           0x801C
210#define GLX_WIDTH_SGIX                     0x801D
211#define GLX_HEIGHT_SGIX                    0x801E
212#define GLX_EVENT_MASK_SGIX                0x801F
213#define GLX_DAMAGED_SGIX                   0x8020
214#define GLX_SAVED_SGIX                     0x8021
215#define GLX_WINDOW_SGIX                    0x8022
216#define GLX_PBUFFER_SGIX                   0x8023
217#endif
218
219#ifndef GLX_SGI_cushion
220#endif
221
222#ifndef GLX_SGIX_video_resize
223#define GLX_SYNC_FRAME_SGIX                0x00000000
224#define GLX_SYNC_SWAP_SGIX                 0x00000001
225#endif
226
227#ifndef GLX_SGIX_dmbuffer
228#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX     0x8024
229#endif
230
231#ifndef GLX_SGIX_swap_group
232#endif
233
234#ifndef GLX_SGIX_swap_barrier
235#endif
236
237#ifndef GLX_SGIS_blended_overlay
238#define GLX_BLENDED_RGBA_SGIS              0x8025
239#endif
240
241#ifndef GLX_SGIS_shared_multisample
242#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
243#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
244#endif
245
246#ifndef GLX_SUN_get_transparent_index
247#endif
248
249#ifndef GLX_3DFX_multisample
250#define GLX_SAMPLE_BUFFERS_3DFX            0x8050
251#define GLX_SAMPLES_3DFX                   0x8051
252#endif
253
254#ifndef GLX_MESA_copy_sub_buffer
255#endif
256
257#ifndef GLX_MESA_pixmap_colormap
258#endif
259
260#ifndef GLX_MESA_release_buffers
261#endif
262
263#ifndef GLX_MESA_set_3dfx_mode
264#define GLX_3DFX_WINDOW_MODE_MESA          0x1
265#define GLX_3DFX_FULLSCREEN_MODE_MESA      0x2
266#endif
267
268#ifndef GLX_SGIX_visual_select_group
269#define GLX_VISUAL_SELECT_GROUP_SGIX       0x8028
270#endif
271
272#ifndef GLX_OML_swap_method
273#define GLX_SWAP_METHOD_OML                0x8060
274#define GLX_SWAP_EXCHANGE_OML              0x8061
275#define GLX_SWAP_COPY_OML                  0x8062
276#define GLX_SWAP_UNDEFINED_OML             0x8063
277#endif
278
279#ifndef GLX_OML_sync_control
280#endif
281
282
283/*************************************************************/
284
285#ifndef GLX_ARB_get_proc_address
286typedef void (*__GLXextFuncPtr)(void);
287#endif
288
289#ifndef GLX_SGIX_video_source
290typedef XID GLXVideoSourceSGIX;
291#endif
292
293#ifndef GLX_SGIX_fbconfig
294typedef XID GLXFBConfigIDSGIX;
295typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
296#endif
297
298#ifndef GLX_SGIX_pbuffer
299typedef XID GLXPbufferSGIX;
300typedef struct {
301    int type;
302    unsigned long serial;         /* # of last request processed by server */
303    Bool send_event;              /* true if this came for SendEvent request */
304    Display *display;             /* display the event was read from */
305    GLXDrawable drawable;         /* i.d. of Drawable */
306    int event_type;               /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
307    int draw_type;                /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
308    unsigned int mask;    /* mask indicating which buffers are affected*/
309    int x, y;
310    int width, height;
311    int count;            /* if nonzero, at least this many more */
312} GLXBufferClobberEventSGIX;
313#endif
314
315#ifndef GLX_VERSION_1_3
316#define GLX_VERSION_1_3 1
317#ifdef GLX_GLXEXT_PROTOTYPES
318extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
319extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
320extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
321extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
322extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
323extern void glXDestroyWindow (Display *, GLXWindow);
324extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
325extern void glXDestroyPixmap (Display *, GLXPixmap);
326extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
327extern void glXDestroyPbuffer (Display *, GLXPbuffer);
328extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
329extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
330extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
331extern GLXDrawable glXGetCurrentReadDrawable (void);
332extern Display * glXGetCurrentDisplay (void);
333extern int glXQueryContext (Display *, GLXContext, int, int *);
334extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
335extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
336#endif /* GLX_GLXEXT_PROTOTYPES */
337typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
338typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
339typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
340typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
341typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
342typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
343typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
344typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
345typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
346typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
347typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
348typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
349typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
350typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
351typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
352typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
353typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
354typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
355#endif
356
357#ifndef GLX_VERSION_1_4
358#define GLX_VERSION_1_4 1
359#ifdef GLX_GLXEXT_PROTOTYPES
360extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
361#endif /* GLX_GLXEXT_PROTOTYPES */
362typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
363#endif
364
365#ifndef GLX_ARB_get_proc_address
366#define GLX_ARB_get_proc_address 1
367#ifdef GLX_GLXEXT_PROTOTYPES
368extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
369#endif /* GLX_GLXEXT_PROTOTYPES */
370typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
371#endif
372
373#ifndef GLX_ARB_multisample
374#define GLX_ARB_multisample 1
375#endif
376
377#ifndef GLX_SGIS_multisample
378#define GLX_SGIS_multisample 1
379#endif
380
381#ifndef GLX_EXT_visual_info
382#define GLX_EXT_visual_info 1
383#endif
384
385#ifndef GLX_SGI_swap_control
386#define GLX_SGI_swap_control 1
387#ifdef GLX_GLXEXT_PROTOTYPES
388extern int glXSwapIntervalSGI (int);
389#endif /* GLX_GLXEXT_PROTOTYPES */
390typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
391#endif
392
393#ifndef GLX_SGI_video_sync
394#define GLX_SGI_video_sync 1
395#ifdef GLX_GLXEXT_PROTOTYPES
396extern int glXGetVideoSyncSGI (unsigned int *);
397extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
398#endif /* GLX_GLXEXT_PROTOTYPES */
399typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
400typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
401#endif
402
403#ifndef GLX_SGI_make_current_read
404#define GLX_SGI_make_current_read 1
405#ifdef GLX_GLXEXT_PROTOTYPES
406extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
407extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
408#endif /* GLX_GLXEXT_PROTOTYPES */
409typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
410typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
411#endif
412
413#ifdef _VL_H
414#ifndef GLX_SGIX_video_source
415#define GLX_SGIX_video_source 1
416#ifdef GLX_GLXEXT_PROTOTYPES
417extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
418extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
419#endif /* GLX_GLXEXT_PROTOTYPES */
420typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
421typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
422#endif
423
424#endif /* _VL_H */
425#ifndef GLX_EXT_visual_rating
426#define GLX_EXT_visual_rating 1
427#endif
428
429#ifndef GLX_EXT_import_context
430#define GLX_EXT_import_context 1
431#ifdef GLX_GLXEXT_PROTOTYPES
432extern Display * glXGetCurrentDisplayEXT (void);
433extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
434extern GLXContextID glXGetContextIDEXT (const GLXContext);
435extern GLXContext glXImportContextEXT (Display *, GLXContextID);
436extern void glXFreeContextEXT (Display *, GLXContext);
437#endif /* GLX_GLXEXT_PROTOTYPES */
438typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
439typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
440typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
441typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
442typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
443#endif
444
445#ifndef GLX_SGIX_fbconfig
446#define GLX_SGIX_fbconfig 1
447#ifdef GLX_GLXEXT_PROTOTYPES
448extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
449extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
450extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
451extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
452extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
453extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
454#endif /* GLX_GLXEXT_PROTOTYPES */
455typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
456typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
457typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
458typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
459typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
460typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
461#endif
462
463#ifndef GLX_SGIX_pbuffer
464#define GLX_SGIX_pbuffer 1
465#ifdef GLX_GLXEXT_PROTOTYPES
466extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
467extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
468extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
469extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
470extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
471#endif /* GLX_GLXEXT_PROTOTYPES */
472typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
473typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
474typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
475typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
476typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
477#endif
478
479#ifndef GLX_SGI_cushion
480#define GLX_SGI_cushion 1
481#ifdef GLX_GLXEXT_PROTOTYPES
482extern void glXCushionSGI (Display *, Window, float);
483#endif /* GLX_GLXEXT_PROTOTYPES */
484typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
485#endif
486
487#ifndef GLX_SGIX_video_resize
488#define GLX_SGIX_video_resize 1
489#ifdef GLX_GLXEXT_PROTOTYPES
490extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
491extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
492extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
493extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
494extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
495#endif /* GLX_GLXEXT_PROTOTYPES */
496typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
497typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
498typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
499typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
500typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
501#endif
502
503#ifdef _DM_BUFFER_H_
504#ifndef GLX_SGIX_dmbuffer
505#define GLX_SGIX_dmbuffer 1
506#ifdef GLX_GLXEXT_PROTOTYPES
507extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
508#endif /* GLX_GLXEXT_PROTOTYPES */
509typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
510#endif
511
512#endif /* _DM_BUFFER_H_ */
513#ifndef GLX_SGIX_swap_group
514#define GLX_SGIX_swap_group 1
515#ifdef GLX_GLXEXT_PROTOTYPES
516extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
517#endif /* GLX_GLXEXT_PROTOTYPES */
518typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
519#endif
520
521#ifndef GLX_SGIX_swap_barrier
522#define GLX_SGIX_swap_barrier 1
523#ifdef GLX_GLXEXT_PROTOTYPES
524extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
525extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
526#endif /* GLX_GLXEXT_PROTOTYPES */
527typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
528typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
529#endif
530
531#ifndef GLX_SUN_get_transparent_index
532#define GLX_SUN_get_transparent_index 1
533#ifdef GLX_GLXEXT_PROTOTYPES
534extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
535#endif /* GLX_GLXEXT_PROTOTYPES */
536typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
537#endif
538
539#ifndef GLX_MESA_copy_sub_buffer
540#define GLX_MESA_copy_sub_buffer 1
541#ifdef GLX_GLXEXT_PROTOTYPES
542extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
543#endif /* GLX_GLXEXT_PROTOTYPES */
544typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
545#endif
546
547#ifndef GLX_MESA_pixmap_colormap
548#define GLX_MESA_pixmap_colormap 1
549#ifdef GLX_GLXEXT_PROTOTYPES
550extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
551#endif /* GLX_GLXEXT_PROTOTYPES */
552typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
553#endif
554
555#ifndef GLX_MESA_release_buffers
556#define GLX_MESA_release_buffers 1
557#ifdef GLX_GLXEXT_PROTOTYPES
558extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
559#endif /* GLX_GLXEXT_PROTOTYPES */
560typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
561#endif
562
563#ifndef GLX_MESA_set_3dfx_mode
564#define GLX_MESA_set_3dfx_mode 1
565#ifdef GLX_GLXEXT_PROTOTYPES
566extern Bool glXSet3DfxModeMESA (int);
567#endif /* GLX_GLXEXT_PROTOTYPES */
568typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
569#endif
570
571#ifndef GLX_SGIX_visual_select_group
572#define GLX_SGIX_visual_select_group 1
573#endif
574
575#ifndef GLX_OML_swap_method
576#define GLX_OML_swap_method 1
577#endif
578
579#if defined(__STDC_VERSION__)
580#if __STDC_VERSION__ >= 199901L
581/* Include ISO C99 integer types for OML_sync_control; need a better test */
582#include <inttypes.h>
583
584#ifndef GLX_OML_sync_control
585#define GLX_OML_sync_control 1
586#ifdef GLX_GLXEXT_PROTOTYPES
587extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
588extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
589extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
590extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
591extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
592#endif /* GLX_GLXEXT_PROTOTYPES */
593typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
594typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
595typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
596typedef 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);
597typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
598#endif
599
600#endif /* C99 version test */
601#endif /* STDC test */
602
603#ifdef __cplusplus
604}
605#endif
606
607#endif
Note: See TracBrowser for help on using the repository browser.