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