include/SDL_opengl.h
changeset 3240 6c4736b446e8
parent 2859 99210400e8b9
child 3241 08c5964f2a34
     1.1 --- a/include/SDL_opengl.h	Thu Aug 20 04:40:02 2009 +0000
     1.2 +++ b/include/SDL_opengl.h	Sat Sep 05 07:13:01 2009 +0000
     1.3 @@ -48,7 +48,7 @@
     1.4  /* This file is included because glext.h is not available on some systems.
     1.5     If you don't want this version included, simply define "NO_SDL_GLEXT"
     1.6     The latest version is available from:
     1.7 -	http://oss.sgi.com/projects/ogl-sample/registry/
     1.8 +	http://www.opengl.org/registry/
     1.9   */
    1.10  #if !defined(NO_SDL_GLEXT) && !defined(GL_GLEXT_LEGACY)
    1.11  /* *INDENT-OFF* */
    1.12 @@ -60,7 +60,7 @@
    1.13  #endif
    1.14  
    1.15  /*
    1.16 -** Copyright (c) 2007 The Khronos Group Inc.
    1.17 +** Copyright (c) 2007-2009 The Khronos Group Inc.
    1.18  ** 
    1.19  ** Permission is hereby granted, free of charge, to any person obtaining a
    1.20  ** copy of this software and/or associated documentation files (the
    1.21 @@ -82,6 +82,13 @@
    1.22  ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    1.23  */
    1.24  
    1.25 +/* Header file version number, required by OpenGL ABI for Linux */
    1.26 +/* glext.h last updated $Date$ */
    1.27 +/* Current version at http://www.opengl.org/registry/ */
    1.28 +#define GL_GLEXT_VERSION 54
    1.29 +
    1.30 +/* Function declaration macros - to move into glplatform.h */
    1.31 +
    1.32  #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
    1.33  #define WIN32_LEAN_AND_MEAN 1
    1.34  #include <windows.h>
    1.35 @@ -99,18 +106,12 @@
    1.36  
    1.37  /*************************************************************/
    1.38  
    1.39 -/* Header file version number, required by OpenGL ABI for Linux */
    1.40 -/* glext.h last updated 2008/11/14 */
    1.41 -/* Current version at http://www.opengl.org/registry/ */
    1.42 -#define GL_GLEXT_VERSION 44
    1.43 -
    1.44  #ifndef GL_VERSION_1_2
    1.45  #define GL_UNSIGNED_BYTE_3_3_2            0x8032
    1.46  #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
    1.47  #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
    1.48  #define GL_UNSIGNED_INT_8_8_8_8           0x8035
    1.49  #define GL_UNSIGNED_INT_10_10_10_2        0x8036
    1.50 -#define GL_RESCALE_NORMAL                 0x803A
    1.51  #define GL_TEXTURE_BINDING_3D             0x806A
    1.52  #define GL_PACK_SKIP_IMAGES               0x806B
    1.53  #define GL_PACK_IMAGE_HEIGHT              0x806C
    1.54 @@ -137,15 +138,19 @@
    1.55  #define GL_TEXTURE_MAX_LOD                0x813B
    1.56  #define GL_TEXTURE_BASE_LEVEL             0x813C
    1.57  #define GL_TEXTURE_MAX_LEVEL              0x813D
    1.58 -#define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
    1.59 -#define GL_SINGLE_COLOR                   0x81F9
    1.60 -#define GL_SEPARATE_SPECULAR_COLOR        0x81FA
    1.61  #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
    1.62  #define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
    1.63  #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
    1.64  #define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
    1.65 +#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
    1.66 +#endif
    1.67 +
    1.68 +#ifndef GL_VERSION_1_2_DEPRECATED
    1.69 +#define GL_RESCALE_NORMAL                 0x803A
    1.70 +#define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
    1.71 +#define GL_SINGLE_COLOR                   0x81F9
    1.72 +#define GL_SEPARATE_SPECULAR_COLOR        0x81FA
    1.73  #define GL_ALIASED_POINT_SIZE_RANGE       0x846D
    1.74 -#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
    1.75  #endif
    1.76  
    1.77  #ifndef GL_ARB_imaging
    1.78 @@ -160,6 +165,9 @@
    1.79  #define GL_BLEND_EQUATION                 0x8009
    1.80  #define GL_FUNC_SUBTRACT                  0x800A
    1.81  #define GL_FUNC_REVERSE_SUBTRACT          0x800B
    1.82 +#endif
    1.83 +
    1.84 +#ifndef GL_ARB_imaging_DEPRECATED
    1.85  #define GL_CONVOLUTION_1D                 0x8010
    1.86  #define GL_CONVOLUTION_2D                 0x8011
    1.87  #define GL_SEPARABLE_2D                   0x8012
    1.88 @@ -260,12 +268,6 @@
    1.89  #define GL_TEXTURE30                      0x84DE
    1.90  #define GL_TEXTURE31                      0x84DF
    1.91  #define GL_ACTIVE_TEXTURE                 0x84E0
    1.92 -#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
    1.93 -#define GL_MAX_TEXTURE_UNITS              0x84E2
    1.94 -#define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
    1.95 -#define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
    1.96 -#define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
    1.97 -#define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
    1.98  #define GL_MULTISAMPLE                    0x809D
    1.99  #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
   1.100  #define GL_SAMPLE_ALPHA_TO_ONE            0x809F
   1.101 @@ -274,9 +276,6 @@
   1.102  #define GL_SAMPLES                        0x80A9
   1.103  #define GL_SAMPLE_COVERAGE_VALUE          0x80AA
   1.104  #define GL_SAMPLE_COVERAGE_INVERT         0x80AB
   1.105 -#define GL_MULTISAMPLE_BIT                0x20000000
   1.106 -#define GL_NORMAL_MAP                     0x8511
   1.107 -#define GL_REFLECTION_MAP                 0x8512
   1.108  #define GL_TEXTURE_CUBE_MAP               0x8513
   1.109  #define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
   1.110  #define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
   1.111 @@ -287,10 +286,6 @@
   1.112  #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
   1.113  #define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
   1.114  #define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
   1.115 -#define GL_COMPRESSED_ALPHA               0x84E9
   1.116 -#define GL_COMPRESSED_LUMINANCE           0x84EA
   1.117 -#define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
   1.118 -#define GL_COMPRESSED_INTENSITY           0x84EC
   1.119  #define GL_COMPRESSED_RGB                 0x84ED
   1.120  #define GL_COMPRESSED_RGBA                0x84EE
   1.121  #define GL_TEXTURE_COMPRESSION_HINT       0x84EF
   1.122 @@ -299,6 +294,22 @@
   1.123  #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
   1.124  #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
   1.125  #define GL_CLAMP_TO_BORDER                0x812D
   1.126 +#endif
   1.127 +
   1.128 +#ifndef GL_VERSION_1_3_DEPRECATED
   1.129 +#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
   1.130 +#define GL_MAX_TEXTURE_UNITS              0x84E2
   1.131 +#define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
   1.132 +#define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
   1.133 +#define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
   1.134 +#define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
   1.135 +#define GL_MULTISAMPLE_BIT                0x20000000
   1.136 +#define GL_NORMAL_MAP                     0x8511
   1.137 +#define GL_REFLECTION_MAP                 0x8512
   1.138 +#define GL_COMPRESSED_ALPHA               0x84E9
   1.139 +#define GL_COMPRESSED_LUMINANCE           0x84EA
   1.140 +#define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
   1.141 +#define GL_COMPRESSED_INTENSITY           0x84EC
   1.142  #define GL_COMBINE                        0x8570
   1.143  #define GL_COMBINE_RGB                    0x8571
   1.144  #define GL_COMBINE_ALPHA                  0x8572
   1.145 @@ -330,16 +341,26 @@
   1.146  #define GL_BLEND_SRC_RGB                  0x80C9
   1.147  #define GL_BLEND_DST_ALPHA                0x80CA
   1.148  #define GL_BLEND_SRC_ALPHA                0x80CB
   1.149 -#define GL_POINT_SIZE_MIN                 0x8126
   1.150 -#define GL_POINT_SIZE_MAX                 0x8127
   1.151  #define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
   1.152 -#define GL_POINT_DISTANCE_ATTENUATION     0x8129
   1.153 -#define GL_GENERATE_MIPMAP                0x8191
   1.154 -#define GL_GENERATE_MIPMAP_HINT           0x8192
   1.155  #define GL_DEPTH_COMPONENT16              0x81A5
   1.156  #define GL_DEPTH_COMPONENT24              0x81A6
   1.157  #define GL_DEPTH_COMPONENT32              0x81A7
   1.158  #define GL_MIRRORED_REPEAT                0x8370
   1.159 +#define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
   1.160 +#define GL_TEXTURE_LOD_BIAS               0x8501
   1.161 +#define GL_INCR_WRAP                      0x8507
   1.162 +#define GL_DECR_WRAP                      0x8508
   1.163 +#define GL_TEXTURE_DEPTH_SIZE             0x884A
   1.164 +#define GL_TEXTURE_COMPARE_MODE           0x884C
   1.165 +#define GL_TEXTURE_COMPARE_FUNC           0x884D
   1.166 +#endif
   1.167 +
   1.168 +#ifndef GL_VERSION_1_4_DEPRECATED
   1.169 +#define GL_POINT_SIZE_MIN                 0x8126
   1.170 +#define GL_POINT_SIZE_MAX                 0x8127
   1.171 +#define GL_POINT_DISTANCE_ATTENUATION     0x8129
   1.172 +#define GL_GENERATE_MIPMAP                0x8191
   1.173 +#define GL_GENERATE_MIPMAP_HINT           0x8192
   1.174  #define GL_FOG_COORDINATE_SOURCE          0x8450
   1.175  #define GL_FOG_COORDINATE                 0x8451
   1.176  #define GL_FRAGMENT_DEPTH                 0x8452
   1.177 @@ -355,15 +376,8 @@
   1.178  #define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
   1.179  #define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
   1.180  #define GL_SECONDARY_COLOR_ARRAY          0x845E
   1.181 -#define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
   1.182  #define GL_TEXTURE_FILTER_CONTROL         0x8500
   1.183 -#define GL_TEXTURE_LOD_BIAS               0x8501
   1.184 -#define GL_INCR_WRAP                      0x8507
   1.185 -#define GL_DECR_WRAP                      0x8508
   1.186 -#define GL_TEXTURE_DEPTH_SIZE             0x884A
   1.187  #define GL_DEPTH_TEXTURE_MODE             0x884B
   1.188 -#define GL_TEXTURE_COMPARE_MODE           0x884C
   1.189 -#define GL_TEXTURE_COMPARE_FUNC           0x884D
   1.190  #define GL_COMPARE_R_TO_TEXTURE           0x884E
   1.191  #endif
   1.192  
   1.193 @@ -378,15 +392,6 @@
   1.194  #define GL_ELEMENT_ARRAY_BUFFER           0x8893
   1.195  #define GL_ARRAY_BUFFER_BINDING           0x8894
   1.196  #define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
   1.197 -#define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
   1.198 -#define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
   1.199 -#define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
   1.200 -#define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
   1.201 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
   1.202 -#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
   1.203 -#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
   1.204 -#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
   1.205 -#define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
   1.206  #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
   1.207  #define GL_READ_ONLY                      0x88B8
   1.208  #define GL_WRITE_ONLY                     0x88B9
   1.209 @@ -404,31 +409,42 @@
   1.210  #define GL_DYNAMIC_READ                   0x88E9
   1.211  #define GL_DYNAMIC_COPY                   0x88EA
   1.212  #define GL_SAMPLES_PASSED                 0x8914
   1.213 -#define GL_FOG_COORD_SRC                  GL_FOG_COORDINATE_SOURCE
   1.214 -#define GL_FOG_COORD                      GL_FOG_COORDINATE
   1.215 -#define GL_CURRENT_FOG_COORD              GL_CURRENT_FOG_COORDINATE
   1.216 -#define GL_FOG_COORD_ARRAY_TYPE           GL_FOG_COORDINATE_ARRAY_TYPE
   1.217 -#define GL_FOG_COORD_ARRAY_STRIDE         GL_FOG_COORDINATE_ARRAY_STRIDE
   1.218 -#define GL_FOG_COORD_ARRAY_POINTER        GL_FOG_COORDINATE_ARRAY_POINTER
   1.219 -#define GL_FOG_COORD_ARRAY                GL_FOG_COORDINATE_ARRAY
   1.220 -#define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
   1.221 -#define GL_SRC0_RGB                       GL_SOURCE0_RGB
   1.222 -#define GL_SRC1_RGB                       GL_SOURCE1_RGB
   1.223 -#define GL_SRC2_RGB                       GL_SOURCE2_RGB
   1.224 -#define GL_SRC0_ALPHA                     GL_SOURCE0_ALPHA
   1.225 -#define GL_SRC1_ALPHA                     GL_SOURCE1_ALPHA
   1.226 -#define GL_SRC2_ALPHA                     GL_SOURCE2_ALPHA
   1.227 +#endif
   1.228 +
   1.229 +#ifndef GL_VERSION_1_5_DEPRECATED
   1.230 +#define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
   1.231 +#define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
   1.232 +#define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
   1.233 +#define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
   1.234 +#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
   1.235 +#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
   1.236 +#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
   1.237 +#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
   1.238 +#define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
   1.239 +#define GL_FOG_COORD_SRC                  0x8450
   1.240 +#define GL_FOG_COORD                      0x8451
   1.241 +#define GL_CURRENT_FOG_COORD              0x8453
   1.242 +#define GL_FOG_COORD_ARRAY_TYPE           0x8454
   1.243 +#define GL_FOG_COORD_ARRAY_STRIDE         0x8455
   1.244 +#define GL_FOG_COORD_ARRAY_POINTER        0x8456
   1.245 +#define GL_FOG_COORD_ARRAY                0x8457
   1.246 +#define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
   1.247 +#define GL_SRC0_RGB                       0x8580
   1.248 +#define GL_SRC1_RGB                       0x8581
   1.249 +#define GL_SRC2_RGB                       0x8582
   1.250 +#define GL_SRC0_ALPHA                     0x8588
   1.251 +#define GL_SRC1_ALPHA                     0x8589
   1.252 +#define GL_SRC2_ALPHA                     0x858A
   1.253  #endif
   1.254  
   1.255  #ifndef GL_VERSION_2_0
   1.256 -#define GL_BLEND_EQUATION_RGB             GL_BLEND_EQUATION
   1.257 +#define GL_BLEND_EQUATION_RGB             0x8009
   1.258  #define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
   1.259  #define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
   1.260  #define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
   1.261  #define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
   1.262  #define GL_CURRENT_VERTEX_ATTRIB          0x8626
   1.263  #define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
   1.264 -#define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
   1.265  #define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
   1.266  #define GL_STENCIL_BACK_FUNC              0x8800
   1.267  #define GL_STENCIL_BACK_FAIL              0x8801
   1.268 @@ -452,11 +468,8 @@
   1.269  #define GL_DRAW_BUFFER14                  0x8833
   1.270  #define GL_DRAW_BUFFER15                  0x8834
   1.271  #define GL_BLEND_EQUATION_ALPHA           0x883D
   1.272 -#define GL_POINT_SPRITE                   0x8861
   1.273 -#define GL_COORD_REPLACE                  0x8862
   1.274  #define GL_MAX_VERTEX_ATTRIBS             0x8869
   1.275  #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
   1.276 -#define GL_MAX_TEXTURE_COORDS             0x8871
   1.277  #define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
   1.278  #define GL_FRAGMENT_SHADER                0x8B30
   1.279  #define GL_VERTEX_SHADER                  0x8B31
   1.280 @@ -507,8 +520,14 @@
   1.281  #define GL_STENCIL_BACK_WRITEMASK         0x8CA5
   1.282  #endif
   1.283  
   1.284 +#ifndef GL_VERSION_2_0_DEPRECATED
   1.285 +#define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
   1.286 +#define GL_POINT_SPRITE                   0x8861
   1.287 +#define GL_COORD_REPLACE                  0x8862
   1.288 +#define GL_MAX_TEXTURE_COORDS             0x8871
   1.289 +#endif
   1.290 +
   1.291  #ifndef GL_VERSION_2_1
   1.292 -#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
   1.293  #define GL_PIXEL_PACK_BUFFER              0x88EB
   1.294  #define GL_PIXEL_UNPACK_BUFFER            0x88EC
   1.295  #define GL_PIXEL_PACK_BUFFER_BINDING      0x88ED
   1.296 @@ -523,25 +542,31 @@
   1.297  #define GL_SRGB8                          0x8C41
   1.298  #define GL_SRGB_ALPHA                     0x8C42
   1.299  #define GL_SRGB8_ALPHA8                   0x8C43
   1.300 +#define GL_COMPRESSED_SRGB                0x8C48
   1.301 +#define GL_COMPRESSED_SRGB_ALPHA          0x8C49
   1.302 +#endif
   1.303 +
   1.304 +#ifndef GL_VERSION_2_1_DEPRECATED
   1.305 +#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
   1.306  #define GL_SLUMINANCE_ALPHA               0x8C44
   1.307  #define GL_SLUMINANCE8_ALPHA8             0x8C45
   1.308  #define GL_SLUMINANCE                     0x8C46
   1.309  #define GL_SLUMINANCE8                    0x8C47
   1.310 -#define GL_COMPRESSED_SRGB                0x8C48
   1.311 -#define GL_COMPRESSED_SRGB_ALPHA          0x8C49
   1.312  #define GL_COMPRESSED_SLUMINANCE          0x8C4A
   1.313  #define GL_COMPRESSED_SLUMINANCE_ALPHA    0x8C4B
   1.314  #endif
   1.315  
   1.316  #ifndef GL_VERSION_3_0
   1.317 -#define GL_COMPARE_REF_TO_TEXTURE         GL_COMPARE_R_TO_TEXTURE_ARB
   1.318 -#define GL_CLIP_DISTANCE0                 GL_CLIP_PLANE0
   1.319 -#define GL_CLIP_DISTANCE1                 GL_CLIP_PLANE1
   1.320 -#define GL_CLIP_DISTANCE2                 GL_CLIP_PLANE2
   1.321 -#define GL_CLIP_DISTANCE3                 GL_CLIP_PLANE3
   1.322 -#define GL_CLIP_DISTANCE4                 GL_CLIP_PLANE4
   1.323 -#define GL_CLIP_DISTANCE5                 GL_CLIP_PLANE5
   1.324 -#define GL_MAX_CLIP_DISTANCES             GL_MAX_CLIP_PLANES
   1.325 +#define GL_COMPARE_REF_TO_TEXTURE         0x884E
   1.326 +#define GL_CLIP_DISTANCE0                 0x3000
   1.327 +#define GL_CLIP_DISTANCE1                 0x3001
   1.328 +#define GL_CLIP_DISTANCE2                 0x3002
   1.329 +#define GL_CLIP_DISTANCE3                 0x3003
   1.330 +#define GL_CLIP_DISTANCE4                 0x3004
   1.331 +#define GL_CLIP_DISTANCE5                 0x3005
   1.332 +#define GL_CLIP_DISTANCE6                 0x3006
   1.333 +#define GL_CLIP_DISTANCE7                 0x3007
   1.334 +#define GL_MAX_CLIP_DISTANCES             0x0D32
   1.335  #define GL_MAJOR_VERSION                  0x821B
   1.336  #define GL_MINOR_VERSION                  0x821C
   1.337  #define GL_NUM_EXTENSIONS                 0x821D
   1.338 @@ -559,19 +584,9 @@
   1.339  #define GL_MAX_ARRAY_TEXTURE_LAYERS       0x88FF
   1.340  #define GL_MIN_PROGRAM_TEXEL_OFFSET       0x8904
   1.341  #define GL_MAX_PROGRAM_TEXEL_OFFSET       0x8905
   1.342 -#define GL_CLAMP_VERTEX_COLOR             0x891A
   1.343 -#define GL_CLAMP_FRAGMENT_COLOR           0x891B
   1.344  #define GL_CLAMP_READ_COLOR               0x891C
   1.345  #define GL_FIXED_ONLY                     0x891D
   1.346 -#define GL_MAX_VARYING_COMPONENTS         GL_MAX_VARYING_FLOATS
   1.347 -#define GL_TEXTURE_RED_TYPE               0x8C10
   1.348 -#define GL_TEXTURE_GREEN_TYPE             0x8C11
   1.349 -#define GL_TEXTURE_BLUE_TYPE              0x8C12
   1.350 -#define GL_TEXTURE_ALPHA_TYPE             0x8C13
   1.351 -#define GL_TEXTURE_LUMINANCE_TYPE         0x8C14
   1.352 -#define GL_TEXTURE_INTENSITY_TYPE         0x8C15
   1.353 -#define GL_TEXTURE_DEPTH_TYPE             0x8C16
   1.354 -#define GL_UNSIGNED_NORMALIZED            0x8C17
   1.355 +#define GL_MAX_VARYING_COMPONENTS         0x8B4B
   1.356  #define GL_TEXTURE_1D_ARRAY               0x8C18
   1.357  #define GL_PROXY_TEXTURE_1D_ARRAY         0x8C19
   1.358  #define GL_TEXTURE_2D_ARRAY               0x8C1A
   1.359 @@ -613,7 +628,6 @@
   1.360  #define GL_RED_INTEGER                    0x8D94
   1.361  #define GL_GREEN_INTEGER                  0x8D95
   1.362  #define GL_BLUE_INTEGER                   0x8D96
   1.363 -#define GL_ALPHA_INTEGER                  0x8D97
   1.364  #define GL_RGB_INTEGER                    0x8D98
   1.365  #define GL_RGBA_INTEGER                   0x8D99
   1.366  #define GL_BGR_INTEGER                    0x8D9A
   1.367 @@ -642,6 +656,9 @@
   1.368  #define GL_QUERY_NO_WAIT                  0x8E14
   1.369  #define GL_QUERY_BY_REGION_WAIT           0x8E15
   1.370  #define GL_QUERY_BY_REGION_NO_WAIT        0x8E16
   1.371 +#define GL_BUFFER_ACCESS_FLAGS            0x911F
   1.372 +#define GL_BUFFER_MAP_LENGTH              0x9120
   1.373 +#define GL_BUFFER_MAP_OFFSET              0x9121
   1.374  /* Reuse tokens from ARB_depth_buffer_float */
   1.375  /* reuse GL_DEPTH_COMPONENT32F */
   1.376  /* reuse GL_DEPTH32F_STENCIL8 */
   1.377 @@ -669,8 +686,6 @@
   1.378  /* reuse GL_TEXTURE_GREEN_TYPE */
   1.379  /* reuse GL_TEXTURE_BLUE_TYPE */
   1.380  /* reuse GL_TEXTURE_ALPHA_TYPE */
   1.381 -/* reuse GL_TEXTURE_LUMINANCE_TYPE */
   1.382 -/* reuse GL_TEXTURE_INTENSITY_TYPE */
   1.383  /* reuse GL_TEXTURE_DEPTH_TYPE */
   1.384  /* reuse GL_UNSIGNED_NORMALIZED */
   1.385  /* reuse GL_FRAMEBUFFER_BINDING */
   1.386 @@ -770,6 +785,162 @@
   1.387  /* reuse GL_VERTEX_ARRAY_BINDING */
   1.388  #endif
   1.389  
   1.390 +#ifndef GL_VERSION_3_0_DEPRECATED
   1.391 +#define GL_CLAMP_VERTEX_COLOR             0x891A
   1.392 +#define GL_CLAMP_FRAGMENT_COLOR           0x891B
   1.393 +#define GL_ALPHA_INTEGER                  0x8D97
   1.394 +/* Reuse tokens from ARB_framebuffer_object */
   1.395 +/* reuse GL_TEXTURE_LUMINANCE_TYPE */
   1.396 +/* reuse GL_TEXTURE_INTENSITY_TYPE */
   1.397 +#endif
   1.398 +
   1.399 +#ifndef GL_VERSION_3_1
   1.400 +#define GL_SAMPLER_2D_RECT                0x8B63
   1.401 +#define GL_SAMPLER_2D_RECT_SHADOW         0x8B64
   1.402 +#define GL_SAMPLER_BUFFER                 0x8DC2
   1.403 +#define GL_INT_SAMPLER_2D_RECT            0x8DCD
   1.404 +#define GL_INT_SAMPLER_BUFFER             0x8DD0
   1.405 +#define GL_UNSIGNED_INT_SAMPLER_2D_RECT   0x8DD5
   1.406 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER    0x8DD8
   1.407 +#define GL_TEXTURE_BUFFER                 0x8C2A
   1.408 +#define GL_MAX_TEXTURE_BUFFER_SIZE        0x8C2B
   1.409 +#define GL_TEXTURE_BINDING_BUFFER         0x8C2C
   1.410 +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
   1.411 +#define GL_TEXTURE_BUFFER_FORMAT          0x8C2E
   1.412 +#define GL_TEXTURE_RECTANGLE              0x84F5
   1.413 +#define GL_TEXTURE_BINDING_RECTANGLE      0x84F6
   1.414 +#define GL_PROXY_TEXTURE_RECTANGLE        0x84F7
   1.415 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE     0x84F8
   1.416 +#define GL_RED_SNORM                      0x8F90
   1.417 +#define GL_RG_SNORM                       0x8F91
   1.418 +#define GL_RGB_SNORM                      0x8F92
   1.419 +#define GL_RGBA_SNORM                     0x8F93
   1.420 +#define GL_R8_SNORM                       0x8F94
   1.421 +#define GL_RG8_SNORM                      0x8F95
   1.422 +#define GL_RGB8_SNORM                     0x8F96
   1.423 +#define GL_RGBA8_SNORM                    0x8F97
   1.424 +#define GL_R16_SNORM                      0x8F98
   1.425 +#define GL_RG16_SNORM                     0x8F99
   1.426 +#define GL_RGB16_SNORM                    0x8F9A
   1.427 +#define GL_RGBA16_SNORM                   0x8F9B
   1.428 +#define GL_SIGNED_NORMALIZED              0x8F9C
   1.429 +#define GL_PRIMITIVE_RESTART              0x8F9D
   1.430 +#define GL_PRIMITIVE_RESTART_INDEX        0x8F9E
   1.431 +/* Reuse tokens from ARB_copy_buffer */
   1.432 +/* reuse GL_COPY_READ_BUFFER */
   1.433 +/* reuse GL_COPY_WRITE_BUFFER */
   1.434 +/* Would reuse tokens from ARB_draw_instanced, but it has none */
   1.435 +/* Reuse tokens from ARB_uniform_buffer_object */
   1.436 +/* reuse GL_UNIFORM_BUFFER */
   1.437 +/* reuse GL_UNIFORM_BUFFER_BINDING */
   1.438 +/* reuse GL_UNIFORM_BUFFER_START */
   1.439 +/* reuse GL_UNIFORM_BUFFER_SIZE */
   1.440 +/* reuse GL_MAX_VERTEX_UNIFORM_BLOCKS */
   1.441 +/* reuse GL_MAX_FRAGMENT_UNIFORM_BLOCKS */
   1.442 +/* reuse GL_MAX_COMBINED_UNIFORM_BLOCKS */
   1.443 +/* reuse GL_MAX_UNIFORM_BUFFER_BINDINGS */
   1.444 +/* reuse GL_MAX_UNIFORM_BLOCK_SIZE */
   1.445 +/* reuse GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS */
   1.446 +/* reuse GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS */
   1.447 +/* reuse GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT */
   1.448 +/* reuse GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */
   1.449 +/* reuse GL_ACTIVE_UNIFORM_BLOCKS */
   1.450 +/* reuse GL_UNIFORM_TYPE */
   1.451 +/* reuse GL_UNIFORM_SIZE */
   1.452 +/* reuse GL_UNIFORM_NAME_LENGTH */
   1.453 +/* reuse GL_UNIFORM_BLOCK_INDEX */
   1.454 +/* reuse GL_UNIFORM_OFFSET */
   1.455 +/* reuse GL_UNIFORM_ARRAY_STRIDE */
   1.456 +/* reuse GL_UNIFORM_MATRIX_STRIDE */
   1.457 +/* reuse GL_UNIFORM_IS_ROW_MAJOR */
   1.458 +/* reuse GL_UNIFORM_BLOCK_BINDING */
   1.459 +/* reuse GL_UNIFORM_BLOCK_DATA_SIZE */
   1.460 +/* reuse GL_UNIFORM_BLOCK_NAME_LENGTH */
   1.461 +/* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS */
   1.462 +/* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES */
   1.463 +/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER */
   1.464 +/* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER */
   1.465 +/* reuse GL_INVALID_INDEX */
   1.466 +#endif
   1.467 +
   1.468 +#ifndef GL_VERSION_3_2
   1.469 +#define GL_CONTEXT_CORE_PROFILE_BIT       0x00000001
   1.470 +#define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
   1.471 +#define GL_LINES_ADJACENCY                0x000A
   1.472 +#define GL_LINE_STRIP_ADJACENCY           0x000B
   1.473 +#define GL_TRIANGLES_ADJACENCY            0x000C
   1.474 +#define GL_TRIANGLE_STRIP_ADJACENCY       0x000D
   1.475 +#define GL_PROGRAM_POINT_SIZE             0x8642
   1.476 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
   1.477 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
   1.478 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
   1.479 +#define GL_GEOMETRY_SHADER                0x8DD9
   1.480 +#define GL_GEOMETRY_VERTICES_OUT          0x8916
   1.481 +#define GL_GEOMETRY_INPUT_TYPE            0x8917
   1.482 +#define GL_GEOMETRY_OUTPUT_TYPE           0x8918
   1.483 +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
   1.484 +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES   0x8DE0
   1.485 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
   1.486 +#define GL_MAX_VERTEX_OUTPUT_COMPONENTS   0x9122
   1.487 +#define GL_MAX_GEOMETRY_INPUT_COMPONENTS  0x9123
   1.488 +#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
   1.489 +#define GL_MAX_FRAGMENT_INPUT_COMPONENTS  0x9125
   1.490 +#define GL_CONTEXT_PROFILE_MASK           0x9126
   1.491 +/* reuse GL_MAX_VARYING_COMPONENTS */
   1.492 +/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
   1.493 +/* Reuse tokens from ARB_depth_clamp */
   1.494 +/* reuse GL_DEPTH_CLAMP */
   1.495 +/* Would reuse tokens from ARB_draw_elements_base_vertex, but it has none */
   1.496 +/* Would reuse tokens from ARB_fragment_coord_conventions, but it has none */
   1.497 +/* Reuse tokens from ARB_provoking_vertex */
   1.498 +/* reuse GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION */
   1.499 +/* reuse GL_FIRST_VERTEX_CONVENTION */
   1.500 +/* reuse GL_LAST_VERTEX_CONVENTION */
   1.501 +/* reuse GL_PROVOKING_VERTEX */
   1.502 +/* Reuse tokens from ARB_seamless_cube_map */
   1.503 +/* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS */
   1.504 +/* Reuse tokens from ARB_sync */
   1.505 +/* reuse GL_MAX_SERVER_WAIT_TIMEOUT */
   1.506 +/* reuse GL_OBJECT_TYPE */
   1.507 +/* reuse GL_SYNC_CONDITION */
   1.508 +/* reuse GL_SYNC_STATUS */
   1.509 +/* reuse GL_SYNC_FLAGS */
   1.510 +/* reuse GL_SYNC_FENCE */
   1.511 +/* reuse GL_SYNC_GPU_COMMANDS_COMPLETE */
   1.512 +/* reuse GL_UNSIGNALED */
   1.513 +/* reuse GL_SIGNALED */
   1.514 +/* reuse GL_ALREADY_SIGNALED */
   1.515 +/* reuse GL_TIMEOUT_EXPIRED */
   1.516 +/* reuse GL_CONDITION_SATISFIED */
   1.517 +/* reuse GL_WAIT_FAILED */
   1.518 +/* reuse GL_TIMEOUT_IGNORED */
   1.519 +/* reuse GL_SYNC_FLUSH_COMMANDS_BIT */
   1.520 +/* reuse GL_TIMEOUT_IGNORED */
   1.521 +/* Reuse tokens from ARB_texture_multisample */
   1.522 +/* reuse GL_SAMPLE_POSITION */
   1.523 +/* reuse GL_SAMPLE_MASK */
   1.524 +/* reuse GL_SAMPLE_MASK_VALUE */
   1.525 +/* reuse GL_MAX_SAMPLE_MASK_WORDS */
   1.526 +/* reuse GL_TEXTURE_2D_MULTISAMPLE */
   1.527 +/* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE */
   1.528 +/* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
   1.529 +/* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY */
   1.530 +/* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE */
   1.531 +/* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY */
   1.532 +/* reuse GL_TEXTURE_SAMPLES */
   1.533 +/* reuse GL_TEXTURE_FIXED_SAMPLE_LOCATIONS */
   1.534 +/* reuse GL_SAMPLER_2D_MULTISAMPLE */
   1.535 +/* reuse GL_INT_SAMPLER_2D_MULTISAMPLE */
   1.536 +/* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE */
   1.537 +/* reuse GL_SAMPLER_2D_MULTISAMPLE_ARRAY */
   1.538 +/* reuse GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
   1.539 +/* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
   1.540 +/* reuse GL_MAX_COLOR_TEXTURE_SAMPLES */
   1.541 +/* reuse GL_MAX_DEPTH_TEXTURE_SAMPLES */
   1.542 +/* reuse GL_MAX_INTEGER_SAMPLES */
   1.543 +/* Don't need to reuse tokens from ARB_vertex_array_bgra since they're already in 1.2 core */
   1.544 +#endif
   1.545 +
   1.546  #ifndef GL_ARB_multitexture
   1.547  #define GL_TEXTURE0_ARB                   0x84C0
   1.548  #define GL_TEXTURE1_ARB                   0x84C1
   1.549 @@ -1287,12 +1458,17 @@
   1.550  #define GL_FRAMEBUFFER_DEFAULT            0x8218
   1.551  #define GL_FRAMEBUFFER_UNDEFINED          0x8219
   1.552  #define GL_DEPTH_STENCIL_ATTACHMENT       0x821A
   1.553 -#define GL_INDEX                          0x8222
   1.554  #define GL_MAX_RENDERBUFFER_SIZE          0x84E8
   1.555  #define GL_DEPTH_STENCIL                  0x84F9
   1.556  #define GL_UNSIGNED_INT_24_8              0x84FA
   1.557  #define GL_DEPTH24_STENCIL8               0x88F0
   1.558  #define GL_TEXTURE_STENCIL_SIZE           0x88F1
   1.559 +#define GL_TEXTURE_RED_TYPE               0x8C10
   1.560 +#define GL_TEXTURE_GREEN_TYPE             0x8C11
   1.561 +#define GL_TEXTURE_BLUE_TYPE              0x8C12
   1.562 +#define GL_TEXTURE_ALPHA_TYPE             0x8C13
   1.563 +#define GL_TEXTURE_DEPTH_TYPE             0x8C16
   1.564 +#define GL_UNSIGNED_NORMALIZED            0x8C17
   1.565  #define GL_FRAMEBUFFER_BINDING            0x8CA6
   1.566  #define GL_DRAW_FRAMEBUFFER_BINDING       GL_FRAMEBUFFER_BINDING
   1.567  #define GL_RENDERBUFFER_BINDING           0x8CA7
   1.568 @@ -1349,6 +1525,12 @@
   1.569  #define GL_MAX_SAMPLES                    0x8D57
   1.570  #endif
   1.571  
   1.572 +#ifndef GL_ARB_framebuffer_object_DEPRECATED
   1.573 +#define GL_INDEX                          0x8222
   1.574 +#define GL_TEXTURE_LUMINANCE_TYPE         0x8C14
   1.575 +#define GL_TEXTURE_INTENSITY_TYPE         0x8C15
   1.576 +#endif
   1.577 +
   1.578  #ifndef GL_ARB_framebuffer_sRGB
   1.579  #define GL_FRAMEBUFFER_SRGB               0x8DB9
   1.580  #endif
   1.581 @@ -1381,6 +1563,7 @@
   1.582  #endif
   1.583  
   1.584  #ifndef GL_ARB_instanced_arrays
   1.585 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
   1.586  #endif
   1.587  
   1.588  #ifndef GL_ARB_map_buffer_range
   1.589 @@ -1436,6 +1619,148 @@
   1.590  #define GL_VERTEX_ARRAY_BINDING           0x85B5
   1.591  #endif
   1.592  
   1.593 +#ifndef GL_ARB_uniform_buffer_object
   1.594 +#define GL_UNIFORM_BUFFER                 0x8A11
   1.595 +#define GL_UNIFORM_BUFFER_BINDING         0x8A28
   1.596 +#define GL_UNIFORM_BUFFER_START           0x8A29
   1.597 +#define GL_UNIFORM_BUFFER_SIZE            0x8A2A
   1.598 +#define GL_MAX_VERTEX_UNIFORM_BLOCKS      0x8A2B
   1.599 +#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS    0x8A2C
   1.600 +#define GL_MAX_FRAGMENT_UNIFORM_BLOCKS    0x8A2D
   1.601 +#define GL_MAX_COMBINED_UNIFORM_BLOCKS    0x8A2E
   1.602 +#define GL_MAX_UNIFORM_BUFFER_BINDINGS    0x8A2F
   1.603 +#define GL_MAX_UNIFORM_BLOCK_SIZE         0x8A30
   1.604 +#define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
   1.605 +#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
   1.606 +#define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
   1.607 +#define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
   1.608 +#define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
   1.609 +#define GL_ACTIVE_UNIFORM_BLOCKS          0x8A36
   1.610 +#define GL_UNIFORM_TYPE                   0x8A37
   1.611 +#define GL_UNIFORM_SIZE                   0x8A38
   1.612 +#define GL_UNIFORM_NAME_LENGTH            0x8A39
   1.613 +#define GL_UNIFORM_BLOCK_INDEX            0x8A3A
   1.614 +#define GL_UNIFORM_OFFSET                 0x8A3B
   1.615 +#define GL_UNIFORM_ARRAY_STRIDE           0x8A3C
   1.616 +#define GL_UNIFORM_MATRIX_STRIDE          0x8A3D
   1.617 +#define GL_UNIFORM_IS_ROW_MAJOR           0x8A3E
   1.618 +#define GL_UNIFORM_BLOCK_BINDING          0x8A3F
   1.619 +#define GL_UNIFORM_BLOCK_DATA_SIZE        0x8A40
   1.620 +#define GL_UNIFORM_BLOCK_NAME_LENGTH      0x8A41
   1.621 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS  0x8A42
   1.622 +#define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
   1.623 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
   1.624 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
   1.625 +#define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
   1.626 +#define GL_INVALID_INDEX                  0xFFFFFFFFu
   1.627 +#endif
   1.628 +
   1.629 +#ifndef GL_ARB_compatibility
   1.630 +/* ARB_compatibility just defines tokens from core 3.0 */
   1.631 +#endif
   1.632 +
   1.633 +#ifndef GL_ARB_copy_buffer
   1.634 +#define GL_COPY_READ_BUFFER               0x8F36
   1.635 +#define GL_COPY_WRITE_BUFFER              0x8F37
   1.636 +#endif
   1.637 +
   1.638 +#ifndef GL_ARB_shader_texture_lod
   1.639 +#endif
   1.640 +
   1.641 +#ifndef GL_ARB_depth_clamp
   1.642 +#define GL_DEPTH_CLAMP                    0x864F
   1.643 +#endif
   1.644 +
   1.645 +#ifndef GL_ARB_draw_elements_base_vertex
   1.646 +#endif
   1.647 +
   1.648 +#ifndef GL_ARB_fragment_coord_conventions
   1.649 +#endif
   1.650 +
   1.651 +#ifndef GL_ARB_provoking_vertex
   1.652 +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
   1.653 +#define GL_FIRST_VERTEX_CONVENTION        0x8E4D
   1.654 +#define GL_LAST_VERTEX_CONVENTION         0x8E4E
   1.655 +#define GL_PROVOKING_VERTEX               0x8E4F
   1.656 +#endif
   1.657 +
   1.658 +#ifndef GL_ARB_seamless_cube_map
   1.659 +#define GL_TEXTURE_CUBE_MAP_SEAMLESS      0x884F
   1.660 +#endif
   1.661 +
   1.662 +#ifndef GL_ARB_sync
   1.663 +#define GL_MAX_SERVER_WAIT_TIMEOUT        0x9111
   1.664 +#define GL_OBJECT_TYPE                    0x9112
   1.665 +#define GL_SYNC_CONDITION                 0x9113
   1.666 +#define GL_SYNC_STATUS                    0x9114
   1.667 +#define GL_SYNC_FLAGS                     0x9115
   1.668 +#define GL_SYNC_FENCE                     0x9116
   1.669 +#define GL_SYNC_GPU_COMMANDS_COMPLETE     0x9117
   1.670 +#define GL_UNSIGNALED                     0x9118
   1.671 +#define GL_SIGNALED                       0x9119
   1.672 +#define GL_ALREADY_SIGNALED               0x911A
   1.673 +#define GL_TIMEOUT_EXPIRED                0x911B
   1.674 +#define GL_CONDITION_SATISFIED            0x911C
   1.675 +#define GL_WAIT_FAILED                    0x911D
   1.676 +#define GL_SYNC_FLUSH_COMMANDS_BIT        0x00000001
   1.677 +#define GL_TIMEOUT_IGNORED                0xFFFFFFFFFFFFFFFFull
   1.678 +#endif
   1.679 +
   1.680 +#ifndef GL_ARB_texture_multisample
   1.681 +#define GL_SAMPLE_POSITION                0x8E50
   1.682 +#define GL_SAMPLE_MASK                    0x8E51
   1.683 +#define GL_SAMPLE_MASK_VALUE              0x8E52
   1.684 +#define GL_MAX_SAMPLE_MASK_WORDS          0x8E59
   1.685 +#define GL_TEXTURE_2D_MULTISAMPLE         0x9100
   1.686 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE   0x9101
   1.687 +#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY   0x9102
   1.688 +#define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
   1.689 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
   1.690 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
   1.691 +#define GL_TEXTURE_SAMPLES                0x9106
   1.692 +#define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
   1.693 +#define GL_SAMPLER_2D_MULTISAMPLE         0x9108
   1.694 +#define GL_INT_SAMPLER_2D_MULTISAMPLE     0x9109
   1.695 +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
   1.696 +#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY   0x910B
   1.697 +#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
   1.698 +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
   1.699 +#define GL_MAX_COLOR_TEXTURE_SAMPLES      0x910E
   1.700 +#define GL_MAX_DEPTH_TEXTURE_SAMPLES      0x910F
   1.701 +#define GL_MAX_INTEGER_SAMPLES            0x9110
   1.702 +#endif
   1.703 +
   1.704 +#ifndef GL_ARB_vertex_array_bgra
   1.705 +/* reuse GL_BGRA */
   1.706 +#endif
   1.707 +
   1.708 +#ifndef GL_ARB_draw_buffers_blend
   1.709 +#endif
   1.710 +
   1.711 +#ifndef GL_ARB_sample_shading
   1.712 +#define GL_SAMPLE_SHADING                 0x8C36
   1.713 +#define GL_MIN_SAMPLE_SHADING_VALUE       0x8C37
   1.714 +#endif
   1.715 +
   1.716 +#ifndef GL_ARB_texture_cube_map_array
   1.717 +#define GL_TEXTURE_CUBE_MAP_ARRAY         0x9009
   1.718 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
   1.719 +#define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY   0x900B
   1.720 +#define GL_SAMPLER_CUBE_MAP_ARRAY         0x900C
   1.721 +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW  0x900D
   1.722 +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY     0x900E
   1.723 +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
   1.724 +#endif
   1.725 +
   1.726 +#ifndef GL_ARB_texture_gather
   1.727 +#define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
   1.728 +#define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
   1.729 +#define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS 0x8F9F
   1.730 +#endif
   1.731 +
   1.732 +#ifndef GL_ARB_texture_query_lod
   1.733 +#endif
   1.734 +
   1.735  #ifndef GL_EXT_abgr
   1.736  #define GL_ABGR_EXT                       0x8000
   1.737  #endif
   1.738 @@ -3421,7 +3746,7 @@
   1.739  #endif
   1.740  
   1.741  #ifndef GL_EXT_blend_equation_separate
   1.742 -#define GL_BLEND_EQUATION_RGB_EXT         GL_BLEND_EQUATION
   1.743 +#define GL_BLEND_EQUATION_RGB_EXT         0x8009
   1.744  #define GL_BLEND_EQUATION_ALPHA_EXT       0x883D
   1.745  #endif
   1.746  
   1.747 @@ -3902,11 +4227,11 @@
   1.748  #define GL_SAMPLE_MASK_VALUE_NV           0x8E52
   1.749  #define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53
   1.750  #define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54
   1.751 -#define GL_MAX_SAMPLE_MASK_WORDS_NV       0x8E59
   1.752  #define GL_TEXTURE_RENDERBUFFER_NV        0x8E55
   1.753  #define GL_SAMPLER_RENDERBUFFER_NV        0x8E56
   1.754  #define GL_INT_SAMPLER_RENDERBUFFER_NV    0x8E57
   1.755  #define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58
   1.756 +#define GL_MAX_SAMPLE_MASK_WORDS_NV       0x8E59
   1.757  #endif
   1.758  
   1.759  #ifndef GL_NV_transform_feedback2
   1.760 @@ -3916,13 +4241,137 @@
   1.761  #define GL_TRANSFORM_FEEDBACK_BINDING_NV  0x8E25
   1.762  #endif
   1.763  
   1.764 +#ifndef GL_ATI_meminfo
   1.765 +#define GL_VBO_FREE_MEMORY_ATI            0x87FB
   1.766 +#define GL_TEXTURE_FREE_MEMORY_ATI        0x87FC
   1.767 +#define GL_RENDERBUFFER_FREE_MEMORY_ATI   0x87FD
   1.768 +#endif
   1.769 +
   1.770 +#ifndef GL_AMD_performance_monitor
   1.771 +#define GL_COUNTER_TYPE_AMD               0x8BC0
   1.772 +#define GL_COUNTER_RANGE_AMD              0x8BC1
   1.773 +#define GL_UNSIGNED_INT64_AMD             0x8BC2
   1.774 +#define GL_PERCENTAGE_AMD                 0x8BC3
   1.775 +#define GL_PERFMON_RESULT_AVAILABLE_AMD   0x8BC4
   1.776 +#define GL_PERFMON_RESULT_SIZE_AMD        0x8BC5
   1.777 +#define GL_PERFMON_RESULT_AMD             0x8BC6
   1.778 +#endif
   1.779 +
   1.780 +#ifndef GL_AMD_texture_texture4
   1.781 +#endif
   1.782 +
   1.783 +#ifndef GL_AMD_vertex_shader_tesselator
   1.784 +#define GL_SAMPLER_BUFFER_AMD             0x9001
   1.785 +#define GL_INT_SAMPLER_BUFFER_AMD         0x9002
   1.786 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003
   1.787 +#define GL_TESSELLATION_MODE_AMD          0x9004
   1.788 +#define GL_TESSELLATION_FACTOR_AMD        0x9005
   1.789 +#define GL_DISCRETE_AMD                   0x9006
   1.790 +#define GL_CONTINUOUS_AMD                 0x9007
   1.791 +#endif
   1.792 +
   1.793 +#ifndef GL_EXT_provoking_vertex
   1.794 +#define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C
   1.795 +#define GL_FIRST_VERTEX_CONVENTION_EXT    0x8E4D
   1.796 +#define GL_LAST_VERTEX_CONVENTION_EXT     0x8E4E
   1.797 +#define GL_PROVOKING_VERTEX_EXT           0x8E4F
   1.798 +#endif
   1.799 +
   1.800 +#ifndef GL_EXT_texture_snorm
   1.801 +#define GL_ALPHA_SNORM                    0x9010
   1.802 +#define GL_LUMINANCE_SNORM                0x9011
   1.803 +#define GL_LUMINANCE_ALPHA_SNORM          0x9012
   1.804 +#define GL_INTENSITY_SNORM                0x9013
   1.805 +#define GL_ALPHA8_SNORM                   0x9014
   1.806 +#define GL_LUMINANCE8_SNORM               0x9015
   1.807 +#define GL_LUMINANCE8_ALPHA8_SNORM        0x9016
   1.808 +#define GL_INTENSITY8_SNORM               0x9017
   1.809 +#define GL_ALPHA16_SNORM                  0x9018
   1.810 +#define GL_LUMINANCE16_SNORM              0x9019
   1.811 +#define GL_LUMINANCE16_ALPHA16_SNORM      0x901A
   1.812 +#define GL_INTENSITY16_SNORM              0x901B
   1.813 +/* reuse GL_R_SNORM */
   1.814 +/* reuse GL_RG_SNORM */
   1.815 +/* reuse GL_RGB_SNORM */
   1.816 +/* reuse GL_RGBA_SNORM */
   1.817 +/* reuse GL_R8_SNORM */
   1.818 +/* reuse GL_RG8_SNORM */
   1.819 +/* reuse GL_RGB8_SNORM */
   1.820 +/* reuse GL_RGBA8_SNORM */
   1.821 +/* reuse GL_R16_SNORM */
   1.822 +/* reuse GL_RG16_SNORM */
   1.823 +/* reuse GL_RGB16_SNORM */
   1.824 +/* reuse GL_RGBA16_SNORM */
   1.825 +/* reuse GL_SIGNED_NORMALIZED */
   1.826 +#endif
   1.827 +
   1.828 +#ifndef GL_AMD_draw_buffers_blend
   1.829 +#endif
   1.830 +
   1.831 +#ifndef GL_APPLE_texture_range
   1.832 +#define GL_TEXTURE_RANGE_LENGTH_APPLE     0x85B7
   1.833 +#define GL_TEXTURE_RANGE_POINTER_APPLE    0x85B8
   1.834 +#define GL_TEXTURE_STORAGE_HINT_APPLE     0x85BC
   1.835 +#define GL_STORAGE_PRIVATE_APPLE          0x85BD
   1.836 +/* reuse GL_STORAGE_CACHED_APPLE */
   1.837 +/* reuse GL_STORAGE_SHARED_APPLE */
   1.838 +#endif
   1.839 +
   1.840 +#ifndef GL_APPLE_float_pixels
   1.841 +#define GL_HALF_APPLE                     0x140B
   1.842 +#define GL_RGBA_FLOAT32_APPLE             0x8814
   1.843 +#define GL_RGB_FLOAT32_APPLE              0x8815
   1.844 +#define GL_ALPHA_FLOAT32_APPLE            0x8816
   1.845 +#define GL_INTENSITY_FLOAT32_APPLE        0x8817
   1.846 +#define GL_LUMINANCE_FLOAT32_APPLE        0x8818
   1.847 +#define GL_LUMINANCE_ALPHA_FLOAT32_APPLE  0x8819
   1.848 +#define GL_RGBA_FLOAT16_APPLE             0x881A
   1.849 +#define GL_RGB_FLOAT16_APPLE              0x881B
   1.850 +#define GL_ALPHA_FLOAT16_APPLE            0x881C
   1.851 +#define GL_INTENSITY_FLOAT16_APPLE        0x881D
   1.852 +#define GL_LUMINANCE_FLOAT16_APPLE        0x881E
   1.853 +#define GL_LUMINANCE_ALPHA_FLOAT16_APPLE  0x881F
   1.854 +#define GL_COLOR_FLOAT_APPLE              0x8A0F
   1.855 +#endif
   1.856 +
   1.857 +#ifndef GL_APPLE_vertex_program_evaluators
   1.858 +#define GL_VERTEX_ATTRIB_MAP1_APPLE       0x8A00
   1.859 +#define GL_VERTEX_ATTRIB_MAP2_APPLE       0x8A01
   1.860 +#define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE  0x8A02
   1.861 +#define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03
   1.862 +#define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04
   1.863 +#define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05
   1.864 +#define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE  0x8A06
   1.865 +#define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07
   1.866 +#define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08
   1.867 +#define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09
   1.868 +#endif
   1.869 +
   1.870 +#ifndef GL_APPLE_aux_depth_stencil
   1.871 +#define GL_AUX_DEPTH_STENCIL_APPLE        0x8A14
   1.872 +#endif
   1.873 +
   1.874 +#ifndef GL_APPLE_object_purgeable
   1.875 +#define GL_BUFFER_OBJECT_APPLE            0x85B3
   1.876 +#define GL_RELEASED_APPLE                 0x8A19
   1.877 +#define GL_VOLATILE_APPLE                 0x8A1A
   1.878 +#define GL_RETAINED_APPLE                 0x8A1B
   1.879 +#define GL_UNDEFINED_APPLE                0x8A1C
   1.880 +#define GL_PURGEABLE_APPLE                0x8A1D
   1.881 +#endif
   1.882 +
   1.883 +#ifndef GL_APPLE_row_bytes
   1.884 +#define GL_PACK_ROW_BYTES_APPLE           0x8A15
   1.885 +#define GL_UNPACK_ROW_BYTES_APPLE         0x8A16
   1.886 +#endif
   1.887 +
   1.888  
   1.889  /*************************************************************/
   1.890  
   1.891  #include <stddef.h>
   1.892  #ifndef GL_VERSION_2_0
   1.893  /* GL type for program/shader text */
   1.894 -typedef char GLchar;			/* native character */
   1.895 +typedef char GLchar;
   1.896  #endif
   1.897  
   1.898  #ifndef GL_VERSION_1_5
   1.899 @@ -3938,12 +4387,12 @@
   1.900  #endif
   1.901  
   1.902  #ifndef GL_ARB_shader_objects
   1.903 -/* GL types for handling shader object handles and program/shader text */
   1.904 -typedef char GLcharARB;		/* native character */
   1.905 -typedef unsigned int GLhandleARB;	/* shader object handle */
   1.906 -#endif
   1.907 -
   1.908 -/* GL types for "half" precision (s10e5) float data in host memory */
   1.909 +/* GL types for program/shader text and shader object handles */
   1.910 +typedef char GLcharARB;
   1.911 +typedef unsigned int GLhandleARB;
   1.912 +#endif
   1.913 +
   1.914 +/* GL type for "half" precision (s10e5) float data in host memory */
   1.915  #ifndef GL_ARB_half_float_pixel
   1.916  typedef unsigned short GLhalfARB;
   1.917  #endif
   1.918 @@ -3985,7 +4434,8 @@
   1.919  typedef __int64 int64_t;
   1.920  typedef unsigned __int64 uint64_t;
   1.921  #else
   1.922 -#include <inttypes.h>     /* Fallback option */
   1.923 +/* Fallback if nothing above works */
   1.924 +#include <inttypes.h>
   1.925  #endif
   1.926  #endif
   1.927  
   1.928 @@ -3994,12 +4444,33 @@
   1.929  typedef uint64_t GLuint64EXT;
   1.930  #endif
   1.931  
   1.932 +#ifndef ARB_sync
   1.933 +typedef int64_t GLint64;
   1.934 +typedef uint64_t GLuint64;
   1.935 +typedef struct __GLsync *GLsync;
   1.936 +#endif
   1.937 +
   1.938  #ifndef GL_VERSION_1_2
   1.939  #define GL_VERSION_1_2 1
   1.940  #ifdef GL_GLEXT_PROTOTYPES
   1.941  GLAPI void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf);
   1.942  GLAPI void APIENTRY glBlendEquation (GLenum);
   1.943  GLAPI void APIENTRY glDrawRangeElements (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *);
   1.944 +GLAPI void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
   1.945 +GLAPI void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
   1.946 +GLAPI void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
   1.947 +#endif /* GL_GLEXT_PROTOTYPES */
   1.948 +typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
   1.949 +typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
   1.950 +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
   1.951 +typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
   1.952 +typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
   1.953 +typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   1.954 +#endif
   1.955 +
   1.956 +#ifndef GL_VERSION_1_2_DEPRECATED
   1.957 +#define GL_VERSION_1_2_DEPRECATED 1
   1.958 +#ifdef GL_GLEXT_PROTOTYPES
   1.959  GLAPI void APIENTRY glColorTable (GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *);
   1.960  GLAPI void APIENTRY glColorTableParameterfv (GLenum, GLenum, const GLfloat *);
   1.961  GLAPI void APIENTRY glColorTableParameteriv (GLenum, GLenum, const GLint *);
   1.962 @@ -4032,13 +4503,7 @@
   1.963  GLAPI void APIENTRY glMinmax (GLenum, GLenum, GLboolean);
   1.964  GLAPI void APIENTRY glResetHistogram (GLenum);
   1.965  GLAPI void APIENTRY glResetMinmax (GLenum);
   1.966 -GLAPI void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *);
   1.967 -GLAPI void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *);
   1.968 -GLAPI void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
   1.969 -#endif /* GL_GLEXT_PROTOTYPES */
   1.970 -typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
   1.971 -typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
   1.972 -typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
   1.973 +#endif /* GL_GLEXT_PROTOTYPES */
   1.974  typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
   1.975  typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
   1.976  typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
   1.977 @@ -4071,15 +4536,35 @@
   1.978  typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
   1.979  typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
   1.980  typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
   1.981 -typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
   1.982 -typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
   1.983 -typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   1.984  #endif
   1.985  
   1.986  #ifndef GL_VERSION_1_3
   1.987  #define GL_VERSION_1_3 1
   1.988  #ifdef GL_GLEXT_PROTOTYPES
   1.989  GLAPI void APIENTRY glActiveTexture (GLenum);
   1.990 +GLAPI void APIENTRY glSampleCoverage (GLclampf, GLboolean);
   1.991 +GLAPI void APIENTRY glCompressedTexImage3D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
   1.992 +GLAPI void APIENTRY glCompressedTexImage2D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
   1.993 +GLAPI void APIENTRY glCompressedTexImage1D (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *);
   1.994 +GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
   1.995 +GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
   1.996 +GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *);
   1.997 +GLAPI void APIENTRY glGetCompressedTexImage (GLenum, GLint, GLvoid *);
   1.998 +#endif /* GL_GLEXT_PROTOTYPES */
   1.999 +typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
  1.1000 +typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
  1.1001 +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  1.1002 +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  1.1003 +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  1.1004 +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  1.1005 +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  1.1006 +typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  1.1007 +typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
  1.1008 +#endif
  1.1009 +
  1.1010 +#ifndef GL_VERSION_1_3_DEPRECATED
  1.1011 +#define GL_VERSION_1_3_DEPRECATED 1
  1.1012 +#ifdef GL_GLEXT_PROTOTYPES
  1.1013  GLAPI void APIENTRY glClientActiveTexture (GLenum);
  1.1014  GLAPI void APIENTRY glMultiTexCoord1d (GLenum, GLdouble);
  1.1015  GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *);
  1.1016 @@ -4117,16 +4602,7 @@
  1.1017  GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *);
  1.1018  GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *);
  1.1019  GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *);
  1.1020 -GLAPI void APIENTRY glSampleCoverage (GLclampf, GLboolean);
  1.1021 -GLAPI void APIENTRY glCompressedTexImage3D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
  1.1022 -GLAPI void APIENTRY glCompressedTexImage2D (GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *);
  1.1023 -GLAPI void APIENTRY glCompressedTexImage1D (GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *);
  1.1024 -GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
  1.1025 -GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *);
  1.1026 -GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *);
  1.1027 -GLAPI void APIENTRY glGetCompressedTexImage (GLenum, GLint, GLvoid *);
  1.1028 -#endif /* GL_GLEXT_PROTOTYPES */
  1.1029 -typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
  1.1030 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1031  typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
  1.1032  typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
  1.1033  typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
  1.1034 @@ -4164,31 +4640,36 @@
  1.1035  typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
  1.1036  typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
  1.1037  typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
  1.1038 -typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
  1.1039 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  1.1040 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  1.1041 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  1.1042 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  1.1043 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  1.1044 -typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  1.1045 -typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
  1.1046  #endif
  1.1047  
  1.1048  #ifndef GL_VERSION_1_4
  1.1049  #define GL_VERSION_1_4 1
  1.1050  #ifdef GL_GLEXT_PROTOTYPES
  1.1051  GLAPI void APIENTRY glBlendFuncSeparate (GLenum, GLenum, GLenum, GLenum);
  1.1052 -GLAPI void APIENTRY glFogCoordf (GLfloat);
  1.1053 -GLAPI void APIENTRY glFogCoordfv (const GLfloat *);
  1.1054 -GLAPI void APIENTRY glFogCoordd (GLdouble);
  1.1055 -GLAPI void APIENTRY glFogCoorddv (const GLdouble *);
  1.1056 -GLAPI void APIENTRY glFogCoordPointer (GLenum, GLsizei, const GLvoid *);
  1.1057  GLAPI void APIENTRY glMultiDrawArrays (GLenum, GLint *, GLsizei *, GLsizei);
  1.1058  GLAPI void APIENTRY glMultiDrawElements (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
  1.1059  GLAPI void APIENTRY glPointParameterf (GLenum, GLfloat);
  1.1060  GLAPI void APIENTRY glPointParameterfv (GLenum, const GLfloat *);
  1.1061  GLAPI void APIENTRY glPointParameteri (GLenum, GLint);
  1.1062  GLAPI void APIENTRY glPointParameteriv (GLenum, const GLint *);
  1.1063 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1064 +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  1.1065 +typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
  1.1066 +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
  1.1067 +typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
  1.1068 +typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
  1.1069 +typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
  1.1070 +typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
  1.1071 +#endif
  1.1072 +
  1.1073 +#ifndef GL_VERSION_1_4_DEPRECATED
  1.1074 +#define GL_VERSION_1_4_DEPRECATED 1
  1.1075 +#ifdef GL_GLEXT_PROTOTYPES
  1.1076 +GLAPI void APIENTRY glFogCoordf (GLfloat);
  1.1077 +GLAPI void APIENTRY glFogCoordfv (const GLfloat *);
  1.1078 +GLAPI void APIENTRY glFogCoordd (GLdouble);
  1.1079 +GLAPI void APIENTRY glFogCoorddv (const GLdouble *);
  1.1080 +GLAPI void APIENTRY glFogCoordPointer (GLenum, GLsizei, const GLvoid *);
  1.1081  GLAPI void APIENTRY glSecondaryColor3b (GLbyte, GLbyte, GLbyte);
  1.1082  GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *);
  1.1083  GLAPI void APIENTRY glSecondaryColor3d (GLdouble, GLdouble, GLdouble);
  1.1084 @@ -4223,18 +4704,11 @@
  1.1085  GLAPI void APIENTRY glWindowPos3s (GLshort, GLshort, GLshort);
  1.1086  GLAPI void APIENTRY glWindowPos3sv (const GLshort *);
  1.1087  #endif /* GL_GLEXT_PROTOTYPES */
  1.1088 -typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  1.1089  typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
  1.1090  typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
  1.1091  typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
  1.1092  typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
  1.1093  typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
  1.1094 -typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
  1.1095 -typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
  1.1096 -typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
  1.1097 -typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
  1.1098 -typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
  1.1099 -typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
  1.1100  typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
  1.1101  typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
  1.1102  typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
  1.1103 @@ -4541,11 +5015,14 @@
  1.1104  GLAPI void APIENTRY glEndTransformFeedback (void);
  1.1105  GLAPI void APIENTRY glBindBufferRange (GLenum, GLuint, GLuint, GLintptr, GLsizeiptr);
  1.1106  GLAPI void APIENTRY glBindBufferBase (GLenum, GLuint, GLuint);
  1.1107 -GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint, GLsizei, const GLint *, GLenum);
  1.1108 -GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint, GLuint, GLint *);
  1.1109 +GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint, GLsizei, const GLchar* *, GLenum);
  1.1110 +GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *);
  1.1111  GLAPI void APIENTRY glClampColor (GLenum, GLenum);
  1.1112  GLAPI void APIENTRY glBeginConditionalRender (GLuint, GLenum);
  1.1113  GLAPI void APIENTRY glEndConditionalRender (void);
  1.1114 +GLAPI void APIENTRY glVertexAttribIPointer (GLuint, GLint, GLenum, GLsizei, const GLvoid *);
  1.1115 +GLAPI void APIENTRY glGetVertexAttribIiv (GLuint, GLenum, GLint *);
  1.1116 +GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint, GLenum, GLuint *);
  1.1117  GLAPI void APIENTRY glVertexAttribI1i (GLuint, GLint);
  1.1118  GLAPI void APIENTRY glVertexAttribI2i (GLuint, GLint, GLint);
  1.1119  GLAPI void APIENTRY glVertexAttribI3i (GLuint, GLint, GLint, GLint);
  1.1120 @@ -4566,9 +5043,6 @@
  1.1121  GLAPI void APIENTRY glVertexAttribI4sv (GLuint, const GLshort *);
  1.1122  GLAPI void APIENTRY glVertexAttribI4ubv (GLuint, const GLubyte *);
  1.1123  GLAPI void APIENTRY glVertexAttribI4usv (GLuint, const GLushort *);
  1.1124 -GLAPI void APIENTRY glVertexAttribIPointer (GLuint, GLint, GLenum, GLsizei, const GLvoid *);
  1.1125 -GLAPI void APIENTRY glGetVertexAttribIiv (GLuint, GLenum, GLint *);
  1.1126 -GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint, GLenum, GLuint *);
  1.1127  GLAPI void APIENTRY glGetUniformuiv (GLuint, GLint, GLuint *);
  1.1128  GLAPI void APIENTRY glBindFragDataLocation (GLuint, GLuint, const GLchar *);
  1.1129  GLAPI GLint APIENTRY glGetFragDataLocation (GLuint, const GLchar *);
  1.1130 @@ -4600,11 +5074,14 @@
  1.1131  typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
  1.1132  typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  1.1133  typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
  1.1134 -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
  1.1135 -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLint *location);
  1.1136 +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
  1.1137 +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  1.1138  typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
  1.1139  typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
  1.1140  typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
  1.1141 +typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  1.1142 +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
  1.1143 +typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
  1.1144  typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
  1.1145  typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
  1.1146  typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
  1.1147 @@ -4625,9 +5102,6 @@
  1.1148  typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
  1.1149  typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
  1.1150  typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
  1.1151 -typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  1.1152 -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
  1.1153 -typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
  1.1154  typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
  1.1155  typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
  1.1156  typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
  1.1157 @@ -4650,6 +5124,44 @@
  1.1158  typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
  1.1159  #endif
  1.1160  
  1.1161 +#ifndef GL_VERSION_3_1
  1.1162 +#define GL_VERSION_3_1 1
  1.1163 +/* OpenGL 3.1 also reuses entry points from these extensions: */
  1.1164 +/* ARB_copy_buffer */
  1.1165 +/* ARB_uniform_buffer_object */
  1.1166 +#ifdef GL_GLEXT_PROTOTYPES
  1.1167 +GLAPI void APIENTRY glDrawArraysInstanced (GLenum, GLint, GLsizei, GLsizei);
  1.1168 +GLAPI void APIENTRY glDrawElementsInstanced (GLenum, GLsizei, GLenum, const GLvoid *, GLsizei);
  1.1169 +GLAPI void APIENTRY glTexBuffer (GLenum, GLenum, GLuint);
  1.1170 +GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint);
  1.1171 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1172 +typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  1.1173 +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
  1.1174 +typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
  1.1175 +typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
  1.1176 +#endif
  1.1177 +
  1.1178 +#ifndef GL_VERSION_3_2
  1.1179 +#define GL_VERSION_3_2 1
  1.1180 +/* OpenGL 3.2 also reuses entry points from these extensions: */
  1.1181 +/* ARB_draw_elements_base_vertex */
  1.1182 +/* ARB_provoking_vertex */
  1.1183 +/* ARB_sync */
  1.1184 +/* ARB_texture_multisample */
  1.1185 +#ifdef GL_GLEXT_PROTOTYPES
  1.1186 +GLAPI void APIENTRY glGetInteger64i_v (GLenum, GLuint, GLint64 *);
  1.1187 +GLAPI void APIENTRY glGetBufferParameteri64v (GLenum, GLenum, GLint64 *);
  1.1188 +GLAPI void APIENTRY glProgramParameteri (GLuint, GLenum, GLint);
  1.1189 +GLAPI void APIENTRY glFramebufferTexture (GLenum, GLenum, GLuint, GLint);
  1.1190 +GLAPI void APIENTRY glFramebufferTextureFace (GLenum, GLenum, GLuint, GLint, GLenum);
  1.1191 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1192 +typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
  1.1193 +typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
  1.1194 +typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
  1.1195 +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
  1.1196 +typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
  1.1197 +#endif
  1.1198 +
  1.1199  #ifndef GL_ARB_multitexture
  1.1200  #define GL_ARB_multitexture 1
  1.1201  #ifdef GL_GLEXT_PROTOTYPES
  1.1202 @@ -5314,18 +5826,18 @@
  1.1203  #ifndef GL_ARB_instanced_arrays
  1.1204  #define GL_ARB_instanced_arrays 1
  1.1205  #ifdef GL_GLEXT_PROTOTYPES
  1.1206 -GLAPI void APIENTRY glVertexAttribDivisor (GLuint, GLuint);
  1.1207 -#endif /* GL_GLEXT_PROTOTYPES */
  1.1208 -typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
  1.1209 +GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint, GLuint);
  1.1210 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1211 +typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
  1.1212  #endif
  1.1213  
  1.1214  #ifndef GL_ARB_map_buffer_range
  1.1215  #define GL_ARB_map_buffer_range 1
  1.1216  #ifdef GL_GLEXT_PROTOTYPES
  1.1217 -GLAPI void APIENTRY glMapBufferRange (GLenum, GLintptr, GLsizeiptr, GLbitfield);
  1.1218 +GLAPI GLvoid* APIENTRY glMapBufferRange (GLenum, GLintptr, GLsizeiptr, GLbitfield);
  1.1219  GLAPI void APIENTRY glFlushMappedBufferRange (GLenum, GLintptr, GLsizeiptr);
  1.1220  #endif /* GL_GLEXT_PROTOTYPES */
  1.1221 -typedef void (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  1.1222 +typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  1.1223  typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  1.1224  #endif
  1.1225  
  1.1226 @@ -5359,6 +5871,148 @@
  1.1227  typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
  1.1228  #endif
  1.1229  
  1.1230 +#ifndef GL_ARB_uniform_buffer_object
  1.1231 +#define GL_ARB_uniform_buffer_object 1
  1.1232 +#ifdef GL_GLEXT_PROTOTYPES
  1.1233 +GLAPI void APIENTRY glGetUniformIndices (GLuint, GLsizei, const GLchar* *, GLuint *);
  1.1234 +GLAPI void APIENTRY glGetActiveUniformsiv (GLuint, GLsizei, const GLuint *, GLenum, GLint *);
  1.1235 +GLAPI void APIENTRY glGetActiveUniformName (GLuint, GLuint, GLsizei, GLsizei *, GLchar *);
  1.1236 +GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint, const GLchar *);
  1.1237 +GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint, GLuint, GLenum, GLint *);
  1.1238 +GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint, GLuint, GLsizei, GLsizei *, GLchar *);
  1.1239 +GLAPI void APIENTRY glUniformBlockBinding (GLuint, GLuint, GLuint);
  1.1240 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1241 +typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar* *uniformNames, GLuint *uniformIndices);
  1.1242 +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
  1.1243 +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
  1.1244 +typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
  1.1245 +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
  1.1246 +typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
  1.1247 +typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
  1.1248 +#endif
  1.1249 +
  1.1250 +#ifndef GL_ARB_compatibility
  1.1251 +#define GL_ARB_compatibility 1
  1.1252 +#endif
  1.1253 +
  1.1254 +#ifndef GL_ARB_copy_buffer
  1.1255 +#define GL_ARB_copy_buffer 1
  1.1256 +#ifdef GL_GLEXT_PROTOTYPES
  1.1257 +GLAPI void APIENTRY glCopyBufferSubData (GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr);
  1.1258 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1259 +typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  1.1260 +#endif
  1.1261 +
  1.1262 +#ifndef GL_ARB_shader_texture_lod
  1.1263 +#define GL_ARB_shader_texture_lod 1
  1.1264 +#endif
  1.1265 +
  1.1266 +#ifndef GL_ARB_depth_clamp
  1.1267 +#define GL_ARB_depth_clamp 1
  1.1268 +#endif
  1.1269 +
  1.1270 +#ifndef GL_ARB_draw_elements_base_vertex
  1.1271 +#define GL_ARB_draw_elements_base_vertex 1
  1.1272 +#ifdef GL_GLEXT_PROTOTYPES
  1.1273 +GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum, GLsizei, GLenum, const GLvoid *, GLint);
  1.1274 +GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *, GLint);
  1.1275 +GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum, GLsizei, GLenum, const GLvoid *, GLsizei, GLint);
  1.1276 +GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei, const GLint *);
  1.1277 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1278 +typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
  1.1279 +typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
  1.1280 +typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount, GLint basevertex);
  1.1281 +typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount, const GLint *basevertex);
  1.1282 +#endif
  1.1283 +
  1.1284 +#ifndef GL_ARB_fragment_coord_conventions
  1.1285 +#define GL_ARB_fragment_coord_conventions 1
  1.1286 +#endif
  1.1287 +
  1.1288 +#ifndef GL_ARB_provoking_vertex
  1.1289 +#define GL_ARB_provoking_vertex 1
  1.1290 +#ifdef GL_GLEXT_PROTOTYPES
  1.1291 +GLAPI void APIENTRY glProvokingVertex (GLenum);
  1.1292 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1293 +typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
  1.1294 +#endif
  1.1295 +
  1.1296 +#ifndef GL_ARB_seamless_cube_map
  1.1297 +#define GL_ARB_seamless_cube_map 1
  1.1298 +#endif
  1.1299 +
  1.1300 +#ifndef GL_ARB_sync
  1.1301 +#define GL_ARB_sync 1
  1.1302 +#ifdef GL_GLEXT_PROTOTYPES
  1.1303 +GLAPI GLsync APIENTRY glFenceSync (GLenum, GLbitfield);
  1.1304 +GLAPI GLboolean APIENTRY glIsSync (GLsync);
  1.1305 +GLAPI void APIENTRY glDeleteSync (GLsync);
  1.1306 +GLAPI GLenum APIENTRY glClientWaitSync (GLsync, GLbitfield, GLuint64);
  1.1307 +GLAPI void APIENTRY glWaitSync (GLsync, GLbitfield, GLuint64);
  1.1308 +GLAPI void APIENTRY glGetInteger64v (GLenum, GLint64 *);
  1.1309 +GLAPI void APIENTRY glGetSynciv (GLsync, GLenum, GLsizei, GLsizei *, GLint *);
  1.1310 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1311 +typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
  1.1312 +typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
  1.1313 +typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
  1.1314 +typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1.1315 +typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1.1316 +typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *params);
  1.1317 +typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  1.1318 +#endif
  1.1319 +
  1.1320 +#ifndef GL_ARB_texture_multisample
  1.1321 +#define GL_ARB_texture_multisample 1
  1.1322 +#ifdef GL_GLEXT_PROTOTYPES
  1.1323 +GLAPI void APIENTRY glTexImage2DMultisample (GLenum, GLsizei, GLint, GLsizei, GLsizei, GLboolean);
  1.1324 +GLAPI void APIENTRY glTexImage3DMultisample (GLenum, GLsizei, GLint, GLsizei, GLsizei, GLsizei, GLboolean);
  1.1325 +GLAPI void APIENTRY glGetMultisamplefv (GLenum, GLuint, GLfloat *);
  1.1326 +GLAPI void APIENTRY glSampleMaski (GLuint, GLbitfield);
  1.1327 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1328 +typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  1.1329 +typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  1.1330 +typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
  1.1331 +typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask);
  1.1332 +#endif
  1.1333 +
  1.1334 +#ifndef GL_ARB_vertex_array_bgra
  1.1335 +#define GL_ARB_vertex_array_bgra 1
  1.1336 +#endif
  1.1337 +
  1.1338 +#ifndef GL_ARB_draw_buffers_blend
  1.1339 +#define GL_ARB_draw_buffers_blend 1
  1.1340 +#ifdef GL_GLEXT_PROTOTYPES
  1.1341 +GLAPI void APIENTRY glBlendEquationi (GLuint, GLenum);
  1.1342 +GLAPI void APIENTRY glBlendEquationSeparatei (GLuint, GLenum, GLenum);
  1.1343 +GLAPI void APIENTRY glBlendFunci (GLuint, GLenum, GLenum);
  1.1344 +GLAPI void APIENTRY glBlendFuncSeparatei (GLuint, GLenum, GLenum, GLenum, GLenum);
  1.1345 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1346 +typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
  1.1347 +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  1.1348 +typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
  1.1349 +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  1.1350 +#endif
  1.1351 +
  1.1352 +#ifndef GL_ARB_sample_shading
  1.1353 +#define GL_ARB_sample_shading 1
  1.1354 +#ifdef GL_GLEXT_PROTOTYPES
  1.1355 +GLAPI void APIENTRY glMinSampleShading (GLclampf);
  1.1356 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1357 +typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLclampf value);
  1.1358 +#endif
  1.1359 +
  1.1360 +#ifndef GL_ARB_texture_cube_map_array
  1.1361 +#define GL_ARB_texture_cube_map_array 1
  1.1362 +#endif
  1.1363 +
  1.1364 +#ifndef GL_ARB_texture_gather
  1.1365 +#define GL_ARB_texture_gather 1
  1.1366 +#endif
  1.1367 +
  1.1368 +#ifndef GL_ARB_texture_query_lod
  1.1369 +#define GL_ARB_texture_query_lod 1
  1.1370 +#endif
  1.1371 +
  1.1372  #ifndef GL_EXT_abgr
  1.1373  #define GL_EXT_abgr 1
  1.1374  #endif
  1.1375 @@ -7996,7 +8650,7 @@
  1.1376  GLAPI void APIENTRY glBindBufferRangeNV (GLenum, GLuint, GLuint, GLintptr, GLsizeiptr);
  1.1377  GLAPI void APIENTRY glBindBufferOffsetNV (GLenum, GLuint, GLuint, GLintptr);
  1.1378  GLAPI void APIENTRY glBindBufferBaseNV (GLenum, GLuint, GLuint);
  1.1379 -GLAPI void APIENTRY glTransformFeedbackVaryingsNV (GLuint, GLsizei, const GLint *, GLenum);
  1.1380 +GLAPI void APIENTRY glTransformFeedbackVaryingsNV (GLuint, GLsizei, const GLchar* *, GLenum);
  1.1381  GLAPI void APIENTRY glActiveVaryingNV (GLuint, const GLchar *);
  1.1382  GLAPI GLint APIENTRY glGetVaryingLocationNV (GLuint, const GLchar *);
  1.1383  GLAPI void APIENTRY glGetActiveVaryingNV (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *);
  1.1384 @@ -8008,7 +8662,7 @@
  1.1385  typedef void (APIENTRYP PFNGLBINDBUFFERRANGENVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  1.1386  typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
  1.1387  typedef void (APIENTRYP PFNGLBINDBUFFERBASENVPROC) (GLenum target, GLuint index, GLuint buffer);
  1.1388 -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
  1.1389 +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
  1.1390  typedef void (APIENTRYP PFNGLACTIVEVARYINGNVPROC) (GLuint program, const GLchar *name);
  1.1391  typedef GLint (APIENTRYP PFNGLGETVARYINGLOCATIONNVPROC) (GLuint program, const GLchar *name);
  1.1392  typedef void (APIENTRYP PFNGLGETACTIVEVARYINGNVPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  1.1393 @@ -8065,6 +8719,20 @@
  1.1394  
  1.1395  #ifndef GL_NV_present_video
  1.1396  #define GL_NV_present_video 1
  1.1397 +#ifdef GL_GLEXT_PROTOTYPES
  1.1398 +GLAPI void APIENTRY glPresentFrameKeyedNV (GLuint, GLuint64EXT, GLuint, GLuint, GLenum, GLenum, GLuint, GLuint, GLenum, GLuint, GLuint);
  1.1399 +GLAPI void APIENTRY glPresentFrameDualFillNV (GLuint, GLuint64EXT, GLuint, GLuint, GLenum, GLenum, GLuint, GLenum, GLuint, GLenum, GLuint, GLenum, GLuint);
  1.1400 +GLAPI void APIENTRY glGetVideoivNV (GLuint, GLenum, GLint *);
  1.1401 +GLAPI void APIENTRY glGetVideouivNV (GLuint, GLenum, GLuint *);
  1.1402 +GLAPI void APIENTRY glGetVideoi64vNV (GLuint, GLenum, GLint64EXT *);
  1.1403 +GLAPI void APIENTRY glGetVideoui64vNV (GLuint, GLenum, GLuint64EXT *);
  1.1404 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1405 +typedef void (APIENTRYP PFNGLPRESENTFRAMEKEYEDNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1);
  1.1406 +typedef void (APIENTRYP PFNGLPRESENTFRAMEDUALFILLNVPROC) (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3);
  1.1407 +typedef void (APIENTRYP PFNGLGETVIDEOIVNVPROC) (GLuint video_slot, GLenum pname, GLint *params);
  1.1408 +typedef void (APIENTRYP PFNGLGETVIDEOUIVNVPROC) (GLuint video_slot, GLenum pname, GLuint *params);
  1.1409 +typedef void (APIENTRYP PFNGLGETVIDEOI64VNVPROC) (GLuint video_slot, GLenum pname, GLint64EXT *params);
  1.1410 +typedef void (APIENTRYP PFNGLGETVIDEOUI64VNVPROC) (GLuint video_slot, GLenum pname, GLuint64EXT *params);
  1.1411  #endif
  1.1412  
  1.1413  #ifndef GL_EXT_transform_feedback
  1.1414 @@ -8075,16 +8743,16 @@
  1.1415  GLAPI void APIENTRY glBindBufferRangeEXT (GLenum, GLuint, GLuint, GLintptr, GLsizeiptr);
  1.1416  GLAPI void APIENTRY glBindBufferOffsetEXT (GLenum, GLuint, GLuint, GLintptr);
  1.1417  GLAPI void APIENTRY glBindBufferBaseEXT (GLenum, GLuint, GLuint);
  1.1418 -GLAPI void APIENTRY glTransformFeedbackVaryingsEXT (GLuint, GLsizei, const GLint *, GLenum);
  1.1419 -GLAPI void APIENTRY glGetTransformFeedbackVaryingEXT (GLuint, GLuint, GLint *);
  1.1420 +GLAPI void APIENTRY glTransformFeedbackVaryingsEXT (GLuint, GLsizei, const GLchar* *, GLenum);
  1.1421 +GLAPI void APIENTRY glGetTransformFeedbackVaryingEXT (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *);
  1.1422  #endif /* GL_GLEXT_PROTOTYPES */
  1.1423  typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKEXTPROC) (GLenum primitiveMode);
  1.1424  typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKEXTPROC) (void);
  1.1425  typedef void (APIENTRYP PFNGLBINDBUFFERRANGEEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  1.1426  typedef void (APIENTRYP PFNGLBINDBUFFEROFFSETEXTPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
  1.1427  typedef void (APIENTRYP PFNGLBINDBUFFERBASEEXTPROC) (GLenum target, GLuint index, GLuint buffer);
  1.1428 -typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLint *locations, GLenum bufferMode);
  1.1429 -typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLint *location);
  1.1430 +typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
  1.1431 +typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  1.1432  #endif
  1.1433  
  1.1434  #ifndef GL_EXT_direct_state_access
  1.1435 @@ -8505,6 +9173,132 @@
  1.1436  typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKNVPROC) (GLenum mode, GLuint id);
  1.1437  #endif
  1.1438  
  1.1439 +#ifndef GL_ATI_meminfo
  1.1440 +#define GL_ATI_meminfo 1
  1.1441 +#endif
  1.1442 +
  1.1443 +#ifndef GL_AMD_performance_monitor
  1.1444 +#define GL_AMD_performance_monitor 1
  1.1445 +#ifdef GL_GLEXT_PROTOTYPES
  1.1446 +GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *, GLsizei, GLuint *);
  1.1447 +GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint, GLint *, GLint *, GLsizei, GLuint *);
  1.1448 +GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint, GLsizei, GLsizei *, GLchar *);
  1.1449 +GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint, GLuint, GLsizei, GLsizei *, GLchar *);
  1.1450 +GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint, GLuint, GLenum, void *);
  1.1451 +GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei, GLuint *);
  1.1452 +GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei, GLuint *);
  1.1453 +GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint, GLboolean, GLuint, GLint, GLuint *);
  1.1454 +GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint);
  1.1455 +GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint);
  1.1456 +GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint, GLenum, GLsizei, GLuint *, GLint *);
  1.1457 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1458 +typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
  1.1459 +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
  1.1460 +typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
  1.1461 +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
  1.1462 +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
  1.1463 +typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
  1.1464 +typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
  1.1465 +typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
  1.1466 +typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
  1.1467 +typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
  1.1468 +typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
  1.1469 +#endif
  1.1470 +
  1.1471 +#ifndef GL_AMD_texture_texture4
  1.1472 +#define GL_AMD_texture_texture4 1
  1.1473 +#endif
  1.1474 +
  1.1475 +#ifndef GL_AMD_vertex_shader_tesselator
  1.1476 +#define GL_AMD_vertex_shader_tesselator 1
  1.1477 +#ifdef GL_GLEXT_PROTOTYPES
  1.1478 +GLAPI void APIENTRY glTessellationFactorAMD (GLfloat);
  1.1479 +GLAPI void APIENTRY glTessellationModeAMD (GLenum);
  1.1480 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1481 +typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor);
  1.1482 +typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode);
  1.1483 +#endif
  1.1484 +
  1.1485 +#ifndef GL_EXT_provoking_vertex
  1.1486 +#define GL_EXT_provoking_vertex 1
  1.1487 +#ifdef GL_GLEXT_PROTOTYPES
  1.1488 +GLAPI void APIENTRY glProvokingVertexEXT (GLenum);
  1.1489 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1490 +typedef void (APIENTRYP PFNGLPROVOKINGVERTEXEXTPROC) (GLenum mode);
  1.1491 +#endif
  1.1492 +
  1.1493 +#ifndef GL_EXT_texture_snorm
  1.1494 +#define GL_EXT_texture_snorm 1
  1.1495 +#endif
  1.1496 +
  1.1497 +#ifndef GL_AMD_draw_buffers_blend
  1.1498 +#define GL_AMD_draw_buffers_blend 1
  1.1499 +#ifdef GL_GLEXT_PROTOTYPES
  1.1500 +GLAPI void APIENTRY glBlendFuncIndexedAMD (GLuint, GLenum, GLenum);
  1.1501 +GLAPI void APIENTRY glBlendFuncSeparateIndexedAMD (GLuint, GLenum, GLenum, GLenum, GLenum);
  1.1502 +GLAPI void APIENTRY glBlendEquationIndexedAMD (GLuint, GLenum);
  1.1503 +GLAPI void APIENTRY glBlendEquationSeparateIndexedAMD (GLuint, GLenum, GLenum);
  1.1504 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1505 +typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst);
  1.1506 +typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  1.1507 +typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode);
  1.1508 +typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  1.1509 +#endif
  1.1510 +
  1.1511 +#ifndef GL_APPLE_texture_range
  1.1512 +#define GL_APPLE_texture_range 1
  1.1513 +#ifdef GL_GLEXT_PROTOTYPES
  1.1514 +GLAPI void APIENTRY glTextureRangeAPPLE (GLenum, GLsizei, const GLvoid *);
  1.1515 +GLAPI void APIENTRY glGetTexParameterPointervAPPLE (GLenum, GLenum, GLvoid* *);
  1.1516 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1517 +typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const GLvoid *pointer);
  1.1518 +typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, GLvoid* *params);
  1.1519 +#endif
  1.1520 +
  1.1521 +#ifndef GL_APPLE_float_pixels
  1.1522 +#define GL_APPLE_float_pixels 1
  1.1523 +#endif
  1.1524 +
  1.1525 +#ifndef GL_APPLE_vertex_program_evaluators
  1.1526 +#define GL_APPLE_vertex_program_evaluators 1
  1.1527 +#ifdef GL_GLEXT_PROTOTYPES
  1.1528 +GLAPI void APIENTRY glEnableVertexAttribAPPLE (GLuint, GLenum);
  1.1529 +GLAPI void APIENTRY glDisableVertexAttribAPPLE (GLuint, GLenum);
  1.1530 +GLAPI GLboolean APIENTRY glIsVertexAttribEnabledAPPLE (GLuint, GLenum);
  1.1531 +GLAPI void APIENTRY glMapVertexAttrib1dAPPLE (GLuint, GLuint, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
  1.1532 +GLAPI void APIENTRY glMapVertexAttrib1fAPPLE (GLuint, GLuint, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
  1.1533 +GLAPI void APIENTRY glMapVertexAttrib2dAPPLE (GLuint, GLuint, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *);
  1.1534 +GLAPI void APIENTRY glMapVertexAttrib2fAPPLE (GLuint, GLuint, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *);
  1.1535 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1536 +typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
  1.1537 +typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
  1.1538 +typedef GLboolean (APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname);
  1.1539 +typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  1.1540 +typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  1.1541 +typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  1.1542 +typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  1.1543 +#endif
  1.1544 +
  1.1545 +#ifndef GL_APPLE_aux_depth_stencil
  1.1546 +#define GL_APPLE_aux_depth_stencil 1
  1.1547 +#endif
  1.1548 +
  1.1549 +#ifndef GL_APPLE_object_purgeable
  1.1550 +#define GL_APPLE_object_purgeable 1
  1.1551 +#ifdef GL_GLEXT_PROTOTYPES
  1.1552 +GLAPI GLenum APIENTRY glObjectPurgeableAPPLE (GLenum, GLuint, GLenum);
  1.1553 +GLAPI GLenum APIENTRY glObjectUnpurgeableAPPLE (GLenum, GLuint, GLenum);
  1.1554 +GLAPI void APIENTRY glGetObjectParameterivAPPLE (GLenum, GLuint, GLenum, GLint *);
  1.1555 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1556 +typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
  1.1557 +typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
  1.1558 +typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint *params);
  1.1559 +#endif
  1.1560 +
  1.1561 +#ifndef GL_APPLE_row_bytes
  1.1562 +#define GL_APPLE_row_bytes 1
  1.1563 +#endif
  1.1564 +
  1.1565  
  1.1566  #ifdef __cplusplus
  1.1567  }