cscg22-gearboy

CSCG 2022 Challenge 'Gearboy'
git clone https://git.sinitax.com/sinitax/cscg22-gearboy
Log | Files | Refs | sfeed.txt

glxew.h (73435B)


      1/*
      2** The OpenGL Extension Wrangler Library
      3** Copyright (C) 2008-2017, Nigel Stewart <nigels[]users sourceforge net>
      4** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
      5** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
      6** Copyright (C) 2002, Lev Povalahev
      7** All rights reserved.
      8** 
      9** Redistribution and use in source and binary forms, with or without 
     10** modification, are permitted provided that the following conditions are met:
     11** 
     12** * Redistributions of source code must retain the above copyright notice, 
     13**   this list of conditions and the following disclaimer.
     14** * Redistributions in binary form must reproduce the above copyright notice, 
     15**   this list of conditions and the following disclaimer in the documentation 
     16**   and/or other materials provided with the distribution.
     17** * The name of the author may be used to endorse or promote products 
     18**   derived from this software without specific prior written permission.
     19**
     20** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
     21** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
     22** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     23** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
     24** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
     25** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
     26** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     27** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     28** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     29** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
     30** THE POSSIBILITY OF SUCH DAMAGE.
     31*/
     32
     33/*
     34 * Mesa 3-D graphics library
     35 * Version:  7.0
     36 *
     37 * Copyright (C) 1999-2007  Brian Paul   All Rights Reserved.
     38 *
     39 * Permission is hereby granted, free of charge, to any person obtaining a
     40 * copy of this software and associated documentation files (the "Software"),
     41 * to deal in the Software without restriction, including without limitation
     42 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
     43 * and/or sell copies of the Software, and to permit persons to whom the
     44 * Software is furnished to do so, subject to the following conditions:
     45 *
     46 * The above copyright notice and this permission notice shall be included
     47 * in all copies or substantial portions of the Software.
     48 *
     49 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
     50 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     51 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
     52 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
     53 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     54 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     55 */
     56
     57/*
     58** Copyright (c) 2007 The Khronos Group Inc.
     59** 
     60** Permission is hereby granted, free of charge, to any person obtaining a
     61** copy of this software and/or associated documentation files (the
     62** "Materials"), to deal in the Materials without restriction, including
     63** without limitation the rights to use, copy, modify, merge, publish,
     64** distribute, sublicense, and/or sell copies of the Materials, and to
     65** permit persons to whom the Materials are furnished to do so, subject to
     66** the following conditions:
     67** 
     68** The above copyright notice and this permission notice shall be included
     69** in all copies or substantial portions of the Materials.
     70** 
     71** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     72** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     73** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     74** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
     75** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
     76** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
     77** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
     78*/
     79
     80#ifndef __glxew_h__
     81#define __glxew_h__
     82#define __GLXEW_H__
     83
     84#ifdef __glxext_h_
     85#error glxext.h included before glxew.h
     86#endif
     87
     88#if defined(GLX_H) || defined(__GLX_glx_h__) || defined(__glx_h__)
     89#error glx.h included before glxew.h
     90#endif
     91
     92#define __glxext_h_
     93
     94#define GLX_H
     95#define __GLX_glx_h__
     96#define __glx_h__
     97
     98#include <X11/Xlib.h>
     99#include <X11/Xutil.h>
    100#include <X11/Xmd.h>
    101#include <GL/glew.h>
    102
    103#ifdef __cplusplus
    104extern "C" {
    105#endif
    106
    107/* ---------------------------- GLX_VERSION_1_0 --------------------------- */
    108
    109#ifndef GLX_VERSION_1_0
    110#define GLX_VERSION_1_0 1
    111
    112#define GLX_USE_GL 1
    113#define GLX_BUFFER_SIZE 2
    114#define GLX_LEVEL 3
    115#define GLX_RGBA 4
    116#define GLX_DOUBLEBUFFER 5
    117#define GLX_STEREO 6
    118#define GLX_AUX_BUFFERS 7
    119#define GLX_RED_SIZE 8
    120#define GLX_GREEN_SIZE 9
    121#define GLX_BLUE_SIZE 10
    122#define GLX_ALPHA_SIZE 11
    123#define GLX_DEPTH_SIZE 12
    124#define GLX_STENCIL_SIZE 13
    125#define GLX_ACCUM_RED_SIZE 14
    126#define GLX_ACCUM_GREEN_SIZE 15
    127#define GLX_ACCUM_BLUE_SIZE 16
    128#define GLX_ACCUM_ALPHA_SIZE 17
    129#define GLX_BAD_SCREEN 1
    130#define GLX_BAD_ATTRIBUTE 2
    131#define GLX_NO_EXTENSION 3
    132#define GLX_BAD_VISUAL 4
    133#define GLX_BAD_CONTEXT 5
    134#define GLX_BAD_VALUE 6
    135#define GLX_BAD_ENUM 7
    136
    137typedef XID GLXDrawable;
    138typedef XID GLXPixmap;
    139#ifdef __sun
    140typedef struct __glXContextRec *GLXContext;
    141#else
    142typedef struct __GLXcontextRec *GLXContext;
    143#endif
    144
    145typedef unsigned int GLXVideoDeviceNV; 
    146
    147extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase);
    148extern Bool glXQueryVersion (Display *dpy, int *major, int *minor);
    149extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value);
    150extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList);
    151extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap);
    152extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix);
    153extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
    154extern void glXDestroyContext (Display *dpy, GLXContext ctx);
    155extern Bool glXIsDirect (Display *dpy, GLXContext ctx);
    156extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask);
    157extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx);
    158extern GLXContext glXGetCurrentContext (void);
    159extern GLXDrawable glXGetCurrentDrawable (void);
    160extern void glXWaitGL (void);
    161extern void glXWaitX (void);
    162extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable);
    163extern void glXUseXFont (Font font, int first, int count, int listBase);
    164
    165#define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
    166
    167#endif /* GLX_VERSION_1_0 */
    168
    169/* ---------------------------- GLX_VERSION_1_1 --------------------------- */
    170
    171#ifndef GLX_VERSION_1_1
    172#define GLX_VERSION_1_1
    173
    174#define GLX_VENDOR 0x1
    175#define GLX_VERSION 0x2
    176#define GLX_EXTENSIONS 0x3
    177
    178extern const char* glXQueryExtensionsString (Display *dpy, int screen);
    179extern const char* glXGetClientString (Display *dpy, int name);
    180extern const char* glXQueryServerString (Display *dpy, int screen, int name);
    181
    182#define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
    183
    184#endif /* GLX_VERSION_1_1 */
    185
    186/* ---------------------------- GLX_VERSION_1_2 ---------------------------- */
    187
    188#ifndef GLX_VERSION_1_2
    189#define GLX_VERSION_1_2 1
    190
    191typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
    192
    193#define glXGetCurrentDisplay GLXEW_GET_FUN(__glewXGetCurrentDisplay)
    194
    195#define GLXEW_VERSION_1_2 GLXEW_GET_VAR(__GLXEW_VERSION_1_2)
    196
    197#endif /* GLX_VERSION_1_2 */
    198
    199/* ---------------------------- GLX_VERSION_1_3 ---------------------------- */
    200
    201#ifndef GLX_VERSION_1_3
    202#define GLX_VERSION_1_3 1
    203
    204#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
    205#define GLX_RGBA_BIT 0x00000001
    206#define GLX_WINDOW_BIT 0x00000001
    207#define GLX_COLOR_INDEX_BIT 0x00000002
    208#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
    209#define GLX_PIXMAP_BIT 0x00000002
    210#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
    211#define GLX_PBUFFER_BIT 0x00000004
    212#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
    213#define GLX_AUX_BUFFERS_BIT 0x00000010
    214#define GLX_CONFIG_CAVEAT 0x20
    215#define GLX_DEPTH_BUFFER_BIT 0x00000020
    216#define GLX_X_VISUAL_TYPE 0x22
    217#define GLX_TRANSPARENT_TYPE 0x23
    218#define GLX_TRANSPARENT_INDEX_VALUE 0x24
    219#define GLX_TRANSPARENT_RED_VALUE 0x25
    220#define GLX_TRANSPARENT_GREEN_VALUE 0x26
    221#define GLX_TRANSPARENT_BLUE_VALUE 0x27
    222#define GLX_TRANSPARENT_ALPHA_VALUE 0x28
    223#define GLX_STENCIL_BUFFER_BIT 0x00000040
    224#define GLX_ACCUM_BUFFER_BIT 0x00000080
    225#define GLX_NONE 0x8000
    226#define GLX_SLOW_CONFIG 0x8001
    227#define GLX_TRUE_COLOR 0x8002
    228#define GLX_DIRECT_COLOR 0x8003
    229#define GLX_PSEUDO_COLOR 0x8004
    230#define GLX_STATIC_COLOR 0x8005
    231#define GLX_GRAY_SCALE 0x8006
    232#define GLX_STATIC_GRAY 0x8007
    233#define GLX_TRANSPARENT_RGB 0x8008
    234#define GLX_TRANSPARENT_INDEX 0x8009
    235#define GLX_VISUAL_ID 0x800B
    236#define GLX_SCREEN 0x800C
    237#define GLX_NON_CONFORMANT_CONFIG 0x800D
    238#define GLX_DRAWABLE_TYPE 0x8010
    239#define GLX_RENDER_TYPE 0x8011
    240#define GLX_X_RENDERABLE 0x8012
    241#define GLX_FBCONFIG_ID 0x8013
    242#define GLX_RGBA_TYPE 0x8014
    243#define GLX_COLOR_INDEX_TYPE 0x8015
    244#define GLX_MAX_PBUFFER_WIDTH 0x8016
    245#define GLX_MAX_PBUFFER_HEIGHT 0x8017
    246#define GLX_MAX_PBUFFER_PIXELS 0x8018
    247#define GLX_PRESERVED_CONTENTS 0x801B
    248#define GLX_LARGEST_PBUFFER 0x801C
    249#define GLX_WIDTH 0x801D
    250#define GLX_HEIGHT 0x801E
    251#define GLX_EVENT_MASK 0x801F
    252#define GLX_DAMAGED 0x8020
    253#define GLX_SAVED 0x8021
    254#define GLX_WINDOW 0x8022
    255#define GLX_PBUFFER 0x8023
    256#define GLX_PBUFFER_HEIGHT 0x8040
    257#define GLX_PBUFFER_WIDTH 0x8041
    258#define GLX_PBUFFER_CLOBBER_MASK 0x08000000
    259#define GLX_DONT_CARE 0xFFFFFFFF
    260
    261typedef XID GLXFBConfigID;
    262typedef XID GLXPbuffer;
    263typedef XID GLXWindow;
    264typedef struct __GLXFBConfigRec *GLXFBConfig;
    265
    266typedef struct {
    267  int event_type; 
    268  int draw_type; 
    269  unsigned long serial; 
    270  Bool send_event; 
    271  Display *display; 
    272  GLXDrawable drawable; 
    273  unsigned int buffer_mask; 
    274  unsigned int aux_buffer; 
    275  int x, y; 
    276  int width, height; 
    277  int count; 
    278} GLXPbufferClobberEvent;
    279typedef union __GLXEvent {
    280  GLXPbufferClobberEvent glxpbufferclobber; 
    281  long pad[24]; 
    282} GLXEvent;
    283
    284typedef GLXFBConfig* ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
    285typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
    286typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
    287typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
    288typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
    289typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
    290typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
    291typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
    292typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
    293typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
    294typedef GLXFBConfig* ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
    295typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
    296typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
    297typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
    298typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
    299typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
    300typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
    301
    302#define glXChooseFBConfig GLXEW_GET_FUN(__glewXChooseFBConfig)
    303#define glXCreateNewContext GLXEW_GET_FUN(__glewXCreateNewContext)
    304#define glXCreatePbuffer GLXEW_GET_FUN(__glewXCreatePbuffer)
    305#define glXCreatePixmap GLXEW_GET_FUN(__glewXCreatePixmap)
    306#define glXCreateWindow GLXEW_GET_FUN(__glewXCreateWindow)
    307#define glXDestroyPbuffer GLXEW_GET_FUN(__glewXDestroyPbuffer)
    308#define glXDestroyPixmap GLXEW_GET_FUN(__glewXDestroyPixmap)
    309#define glXDestroyWindow GLXEW_GET_FUN(__glewXDestroyWindow)
    310#define glXGetCurrentReadDrawable GLXEW_GET_FUN(__glewXGetCurrentReadDrawable)
    311#define glXGetFBConfigAttrib GLXEW_GET_FUN(__glewXGetFBConfigAttrib)
    312#define glXGetFBConfigs GLXEW_GET_FUN(__glewXGetFBConfigs)
    313#define glXGetSelectedEvent GLXEW_GET_FUN(__glewXGetSelectedEvent)
    314#define glXGetVisualFromFBConfig GLXEW_GET_FUN(__glewXGetVisualFromFBConfig)
    315#define glXMakeContextCurrent GLXEW_GET_FUN(__glewXMakeContextCurrent)
    316#define glXQueryContext GLXEW_GET_FUN(__glewXQueryContext)
    317#define glXQueryDrawable GLXEW_GET_FUN(__glewXQueryDrawable)
    318#define glXSelectEvent GLXEW_GET_FUN(__glewXSelectEvent)
    319
    320#define GLXEW_VERSION_1_3 GLXEW_GET_VAR(__GLXEW_VERSION_1_3)
    321
    322#endif /* GLX_VERSION_1_3 */
    323
    324/* ---------------------------- GLX_VERSION_1_4 ---------------------------- */
    325
    326#ifndef GLX_VERSION_1_4
    327#define GLX_VERSION_1_4 1
    328
    329#define GLX_SAMPLE_BUFFERS 100000
    330#define GLX_SAMPLES 100001
    331
    332extern void ( * glXGetProcAddress (const GLubyte *procName)) (void);
    333
    334#define GLXEW_VERSION_1_4 GLXEW_GET_VAR(__GLXEW_VERSION_1_4)
    335
    336#endif /* GLX_VERSION_1_4 */
    337
    338/* -------------------------- GLX_3DFX_multisample ------------------------- */
    339
    340#ifndef GLX_3DFX_multisample
    341#define GLX_3DFX_multisample 1
    342
    343#define GLX_SAMPLE_BUFFERS_3DFX 0x8050
    344#define GLX_SAMPLES_3DFX 0x8051
    345
    346#define GLXEW_3DFX_multisample GLXEW_GET_VAR(__GLXEW_3DFX_multisample)
    347
    348#endif /* GLX_3DFX_multisample */
    349
    350/* ------------------------ GLX_AMD_gpu_association ------------------------ */
    351
    352#ifndef GLX_AMD_gpu_association
    353#define GLX_AMD_gpu_association 1
    354
    355#define GLX_GPU_VENDOR_AMD 0x1F00
    356#define GLX_GPU_RENDERER_STRING_AMD 0x1F01
    357#define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
    358#define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
    359#define GLX_GPU_RAM_AMD 0x21A3
    360#define GLX_GPU_CLOCK_AMD 0x21A4
    361#define GLX_GPU_NUM_PIPES_AMD 0x21A5
    362#define GLX_GPU_NUM_SIMD_AMD 0x21A6
    363#define GLX_GPU_NUM_RB_AMD 0x21A7
    364#define GLX_GPU_NUM_SPI_AMD 0x21A8
    365
    366typedef void ( * PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC) (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
    367typedef GLXContext ( * PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC) (unsigned int id, GLXContext share_list);
    368typedef GLXContext ( * PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (unsigned int id, GLXContext share_context, const int* attribList);
    369typedef Bool ( * PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC) (GLXContext ctx);
    370typedef unsigned int ( * PFNGLXGETCONTEXTGPUIDAMDPROC) (GLXContext ctx);
    371typedef GLXContext ( * PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
    372typedef unsigned int ( * PFNGLXGETGPUIDSAMDPROC) (unsigned int maxCount, unsigned int* ids);
    373typedef int ( * PFNGLXGETGPUINFOAMDPROC) (unsigned int id, int property, GLenum dataType, unsigned int size, void* data);
    374typedef Bool ( * PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (GLXContext ctx);
    375
    376#define glXBlitContextFramebufferAMD GLXEW_GET_FUN(__glewXBlitContextFramebufferAMD)
    377#define glXCreateAssociatedContextAMD GLXEW_GET_FUN(__glewXCreateAssociatedContextAMD)
    378#define glXCreateAssociatedContextAttribsAMD GLXEW_GET_FUN(__glewXCreateAssociatedContextAttribsAMD)
    379#define glXDeleteAssociatedContextAMD GLXEW_GET_FUN(__glewXDeleteAssociatedContextAMD)
    380#define glXGetContextGPUIDAMD GLXEW_GET_FUN(__glewXGetContextGPUIDAMD)
    381#define glXGetCurrentAssociatedContextAMD GLXEW_GET_FUN(__glewXGetCurrentAssociatedContextAMD)
    382#define glXGetGPUIDsAMD GLXEW_GET_FUN(__glewXGetGPUIDsAMD)
    383#define glXGetGPUInfoAMD GLXEW_GET_FUN(__glewXGetGPUInfoAMD)
    384#define glXMakeAssociatedContextCurrentAMD GLXEW_GET_FUN(__glewXMakeAssociatedContextCurrentAMD)
    385
    386#define GLXEW_AMD_gpu_association GLXEW_GET_VAR(__GLXEW_AMD_gpu_association)
    387
    388#endif /* GLX_AMD_gpu_association */
    389
    390/* --------------------- GLX_ARB_context_flush_control --------------------- */
    391
    392#ifndef GLX_ARB_context_flush_control
    393#define GLX_ARB_context_flush_control 1
    394
    395#define GLXEW_ARB_context_flush_control GLXEW_GET_VAR(__GLXEW_ARB_context_flush_control)
    396
    397#endif /* GLX_ARB_context_flush_control */
    398
    399/* ------------------------- GLX_ARB_create_context ------------------------ */
    400
    401#ifndef GLX_ARB_create_context
    402#define GLX_ARB_create_context 1
    403
    404#define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001
    405#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
    406#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
    407#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
    408#define GLX_CONTEXT_FLAGS_ARB 0x2094
    409
    410typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
    411
    412#define glXCreateContextAttribsARB GLXEW_GET_FUN(__glewXCreateContextAttribsARB)
    413
    414#define GLXEW_ARB_create_context GLXEW_GET_VAR(__GLXEW_ARB_create_context)
    415
    416#endif /* GLX_ARB_create_context */
    417
    418/* -------------------- GLX_ARB_create_context_no_error -------------------- */
    419
    420#ifndef GLX_ARB_create_context_no_error
    421#define GLX_ARB_create_context_no_error 1
    422
    423#define GLXEW_ARB_create_context_no_error GLXEW_GET_VAR(__GLXEW_ARB_create_context_no_error)
    424
    425#endif /* GLX_ARB_create_context_no_error */
    426
    427/* --------------------- GLX_ARB_create_context_profile -------------------- */
    428
    429#ifndef GLX_ARB_create_context_profile
    430#define GLX_ARB_create_context_profile 1
    431
    432#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
    433#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
    434#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
    435
    436#define GLXEW_ARB_create_context_profile GLXEW_GET_VAR(__GLXEW_ARB_create_context_profile)
    437
    438#endif /* GLX_ARB_create_context_profile */
    439
    440/* ------------------- GLX_ARB_create_context_robustness ------------------- */
    441
    442#ifndef GLX_ARB_create_context_robustness
    443#define GLX_ARB_create_context_robustness 1
    444
    445#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
    446#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252
    447#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
    448#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261
    449
    450#define GLXEW_ARB_create_context_robustness GLXEW_GET_VAR(__GLXEW_ARB_create_context_robustness)
    451
    452#endif /* GLX_ARB_create_context_robustness */
    453
    454/* ------------------------- GLX_ARB_fbconfig_float ------------------------ */
    455
    456#ifndef GLX_ARB_fbconfig_float
    457#define GLX_ARB_fbconfig_float 1
    458
    459#define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
    460#define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
    461
    462#define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float)
    463
    464#endif /* GLX_ARB_fbconfig_float */
    465
    466/* ------------------------ GLX_ARB_framebuffer_sRGB ----------------------- */
    467
    468#ifndef GLX_ARB_framebuffer_sRGB
    469#define GLX_ARB_framebuffer_sRGB 1
    470
    471#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2
    472
    473#define GLXEW_ARB_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_ARB_framebuffer_sRGB)
    474
    475#endif /* GLX_ARB_framebuffer_sRGB */
    476
    477/* ------------------------ GLX_ARB_get_proc_address ----------------------- */
    478
    479#ifndef GLX_ARB_get_proc_address
    480#define GLX_ARB_get_proc_address 1
    481
    482extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void);
    483
    484#define GLXEW_ARB_get_proc_address GLXEW_GET_VAR(__GLXEW_ARB_get_proc_address)
    485
    486#endif /* GLX_ARB_get_proc_address */
    487
    488/* -------------------------- GLX_ARB_multisample -------------------------- */
    489
    490#ifndef GLX_ARB_multisample
    491#define GLX_ARB_multisample 1
    492
    493#define GLX_SAMPLE_BUFFERS_ARB 100000
    494#define GLX_SAMPLES_ARB 100001
    495
    496#define GLXEW_ARB_multisample GLXEW_GET_VAR(__GLXEW_ARB_multisample)
    497
    498#endif /* GLX_ARB_multisample */
    499
    500/* ---------------- GLX_ARB_robustness_application_isolation --------------- */
    501
    502#ifndef GLX_ARB_robustness_application_isolation
    503#define GLX_ARB_robustness_application_isolation 1
    504
    505#define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
    506
    507#define GLXEW_ARB_robustness_application_isolation GLXEW_GET_VAR(__GLXEW_ARB_robustness_application_isolation)
    508
    509#endif /* GLX_ARB_robustness_application_isolation */
    510
    511/* ---------------- GLX_ARB_robustness_share_group_isolation --------------- */
    512
    513#ifndef GLX_ARB_robustness_share_group_isolation
    514#define GLX_ARB_robustness_share_group_isolation 1
    515
    516#define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
    517
    518#define GLXEW_ARB_robustness_share_group_isolation GLXEW_GET_VAR(__GLXEW_ARB_robustness_share_group_isolation)
    519
    520#endif /* GLX_ARB_robustness_share_group_isolation */
    521
    522/* ---------------------- GLX_ARB_vertex_buffer_object --------------------- */
    523
    524#ifndef GLX_ARB_vertex_buffer_object
    525#define GLX_ARB_vertex_buffer_object 1
    526
    527#define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
    528
    529#define GLXEW_ARB_vertex_buffer_object GLXEW_GET_VAR(__GLXEW_ARB_vertex_buffer_object)
    530
    531#endif /* GLX_ARB_vertex_buffer_object */
    532
    533/* ----------------------- GLX_ATI_pixel_format_float ---------------------- */
    534
    535#ifndef GLX_ATI_pixel_format_float
    536#define GLX_ATI_pixel_format_float 1
    537
    538#define GLX_RGBA_FLOAT_ATI_BIT 0x00000100
    539
    540#define GLXEW_ATI_pixel_format_float GLXEW_GET_VAR(__GLXEW_ATI_pixel_format_float)
    541
    542#endif /* GLX_ATI_pixel_format_float */
    543
    544/* ------------------------- GLX_ATI_render_texture ------------------------ */
    545
    546#ifndef GLX_ATI_render_texture
    547#define GLX_ATI_render_texture 1
    548
    549#define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800
    550#define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801
    551#define GLX_TEXTURE_FORMAT_ATI 0x9802
    552#define GLX_TEXTURE_TARGET_ATI 0x9803
    553#define GLX_MIPMAP_TEXTURE_ATI 0x9804
    554#define GLX_TEXTURE_RGB_ATI 0x9805
    555#define GLX_TEXTURE_RGBA_ATI 0x9806
    556#define GLX_NO_TEXTURE_ATI 0x9807
    557#define GLX_TEXTURE_CUBE_MAP_ATI 0x9808
    558#define GLX_TEXTURE_1D_ATI 0x9809
    559#define GLX_TEXTURE_2D_ATI 0x980A
    560#define GLX_MIPMAP_LEVEL_ATI 0x980B
    561#define GLX_CUBE_MAP_FACE_ATI 0x980C
    562#define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D
    563#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E
    564#define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F
    565#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810
    566#define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811
    567#define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812
    568#define GLX_FRONT_LEFT_ATI 0x9813
    569#define GLX_FRONT_RIGHT_ATI 0x9814
    570#define GLX_BACK_LEFT_ATI 0x9815
    571#define GLX_BACK_RIGHT_ATI 0x9816
    572#define GLX_AUX0_ATI 0x9817
    573#define GLX_AUX1_ATI 0x9818
    574#define GLX_AUX2_ATI 0x9819
    575#define GLX_AUX3_ATI 0x981A
    576#define GLX_AUX4_ATI 0x981B
    577#define GLX_AUX5_ATI 0x981C
    578#define GLX_AUX6_ATI 0x981D
    579#define GLX_AUX7_ATI 0x981E
    580#define GLX_AUX8_ATI 0x981F
    581#define GLX_AUX9_ATI 0x9820
    582#define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821
    583#define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822
    584
    585typedef void ( * PFNGLXBINDTEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer);
    586typedef void ( * PFNGLXDRAWABLEATTRIBATIPROC) (Display *dpy, GLXDrawable draw, const int *attrib_list);
    587typedef void ( * PFNGLXRELEASETEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer);
    588
    589#define glXBindTexImageATI GLXEW_GET_FUN(__glewXBindTexImageATI)
    590#define glXDrawableAttribATI GLXEW_GET_FUN(__glewXDrawableAttribATI)
    591#define glXReleaseTexImageATI GLXEW_GET_FUN(__glewXReleaseTexImageATI)
    592
    593#define GLXEW_ATI_render_texture GLXEW_GET_VAR(__GLXEW_ATI_render_texture)
    594
    595#endif /* GLX_ATI_render_texture */
    596
    597/* --------------------------- GLX_EXT_buffer_age -------------------------- */
    598
    599#ifndef GLX_EXT_buffer_age
    600#define GLX_EXT_buffer_age 1
    601
    602#define GLX_BACK_BUFFER_AGE_EXT 0x20F4
    603
    604#define GLXEW_EXT_buffer_age GLXEW_GET_VAR(__GLXEW_EXT_buffer_age)
    605
    606#endif /* GLX_EXT_buffer_age */
    607
    608/* ------------------- GLX_EXT_create_context_es2_profile ------------------ */
    609
    610#ifndef GLX_EXT_create_context_es2_profile
    611#define GLX_EXT_create_context_es2_profile 1
    612
    613#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
    614
    615#define GLXEW_EXT_create_context_es2_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es2_profile)
    616
    617#endif /* GLX_EXT_create_context_es2_profile */
    618
    619/* ------------------- GLX_EXT_create_context_es_profile ------------------- */
    620
    621#ifndef GLX_EXT_create_context_es_profile
    622#define GLX_EXT_create_context_es_profile 1
    623
    624#define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
    625
    626#define GLXEW_EXT_create_context_es_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es_profile)
    627
    628#endif /* GLX_EXT_create_context_es_profile */
    629
    630/* --------------------- GLX_EXT_fbconfig_packed_float --------------------- */
    631
    632#ifndef GLX_EXT_fbconfig_packed_float
    633#define GLX_EXT_fbconfig_packed_float 1
    634
    635#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
    636#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
    637
    638#define GLXEW_EXT_fbconfig_packed_float GLXEW_GET_VAR(__GLXEW_EXT_fbconfig_packed_float)
    639
    640#endif /* GLX_EXT_fbconfig_packed_float */
    641
    642/* ------------------------ GLX_EXT_framebuffer_sRGB ----------------------- */
    643
    644#ifndef GLX_EXT_framebuffer_sRGB
    645#define GLX_EXT_framebuffer_sRGB 1
    646
    647#define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
    648
    649#define GLXEW_EXT_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_EXT_framebuffer_sRGB)
    650
    651#endif /* GLX_EXT_framebuffer_sRGB */
    652
    653/* ------------------------- GLX_EXT_import_context ------------------------ */
    654
    655#ifndef GLX_EXT_import_context
    656#define GLX_EXT_import_context 1
    657
    658#define GLX_SHARE_CONTEXT_EXT 0x800A
    659#define GLX_VISUAL_ID_EXT 0x800B
    660#define GLX_SCREEN_EXT 0x800C
    661
    662typedef XID GLXContextID;
    663
    664typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display* dpy, GLXContext context);
    665typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
    666typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display* dpy, GLXContextID contextID);
    667typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display* dpy, GLXContext context, int attribute,int *value);
    668
    669#define glXFreeContextEXT GLXEW_GET_FUN(__glewXFreeContextEXT)
    670#define glXGetContextIDEXT GLXEW_GET_FUN(__glewXGetContextIDEXT)
    671#define glXImportContextEXT GLXEW_GET_FUN(__glewXImportContextEXT)
    672#define glXQueryContextInfoEXT GLXEW_GET_FUN(__glewXQueryContextInfoEXT)
    673
    674#define GLXEW_EXT_import_context GLXEW_GET_VAR(__GLXEW_EXT_import_context)
    675
    676#endif /* GLX_EXT_import_context */
    677
    678/* ---------------------------- GLX_EXT_libglvnd --------------------------- */
    679
    680#ifndef GLX_EXT_libglvnd
    681#define GLX_EXT_libglvnd 1
    682
    683#define GLX_VENDOR_NAMES_EXT 0x20F6
    684
    685#define GLXEW_EXT_libglvnd GLXEW_GET_VAR(__GLXEW_EXT_libglvnd)
    686
    687#endif /* GLX_EXT_libglvnd */
    688
    689/* -------------------------- GLX_EXT_scene_marker ------------------------- */
    690
    691#ifndef GLX_EXT_scene_marker
    692#define GLX_EXT_scene_marker 1
    693
    694#define GLXEW_EXT_scene_marker GLXEW_GET_VAR(__GLXEW_EXT_scene_marker)
    695
    696#endif /* GLX_EXT_scene_marker */
    697
    698/* -------------------------- GLX_EXT_stereo_tree -------------------------- */
    699
    700#ifndef GLX_EXT_stereo_tree
    701#define GLX_EXT_stereo_tree 1
    702
    703#define GLX_STEREO_NOTIFY_EXT 0x00000000
    704#define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001
    705#define GLX_STEREO_TREE_EXT 0x20F5
    706
    707#define GLXEW_EXT_stereo_tree GLXEW_GET_VAR(__GLXEW_EXT_stereo_tree)
    708
    709#endif /* GLX_EXT_stereo_tree */
    710
    711/* -------------------------- GLX_EXT_swap_control ------------------------- */
    712
    713#ifndef GLX_EXT_swap_control
    714#define GLX_EXT_swap_control 1
    715
    716#define GLX_SWAP_INTERVAL_EXT 0x20F1
    717#define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
    718
    719typedef void ( * PFNGLXSWAPINTERVALEXTPROC) (Display* dpy, GLXDrawable drawable, int interval);
    720
    721#define glXSwapIntervalEXT GLXEW_GET_FUN(__glewXSwapIntervalEXT)
    722
    723#define GLXEW_EXT_swap_control GLXEW_GET_VAR(__GLXEW_EXT_swap_control)
    724
    725#endif /* GLX_EXT_swap_control */
    726
    727/* ----------------------- GLX_EXT_swap_control_tear ----------------------- */
    728
    729#ifndef GLX_EXT_swap_control_tear
    730#define GLX_EXT_swap_control_tear 1
    731
    732#define GLX_LATE_SWAPS_TEAR_EXT 0x20F3
    733
    734#define GLXEW_EXT_swap_control_tear GLXEW_GET_VAR(__GLXEW_EXT_swap_control_tear)
    735
    736#endif /* GLX_EXT_swap_control_tear */
    737
    738/* ---------------------- GLX_EXT_texture_from_pixmap ---------------------- */
    739
    740#ifndef GLX_EXT_texture_from_pixmap
    741#define GLX_EXT_texture_from_pixmap 1
    742
    743#define GLX_TEXTURE_1D_BIT_EXT 0x00000001
    744#define GLX_TEXTURE_2D_BIT_EXT 0x00000002
    745#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
    746#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
    747#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
    748#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
    749#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
    750#define GLX_Y_INVERTED_EXT 0x20D4
    751#define GLX_TEXTURE_FORMAT_EXT 0x20D5
    752#define GLX_TEXTURE_TARGET_EXT 0x20D6
    753#define GLX_MIPMAP_TEXTURE_EXT 0x20D7
    754#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
    755#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
    756#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
    757#define GLX_TEXTURE_1D_EXT 0x20DB
    758#define GLX_TEXTURE_2D_EXT 0x20DC
    759#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
    760#define GLX_FRONT_LEFT_EXT 0x20DE
    761#define GLX_FRONT_RIGHT_EXT 0x20DF
    762#define GLX_BACK_LEFT_EXT 0x20E0
    763#define GLX_BACK_RIGHT_EXT 0x20E1
    764#define GLX_AUX0_EXT 0x20E2
    765#define GLX_AUX1_EXT 0x20E3
    766#define GLX_AUX2_EXT 0x20E4
    767#define GLX_AUX3_EXT 0x20E5
    768#define GLX_AUX4_EXT 0x20E6
    769#define GLX_AUX5_EXT 0x20E7
    770#define GLX_AUX6_EXT 0x20E8
    771#define GLX_AUX7_EXT 0x20E9
    772#define GLX_AUX8_EXT 0x20EA
    773#define GLX_AUX9_EXT 0x20EB
    774
    775typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer, const int *attrib_list);
    776typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer);
    777
    778#define glXBindTexImageEXT GLXEW_GET_FUN(__glewXBindTexImageEXT)
    779#define glXReleaseTexImageEXT GLXEW_GET_FUN(__glewXReleaseTexImageEXT)
    780
    781#define GLXEW_EXT_texture_from_pixmap GLXEW_GET_VAR(__GLXEW_EXT_texture_from_pixmap)
    782
    783#endif /* GLX_EXT_texture_from_pixmap */
    784
    785/* -------------------------- GLX_EXT_visual_info -------------------------- */
    786
    787#ifndef GLX_EXT_visual_info
    788#define GLX_EXT_visual_info 1
    789
    790#define GLX_X_VISUAL_TYPE_EXT 0x22
    791#define GLX_TRANSPARENT_TYPE_EXT 0x23
    792#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
    793#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
    794#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
    795#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
    796#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
    797#define GLX_NONE_EXT 0x8000
    798#define GLX_TRUE_COLOR_EXT 0x8002
    799#define GLX_DIRECT_COLOR_EXT 0x8003
    800#define GLX_PSEUDO_COLOR_EXT 0x8004
    801#define GLX_STATIC_COLOR_EXT 0x8005
    802#define GLX_GRAY_SCALE_EXT 0x8006
    803#define GLX_STATIC_GRAY_EXT 0x8007
    804#define GLX_TRANSPARENT_RGB_EXT 0x8008
    805#define GLX_TRANSPARENT_INDEX_EXT 0x8009
    806
    807#define GLXEW_EXT_visual_info GLXEW_GET_VAR(__GLXEW_EXT_visual_info)
    808
    809#endif /* GLX_EXT_visual_info */
    810
    811/* ------------------------- GLX_EXT_visual_rating ------------------------- */
    812
    813#ifndef GLX_EXT_visual_rating
    814#define GLX_EXT_visual_rating 1
    815
    816#define GLX_VISUAL_CAVEAT_EXT 0x20
    817#define GLX_SLOW_VISUAL_EXT 0x8001
    818#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
    819
    820#define GLXEW_EXT_visual_rating GLXEW_GET_VAR(__GLXEW_EXT_visual_rating)
    821
    822#endif /* GLX_EXT_visual_rating */
    823
    824/* -------------------------- GLX_INTEL_swap_event ------------------------- */
    825
    826#ifndef GLX_INTEL_swap_event
    827#define GLX_INTEL_swap_event 1
    828
    829#define GLX_EXCHANGE_COMPLETE_INTEL 0x8180
    830#define GLX_COPY_COMPLETE_INTEL 0x8181
    831#define GLX_FLIP_COMPLETE_INTEL 0x8182
    832#define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
    833
    834#define GLXEW_INTEL_swap_event GLXEW_GET_VAR(__GLXEW_INTEL_swap_event)
    835
    836#endif /* GLX_INTEL_swap_event */
    837
    838/* -------------------------- GLX_MESA_agp_offset -------------------------- */
    839
    840#ifndef GLX_MESA_agp_offset
    841#define GLX_MESA_agp_offset 1
    842
    843typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void* pointer);
    844
    845#define glXGetAGPOffsetMESA GLXEW_GET_FUN(__glewXGetAGPOffsetMESA)
    846
    847#define GLXEW_MESA_agp_offset GLXEW_GET_VAR(__GLXEW_MESA_agp_offset)
    848
    849#endif /* GLX_MESA_agp_offset */
    850
    851/* ------------------------ GLX_MESA_copy_sub_buffer ----------------------- */
    852
    853#ifndef GLX_MESA_copy_sub_buffer
    854#define GLX_MESA_copy_sub_buffer 1
    855
    856typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display* dpy, GLXDrawable drawable, int x, int y, int width, int height);
    857
    858#define glXCopySubBufferMESA GLXEW_GET_FUN(__glewXCopySubBufferMESA)
    859
    860#define GLXEW_MESA_copy_sub_buffer GLXEW_GET_VAR(__GLXEW_MESA_copy_sub_buffer)
    861
    862#endif /* GLX_MESA_copy_sub_buffer */
    863
    864/* ------------------------ GLX_MESA_pixmap_colormap ----------------------- */
    865
    866#ifndef GLX_MESA_pixmap_colormap
    867#define GLX_MESA_pixmap_colormap 1
    868
    869typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display* dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
    870
    871#define glXCreateGLXPixmapMESA GLXEW_GET_FUN(__glewXCreateGLXPixmapMESA)
    872
    873#define GLXEW_MESA_pixmap_colormap GLXEW_GET_VAR(__GLXEW_MESA_pixmap_colormap)
    874
    875#endif /* GLX_MESA_pixmap_colormap */
    876
    877/* ------------------------ GLX_MESA_query_renderer ------------------------ */
    878
    879#ifndef GLX_MESA_query_renderer
    880#define GLX_MESA_query_renderer 1
    881
    882#define GLX_RENDERER_VENDOR_ID_MESA 0x8183
    883#define GLX_RENDERER_DEVICE_ID_MESA 0x8184
    884#define GLX_RENDERER_VERSION_MESA 0x8185
    885#define GLX_RENDERER_ACCELERATED_MESA 0x8186
    886#define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187
    887#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
    888#define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
    889#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
    890#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
    891#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
    892#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
    893#define GLX_RENDERER_ID_MESA 0x818E
    894
    895typedef Bool ( * PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int* value);
    896typedef const char* ( * PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
    897typedef Bool ( * PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display* dpy, int screen, int renderer, int attribute, unsigned int *value);
    898typedef const char* ( * PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
    899
    900#define glXQueryCurrentRendererIntegerMESA GLXEW_GET_FUN(__glewXQueryCurrentRendererIntegerMESA)
    901#define glXQueryCurrentRendererStringMESA GLXEW_GET_FUN(__glewXQueryCurrentRendererStringMESA)
    902#define glXQueryRendererIntegerMESA GLXEW_GET_FUN(__glewXQueryRendererIntegerMESA)
    903#define glXQueryRendererStringMESA GLXEW_GET_FUN(__glewXQueryRendererStringMESA)
    904
    905#define GLXEW_MESA_query_renderer GLXEW_GET_VAR(__GLXEW_MESA_query_renderer)
    906
    907#endif /* GLX_MESA_query_renderer */
    908
    909/* ------------------------ GLX_MESA_release_buffers ----------------------- */
    910
    911#ifndef GLX_MESA_release_buffers
    912#define GLX_MESA_release_buffers 1
    913
    914typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display* dpy, GLXDrawable d);
    915
    916#define glXReleaseBuffersMESA GLXEW_GET_FUN(__glewXReleaseBuffersMESA)
    917
    918#define GLXEW_MESA_release_buffers GLXEW_GET_VAR(__GLXEW_MESA_release_buffers)
    919
    920#endif /* GLX_MESA_release_buffers */
    921
    922/* ------------------------- GLX_MESA_set_3dfx_mode ------------------------ */
    923
    924#ifndef GLX_MESA_set_3dfx_mode
    925#define GLX_MESA_set_3dfx_mode 1
    926
    927#define GLX_3DFX_WINDOW_MODE_MESA 0x1
    928#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
    929
    930typedef GLboolean ( * PFNGLXSET3DFXMODEMESAPROC) (GLint mode);
    931
    932#define glXSet3DfxModeMESA GLXEW_GET_FUN(__glewXSet3DfxModeMESA)
    933
    934#define GLXEW_MESA_set_3dfx_mode GLXEW_GET_VAR(__GLXEW_MESA_set_3dfx_mode)
    935
    936#endif /* GLX_MESA_set_3dfx_mode */
    937
    938/* ------------------------- GLX_MESA_swap_control ------------------------- */
    939
    940#ifndef GLX_MESA_swap_control
    941#define GLX_MESA_swap_control 1
    942
    943typedef int ( * PFNGLXGETSWAPINTERVALMESAPROC) (void);
    944typedef int ( * PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval);
    945
    946#define glXGetSwapIntervalMESA GLXEW_GET_FUN(__glewXGetSwapIntervalMESA)
    947#define glXSwapIntervalMESA GLXEW_GET_FUN(__glewXSwapIntervalMESA)
    948
    949#define GLXEW_MESA_swap_control GLXEW_GET_VAR(__GLXEW_MESA_swap_control)
    950
    951#endif /* GLX_MESA_swap_control */
    952
    953/* --------------------------- GLX_NV_copy_buffer -------------------------- */
    954
    955#ifndef GLX_NV_copy_buffer
    956#define GLX_NV_copy_buffer 1
    957
    958typedef void ( * PFNGLXCOPYBUFFERSUBDATANVPROC) (Display* dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
    959typedef void ( * PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display* dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
    960
    961#define glXCopyBufferSubDataNV GLXEW_GET_FUN(__glewXCopyBufferSubDataNV)
    962#define glXNamedCopyBufferSubDataNV GLXEW_GET_FUN(__glewXNamedCopyBufferSubDataNV)
    963
    964#define GLXEW_NV_copy_buffer GLXEW_GET_VAR(__GLXEW_NV_copy_buffer)
    965
    966#endif /* GLX_NV_copy_buffer */
    967
    968/* --------------------------- GLX_NV_copy_image --------------------------- */
    969
    970#ifndef GLX_NV_copy_image
    971#define GLX_NV_copy_image 1
    972
    973typedef 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);
    974
    975#define glXCopyImageSubDataNV GLXEW_GET_FUN(__glewXCopyImageSubDataNV)
    976
    977#define GLXEW_NV_copy_image GLXEW_GET_VAR(__GLXEW_NV_copy_image)
    978
    979#endif /* GLX_NV_copy_image */
    980
    981/* ------------------------ GLX_NV_delay_before_swap ----------------------- */
    982
    983#ifndef GLX_NV_delay_before_swap
    984#define GLX_NV_delay_before_swap 1
    985
    986typedef Bool ( * PFNGLXDELAYBEFORESWAPNVPROC) (Display* dpy, GLXDrawable drawable, GLfloat seconds);
    987
    988#define glXDelayBeforeSwapNV GLXEW_GET_FUN(__glewXDelayBeforeSwapNV)
    989
    990#define GLXEW_NV_delay_before_swap GLXEW_GET_VAR(__GLXEW_NV_delay_before_swap)
    991
    992#endif /* GLX_NV_delay_before_swap */
    993
    994/* -------------------------- GLX_NV_float_buffer -------------------------- */
    995
    996#ifndef GLX_NV_float_buffer
    997#define GLX_NV_float_buffer 1
    998
    999#define GLX_FLOAT_COMPONENTS_NV 0x20B0
   1000
   1001#define GLXEW_NV_float_buffer GLXEW_GET_VAR(__GLXEW_NV_float_buffer)
   1002
   1003#endif /* GLX_NV_float_buffer */
   1004
   1005/* ---------------------- GLX_NV_multisample_coverage ---------------------- */
   1006
   1007#ifndef GLX_NV_multisample_coverage
   1008#define GLX_NV_multisample_coverage 1
   1009
   1010#define GLX_COLOR_SAMPLES_NV 0x20B3
   1011#define GLX_COVERAGE_SAMPLES_NV 100001
   1012
   1013#define GLXEW_NV_multisample_coverage GLXEW_GET_VAR(__GLXEW_NV_multisample_coverage)
   1014
   1015#endif /* GLX_NV_multisample_coverage */
   1016
   1017/* -------------------------- GLX_NV_present_video ------------------------- */
   1018
   1019#ifndef GLX_NV_present_video
   1020#define GLX_NV_present_video 1
   1021
   1022#define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
   1023
   1024typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display* dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
   1025typedef unsigned int* ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
   1026
   1027#define glXBindVideoDeviceNV GLXEW_GET_FUN(__glewXBindVideoDeviceNV)
   1028#define glXEnumerateVideoDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoDevicesNV)
   1029
   1030#define GLXEW_NV_present_video GLXEW_GET_VAR(__GLXEW_NV_present_video)
   1031
   1032#endif /* GLX_NV_present_video */
   1033
   1034/* ------------------ GLX_NV_robustness_video_memory_purge ----------------- */
   1035
   1036#ifndef GLX_NV_robustness_video_memory_purge
   1037#define GLX_NV_robustness_video_memory_purge 1
   1038
   1039#define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7
   1040
   1041#define GLXEW_NV_robustness_video_memory_purge GLXEW_GET_VAR(__GLXEW_NV_robustness_video_memory_purge)
   1042
   1043#endif /* GLX_NV_robustness_video_memory_purge */
   1044
   1045/* --------------------------- GLX_NV_swap_group --------------------------- */
   1046
   1047#ifndef GLX_NV_swap_group
   1048#define GLX_NV_swap_group 1
   1049
   1050typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display* dpy, GLuint group, GLuint barrier);
   1051typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint group);
   1052typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display* dpy, int screen, GLuint *count);
   1053typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display* dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
   1054typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
   1055typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display* dpy, int screen);
   1056
   1057#define glXBindSwapBarrierNV GLXEW_GET_FUN(__glewXBindSwapBarrierNV)
   1058#define glXJoinSwapGroupNV GLXEW_GET_FUN(__glewXJoinSwapGroupNV)
   1059#define glXQueryFrameCountNV GLXEW_GET_FUN(__glewXQueryFrameCountNV)
   1060#define glXQueryMaxSwapGroupsNV GLXEW_GET_FUN(__glewXQueryMaxSwapGroupsNV)
   1061#define glXQuerySwapGroupNV GLXEW_GET_FUN(__glewXQuerySwapGroupNV)
   1062#define glXResetFrameCountNV GLXEW_GET_FUN(__glewXResetFrameCountNV)
   1063
   1064#define GLXEW_NV_swap_group GLXEW_GET_VAR(__GLXEW_NV_swap_group)
   1065
   1066#endif /* GLX_NV_swap_group */
   1067
   1068/* ----------------------- GLX_NV_vertex_array_range ----------------------- */
   1069
   1070#ifndef GLX_NV_vertex_array_range
   1071#define GLX_NV_vertex_array_range 1
   1072
   1073typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
   1074typedef void ( * PFNGLXFREEMEMORYNVPROC) (void *pointer);
   1075
   1076#define glXAllocateMemoryNV GLXEW_GET_FUN(__glewXAllocateMemoryNV)
   1077#define glXFreeMemoryNV GLXEW_GET_FUN(__glewXFreeMemoryNV)
   1078
   1079#define GLXEW_NV_vertex_array_range GLXEW_GET_VAR(__GLXEW_NV_vertex_array_range)
   1080
   1081#endif /* GLX_NV_vertex_array_range */
   1082
   1083/* -------------------------- GLX_NV_video_capture ------------------------- */
   1084
   1085#ifndef GLX_NV_video_capture
   1086#define GLX_NV_video_capture 1
   1087
   1088#define GLX_DEVICE_ID_NV 0x20CD
   1089#define GLX_UNIQUE_ID_NV 0x20CE
   1090#define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
   1091
   1092typedef XID GLXVideoCaptureDeviceNV;
   1093
   1094typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display* dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
   1095typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display* dpy, int screen, int *nelements);
   1096typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device);
   1097typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
   1098typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device);
   1099
   1100#define glXBindVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXBindVideoCaptureDeviceNV)
   1101#define glXEnumerateVideoCaptureDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoCaptureDevicesNV)
   1102#define glXLockVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXLockVideoCaptureDeviceNV)
   1103#define glXQueryVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXQueryVideoCaptureDeviceNV)
   1104#define glXReleaseVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoCaptureDeviceNV)
   1105
   1106#define GLXEW_NV_video_capture GLXEW_GET_VAR(__GLXEW_NV_video_capture)
   1107
   1108#endif /* GLX_NV_video_capture */
   1109
   1110/* ---------------------------- GLX_NV_video_out --------------------------- */
   1111
   1112#ifndef GLX_NV_video_out
   1113#define GLX_NV_video_out 1
   1114
   1115#define GLX_VIDEO_OUT_COLOR_NV 0x20C3
   1116#define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
   1117#define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
   1118#define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
   1119#define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
   1120#define GLX_VIDEO_OUT_FRAME_NV 0x20C8
   1121#define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
   1122#define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
   1123#define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
   1124#define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
   1125
   1126typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display* dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
   1127typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display* dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
   1128typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
   1129typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice);
   1130typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display* dpy, GLXPbuffer pbuf);
   1131typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display* dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
   1132
   1133#define glXBindVideoImageNV GLXEW_GET_FUN(__glewXBindVideoImageNV)
   1134#define glXGetVideoDeviceNV GLXEW_GET_FUN(__glewXGetVideoDeviceNV)
   1135#define glXGetVideoInfoNV GLXEW_GET_FUN(__glewXGetVideoInfoNV)
   1136#define glXReleaseVideoDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoDeviceNV)
   1137#define glXReleaseVideoImageNV GLXEW_GET_FUN(__glewXReleaseVideoImageNV)
   1138#define glXSendPbufferToVideoNV GLXEW_GET_FUN(__glewXSendPbufferToVideoNV)
   1139
   1140#define GLXEW_NV_video_out GLXEW_GET_VAR(__GLXEW_NV_video_out)
   1141
   1142#endif /* GLX_NV_video_out */
   1143
   1144/* -------------------------- GLX_OML_swap_method -------------------------- */
   1145
   1146#ifndef GLX_OML_swap_method
   1147#define GLX_OML_swap_method 1
   1148
   1149#define GLX_SWAP_METHOD_OML 0x8060
   1150#define GLX_SWAP_EXCHANGE_OML 0x8061
   1151#define GLX_SWAP_COPY_OML 0x8062
   1152#define GLX_SWAP_UNDEFINED_OML 0x8063
   1153
   1154#define GLXEW_OML_swap_method GLXEW_GET_VAR(__GLXEW_OML_swap_method)
   1155
   1156#endif /* GLX_OML_swap_method */
   1157
   1158/* -------------------------- GLX_OML_sync_control ------------------------- */
   1159
   1160#ifndef GLX_OML_sync_control
   1161#define GLX_OML_sync_control 1
   1162
   1163typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator);
   1164typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc);
   1165typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
   1166typedef 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);
   1167typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_sbc, int64_t* ust, int64_t* msc, int64_t* sbc);
   1168
   1169#define glXGetMscRateOML GLXEW_GET_FUN(__glewXGetMscRateOML)
   1170#define glXGetSyncValuesOML GLXEW_GET_FUN(__glewXGetSyncValuesOML)
   1171#define glXSwapBuffersMscOML GLXEW_GET_FUN(__glewXSwapBuffersMscOML)
   1172#define glXWaitForMscOML GLXEW_GET_FUN(__glewXWaitForMscOML)
   1173#define glXWaitForSbcOML GLXEW_GET_FUN(__glewXWaitForSbcOML)
   1174
   1175#define GLXEW_OML_sync_control GLXEW_GET_VAR(__GLXEW_OML_sync_control)
   1176
   1177#endif /* GLX_OML_sync_control */
   1178
   1179/* ------------------------ GLX_SGIS_blended_overlay ----------------------- */
   1180
   1181#ifndef GLX_SGIS_blended_overlay
   1182#define GLX_SGIS_blended_overlay 1
   1183
   1184#define GLX_BLENDED_RGBA_SGIS 0x8025
   1185
   1186#define GLXEW_SGIS_blended_overlay GLXEW_GET_VAR(__GLXEW_SGIS_blended_overlay)
   1187
   1188#endif /* GLX_SGIS_blended_overlay */
   1189
   1190/* -------------------------- GLX_SGIS_color_range ------------------------- */
   1191
   1192#ifndef GLX_SGIS_color_range
   1193#define GLX_SGIS_color_range 1
   1194
   1195#define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range)
   1196
   1197#endif /* GLX_SGIS_color_range */
   1198
   1199/* -------------------------- GLX_SGIS_multisample ------------------------- */
   1200
   1201#ifndef GLX_SGIS_multisample
   1202#define GLX_SGIS_multisample 1
   1203
   1204#define GLX_SAMPLE_BUFFERS_SGIS 100000
   1205#define GLX_SAMPLES_SGIS 100001
   1206
   1207#define GLXEW_SGIS_multisample GLXEW_GET_VAR(__GLXEW_SGIS_multisample)
   1208
   1209#endif /* GLX_SGIS_multisample */
   1210
   1211/* ---------------------- GLX_SGIS_shared_multisample ---------------------- */
   1212
   1213#ifndef GLX_SGIS_shared_multisample
   1214#define GLX_SGIS_shared_multisample 1
   1215
   1216#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
   1217#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
   1218
   1219#define GLXEW_SGIS_shared_multisample GLXEW_GET_VAR(__GLXEW_SGIS_shared_multisample)
   1220
   1221#endif /* GLX_SGIS_shared_multisample */
   1222
   1223/* --------------------------- GLX_SGIX_fbconfig --------------------------- */
   1224
   1225#ifndef GLX_SGIX_fbconfig
   1226#define GLX_SGIX_fbconfig 1
   1227
   1228#define GLX_RGBA_BIT_SGIX 0x00000001
   1229#define GLX_WINDOW_BIT_SGIX 0x00000001
   1230#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
   1231#define GLX_PIXMAP_BIT_SGIX 0x00000002
   1232#define GLX_SCREEN_EXT 0x800C
   1233#define GLX_DRAWABLE_TYPE_SGIX 0x8010
   1234#define GLX_RENDER_TYPE_SGIX 0x8011
   1235#define GLX_X_RENDERABLE_SGIX 0x8012
   1236#define GLX_FBCONFIG_ID_SGIX 0x8013
   1237#define GLX_RGBA_TYPE_SGIX 0x8014
   1238#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
   1239
   1240typedef XID GLXFBConfigIDSGIX;
   1241typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
   1242
   1243typedef GLXFBConfigSGIX* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
   1244typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
   1245typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, Pixmap pixmap);
   1246typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display* dpy, GLXFBConfigSGIX config, int attribute, int *value);
   1247typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display* dpy, XVisualInfo *vis);
   1248typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfig config);
   1249
   1250#define glXChooseFBConfigSGIX GLXEW_GET_FUN(__glewXChooseFBConfigSGIX)
   1251#define glXCreateContextWithConfigSGIX GLXEW_GET_FUN(__glewXCreateContextWithConfigSGIX)
   1252#define glXCreateGLXPixmapWithConfigSGIX GLXEW_GET_FUN(__glewXCreateGLXPixmapWithConfigSGIX)
   1253#define glXGetFBConfigAttribSGIX GLXEW_GET_FUN(__glewXGetFBConfigAttribSGIX)
   1254#define glXGetFBConfigFromVisualSGIX GLXEW_GET_FUN(__glewXGetFBConfigFromVisualSGIX)
   1255#define glXGetVisualFromFBConfigSGIX GLXEW_GET_FUN(__glewXGetVisualFromFBConfigSGIX)
   1256
   1257#define GLXEW_SGIX_fbconfig GLXEW_GET_VAR(__GLXEW_SGIX_fbconfig)
   1258
   1259#endif /* GLX_SGIX_fbconfig */
   1260
   1261/* --------------------------- GLX_SGIX_hyperpipe -------------------------- */
   1262
   1263#ifndef GLX_SGIX_hyperpipe
   1264#define GLX_SGIX_hyperpipe 1
   1265
   1266#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
   1267#define GLX_PIPE_RECT_SGIX 0x00000001
   1268#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
   1269#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
   1270#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
   1271#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
   1272#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
   1273#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
   1274#define GLX_BAD_HYPERPIPE_SGIX 92
   1275#define GLX_HYPERPIPE_ID_SGIX 0x8030
   1276
   1277typedef struct {
   1278  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 
   1279  int  networkId; 
   1280} GLXHyperpipeNetworkSGIX;
   1281typedef struct {
   1282  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 
   1283  int XOrigin; 
   1284  int YOrigin; 
   1285  int maxHeight; 
   1286  int maxWidth; 
   1287} GLXPipeRectLimits;
   1288typedef struct {
   1289  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 
   1290  int channel; 
   1291  unsigned int participationType; 
   1292  int timeSlice; 
   1293} GLXHyperpipeConfigSGIX;
   1294typedef struct {
   1295  char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; 
   1296  int srcXOrigin; 
   1297  int srcYOrigin; 
   1298  int srcWidth; 
   1299  int srcHeight; 
   1300  int destXOrigin; 
   1301  int destYOrigin; 
   1302  int destWidth; 
   1303  int destHeight; 
   1304} GLXPipeRect;
   1305
   1306typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
   1307typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
   1308typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
   1309typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
   1310typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
   1311typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
   1312typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
   1313typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
   1314
   1315#define glXBindHyperpipeSGIX GLXEW_GET_FUN(__glewXBindHyperpipeSGIX)
   1316#define glXDestroyHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXDestroyHyperpipeConfigSGIX)
   1317#define glXHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXHyperpipeAttribSGIX)
   1318#define glXHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXHyperpipeConfigSGIX)
   1319#define glXQueryHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeAttribSGIX)
   1320#define glXQueryHyperpipeBestAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeBestAttribSGIX)
   1321#define glXQueryHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeConfigSGIX)
   1322#define glXQueryHyperpipeNetworkSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeNetworkSGIX)
   1323
   1324#define GLXEW_SGIX_hyperpipe GLXEW_GET_VAR(__GLXEW_SGIX_hyperpipe)
   1325
   1326#endif /* GLX_SGIX_hyperpipe */
   1327
   1328/* ---------------------------- GLX_SGIX_pbuffer --------------------------- */
   1329
   1330#ifndef GLX_SGIX_pbuffer
   1331#define GLX_SGIX_pbuffer 1
   1332
   1333#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
   1334#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
   1335#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
   1336#define GLX_PBUFFER_BIT_SGIX 0x00000004
   1337#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
   1338#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
   1339#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
   1340#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
   1341#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
   1342#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
   1343#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
   1344#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
   1345#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
   1346#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
   1347#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
   1348#define GLX_PRESERVED_CONTENTS_SGIX 0x801B
   1349#define GLX_LARGEST_PBUFFER_SGIX 0x801C
   1350#define GLX_WIDTH_SGIX 0x801D
   1351#define GLX_HEIGHT_SGIX 0x801E
   1352#define GLX_EVENT_MASK_SGIX 0x801F
   1353#define GLX_DAMAGED_SGIX 0x8020
   1354#define GLX_SAVED_SGIX 0x8021
   1355#define GLX_WINDOW_SGIX 0x8022
   1356#define GLX_PBUFFER_SGIX 0x8023
   1357#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
   1358
   1359typedef XID GLXPbufferSGIX;
   1360typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX;
   1361
   1362typedef GLXPbuffer ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display* dpy, GLXFBConfig config, unsigned int width, unsigned int height, int *attrib_list);
   1363typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf);
   1364typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long *mask);
   1365typedef void ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf, int attribute, unsigned int *value);
   1366typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long mask);
   1367
   1368#define glXCreateGLXPbufferSGIX GLXEW_GET_FUN(__glewXCreateGLXPbufferSGIX)
   1369#define glXDestroyGLXPbufferSGIX GLXEW_GET_FUN(__glewXDestroyGLXPbufferSGIX)
   1370#define glXGetSelectedEventSGIX GLXEW_GET_FUN(__glewXGetSelectedEventSGIX)
   1371#define glXQueryGLXPbufferSGIX GLXEW_GET_FUN(__glewXQueryGLXPbufferSGIX)
   1372#define glXSelectEventSGIX GLXEW_GET_FUN(__glewXSelectEventSGIX)
   1373
   1374#define GLXEW_SGIX_pbuffer GLXEW_GET_VAR(__GLXEW_SGIX_pbuffer)
   1375
   1376#endif /* GLX_SGIX_pbuffer */
   1377
   1378/* ------------------------- GLX_SGIX_swap_barrier ------------------------- */
   1379
   1380#ifndef GLX_SGIX_swap_barrier
   1381#define GLX_SGIX_swap_barrier 1
   1382
   1383typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
   1384typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
   1385
   1386#define glXBindSwapBarrierSGIX GLXEW_GET_FUN(__glewXBindSwapBarrierSGIX)
   1387#define glXQueryMaxSwapBarriersSGIX GLXEW_GET_FUN(__glewXQueryMaxSwapBarriersSGIX)
   1388
   1389#define GLXEW_SGIX_swap_barrier GLXEW_GET_VAR(__GLXEW_SGIX_swap_barrier)
   1390
   1391#endif /* GLX_SGIX_swap_barrier */
   1392
   1393/* -------------------------- GLX_SGIX_swap_group -------------------------- */
   1394
   1395#ifndef GLX_SGIX_swap_group
   1396#define GLX_SGIX_swap_group 1
   1397
   1398typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
   1399
   1400#define glXJoinSwapGroupSGIX GLXEW_GET_FUN(__glewXJoinSwapGroupSGIX)
   1401
   1402#define GLXEW_SGIX_swap_group GLXEW_GET_VAR(__GLXEW_SGIX_swap_group)
   1403
   1404#endif /* GLX_SGIX_swap_group */
   1405
   1406/* ------------------------- GLX_SGIX_video_resize ------------------------- */
   1407
   1408#ifndef GLX_SGIX_video_resize
   1409#define GLX_SGIX_video_resize 1
   1410
   1411#define GLX_SYNC_FRAME_SGIX 0x00000000
   1412#define GLX_SYNC_SWAP_SGIX 0x00000001
   1413
   1414typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display* display, int screen, int channel, Window window);
   1415typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int x, int y, int w, int h);
   1416typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display* display, int screen, int channel, GLenum synctype);
   1417typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display* display, int screen, int channel, int *x, int *y, int *w, int *h);
   1418typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
   1419
   1420#define glXBindChannelToWindowSGIX GLXEW_GET_FUN(__glewXBindChannelToWindowSGIX)
   1421#define glXChannelRectSGIX GLXEW_GET_FUN(__glewXChannelRectSGIX)
   1422#define glXChannelRectSyncSGIX GLXEW_GET_FUN(__glewXChannelRectSyncSGIX)
   1423#define glXQueryChannelDeltasSGIX GLXEW_GET_FUN(__glewXQueryChannelDeltasSGIX)
   1424#define glXQueryChannelRectSGIX GLXEW_GET_FUN(__glewXQueryChannelRectSGIX)
   1425
   1426#define GLXEW_SGIX_video_resize GLXEW_GET_VAR(__GLXEW_SGIX_video_resize)
   1427
   1428#endif /* GLX_SGIX_video_resize */
   1429
   1430/* ---------------------- GLX_SGIX_visual_select_group --------------------- */
   1431
   1432#ifndef GLX_SGIX_visual_select_group
   1433#define GLX_SGIX_visual_select_group 1
   1434
   1435#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
   1436
   1437#define GLXEW_SGIX_visual_select_group GLXEW_GET_VAR(__GLXEW_SGIX_visual_select_group)
   1438
   1439#endif /* GLX_SGIX_visual_select_group */
   1440
   1441/* ---------------------------- GLX_SGI_cushion ---------------------------- */
   1442
   1443#ifndef GLX_SGI_cushion
   1444#define GLX_SGI_cushion 1
   1445
   1446typedef void ( * PFNGLXCUSHIONSGIPROC) (Display* dpy, Window window, float cushion);
   1447
   1448#define glXCushionSGI GLXEW_GET_FUN(__glewXCushionSGI)
   1449
   1450#define GLXEW_SGI_cushion GLXEW_GET_VAR(__GLXEW_SGI_cushion)
   1451
   1452#endif /* GLX_SGI_cushion */
   1453
   1454/* ----------------------- GLX_SGI_make_current_read ----------------------- */
   1455
   1456#ifndef GLX_SGI_make_current_read
   1457#define GLX_SGI_make_current_read 1
   1458
   1459typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
   1460typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
   1461
   1462#define glXGetCurrentReadDrawableSGI GLXEW_GET_FUN(__glewXGetCurrentReadDrawableSGI)
   1463#define glXMakeCurrentReadSGI GLXEW_GET_FUN(__glewXMakeCurrentReadSGI)
   1464
   1465#define GLXEW_SGI_make_current_read GLXEW_GET_VAR(__GLXEW_SGI_make_current_read)
   1466
   1467#endif /* GLX_SGI_make_current_read */
   1468
   1469/* -------------------------- GLX_SGI_swap_control ------------------------- */
   1470
   1471#ifndef GLX_SGI_swap_control
   1472#define GLX_SGI_swap_control 1
   1473
   1474typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
   1475
   1476#define glXSwapIntervalSGI GLXEW_GET_FUN(__glewXSwapIntervalSGI)
   1477
   1478#define GLXEW_SGI_swap_control GLXEW_GET_VAR(__GLXEW_SGI_swap_control)
   1479
   1480#endif /* GLX_SGI_swap_control */
   1481
   1482/* --------------------------- GLX_SGI_video_sync -------------------------- */
   1483
   1484#ifndef GLX_SGI_video_sync
   1485#define GLX_SGI_video_sync 1
   1486
   1487typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int* count);
   1488typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int* count);
   1489
   1490#define glXGetVideoSyncSGI GLXEW_GET_FUN(__glewXGetVideoSyncSGI)
   1491#define glXWaitVideoSyncSGI GLXEW_GET_FUN(__glewXWaitVideoSyncSGI)
   1492
   1493#define GLXEW_SGI_video_sync GLXEW_GET_VAR(__GLXEW_SGI_video_sync)
   1494
   1495#endif /* GLX_SGI_video_sync */
   1496
   1497/* --------------------- GLX_SUN_get_transparent_index --------------------- */
   1498
   1499#ifndef GLX_SUN_get_transparent_index
   1500#define GLX_SUN_get_transparent_index 1
   1501
   1502typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display* dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex);
   1503
   1504#define glXGetTransparentIndexSUN GLXEW_GET_FUN(__glewXGetTransparentIndexSUN)
   1505
   1506#define GLXEW_SUN_get_transparent_index GLXEW_GET_VAR(__GLXEW_SUN_get_transparent_index)
   1507
   1508#endif /* GLX_SUN_get_transparent_index */
   1509
   1510/* -------------------------- GLX_SUN_video_resize ------------------------- */
   1511
   1512#ifndef GLX_SUN_video_resize
   1513#define GLX_SUN_video_resize 1
   1514
   1515#define GLX_VIDEO_RESIZE_SUN 0x8171
   1516#define GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD
   1517
   1518typedef int ( * PFNGLXGETVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float* factor);
   1519typedef int ( * PFNGLXVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float factor);
   1520
   1521#define glXGetVideoResizeSUN GLXEW_GET_FUN(__glewXGetVideoResizeSUN)
   1522#define glXVideoResizeSUN GLXEW_GET_FUN(__glewXVideoResizeSUN)
   1523
   1524#define GLXEW_SUN_video_resize GLXEW_GET_VAR(__GLXEW_SUN_video_resize)
   1525
   1526#endif /* GLX_SUN_video_resize */
   1527
   1528/* ------------------------------------------------------------------------- */
   1529
   1530#define GLXEW_FUN_EXPORT GLEW_FUN_EXPORT
   1531#define GLXEW_VAR_EXPORT GLEW_VAR_EXPORT
   1532
   1533GLXEW_FUN_EXPORT PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay;
   1534
   1535GLXEW_FUN_EXPORT PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig;
   1536GLXEW_FUN_EXPORT PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext;
   1537GLXEW_FUN_EXPORT PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer;
   1538GLXEW_FUN_EXPORT PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap;
   1539GLXEW_FUN_EXPORT PFNGLXCREATEWINDOWPROC __glewXCreateWindow;
   1540GLXEW_FUN_EXPORT PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer;
   1541GLXEW_FUN_EXPORT PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap;
   1542GLXEW_FUN_EXPORT PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow;
   1543GLXEW_FUN_EXPORT PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable;
   1544GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib;
   1545GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs;
   1546GLXEW_FUN_EXPORT PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent;
   1547GLXEW_FUN_EXPORT PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig;
   1548GLXEW_FUN_EXPORT PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent;
   1549GLXEW_FUN_EXPORT PFNGLXQUERYCONTEXTPROC __glewXQueryContext;
   1550GLXEW_FUN_EXPORT PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable;
   1551GLXEW_FUN_EXPORT PFNGLXSELECTEVENTPROC __glewXSelectEvent;
   1552
   1553GLXEW_FUN_EXPORT PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC __glewXBlitContextFramebufferAMD;
   1554GLXEW_FUN_EXPORT PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC __glewXCreateAssociatedContextAMD;
   1555GLXEW_FUN_EXPORT PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __glewXCreateAssociatedContextAttribsAMD;
   1556GLXEW_FUN_EXPORT PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC __glewXDeleteAssociatedContextAMD;
   1557GLXEW_FUN_EXPORT PFNGLXGETCONTEXTGPUIDAMDPROC __glewXGetContextGPUIDAMD;
   1558GLXEW_FUN_EXPORT PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC __glewXGetCurrentAssociatedContextAMD;
   1559GLXEW_FUN_EXPORT PFNGLXGETGPUIDSAMDPROC __glewXGetGPUIDsAMD;
   1560GLXEW_FUN_EXPORT PFNGLXGETGPUINFOAMDPROC __glewXGetGPUInfoAMD;
   1561GLXEW_FUN_EXPORT PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __glewXMakeAssociatedContextCurrentAMD;
   1562
   1563GLXEW_FUN_EXPORT PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB;
   1564
   1565GLXEW_FUN_EXPORT PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI;
   1566GLXEW_FUN_EXPORT PFNGLXDRAWABLEATTRIBATIPROC __glewXDrawableAttribATI;
   1567GLXEW_FUN_EXPORT PFNGLXRELEASETEXIMAGEATIPROC __glewXReleaseTexImageATI;
   1568
   1569GLXEW_FUN_EXPORT PFNGLXFREECONTEXTEXTPROC __glewXFreeContextEXT;
   1570GLXEW_FUN_EXPORT PFNGLXGETCONTEXTIDEXTPROC __glewXGetContextIDEXT;
   1571GLXEW_FUN_EXPORT PFNGLXIMPORTCONTEXTEXTPROC __glewXImportContextEXT;
   1572GLXEW_FUN_EXPORT PFNGLXQUERYCONTEXTINFOEXTPROC __glewXQueryContextInfoEXT;
   1573
   1574GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALEXTPROC __glewXSwapIntervalEXT;
   1575
   1576GLXEW_FUN_EXPORT PFNGLXBINDTEXIMAGEEXTPROC __glewXBindTexImageEXT;
   1577GLXEW_FUN_EXPORT PFNGLXRELEASETEXIMAGEEXTPROC __glewXReleaseTexImageEXT;
   1578
   1579GLXEW_FUN_EXPORT PFNGLXGETAGPOFFSETMESAPROC __glewXGetAGPOffsetMESA;
   1580
   1581GLXEW_FUN_EXPORT PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA;
   1582
   1583GLXEW_FUN_EXPORT PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA;
   1584
   1585GLXEW_FUN_EXPORT PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC __glewXQueryCurrentRendererIntegerMESA;
   1586GLXEW_FUN_EXPORT PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC __glewXQueryCurrentRendererStringMESA;
   1587GLXEW_FUN_EXPORT PFNGLXQUERYRENDERERINTEGERMESAPROC __glewXQueryRendererIntegerMESA;
   1588GLXEW_FUN_EXPORT PFNGLXQUERYRENDERERSTRINGMESAPROC __glewXQueryRendererStringMESA;
   1589
   1590GLXEW_FUN_EXPORT PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA;
   1591
   1592GLXEW_FUN_EXPORT PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA;
   1593
   1594GLXEW_FUN_EXPORT PFNGLXGETSWAPINTERVALMESAPROC __glewXGetSwapIntervalMESA;
   1595GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALMESAPROC __glewXSwapIntervalMESA;
   1596
   1597GLXEW_FUN_EXPORT PFNGLXCOPYBUFFERSUBDATANVPROC __glewXCopyBufferSubDataNV;
   1598GLXEW_FUN_EXPORT PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC __glewXNamedCopyBufferSubDataNV;
   1599
   1600GLXEW_FUN_EXPORT PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV;
   1601
   1602GLXEW_FUN_EXPORT PFNGLXDELAYBEFORESWAPNVPROC __glewXDelayBeforeSwapNV;
   1603
   1604GLXEW_FUN_EXPORT PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV;
   1605GLXEW_FUN_EXPORT PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV;
   1606
   1607GLXEW_FUN_EXPORT PFNGLXBINDSWAPBARRIERNVPROC __glewXBindSwapBarrierNV;
   1608GLXEW_FUN_EXPORT PFNGLXJOINSWAPGROUPNVPROC __glewXJoinSwapGroupNV;
   1609GLXEW_FUN_EXPORT PFNGLXQUERYFRAMECOUNTNVPROC __glewXQueryFrameCountNV;
   1610GLXEW_FUN_EXPORT PFNGLXQUERYMAXSWAPGROUPSNVPROC __glewXQueryMaxSwapGroupsNV;
   1611GLXEW_FUN_EXPORT PFNGLXQUERYSWAPGROUPNVPROC __glewXQuerySwapGroupNV;
   1612GLXEW_FUN_EXPORT PFNGLXRESETFRAMECOUNTNVPROC __glewXResetFrameCountNV;
   1613
   1614GLXEW_FUN_EXPORT PFNGLXALLOCATEMEMORYNVPROC __glewXAllocateMemoryNV;
   1615GLXEW_FUN_EXPORT PFNGLXFREEMEMORYNVPROC __glewXFreeMemoryNV;
   1616
   1617GLXEW_FUN_EXPORT PFNGLXBINDVIDEOCAPTUREDEVICENVPROC __glewXBindVideoCaptureDeviceNV;
   1618GLXEW_FUN_EXPORT PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC __glewXEnumerateVideoCaptureDevicesNV;
   1619GLXEW_FUN_EXPORT PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC __glewXLockVideoCaptureDeviceNV;
   1620GLXEW_FUN_EXPORT PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC __glewXQueryVideoCaptureDeviceNV;
   1621GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC __glewXReleaseVideoCaptureDeviceNV;
   1622
   1623GLXEW_FUN_EXPORT PFNGLXBINDVIDEOIMAGENVPROC __glewXBindVideoImageNV;
   1624GLXEW_FUN_EXPORT PFNGLXGETVIDEODEVICENVPROC __glewXGetVideoDeviceNV;
   1625GLXEW_FUN_EXPORT PFNGLXGETVIDEOINFONVPROC __glewXGetVideoInfoNV;
   1626GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEODEVICENVPROC __glewXReleaseVideoDeviceNV;
   1627GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEOIMAGENVPROC __glewXReleaseVideoImageNV;
   1628GLXEW_FUN_EXPORT PFNGLXSENDPBUFFERTOVIDEONVPROC __glewXSendPbufferToVideoNV;
   1629
   1630GLXEW_FUN_EXPORT PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML;
   1631GLXEW_FUN_EXPORT PFNGLXGETSYNCVALUESOMLPROC __glewXGetSyncValuesOML;
   1632GLXEW_FUN_EXPORT PFNGLXSWAPBUFFERSMSCOMLPROC __glewXSwapBuffersMscOML;
   1633GLXEW_FUN_EXPORT PFNGLXWAITFORMSCOMLPROC __glewXWaitForMscOML;
   1634GLXEW_FUN_EXPORT PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML;
   1635
   1636GLXEW_FUN_EXPORT PFNGLXCHOOSEFBCONFIGSGIXPROC __glewXChooseFBConfigSGIX;
   1637GLXEW_FUN_EXPORT PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC __glewXCreateContextWithConfigSGIX;
   1638GLXEW_FUN_EXPORT PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC __glewXCreateGLXPixmapWithConfigSGIX;
   1639GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGATTRIBSGIXPROC __glewXGetFBConfigAttribSGIX;
   1640GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGFROMVISUALSGIXPROC __glewXGetFBConfigFromVisualSGIX;
   1641GLXEW_FUN_EXPORT PFNGLXGETVISUALFROMFBCONFIGSGIXPROC __glewXGetVisualFromFBConfigSGIX;
   1642
   1643GLXEW_FUN_EXPORT PFNGLXBINDHYPERPIPESGIXPROC __glewXBindHyperpipeSGIX;
   1644GLXEW_FUN_EXPORT PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC __glewXDestroyHyperpipeConfigSGIX;
   1645GLXEW_FUN_EXPORT PFNGLXHYPERPIPEATTRIBSGIXPROC __glewXHyperpipeAttribSGIX;
   1646GLXEW_FUN_EXPORT PFNGLXHYPERPIPECONFIGSGIXPROC __glewXHyperpipeConfigSGIX;
   1647GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC __glewXQueryHyperpipeAttribSGIX;
   1648GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC __glewXQueryHyperpipeBestAttribSGIX;
   1649GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPECONFIGSGIXPROC __glewXQueryHyperpipeConfigSGIX;
   1650GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPENETWORKSGIXPROC __glewXQueryHyperpipeNetworkSGIX;
   1651
   1652GLXEW_FUN_EXPORT PFNGLXCREATEGLXPBUFFERSGIXPROC __glewXCreateGLXPbufferSGIX;
   1653GLXEW_FUN_EXPORT PFNGLXDESTROYGLXPBUFFERSGIXPROC __glewXDestroyGLXPbufferSGIX;
   1654GLXEW_FUN_EXPORT PFNGLXGETSELECTEDEVENTSGIXPROC __glewXGetSelectedEventSGIX;
   1655GLXEW_FUN_EXPORT PFNGLXQUERYGLXPBUFFERSGIXPROC __glewXQueryGLXPbufferSGIX;
   1656GLXEW_FUN_EXPORT PFNGLXSELECTEVENTSGIXPROC __glewXSelectEventSGIX;
   1657
   1658GLXEW_FUN_EXPORT PFNGLXBINDSWAPBARRIERSGIXPROC __glewXBindSwapBarrierSGIX;
   1659GLXEW_FUN_EXPORT PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC __glewXQueryMaxSwapBarriersSGIX;
   1660
   1661GLXEW_FUN_EXPORT PFNGLXJOINSWAPGROUPSGIXPROC __glewXJoinSwapGroupSGIX;
   1662
   1663GLXEW_FUN_EXPORT PFNGLXBINDCHANNELTOWINDOWSGIXPROC __glewXBindChannelToWindowSGIX;
   1664GLXEW_FUN_EXPORT PFNGLXCHANNELRECTSGIXPROC __glewXChannelRectSGIX;
   1665GLXEW_FUN_EXPORT PFNGLXCHANNELRECTSYNCSGIXPROC __glewXChannelRectSyncSGIX;
   1666GLXEW_FUN_EXPORT PFNGLXQUERYCHANNELDELTASSGIXPROC __glewXQueryChannelDeltasSGIX;
   1667GLXEW_FUN_EXPORT PFNGLXQUERYCHANNELRECTSGIXPROC __glewXQueryChannelRectSGIX;
   1668
   1669GLXEW_FUN_EXPORT PFNGLXCUSHIONSGIPROC __glewXCushionSGI;
   1670
   1671GLXEW_FUN_EXPORT PFNGLXGETCURRENTREADDRAWABLESGIPROC __glewXGetCurrentReadDrawableSGI;
   1672GLXEW_FUN_EXPORT PFNGLXMAKECURRENTREADSGIPROC __glewXMakeCurrentReadSGI;
   1673
   1674GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALSGIPROC __glewXSwapIntervalSGI;
   1675
   1676GLXEW_FUN_EXPORT PFNGLXGETVIDEOSYNCSGIPROC __glewXGetVideoSyncSGI;
   1677GLXEW_FUN_EXPORT PFNGLXWAITVIDEOSYNCSGIPROC __glewXWaitVideoSyncSGI;
   1678
   1679GLXEW_FUN_EXPORT PFNGLXGETTRANSPARENTINDEXSUNPROC __glewXGetTransparentIndexSUN;
   1680
   1681GLXEW_FUN_EXPORT PFNGLXGETVIDEORESIZESUNPROC __glewXGetVideoResizeSUN;
   1682GLXEW_FUN_EXPORT PFNGLXVIDEORESIZESUNPROC __glewXVideoResizeSUN;
   1683GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_0;
   1684GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_1;
   1685GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_2;
   1686GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_3;
   1687GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_4;
   1688GLXEW_VAR_EXPORT GLboolean __GLXEW_3DFX_multisample;
   1689GLXEW_VAR_EXPORT GLboolean __GLXEW_AMD_gpu_association;
   1690GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_context_flush_control;
   1691GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context;
   1692GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_no_error;
   1693GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_profile;
   1694GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_robustness;
   1695GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_fbconfig_float;
   1696GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_framebuffer_sRGB;
   1697GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_get_proc_address;
   1698GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_multisample;
   1699GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_robustness_application_isolation;
   1700GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_robustness_share_group_isolation;
   1701GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_vertex_buffer_object;
   1702GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_pixel_format_float;
   1703GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_render_texture;
   1704GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_buffer_age;
   1705GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es2_profile;
   1706GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es_profile;
   1707GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_fbconfig_packed_float;
   1708GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_framebuffer_sRGB;
   1709GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_import_context;
   1710GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_libglvnd;
   1711GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_scene_marker;
   1712GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_stereo_tree;
   1713GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control;
   1714GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control_tear;
   1715GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_texture_from_pixmap;
   1716GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_visual_info;
   1717GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_visual_rating;
   1718GLXEW_VAR_EXPORT GLboolean __GLXEW_INTEL_swap_event;
   1719GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_agp_offset;
   1720GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer;
   1721GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap;
   1722GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_query_renderer;
   1723GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_release_buffers;
   1724GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode;
   1725GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_swap_control;
   1726GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_buffer;
   1727GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_image;
   1728GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_delay_before_swap;
   1729GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_float_buffer;
   1730GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_multisample_coverage;
   1731GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_present_video;
   1732GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_robustness_video_memory_purge;
   1733GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_swap_group;
   1734GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_vertex_array_range;
   1735GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_video_capture;
   1736GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_video_out;
   1737GLXEW_VAR_EXPORT GLboolean __GLXEW_OML_swap_method;
   1738GLXEW_VAR_EXPORT GLboolean __GLXEW_OML_sync_control;
   1739GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_blended_overlay;
   1740GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_color_range;
   1741GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_multisample;
   1742GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_shared_multisample;
   1743GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_fbconfig;
   1744GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_hyperpipe;
   1745GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_pbuffer;
   1746GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_swap_barrier;
   1747GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_swap_group;
   1748GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_video_resize;
   1749GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_visual_select_group;
   1750GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_cushion;
   1751GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_make_current_read;
   1752GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_swap_control;
   1753GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_video_sync;
   1754GLXEW_VAR_EXPORT GLboolean __GLXEW_SUN_get_transparent_index;
   1755GLXEW_VAR_EXPORT GLboolean __GLXEW_SUN_video_resize;
   1756/* ------------------------------------------------------------------------ */
   1757
   1758GLEWAPI GLenum GLEWAPIENTRY glxewInit ();
   1759GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name);
   1760
   1761#ifndef GLXEW_GET_VAR
   1762#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
   1763#endif
   1764
   1765#ifndef GLXEW_GET_FUN
   1766#define GLXEW_GET_FUN(x) x
   1767#endif
   1768
   1769GLEWAPI GLboolean GLEWAPIENTRY glxewGetExtension (const char *name);
   1770
   1771#ifdef __cplusplus
   1772}
   1773#endif
   1774
   1775#endif /* __glxew_h__ */