glxext.h revision 199b931c071dfeb03a036765ae0f316dd7236a33
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-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 46/*************************************************************/ 47 48/* Header file version number, required by OpenGL ABI for Linux */ 49/* glxext.h last updated 2001/09/26 */ 50#define GLX_GLXEXT_VERSION 3 51 52#ifndef GLX_VERSION_1_3 53#define GLX_WINDOW_BIT 0x00000001 54#define GLX_PIXMAP_BIT 0x00000002 55#define GLX_PBUFFER_BIT 0x00000004 56#define GLX_RGBA_BIT 0x00000001 57#define GLX_COLOR_INDEX_BIT 0x00000002 58#define GLX_PBUFFER_CLOBBER_MASK 0x08000000 59#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001 60#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002 61#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004 62#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008 63#define GLX_AUX_BUFFERS_BIT 0x00000010 64#define GLX_DEPTH_BUFFER_BIT 0x00000020 65#define GLX_STENCIL_BUFFER_BIT 0x00000040 66#define GLX_ACCUM_BUFFER_BIT 0x00000080 67#define GLX_CONFIG_CAVEAT 0x20 68#define GLX_X_VISUAL_TYPE 0x22 69#define GLX_TRANSPARENT_TYPE 0x23 70#define GLX_TRANSPARENT_INDEX_VALUE 0x24 71#define GLX_TRANSPARENT_RED_VALUE 0x25 72#define GLX_TRANSPARENT_GREEN_VALUE 0x26 73#define GLX_TRANSPARENT_BLUE_VALUE 0x27 74#define GLX_TRANSPARENT_ALPHA_VALUE 0x28 75#define GLX_DONT_CARE 0xFFFFFFFF 76#define GLX_NONE 0x8000 77#define GLX_SLOW_CONFIG 0x8001 78#define GLX_TRUE_COLOR 0x8002 79#define GLX_DIRECT_COLOR 0x8003 80#define GLX_PSEUDO_COLOR 0x8004 81#define GLX_STATIC_COLOR 0x8005 82#define GLX_GRAY_SCALE 0x8006 83#define GLX_STATIC_GRAY 0x8007 84#define GLX_TRANSPARENT_RGB 0x8008 85#define GLX_TRANSPARENT_INDEX 0x8009 86#define GLX_VISUAL_ID 0x800B 87#define GLX_SCREEN 0x800C 88#define GLX_NON_CONFORMANT_CONFIG 0x800D 89#define GLX_DRAWABLE_TYPE 0x8010 90#define GLX_RENDER_TYPE 0x8011 91#define GLX_X_RENDERABLE 0x8012 92#define GLX_FBCONFIG_ID 0x8013 93#define GLX_RGBA_TYPE 0x8014 94#define GLX_COLOR_INDEX_TYPE 0x8015 95#define GLX_MAX_PBUFFER_WIDTH 0x8016 96#define GLX_MAX_PBUFFER_HEIGHT 0x8017 97#define GLX_MAX_PBUFFER_PIXELS 0x8018 98#define GLX_PRESERVED_CONTENTS 0x801B 99#define GLX_LARGEST_PBUFFER 0x801C 100#define GLX_WIDTH 0x801D 101#define GLX_HEIGHT 0x801E 102#define GLX_EVENT_MASK 0x801F 103#define GLX_DAMAGED 0x8020 104#define GLX_SAVED 0x8021 105#define GLX_WINDOW 0x8022 106#define GLX_PBUFFER 0x8023 107#define GLX_PBUFFER_HEIGHT 0x8040 108#define GLX_PBUFFER_WIDTH 0x8041 109#endif 110 111#ifndef GLX_VERSION_1_4 112#define GLX_SAMPLE_BUFFERS 100000 113#define GLX_SAMPLES 100001 114#endif 115 116#ifndef GLX_ARB_multisample 117#define GLX_SAMPLE_BUFFERS_ARB 100000 118#define GLX_SAMPLES_ARB 100001 119#endif 120 121#ifndef GLX_SGIS_multisample 122#define GLX_SAMPLE_BUFFERS_SGIS 100000 123#define GLX_SAMPLES_SGIS 100001 124#endif 125 126#ifndef GLX_EXT_visual_info 127#define GLX_X_VISUAL_TYPE_EXT 0x22 128#define GLX_TRANSPARENT_TYPE_EXT 0x23 129#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24 130#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25 131#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26 132#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27 133#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28 134#define GLX_NONE_EXT 0x8000 135#define GLX_TRUE_COLOR_EXT 0x8002 136#define GLX_DIRECT_COLOR_EXT 0x8003 137#define GLX_PSEUDO_COLOR_EXT 0x8004 138#define GLX_STATIC_COLOR_EXT 0x8005 139#define GLX_GRAY_SCALE_EXT 0x8006 140#define GLX_STATIC_GRAY_EXT 0x8007 141#define GLX_TRANSPARENT_RGB_EXT 0x8008 142#define GLX_TRANSPARENT_INDEX_EXT 0x8009 143#endif 144 145#ifndef GLX_SGI_swap_control 146#endif 147 148#ifndef GLX_SGI_video_sync 149#endif 150 151#ifndef GLX_SGI_make_current_read 152#endif 153 154#ifndef GLX_SGIX_video_source 155#endif 156 157#ifndef GLX_EXT_visual_rating 158#define GLX_VISUAL_CAVEAT_EXT 0x20 159#define GLX_SLOW_VISUAL_EXT 0x8001 160#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D 161/* reuse GLX_NONE_EXT */ 162#endif 163 164#ifndef GLX_EXT_import_context 165#define GLX_SHARE_CONTEXT_EXT 0x800A 166#define GLX_VISUAL_ID_EXT 0x800B 167#define GLX_SCREEN_EXT 0x800C 168#endif 169 170#ifndef GLX_SGIX_fbconfig 171#define GLX_WINDOW_BIT_SGIX 0x00000001 172#define GLX_PIXMAP_BIT_SGIX 0x00000002 173#define GLX_RGBA_BIT_SGIX 0x00000001 174#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002 175#define GLX_DRAWABLE_TYPE_SGIX 0x8010 176#define GLX_RENDER_TYPE_SGIX 0x8011 177#define GLX_X_RENDERABLE_SGIX 0x8012 178#define GLX_FBCONFIG_ID_SGIX 0x8013 179#define GLX_RGBA_TYPE_SGIX 0x8014 180#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015 181/* reuse GLX_SCREEN_EXT */ 182#endif 183 184#ifndef GLX_SGIX_pbuffer 185#define GLX_PBUFFER_BIT_SGIX 0x00000004 186#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000 187#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001 188#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002 189#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004 190#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008 191#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010 192#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020 193#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040 194#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080 195#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100 196#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016 197#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017 198#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018 199#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019 200#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A 201#define GLX_PRESERVED_CONTENTS_SGIX 0x801B 202#define GLX_LARGEST_PBUFFER_SGIX 0x801C 203#define GLX_WIDTH_SGIX 0x801D 204#define GLX_HEIGHT_SGIX 0x801E 205#define GLX_EVENT_MASK_SGIX 0x801F 206#define GLX_DAMAGED_SGIX 0x8020 207#define GLX_SAVED_SGIX 0x8021 208#define GLX_WINDOW_SGIX 0x8022 209#define GLX_PBUFFER_SGIX 0x8023 210#endif 211 212#ifndef GLX_SGI_cushion 213#endif 214 215#ifndef GLX_SGIX_video_resize 216#define GLX_SYNC_FRAME_SGIX 0x00000000 217#define GLX_SYNC_SWAP_SGIX 0x00000001 218#endif 219 220#ifndef GLX_SGIX_dmbuffer 221#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024 222#endif 223 224#ifndef GLX_SGIX_swap_group 225#endif 226 227#ifndef GLX_SGIX_swap_barrier 228#endif 229 230#ifndef GLX_SGIS_blended_overlay 231#define GLX_BLENDED_RGBA_SGIS 0x8025 232#endif 233 234#ifndef GLX_SGIS_shared_multisample 235#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026 236#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027 237#endif 238 239#ifndef GLX_SUN_get_transparent_index 240#endif 241 242#ifndef GLX_3DFX_multisample 243#define GLX_SAMPLE_BUFFERS_3DFX 0x8050 244#define GLX_SAMPLES_3DFX 0x8051 245#endif 246 247#ifndef GLX_MESA_copy_sub_buffer 248#endif 249 250#ifndef GLX_MESA_pixmap_colormap 251#endif 252 253#ifndef GLX_MESA_release_buffers 254#endif 255 256#ifndef GLX_MESA_set_3dfx_mode 257#define GLX_3DFX_WINDOW_MODE_MESA 0x1 258#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2 259#endif 260 261#ifndef GLX_SGIX_visual_select_group 262#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028 263#endif 264 265#ifndef GLX_OML_swap_method 266#define GLX_SWAP_METHOD_OML 0x8060 267#define GLX_SWAP_EXCHANGE_OML 0x8061 268#define GLX_SWAP_COPY_OML 0x8062 269#define GLX_SWAP_UNDEFINED_OML 0x8063 270#endif 271 272#ifndef GLX_OML_sync_control 273#endif 274 275 276/*************************************************************/ 277 278#ifndef GLX_ARB_get_proc_address 279/* XXX Added void parameter to silence many, many warnings (BrianP) */ 280typedef void (*__GLXextFuncPtr)(void); 281#endif 282 283#ifndef GLX_SGIX_video_source 284typedef XID GLXVideoSourceSGIX; 285#endif 286 287#ifndef GLX_SGIX_fbconfig 288typedef XID GLXFBConfigIDSGIX; 289typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; 290#endif 291 292#ifndef GLX_SGIX_pbuffer 293typedef XID GLXPbufferSGIX; 294typedef struct { 295 int type; 296 unsigned long serial; /* # of last request processed by server */ 297 Bool send_event; /* true if this came for SendEvent request */ 298 Display *display; /* display the event was read from */ 299 GLXDrawable drawable; /* i.d. of Drawable */ 300 int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */ 301 int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */ 302 unsigned int mask; /* mask indicating which buffers are affected*/ 303 int x, y; 304 int width, height; 305 int count; /* if nonzero, at least this many more */ 306} GLXBufferClobberEventSGIX; 307#endif 308 309#ifndef GLX_VERSION_1_3 310#define GLX_VERSION_1_3 1 311#ifdef GLX_GLXEXT_PROTOTYPES 312extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *); 313extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *); 314extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *); 315extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig); 316extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *); 317extern void glXDestroyWindow (Display *, GLXWindow); 318extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *); 319extern void glXDestroyPixmap (Display *, GLXPixmap); 320extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *); 321extern void glXDestroyPbuffer (Display *, GLXPbuffer); 322extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *); 323extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool); 324extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext); 325extern GLXDrawable glXGetCurrentReadDrawable (void); 326extern Display * glXGetCurrentDisplay (void); 327extern int glXQueryContext (Display *, GLXContext, int, int *); 328extern void glXSelectEvent (Display *, GLXDrawable, unsigned long); 329extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *); 330#endif /* GLX_GLXEXT_PROTOTYPES */ 331typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements); 332typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements); 333typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value); 334typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config); 335typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list); 336typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win); 337typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list); 338typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap); 339typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list); 340typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf); 341typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value); 342typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct); 343typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); 344typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void); 345typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void); 346typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value); 347typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask); 348typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask); 349#endif 350 351#ifndef GLX_ARB_get_proc_address 352#define GLX_ARB_get_proc_address 1 353#ifdef GLX_GLXEXT_PROTOTYPES 354extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *); 355#endif /* GLX_GLXEXT_PROTOTYPES */ 356typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName); 357#endif 358 359#ifndef GLX_SGIS_multisample 360#define GLX_SGIS_multisample 1 361#endif 362 363#ifndef GLX_EXT_visual_info 364#define GLX_EXT_visual_info 1 365#endif 366 367#ifndef GLX_SGI_swap_control 368#define GLX_SGI_swap_control 1 369#ifdef GLX_GLXEXT_PROTOTYPES 370extern int glXSwapIntervalSGI (int); 371#endif /* GLX_GLXEXT_PROTOTYPES */ 372typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval); 373#endif 374 375#ifndef GLX_SGI_video_sync 376#define GLX_SGI_video_sync 1 377#ifdef GLX_GLXEXT_PROTOTYPES 378extern int glXGetVideoSyncSGI (unsigned int *); 379extern int glXWaitVideoSyncSGI (int, int, unsigned int *); 380#endif /* GLX_GLXEXT_PROTOTYPES */ 381typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count); 382typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count); 383#endif 384 385#ifndef GLX_SGI_make_current_read 386#define GLX_SGI_make_current_read 1 387#ifdef GLX_GLXEXT_PROTOTYPES 388extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext); 389extern GLXDrawable glXGetCurrentReadDrawableSGI (void); 390#endif /* GLX_GLXEXT_PROTOTYPES */ 391typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx); 392typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void); 393#endif 394 395#ifdef _VL_H 396#ifndef GLX_SGIX_video_source 397#define GLX_SGIX_video_source 1 398#ifdef GLX_GLXEXT_PROTOTYPES 399extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode); 400extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX); 401#endif /* GLX_GLXEXT_PROTOTYPES */ 402typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode); 403typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource); 404#endif 405 406#endif /* _VL_H */ 407#ifndef GLX_EXT_visual_rating 408#define GLX_EXT_visual_rating 1 409#endif 410 411#ifndef GLX_EXT_import_context 412#define GLX_EXT_import_context 1 413#ifdef GLX_GLXEXT_PROTOTYPES 414extern Display * glXGetCurrentDisplayEXT (void); 415extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *); 416extern GLXContextID glXGetContextIDEXT (const GLXContext); 417extern GLXContext glXImportContextEXT (Display *, GLXContextID); 418extern void glXFreeContextEXT (Display *, GLXContext); 419#endif /* GLX_GLXEXT_PROTOTYPES */ 420typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void); 421typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value); 422typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (GLXContext context); 423typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID); 424typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context); 425#endif 426 427#ifndef GLX_SGIX_fbconfig 428#define GLX_SGIX_fbconfig 1 429#ifdef GLX_GLXEXT_PROTOTYPES 430extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *); 431extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *); 432extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap); 433extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool); 434extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX); 435extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *); 436#endif /* GLX_GLXEXT_PROTOTYPES */ 437typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value); 438typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements); 439typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap); 440typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct); 441typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config); 442typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis); 443#endif 444 445#ifndef GLX_SGIX_pbuffer 446#define GLX_SGIX_pbuffer 1 447#ifdef GLX_GLXEXT_PROTOTYPES 448extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *); 449extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX); 450extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *); 451extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long); 452extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *); 453#endif /* GLX_GLXEXT_PROTOTYPES */ 454typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list); 455typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf); 456typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value); 457typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask); 458typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask); 459#endif 460 461#ifndef GLX_SGI_cushion 462#define GLX_SGI_cushion 1 463#ifdef GLX_GLXEXT_PROTOTYPES 464extern void glXCushionSGI (Display *, Window, float); 465#endif /* GLX_GLXEXT_PROTOTYPES */ 466typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion); 467#endif 468 469#ifndef GLX_SGIX_video_resize 470#define GLX_SGIX_video_resize 1 471#ifdef GLX_GLXEXT_PROTOTYPES 472extern int glXBindChannelToWindowSGIX (Display *, int, int, Window); 473extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int); 474extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *); 475extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *); 476extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum); 477#endif /* GLX_GLXEXT_PROTOTYPES */ 478typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window); 479typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h); 480typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh); 481typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h); 482typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype); 483#endif 484 485#ifdef _DM_BUFFER_H_ 486#ifndef GLX_SGIX_dmbuffer 487#define GLX_SGIX_dmbuffer 1 488#ifdef GLX_GLXEXT_PROTOTYPES 489extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer); 490#endif /* GLX_GLXEXT_PROTOTYPES */ 491typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer); 492#endif 493 494#endif /* _DM_BUFFER_H_ */ 495#ifndef GLX_SGIX_swap_group 496#define GLX_SGIX_swap_group 1 497#ifdef GLX_GLXEXT_PROTOTYPES 498extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable); 499#endif /* GLX_GLXEXT_PROTOTYPES */ 500typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member); 501#endif 502 503#ifndef GLX_SGIX_swap_barrier 504#define GLX_SGIX_swap_barrier 1 505#ifdef GLX_GLXEXT_PROTOTYPES 506extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int); 507extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *); 508#endif /* GLX_GLXEXT_PROTOTYPES */ 509typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier); 510typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max); 511#endif 512 513#ifndef GLX_SUN_get_transparent_index 514#define GLX_SUN_get_transparent_index 1 515#ifdef GLX_GLXEXT_PROTOTYPES 516extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *); 517#endif /* GLX_GLXEXT_PROTOTYPES */ 518typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex); 519#endif 520 521#ifndef GLX_MESA_copy_sub_buffer 522#define GLX_MESA_copy_sub_buffer 1 523#ifdef GLX_GLXEXT_PROTOTYPES 524extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int); 525#endif /* GLX_GLXEXT_PROTOTYPES */ 526typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height); 527#endif 528 529#ifndef GLX_MESA_pixmap_colormap 530#define GLX_MESA_pixmap_colormap 1 531#ifdef GLX_GLXEXT_PROTOTYPES 532extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap); 533#endif /* GLX_GLXEXT_PROTOTYPES */ 534typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap); 535#endif 536 537#ifndef GLX_MESA_release_buffers 538#define GLX_MESA_release_buffers 1 539#ifdef GLX_GLXEXT_PROTOTYPES 540extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable); 541#endif /* GLX_GLXEXT_PROTOTYPES */ 542typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable); 543#endif 544 545#ifndef GLX_MESA_set_3dfx_mode 546#define GLX_MESA_set_3dfx_mode 1 547#ifdef GLX_GLXEXT_PROTOTYPES 548extern Bool glXSet3DfxModeMESA (int); 549#endif /* GLX_GLXEXT_PROTOTYPES */ 550typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode); 551#endif 552 553#ifndef GLX_SGIX_visual_select_group 554#define GLX_SGIX_visual_select_group 1 555#endif 556 557#ifndef GLX_GLX_OML_swap_method 558#define GLX_GLX_OML_swap_method 1 559#endif 560 561#ifndef GLX_GLX_OML_sync_control 562#define GLX_GLX_OML_sync_control 1 563#endif 564 565 566#ifdef __cplusplus 567} 568#endif 569 570#endif 571