VirtualBox

source: vbox/trunk/include/VBox/HostServices/glxext.h@ 4071

Last change on this file since 4071 was 3449, checked in by vboxsync, 17 years ago

Added SGI opengl extension headers

File size: 29.6 KB
Line 
1#ifndef __glxext_h_
2#define __glxext_h_
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/*
9** License Applicability. 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-2004 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__) && !defined(__SCITECH_SNAP__)
38#define WIN32_LEAN_AND_MEAN 1
39#include <windows.h>
40#endif
41
42#ifndef APIENTRY
43#define APIENTRY
44#endif
45#ifndef APIENTRYP
46#define APIENTRYP APIENTRY *
47#endif
48#ifndef GLAPI
49#define GLAPI extern
50#endif
51
52/*************************************************************/
53
54/* Header file version number, required by OpenGL ABI for Linux */
55/* glxext.h last updated 2005/04/28 */
56/* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
57#define GLX_GLXEXT_VERSION 11
58
59#ifndef GLX_VERSION_1_3
60#define GLX_WINDOW_BIT 0x00000001
61#define GLX_PIXMAP_BIT 0x00000002
62#define GLX_PBUFFER_BIT 0x00000004
63#define GLX_RGBA_BIT 0x00000001
64#define GLX_COLOR_INDEX_BIT 0x00000002
65#define GLX_PBUFFER_CLOBBER_MASK 0x08000000
66#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
67#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
68#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
69#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
70#define GLX_AUX_BUFFERS_BIT 0x00000010
71#define GLX_DEPTH_BUFFER_BIT 0x00000020
72#define GLX_STENCIL_BUFFER_BIT 0x00000040
73#define GLX_ACCUM_BUFFER_BIT 0x00000080
74#define GLX_CONFIG_CAVEAT 0x20
75#define GLX_X_VISUAL_TYPE 0x22
76#define GLX_TRANSPARENT_TYPE 0x23
77#define GLX_TRANSPARENT_INDEX_VALUE 0x24
78#define GLX_TRANSPARENT_RED_VALUE 0x25
79#define GLX_TRANSPARENT_GREEN_VALUE 0x26
80#define GLX_TRANSPARENT_BLUE_VALUE 0x27
81#define GLX_TRANSPARENT_ALPHA_VALUE 0x28
82#define GLX_DONT_CARE 0xFFFFFFFF
83#define GLX_NONE 0x8000
84#define GLX_SLOW_CONFIG 0x8001
85#define GLX_TRUE_COLOR 0x8002
86#define GLX_DIRECT_COLOR 0x8003
87#define GLX_PSEUDO_COLOR 0x8004
88#define GLX_STATIC_COLOR 0x8005
89#define GLX_GRAY_SCALE 0x8006
90#define GLX_STATIC_GRAY 0x8007
91#define GLX_TRANSPARENT_RGB 0x8008
92#define GLX_TRANSPARENT_INDEX 0x8009
93#define GLX_VISUAL_ID 0x800B
94#define GLX_SCREEN 0x800C
95#define GLX_NON_CONFORMANT_CONFIG 0x800D
96#define GLX_DRAWABLE_TYPE 0x8010
97#define GLX_RENDER_TYPE 0x8011
98#define GLX_X_RENDERABLE 0x8012
99#define GLX_FBCONFIG_ID 0x8013
100#define GLX_RGBA_TYPE 0x8014
101#define GLX_COLOR_INDEX_TYPE 0x8015
102#define GLX_MAX_PBUFFER_WIDTH 0x8016
103#define GLX_MAX_PBUFFER_HEIGHT 0x8017
104#define GLX_MAX_PBUFFER_PIXELS 0x8018
105#define GLX_PRESERVED_CONTENTS 0x801B
106#define GLX_LARGEST_PBUFFER 0x801C
107#define GLX_WIDTH 0x801D
108#define GLX_HEIGHT 0x801E
109#define GLX_EVENT_MASK 0x801F
110#define GLX_DAMAGED 0x8020
111#define GLX_SAVED 0x8021
112#define GLX_WINDOW 0x8022
113#define GLX_PBUFFER 0x8023
114#define GLX_PBUFFER_HEIGHT 0x8040
115#define GLX_PBUFFER_WIDTH 0x8041
116#endif
117
118#ifndef GLX_VERSION_1_4
119#define GLX_SAMPLE_BUFFERS 100000
120#define GLX_SAMPLES 100001
121#endif
122
123#ifndef GLX_ARB_get_proc_address
124#endif
125
126#ifndef GLX_ARB_multisample
127#define GLX_SAMPLE_BUFFERS_ARB 100000
128#define GLX_SAMPLES_ARB 100001
129#endif
130
131#ifndef GLX_ARB_fbconfig_float
132#define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
133#define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
134#endif
135
136#ifndef GLX_SGIS_multisample
137#define GLX_SAMPLE_BUFFERS_SGIS 100000
138#define GLX_SAMPLES_SGIS 100001
139#endif
140
141#ifndef GLX_EXT_visual_info
142#define GLX_X_VISUAL_TYPE_EXT 0x22
143#define GLX_TRANSPARENT_TYPE_EXT 0x23
144#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
145#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
146#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
147#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
148#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
149#define GLX_NONE_EXT 0x8000
150#define GLX_TRUE_COLOR_EXT 0x8002
151#define GLX_DIRECT_COLOR_EXT 0x8003
152#define GLX_PSEUDO_COLOR_EXT 0x8004
153#define GLX_STATIC_COLOR_EXT 0x8005
154#define GLX_GRAY_SCALE_EXT 0x8006
155#define GLX_STATIC_GRAY_EXT 0x8007
156#define GLX_TRANSPARENT_RGB_EXT 0x8008
157#define GLX_TRANSPARENT_INDEX_EXT 0x8009
158#endif
159
160#ifndef GLX_SGI_swap_control
161#endif
162
163#ifndef GLX_SGI_video_sync
164#endif
165
166#ifndef GLX_SGI_make_current_read
167#endif
168
169#ifndef GLX_SGIX_video_source
170#endif
171
172#ifndef GLX_EXT_visual_rating
173#define GLX_VISUAL_CAVEAT_EXT 0x20
174#define GLX_SLOW_VISUAL_EXT 0x8001
175#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
176/* reuse GLX_NONE_EXT */
177#endif
178
179#ifndef GLX_EXT_import_context
180#define GLX_SHARE_CONTEXT_EXT 0x800A
181#define GLX_VISUAL_ID_EXT 0x800B
182#define GLX_SCREEN_EXT 0x800C
183#endif
184
185#ifndef GLX_SGIX_fbconfig
186#define GLX_WINDOW_BIT_SGIX 0x00000001
187#define GLX_PIXMAP_BIT_SGIX 0x00000002
188#define GLX_RGBA_BIT_SGIX 0x00000001
189#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
190#define GLX_DRAWABLE_TYPE_SGIX 0x8010
191#define GLX_RENDER_TYPE_SGIX 0x8011
192#define GLX_X_RENDERABLE_SGIX 0x8012
193#define GLX_FBCONFIG_ID_SGIX 0x8013
194#define GLX_RGBA_TYPE_SGIX 0x8014
195#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
196/* reuse GLX_SCREEN_EXT */
197#endif
198
199#ifndef GLX_SGIX_pbuffer
200#define GLX_PBUFFER_BIT_SGIX 0x00000004
201#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
202#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
203#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
204#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
205#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
206#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
207#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
208#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
209#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
210#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
211#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
212#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
213#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
214#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
215#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
216#define GLX_PRESERVED_CONTENTS_SGIX 0x801B
217#define GLX_LARGEST_PBUFFER_SGIX 0x801C
218#define GLX_WIDTH_SGIX 0x801D
219#define GLX_HEIGHT_SGIX 0x801E
220#define GLX_EVENT_MASK_SGIX 0x801F
221#define GLX_DAMAGED_SGIX 0x8020
222#define GLX_SAVED_SGIX 0x8021
223#define GLX_WINDOW_SGIX 0x8022
224#define GLX_PBUFFER_SGIX 0x8023
225#endif
226
227#ifndef GLX_SGI_cushion
228#endif
229
230#ifndef GLX_SGIX_video_resize
231#define GLX_SYNC_FRAME_SGIX 0x00000000
232#define GLX_SYNC_SWAP_SGIX 0x00000001
233#endif
234
235#ifndef GLX_SGIX_dmbuffer
236#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
237#endif
238
239#ifndef GLX_SGIX_swap_group
240#endif
241
242#ifndef GLX_SGIX_swap_barrier
243#endif
244
245#ifndef GLX_SGIS_blended_overlay
246#define GLX_BLENDED_RGBA_SGIS 0x8025
247#endif
248
249#ifndef GLX_SGIS_shared_multisample
250#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
251#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
252#endif
253
254#ifndef GLX_SUN_get_transparent_index
255#endif
256
257#ifndef GLX_3DFX_multisample
258#define GLX_SAMPLE_BUFFERS_3DFX 0x8050
259#define GLX_SAMPLES_3DFX 0x8051
260#endif
261
262#ifndef GLX_MESA_copy_sub_buffer
263#endif
264
265#ifndef GLX_MESA_pixmap_colormap
266#endif
267
268#ifndef GLX_MESA_release_buffers
269#endif
270
271#ifndef GLX_MESA_set_3dfx_mode
272#define GLX_3DFX_WINDOW_MODE_MESA 0x1
273#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
274#endif
275
276#ifndef GLX_SGIX_visual_select_group
277#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
278#endif
279
280#ifndef GLX_OML_swap_method
281#define GLX_SWAP_METHOD_OML 0x8060
282#define GLX_SWAP_EXCHANGE_OML 0x8061
283#define GLX_SWAP_COPY_OML 0x8062
284#define GLX_SWAP_UNDEFINED_OML 0x8063
285#endif
286
287#ifndef GLX_OML_sync_control
288#endif
289
290#ifndef GLX_NV_float_buffer
291#define GLX_FLOAT_COMPONENTS_NV 0x20B0
292#endif
293
294#ifndef GLX_SGIX_hyperpipe
295#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
296#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
297#define GLX_BAD_HYPERPIPE_SGIX 92
298#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
299#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
300#define GLX_PIPE_RECT_SGIX 0x00000001
301#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
302#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
303#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
304#define GLX_HYPERPIPE_ID_SGIX 0x8030
305#endif
306
307#ifndef GLX_MESA_agp_offset
308#endif
309
310
311/*************************************************************/
312
313#ifndef GLX_ARB_get_proc_address
314typedef void (*__GLXextFuncPtr)(void);
315#endif
316
317#ifndef GLX_SGIX_video_source
318typedef XID GLXVideoSourceSGIX;
319#endif
320
321#ifndef GLX_SGIX_fbconfig
322typedef XID GLXFBConfigIDSGIX;
323typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
324#endif
325
326#ifndef GLX_SGIX_pbuffer
327typedef XID GLXPbufferSGIX;
328typedef struct {
329 int type;
330 unsigned long serial; /* # of last request processed by server */
331 Bool send_event; /* true if this came for SendEvent request */
332 Display *display; /* display the event was read from */
333 GLXDrawable drawable; /* i.d. of Drawable */
334 int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
335 int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
336 unsigned int mask; /* mask indicating which buffers are affected*/
337 int x, y;
338 int width, height;
339 int count; /* if nonzero, at least this many more */
340} GLXBufferClobberEventSGIX;
341#endif
342
343/* Define int32_t and int64_t types for UST/MSC */
344/* (as used in the GLX_OML_sync_control extension). */
345#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
346#include <inttypes.h>
347#elif defined( __VMS )
348#include <inttypes.h>
349#elif defined(__SCO__) || defined(__USLC__)
350#include <stdint.h>
351#elif defined(__UNIXOS2__) || defined(__SOL64__)
352typedef long int int32_t;
353typedef long long int int64_t;
354#else
355#include <inttypes.h> /* Fallback option */
356#endif
357
358#ifndef GLX_VERSION_1_3
359#define GLX_VERSION_1_3 1
360#ifdef GLX_GLXEXT_PROTOTYPES
361extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
362extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
363extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
364extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
365extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
366extern void glXDestroyWindow (Display *, GLXWindow);
367extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
368extern void glXDestroyPixmap (Display *, GLXPixmap);
369extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
370extern void glXDestroyPbuffer (Display *, GLXPbuffer);
371extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
372extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
373extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
374extern GLXDrawable glXGetCurrentReadDrawable (void);
375extern Display * glXGetCurrentDisplay (void);
376extern int glXQueryContext (Display *, GLXContext, int, int *);
377extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
378extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
379#endif /* GLX_GLXEXT_PROTOTYPES */
380typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
381typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
382typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
383typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
384typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
385typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
386typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
387typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
388typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
389typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
390typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
391typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
392typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
393typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
394typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
395typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
396typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
397typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
398#endif
399
400#ifndef GLX_VERSION_1_4
401#define GLX_VERSION_1_4 1
402#ifdef GLX_GLXEXT_PROTOTYPES
403extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
404#endif /* GLX_GLXEXT_PROTOTYPES */
405typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
406#endif
407
408#ifndef GLX_ARB_get_proc_address
409#define GLX_ARB_get_proc_address 1
410#ifdef GLX_GLXEXT_PROTOTYPES
411extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
412#endif /* GLX_GLXEXT_PROTOTYPES */
413typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
414#endif
415
416#ifndef GLX_ARB_multisample
417#define GLX_ARB_multisample 1
418#endif
419
420#ifndef GLX_ARB_fbconfig_float
421#define GLX_ARB_fbconfig_float 1
422#endif
423
424#ifndef GLX_SGIS_multisample
425#define GLX_SGIS_multisample 1
426#endif
427
428#ifndef GLX_EXT_visual_info
429#define GLX_EXT_visual_info 1
430#endif
431
432#ifndef GLX_SGI_swap_control
433#define GLX_SGI_swap_control 1
434#ifdef GLX_GLXEXT_PROTOTYPES
435extern int glXSwapIntervalSGI (int);
436#endif /* GLX_GLXEXT_PROTOTYPES */
437typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
438#endif
439
440#ifndef GLX_SGI_video_sync
441#define GLX_SGI_video_sync 1
442#ifdef GLX_GLXEXT_PROTOTYPES
443extern int glXGetVideoSyncSGI (unsigned int *);
444extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
445#endif /* GLX_GLXEXT_PROTOTYPES */
446typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
447typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
448#endif
449
450#ifndef GLX_SGI_make_current_read
451#define GLX_SGI_make_current_read 1
452#ifdef GLX_GLXEXT_PROTOTYPES
453extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
454extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
455#endif /* GLX_GLXEXT_PROTOTYPES */
456typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
457typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
458#endif
459
460#ifndef GLX_SGIX_video_source
461#define GLX_SGIX_video_source 1
462#ifdef _VL_H
463#ifdef GLX_GLXEXT_PROTOTYPES
464extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
465extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
466#endif /* GLX_GLXEXT_PROTOTYPES */
467typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
468typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
469#endif /* _VL_H */
470#endif
471
472#ifndef GLX_EXT_visual_rating
473#define GLX_EXT_visual_rating 1
474#endif
475
476#ifndef GLX_EXT_import_context
477#define GLX_EXT_import_context 1
478#ifdef GLX_GLXEXT_PROTOTYPES
479extern Display * glXGetCurrentDisplayEXT (void);
480extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
481extern GLXContextID glXGetContextIDEXT (const GLXContext);
482extern GLXContext glXImportContextEXT (Display *, GLXContextID);
483extern void glXFreeContextEXT (Display *, GLXContext);
484#endif /* GLX_GLXEXT_PROTOTYPES */
485typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
486typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
487typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
488typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
489typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
490#endif
491
492#ifndef GLX_SGIX_fbconfig
493#define GLX_SGIX_fbconfig 1
494#ifdef GLX_GLXEXT_PROTOTYPES
495extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
496extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
497extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
498extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
499extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
500extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
501#endif /* GLX_GLXEXT_PROTOTYPES */
502typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
503typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
504typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
505typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
506typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
507typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
508#endif
509
510#ifndef GLX_SGIX_pbuffer
511#define GLX_SGIX_pbuffer 1
512#ifdef GLX_GLXEXT_PROTOTYPES
513extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
514extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
515extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
516extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
517extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
518#endif /* GLX_GLXEXT_PROTOTYPES */
519typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
520typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
521typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
522typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
523typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
524#endif
525
526#ifndef GLX_SGI_cushion
527#define GLX_SGI_cushion 1
528#ifdef GLX_GLXEXT_PROTOTYPES
529extern void glXCushionSGI (Display *, Window, float);
530#endif /* GLX_GLXEXT_PROTOTYPES */
531typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
532#endif
533
534#ifndef GLX_SGIX_video_resize
535#define GLX_SGIX_video_resize 1
536#ifdef GLX_GLXEXT_PROTOTYPES
537extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
538extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
539extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
540extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
541extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
542#endif /* GLX_GLXEXT_PROTOTYPES */
543typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
544typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
545typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
546typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
547typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
548#endif
549
550#ifndef GLX_SGIX_dmbuffer
551#define GLX_SGIX_dmbuffer 1
552#ifdef _DM_BUFFER_H_
553#ifdef GLX_GLXEXT_PROTOTYPES
554extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
555#endif /* GLX_GLXEXT_PROTOTYPES */
556typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
557#endif /* _DM_BUFFER_H_ */
558#endif
559
560#ifndef GLX_SGIX_swap_group
561#define GLX_SGIX_swap_group 1
562#ifdef GLX_GLXEXT_PROTOTYPES
563extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
564#endif /* GLX_GLXEXT_PROTOTYPES */
565typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
566#endif
567
568#ifndef GLX_SGIX_swap_barrier
569#define GLX_SGIX_swap_barrier 1
570#ifdef GLX_GLXEXT_PROTOTYPES
571extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
572extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
573#endif /* GLX_GLXEXT_PROTOTYPES */
574typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
575typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
576#endif
577
578#ifndef GLX_SUN_get_transparent_index
579#define GLX_SUN_get_transparent_index 1
580#ifdef GLX_GLXEXT_PROTOTYPES
581extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
582#endif /* GLX_GLXEXT_PROTOTYPES */
583typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
584#endif
585
586#ifndef GLX_MESA_copy_sub_buffer
587#define GLX_MESA_copy_sub_buffer 1
588#ifdef GLX_GLXEXT_PROTOTYPES
589extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
590#endif /* GLX_GLXEXT_PROTOTYPES */
591typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
592#endif
593
594#ifndef GLX_MESA_pixmap_colormap
595#define GLX_MESA_pixmap_colormap 1
596#ifdef GLX_GLXEXT_PROTOTYPES
597extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
598#endif /* GLX_GLXEXT_PROTOTYPES */
599typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
600#endif
601
602#ifndef GLX_MESA_release_buffers
603#define GLX_MESA_release_buffers 1
604#ifdef GLX_GLXEXT_PROTOTYPES
605extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
606#endif /* GLX_GLXEXT_PROTOTYPES */
607typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
608#endif
609
610#ifndef GLX_MESA_set_3dfx_mode
611#define GLX_MESA_set_3dfx_mode 1
612#ifdef GLX_GLXEXT_PROTOTYPES
613extern Bool glXSet3DfxModeMESA (int);
614#endif /* GLX_GLXEXT_PROTOTYPES */
615typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
616#endif
617
618#ifndef GLX_SGIX_visual_select_group
619#define GLX_SGIX_visual_select_group 1
620#endif
621
622#ifndef GLX_OML_swap_method
623#define GLX_OML_swap_method 1
624#endif
625
626#ifndef GLX_OML_sync_control
627#define GLX_OML_sync_control 1
628#ifdef GLX_GLXEXT_PROTOTYPES
629extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
630extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
631extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
632extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
633extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
634#endif /* GLX_GLXEXT_PROTOTYPES */
635typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
636typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
637typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
638typedef 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);
639typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
640#endif
641
642#ifndef GLX_NV_float_buffer
643#define GLX_NV_float_buffer 1
644#endif
645
646#ifndef GLX_SGIX_hyperpipe
647#define GLX_SGIX_hyperpipe 1
648
649typedef struct {
650 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
651 int networkId;
652} GLXHyperpipeNetworkSGIX;
653
654typedef struct {
655 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
656 int channel;
657 unsigned int
658 participationType;
659 int timeSlice;
660} GLXHyperpipeConfigSGIX;
661
662typedef struct {
663 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
664 int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
665 int destXOrigin, destYOrigin, destWidth, destHeight;
666} GLXPipeRect;
667
668typedef struct {
669 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
670 int XOrigin, YOrigin, maxHeight, maxWidth;
671} GLXPipeRectLimits;
672
673#ifdef GLX_GLXEXT_PROTOTYPES
674extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *, int *);
675extern int glXHyperpipeConfigSGIX (Display *, int, int, GLXHyperpipeConfigSGIX *, int *);
676extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *, int, int *);
677extern int glXDestroyHyperpipeConfigSGIX (Display *, int);
678extern int glXBindHyperpipeSGIX (Display *, int);
679extern int glXQueryHyperpipeBestAttribSGIX (Display *, int, int, int, void *, void *);
680extern int glXHyperpipeAttribSGIX (Display *, int, int, int, void *);
681extern int glXQueryHyperpipeAttribSGIX (Display *, int, int, int, void *);
682#endif /* GLX_GLXEXT_PROTOTYPES */
683typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
684typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
685typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
686typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
687typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
688typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
689typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
690typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
691#endif
692
693#ifndef GLX_MESA_agp_offset
694#define GLX_MESA_agp_offset 1
695#ifdef GLX_GLXEXT_PROTOTYPES
696extern unsigned int glXGetAGPOffsetMESA (const void *);
697#endif /* GLX_GLXEXT_PROTOTYPES */
698typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
699#endif
700
701
702#ifdef __cplusplus
703}
704#endif
705
706#endif
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