include/SDL_opengl.h
author Ryan C. Gordon <icculus@icculus.org>
Sun, 18 Sep 2011 03:52:08 +0000
changeset 5958 e1624f3b29b5
parent 5863 ab97e8ce122a
child 6044 35448a5ea044
permissions -rw-r--r--
Fixed compiler warnings on Haiku.
     1 /*
     2   Simple DirectMedia Layer
     3   Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org>
     4 
     5   This software is provided 'as-is', without any express or implied
     6   warranty.  In no event will the authors be held liable for any damages
     7   arising from the use of this software.
     8 
     9   Permission is granted to anyone to use this software for any purpose,
    10   including commercial applications, and to alter it and redistribute it
    11   freely, subject to the following restrictions:
    12 
    13   1. The origin of this software must not be misrepresented; you must not
    14      claim that you wrote the original software. If you use this software
    15      in a product, an acknowledgment in the product documentation would be
    16      appreciated but is not required.
    17   2. Altered source versions must be plainly marked as such, and must not be
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    21 
    22 /**
    23  *  \file SDL_opengl.h
    24  *  
    25  *  This is a simple file to encapsulate the OpenGL API headers.
    26  */
    27 
    28 #ifndef _SDL_opengl_h
    29 #define _SDL_opengl_h
    30 
    31 #include "SDL_config.h"
    32 
    33 #ifdef __WIN32__
    34 #define WIN32_LEAN_AND_MEAN
    35 #ifndef NOMINMAX
    36 #define NOMINMAX                /* Don't defined min() and max() */
    37 #endif
    38 #include <windows.h>
    39 #endif
    40 
    41 #ifdef __HAIKU__  /* !!! FIXME: temp compiler warning fix... */
    42 #define NO_SDL_GLEXT 1
    43 #endif
    44 
    45 #ifdef __glext_h_
    46 /* Someone has already included glext.h */
    47 #define NO_SDL_GLEXT
    48 #endif
    49 #ifndef NO_SDL_GLEXT
    50 #define __glext_h_              /* Don't let gl.h include glext.h */
    51 #endif
    52 #if defined(__MACOSX__)
    53 #include <OpenGL/gl.h>          /* Header File For The OpenGL Library */
    54 #define __X_GL_H
    55 #else
    56 #include <GL/gl.h>              /* Header File For The OpenGL Library */
    57 #endif
    58 #ifndef NO_SDL_GLEXT
    59 #undef __glext_h_
    60 #endif
    61 
    62 /**
    63  *  \file SDL_opengl.h
    64  *  
    65  *  This file is included because glext.h is not available on some systems.
    66  *  If you don't want this version included, simply define ::NO_SDL_GLEXT.
    67  *  
    68  *  The latest version is available from:
    69  *  	http://www.opengl.org/registry/
    70  */
    71 
    72 /**
    73  *  \def NO_SDL_GLEXT
    74  *  
    75  *  Define this if you have your own version of glext.h and want to disable the 
    76  *  version included in SDL_opengl.h.
    77  */
    78 
    79 #if !defined(NO_SDL_GLEXT) && !defined(GL_GLEXT_LEGACY)
    80 /* *INDENT-OFF* */
    81 #ifndef __glext_h_
    82 #define __glext_h_
    83 
    84 #ifdef __cplusplus
    85 extern "C" {
    86 #endif
    87 
    88 /*
    89 ** Copyright (c) 2007-2010 The Khronos Group Inc.
    90 ** 
    91 ** Permission is hereby granted, free of charge, to any person obtaining a
    92 ** copy of this software and/or associated documentation files (the
    93 ** "Materials"), to deal in the Materials without restriction, including
    94 ** without limitation the rights to use, copy, modify, merge, publish,
    95 ** distribute, sublicense, and/or sell copies of the Materials, and to
    96 ** permit persons to whom the Materials are furnished to do so, subject to
    97 ** the following conditions:
    98 ** 
    99 ** The above copyright notice and this permission notice shall be included
   100 ** in all copies or substantial portions of the Materials.
   101 ** 
   102 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   103 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   104 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   105 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
   106 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   107 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   108 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
   109 */
   110 
   111 /* Header file version number, required by OpenGL ABI for Linux */
   112 /* glext.h last updated $Date: 2010-08-03 01:30:25 -0700 (Tue, 03 Aug 2010) $ */
   113 /* Current version at http://www.opengl.org/registry/ */
   114 #define GL_GLEXT_VERSION 64
   115 /* Function declaration macros - to move into glplatform.h */
   116 
   117 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
   118 #define WIN32_LEAN_AND_MEAN 1
   119 #include <windows.h>
   120 #endif
   121 
   122 #ifndef APIENTRY
   123 #define APIENTRY
   124 #endif
   125 #ifndef APIENTRYP
   126 #define APIENTRYP APIENTRY *
   127 #endif
   128 #ifndef GLAPI
   129 #define GLAPI extern
   130 #endif
   131 
   132 /*************************************************************/
   133 
   134 #ifndef GL_VERSION_1_2
   135 #define GL_UNSIGNED_BYTE_3_3_2            0x8032
   136 #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
   137 #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
   138 #define GL_UNSIGNED_INT_8_8_8_8           0x8035
   139 #define GL_UNSIGNED_INT_10_10_10_2        0x8036
   140 #define GL_TEXTURE_BINDING_3D             0x806A
   141 #define GL_PACK_SKIP_IMAGES               0x806B
   142 #define GL_PACK_IMAGE_HEIGHT              0x806C
   143 #define GL_UNPACK_SKIP_IMAGES             0x806D
   144 #define GL_UNPACK_IMAGE_HEIGHT            0x806E
   145 #define GL_TEXTURE_3D                     0x806F
   146 #define GL_PROXY_TEXTURE_3D               0x8070
   147 #define GL_TEXTURE_DEPTH                  0x8071
   148 #define GL_TEXTURE_WRAP_R                 0x8072
   149 #define GL_MAX_3D_TEXTURE_SIZE            0x8073
   150 #define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
   151 #define GL_UNSIGNED_SHORT_5_6_5           0x8363
   152 #define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
   153 #define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
   154 #define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
   155 #define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
   156 #define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
   157 #define GL_BGR                            0x80E0
   158 #define GL_BGRA                           0x80E1
   159 #define GL_MAX_ELEMENTS_VERTICES          0x80E8
   160 #define GL_MAX_ELEMENTS_INDICES           0x80E9
   161 #define GL_CLAMP_TO_EDGE                  0x812F
   162 #define GL_TEXTURE_MIN_LOD                0x813A
   163 #define GL_TEXTURE_MAX_LOD                0x813B
   164 #define GL_TEXTURE_BASE_LEVEL             0x813C
   165 #define GL_TEXTURE_MAX_LEVEL              0x813D
   166 #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
   167 #define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
   168 #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
   169 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
   170 #define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
   171 #endif
   172 
   173 #ifndef GL_VERSION_1_2_DEPRECATED
   174 #define GL_RESCALE_NORMAL                 0x803A
   175 #define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
   176 #define GL_SINGLE_COLOR                   0x81F9
   177 #define GL_SEPARATE_SPECULAR_COLOR        0x81FA
   178 #define GL_ALIASED_POINT_SIZE_RANGE       0x846D
   179 #endif
   180 
   181 #ifndef GL_ARB_imaging
   182 #define GL_CONSTANT_COLOR                 0x8001
   183 #define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
   184 #define GL_CONSTANT_ALPHA                 0x8003
   185 #define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
   186 #define GL_BLEND_COLOR                    0x8005
   187 #define GL_FUNC_ADD                       0x8006
   188 #define GL_MIN                            0x8007
   189 #define GL_MAX                            0x8008
   190 #define GL_BLEND_EQUATION                 0x8009
   191 #define GL_FUNC_SUBTRACT                  0x800A
   192 #define GL_FUNC_REVERSE_SUBTRACT          0x800B
   193 #endif
   194 
   195 #ifndef GL_ARB_imaging_DEPRECATED
   196 #define GL_CONVOLUTION_1D                 0x8010
   197 #define GL_CONVOLUTION_2D                 0x8011
   198 #define GL_SEPARABLE_2D                   0x8012
   199 #define GL_CONVOLUTION_BORDER_MODE        0x8013
   200 #define GL_CONVOLUTION_FILTER_SCALE       0x8014
   201 #define GL_CONVOLUTION_FILTER_BIAS        0x8015
   202 #define GL_REDUCE                         0x8016
   203 #define GL_CONVOLUTION_FORMAT             0x8017
   204 #define GL_CONVOLUTION_WIDTH              0x8018
   205 #define GL_CONVOLUTION_HEIGHT             0x8019
   206 #define GL_MAX_CONVOLUTION_WIDTH          0x801A
   207 #define GL_MAX_CONVOLUTION_HEIGHT         0x801B
   208 #define GL_POST_CONVOLUTION_RED_SCALE     0x801C
   209 #define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
   210 #define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
   211 #define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
   212 #define GL_POST_CONVOLUTION_RED_BIAS      0x8020
   213 #define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
   214 #define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
   215 #define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
   216 #define GL_HISTOGRAM                      0x8024
   217 #define GL_PROXY_HISTOGRAM                0x8025
   218 #define GL_HISTOGRAM_WIDTH                0x8026
   219 #define GL_HISTOGRAM_FORMAT               0x8027
   220 #define GL_HISTOGRAM_RED_SIZE             0x8028
   221 #define GL_HISTOGRAM_GREEN_SIZE           0x8029
   222 #define GL_HISTOGRAM_BLUE_SIZE            0x802A
   223 #define GL_HISTOGRAM_ALPHA_SIZE           0x802B
   224 #define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
   225 #define GL_HISTOGRAM_SINK                 0x802D
   226 #define GL_MINMAX                         0x802E
   227 #define GL_MINMAX_FORMAT                  0x802F
   228 #define GL_MINMAX_SINK                    0x8030
   229 #define GL_TABLE_TOO_LARGE                0x8031
   230 #define GL_COLOR_MATRIX                   0x80B1
   231 #define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
   232 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
   233 #define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
   234 #define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
   235 #define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
   236 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
   237 #define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
   238 #define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
   239 #define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
   240 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
   241 #define GL_COLOR_TABLE                    0x80D0
   242 #define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
   243 #define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
   244 #define GL_PROXY_COLOR_TABLE              0x80D3
   245 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
   246 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
   247 #define GL_COLOR_TABLE_SCALE              0x80D6
   248 #define GL_COLOR_TABLE_BIAS               0x80D7
   249 #define GL_COLOR_TABLE_FORMAT             0x80D8
   250 #define GL_COLOR_TABLE_WIDTH              0x80D9
   251 #define GL_COLOR_TABLE_RED_SIZE           0x80DA
   252 #define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
   253 #define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
   254 #define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
   255 #define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
   256 #define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
   257 #define GL_CONSTANT_BORDER                0x8151
   258 #define GL_REPLICATE_BORDER               0x8153
   259 #define GL_CONVOLUTION_BORDER_COLOR       0x8154
   260 #endif
   261 
   262 #ifndef GL_VERSION_1_3
   263 #define GL_TEXTURE0                       0x84C0
   264 #define GL_TEXTURE1                       0x84C1
   265 #define GL_TEXTURE2                       0x84C2
   266 #define GL_TEXTURE3                       0x84C3
   267 #define GL_TEXTURE4                       0x84C4
   268 #define GL_TEXTURE5                       0x84C5
   269 #define GL_TEXTURE6                       0x84C6
   270 #define GL_TEXTURE7                       0x84C7
   271 #define GL_TEXTURE8                       0x84C8
   272 #define GL_TEXTURE9                       0x84C9
   273 #define GL_TEXTURE10                      0x84CA
   274 #define GL_TEXTURE11                      0x84CB
   275 #define GL_TEXTURE12                      0x84CC
   276 #define GL_TEXTURE13                      0x84CD
   277 #define GL_TEXTURE14                      0x84CE
   278 #define GL_TEXTURE15                      0x84CF
   279 #define GL_TEXTURE16                      0x84D0
   280 #define GL_TEXTURE17                      0x84D1
   281 #define GL_TEXTURE18                      0x84D2
   282 #define GL_TEXTURE19                      0x84D3
   283 #define GL_TEXTURE20                      0x84D4
   284 #define GL_TEXTURE21                      0x84D5
   285 #define GL_TEXTURE22                      0x84D6
   286 #define GL_TEXTURE23                      0x84D7
   287 #define GL_TEXTURE24                      0x84D8
   288 #define GL_TEXTURE25                      0x84D9
   289 #define GL_TEXTURE26                      0x84DA
   290 #define GL_TEXTURE27                      0x84DB
   291 #define GL_TEXTURE28                      0x84DC
   292 #define GL_TEXTURE29                      0x84DD
   293 #define GL_TEXTURE30                      0x84DE
   294 #define GL_TEXTURE31                      0x84DF
   295 #define GL_ACTIVE_TEXTURE                 0x84E0
   296 #define GL_MULTISAMPLE                    0x809D
   297 #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
   298 #define GL_SAMPLE_ALPHA_TO_ONE            0x809F
   299 #define GL_SAMPLE_COVERAGE                0x80A0
   300 #define GL_SAMPLE_BUFFERS                 0x80A8
   301 #define GL_SAMPLES                        0x80A9
   302 #define GL_SAMPLE_COVERAGE_VALUE          0x80AA
   303 #define GL_SAMPLE_COVERAGE_INVERT         0x80AB
   304 #define GL_TEXTURE_CUBE_MAP               0x8513
   305 #define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
   306 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
   307 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
   308 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
   309 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
   310 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
   311 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
   312 #define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
   313 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
   314 #define GL_COMPRESSED_RGB                 0x84ED
   315 #define GL_COMPRESSED_RGBA                0x84EE
   316 #define GL_TEXTURE_COMPRESSION_HINT       0x84EF
   317 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
   318 #define GL_TEXTURE_COMPRESSED             0x86A1
   319 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
   320 #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
   321 #define GL_CLAMP_TO_BORDER                0x812D
   322 #endif
   323 
   324 #ifndef GL_VERSION_1_3_DEPRECATED
   325 #define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
   326 #define GL_MAX_TEXTURE_UNITS              0x84E2
   327 #define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
   328 #define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
   329 #define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
   330 #define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
   331 #define GL_MULTISAMPLE_BIT                0x20000000
   332 #define GL_NORMAL_MAP                     0x8511
   333 #define GL_REFLECTION_MAP                 0x8512
   334 #define GL_COMPRESSED_ALPHA               0x84E9
   335 #define GL_COMPRESSED_LUMINANCE           0x84EA
   336 #define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
   337 #define GL_COMPRESSED_INTENSITY           0x84EC
   338 #define GL_COMBINE                        0x8570
   339 #define GL_COMBINE_RGB                    0x8571
   340 #define GL_COMBINE_ALPHA                  0x8572
   341 #define GL_SOURCE0_RGB                    0x8580
   342 #define GL_SOURCE1_RGB                    0x8581
   343 #define GL_SOURCE2_RGB                    0x8582
   344 #define GL_SOURCE0_ALPHA                  0x8588
   345 #define GL_SOURCE1_ALPHA                  0x8589
   346 #define GL_SOURCE2_ALPHA                  0x858A
   347 #define GL_OPERAND0_RGB                   0x8590
   348 #define GL_OPERAND1_RGB                   0x8591
   349 #define GL_OPERAND2_RGB                   0x8592
   350 #define GL_OPERAND0_ALPHA                 0x8598
   351 #define GL_OPERAND1_ALPHA                 0x8599
   352 #define GL_OPERAND2_ALPHA                 0x859A
   353 #define GL_RGB_SCALE                      0x8573
   354 #define GL_ADD_SIGNED                     0x8574
   355 #define GL_INTERPOLATE                    0x8575
   356 #define GL_SUBTRACT                       0x84E7
   357 #define GL_CONSTANT                       0x8576
   358 #define GL_PRIMARY_COLOR                  0x8577
   359 #define GL_PREVIOUS                       0x8578
   360 #define GL_DOT3_RGB                       0x86AE
   361 #define GL_DOT3_RGBA                      0x86AF
   362 #endif
   363 
   364 #ifndef GL_VERSION_1_4
   365 #define GL_BLEND_DST_RGB                  0x80C8
   366 #define GL_BLEND_SRC_RGB                  0x80C9
   367 #define GL_BLEND_DST_ALPHA                0x80CA
   368 #define GL_BLEND_SRC_ALPHA                0x80CB
   369 #define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
   370 #define GL_DEPTH_COMPONENT16              0x81A5
   371 #define GL_DEPTH_COMPONENT24              0x81A6
   372 #define GL_DEPTH_COMPONENT32              0x81A7
   373 #define GL_MIRRORED_REPEAT                0x8370
   374 #define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
   375 #define GL_TEXTURE_LOD_BIAS               0x8501
   376 #define GL_INCR_WRAP                      0x8507
   377 #define GL_DECR_WRAP                      0x8508
   378 #define GL_TEXTURE_DEPTH_SIZE             0x884A
   379 #define GL_TEXTURE_COMPARE_MODE           0x884C
   380 #define GL_TEXTURE_COMPARE_FUNC           0x884D
   381 #endif
   382 
   383 #ifndef GL_VERSION_1_4_DEPRECATED
   384 #define GL_POINT_SIZE_MIN                 0x8126
   385 #define GL_POINT_SIZE_MAX                 0x8127
   386 #define GL_POINT_DISTANCE_ATTENUATION     0x8129
   387 #define GL_GENERATE_MIPMAP                0x8191
   388 #define GL_GENERATE_MIPMAP_HINT           0x8192
   389 #define GL_FOG_COORDINATE_SOURCE          0x8450
   390 #define GL_FOG_COORDINATE                 0x8451
   391 #define GL_FRAGMENT_DEPTH                 0x8452
   392 #define GL_CURRENT_FOG_COORDINATE         0x8453
   393 #define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
   394 #define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
   395 #define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
   396 #define GL_FOG_COORDINATE_ARRAY           0x8457
   397 #define GL_COLOR_SUM                      0x8458
   398 #define GL_CURRENT_SECONDARY_COLOR        0x8459
   399 #define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
   400 #define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
   401 #define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
   402 #define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
   403 #define GL_SECONDARY_COLOR_ARRAY          0x845E
   404 #define GL_TEXTURE_FILTER_CONTROL         0x8500
   405 #define GL_DEPTH_TEXTURE_MODE             0x884B
   406 #define GL_COMPARE_R_TO_TEXTURE           0x884E
   407 #endif
   408 
   409 #ifndef GL_VERSION_1_5
   410 #define GL_BUFFER_SIZE                    0x8764
   411 #define GL_BUFFER_USAGE                   0x8765
   412 #define GL_QUERY_COUNTER_BITS             0x8864
   413 #define GL_CURRENT_QUERY                  0x8865
   414 #define GL_QUERY_RESULT                   0x8866
   415 #define GL_QUERY_RESULT_AVAILABLE         0x8867
   416 #define GL_ARRAY_BUFFER                   0x8892
   417 #define GL_ELEMENT_ARRAY_BUFFER           0x8893
   418 #define GL_ARRAY_BUFFER_BINDING           0x8894
   419 #define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
   420 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
   421 #define GL_READ_ONLY                      0x88B8
   422 #define GL_WRITE_ONLY                     0x88B9
   423 #define GL_READ_WRITE                     0x88BA
   424 #define GL_BUFFER_ACCESS                  0x88BB
   425 #define GL_BUFFER_MAPPED                  0x88BC
   426 #define GL_BUFFER_MAP_POINTER             0x88BD
   427 #define GL_STREAM_DRAW                    0x88E0
   428 #define GL_STREAM_READ                    0x88E1
   429 #define GL_STREAM_COPY                    0x88E2
   430 #define GL_STATIC_DRAW                    0x88E4
   431 #define GL_STATIC_READ                    0x88E5
   432 #define GL_STATIC_COPY                    0x88E6
   433 #define GL_DYNAMIC_DRAW                   0x88E8
   434 #define GL_DYNAMIC_READ                   0x88E9
   435 #define GL_DYNAMIC_COPY                   0x88EA
   436 #define GL_SAMPLES_PASSED                 0x8914
   437 #endif
   438 
   439 #ifndef GL_VERSION_1_5_DEPRECATED
   440 #define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
   441 #define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
   442 #define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
   443 #define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
   444 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
   445 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
   446 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
   447 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
   448 #define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
   449 #define GL_FOG_COORD_SRC                  0x8450
   450 #define GL_FOG_COORD                      0x8451
   451 #define GL_CURRENT_FOG_COORD              0x8453
   452 #define GL_FOG_COORD_ARRAY_TYPE           0x8454
   453 #define GL_FOG_COORD_ARRAY_STRIDE         0x8455
   454 #define GL_FOG_COORD_ARRAY_POINTER        0x8456
   455 #define GL_FOG_COORD_ARRAY                0x8457
   456 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
   457 #define GL_SRC0_RGB                       0x8580
   458 #define GL_SRC1_RGB                       0x8581
   459 #define GL_SRC2_RGB                       0x8582
   460 #define GL_SRC0_ALPHA                     0x8588
   461 #define GL_SRC1_ALPHA                     0x8589
   462 #define GL_SRC2_ALPHA                     0x858A
   463 #endif
   464 
   465 #ifndef GL_VERSION_2_0
   466 #define GL_BLEND_EQUATION_RGB             0x8009
   467 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
   468 #define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
   469 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
   470 #define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
   471 #define GL_CURRENT_VERTEX_ATTRIB          0x8626
   472 #define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
   473 #define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
   474 #define GL_STENCIL_BACK_FUNC              0x8800
   475 #define GL_STENCIL_BACK_FAIL              0x8801
   476 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
   477 #define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
   478 #define GL_MAX_DRAW_BUFFERS               0x8824
   479 #define GL_DRAW_BUFFER0                   0x8825
   480 #define GL_DRAW_BUFFER1                   0x8826
   481 #define GL_DRAW_BUFFER2                   0x8827
   482 #define GL_DRAW_BUFFER3                   0x8828
   483 #define GL_DRAW_BUFFER4                   0x8829
   484 #define GL_DRAW_BUFFER5                   0x882A
   485 #define GL_DRAW_BUFFER6                   0x882B
   486 #define GL_DRAW_BUFFER7                   0x882C
   487 #define GL_DRAW_BUFFER8                   0x882D
   488 #define GL_DRAW_BUFFER9                   0x882E
   489 #define GL_DRAW_BUFFER10                  0x882F
   490 #define GL_DRAW_BUFFER11                  0x8830
   491 #define GL_DRAW_BUFFER12                  0x8831
   492 #define GL_DRAW_BUFFER13                  0x8832
   493 #define GL_DRAW_BUFFER14                  0x8833
   494 #define GL_DRAW_BUFFER15                  0x8834
   495 #define GL_BLEND_EQUATION_ALPHA           0x883D
   496 #define GL_MAX_VERTEX_ATTRIBS             0x8869
   497 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
   498 #define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
   499 #define GL_FRAGMENT_SHADER                0x8B30
   500 #define GL_VERTEX_SHADER                  0x8B31
   501 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
   502 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
   503 #define GL_MAX_VARYING_FLOATS             0x8B4B
   504 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
   505 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
   506 #define GL_SHADER_TYPE                    0x8B4F
   507 #define GL_FLOAT_VEC2                     0x8B50
   508 #define GL_FLOAT_VEC3                     0x8B51
   509 #define GL_FLOAT_VEC4                     0x8B52
   510 #define GL_INT_VEC2                       0x8B53
   511 #define GL_INT_VEC3                       0x8B54
   512 #define GL_INT_VEC4                       0x8B55
   513 #define GL_BOOL                           0x8B56
   514 #define GL_BOOL_VEC2                      0x8B57
   515 #define GL_BOOL_VEC3                      0x8B58
   516 #define GL_BOOL_VEC4                      0x8B59
   517 #define GL_FLOAT_MAT2                     0x8B5A
   518 #define GL_FLOAT_MAT3                     0x8B5B
   519 #define GL_FLOAT_MAT4                     0x8B5C
   520 #define GL_SAMPLER_1D                     0x8B5D
   521 #define GL_SAMPLER_2D                     0x8B5E
   522 #define GL_SAMPLER_3D                     0x8B5F
   523 #define GL_SAMPLER_CUBE                   0x8B60
   524 #define GL_SAMPLER_1D_SHADOW              0x8B61
   525 #define GL_SAMPLER_2D_SHADOW              0x8B62
   526 #define GL_DELETE_STATUS                  0x8B80
   527 #define GL_COMPILE_STATUS                 0x8B81
   528 #define GL_LINK_STATUS                    0x8B82
   529 #define GL_VALIDATE_STATUS                0x8B83
   530 #define GL_INFO_LOG_LENGTH                0x8B84
   531 #define GL_ATTACHED_SHADERS               0x8B85
   532 #define GL_ACTIVE_UNIFORMS                0x8B86
   533 #define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
   534 #define GL_SHADER_SOURCE_LENGTH           0x8B88
   535 #define GL_ACTIVE_ATTRIBUTES              0x8B89
   536 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
   537 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
   538 #define GL_SHADING_LANGUAGE_VERSION       0x8B8C
   539 #define GL_CURRENT_PROGRAM                0x8B8D
   540 #define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
   541 #define GL_LOWER_LEFT                     0x8CA1
   542 #define GL_UPPER_LEFT                     0x8CA2
   543 #define GL_STENCIL_BACK_REF               0x8CA3
   544 #define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
   545 #define GL_STENCIL_BACK_WRITEMASK         0x8CA5
   546 #endif
   547 
   548 #ifndef GL_VERSION_2_0_DEPRECATED
   549 #define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
   550 #define GL_POINT_SPRITE                   0x8861
   551 #define GL_COORD_REPLACE                  0x8862
   552 #define GL_MAX_TEXTURE_COORDS             0x8871
   553 #endif
   554 
   555 #ifndef GL_VERSION_2_1
   556 #define GL_PIXEL_PACK_BUFFER              0x88EB
   557 #define GL_PIXEL_UNPACK_BUFFER            0x88EC
   558 #define GL_PIXEL_PACK_BUFFER_BINDING      0x88ED
   559 #define GL_PIXEL_UNPACK_BUFFER_BINDING    0x88EF
   560 #define GL_FLOAT_MAT2x3                   0x8B65
   561 #define GL_FLOAT_MAT2x4                   0x8B66
   562 #define GL_FLOAT_MAT3x2                   0x8B67
   563 #define GL_FLOAT_MAT3x4                   0x8B68
   564 #define GL_FLOAT_MAT4x2                   0x8B69
   565 #define GL_FLOAT_MAT4x3                   0x8B6A
   566 #define GL_SRGB                           0x8C40
   567 #define GL_SRGB8                          0x8C41
   568 #define GL_SRGB_ALPHA                     0x8C42
   569 #define GL_SRGB8_ALPHA8                   0x8C43
   570 #define GL_COMPRESSED_SRGB                0x8C48
   571 #define GL_COMPRESSED_SRGB_ALPHA          0x8C49
   572 #endif
   573 
   574 #ifndef GL_VERSION_2_1_DEPRECATED
   575 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
   576 #define GL_SLUMINANCE_ALPHA               0x8C44
   577 #define GL_SLUMINANCE8_ALPHA8             0x8C45
   578 #define GL_SLUMINANCE                     0x8C46
   579 #define GL_SLUMINANCE8                    0x8C47
   580 #define GL_COMPRESSED_SLUMINANCE          0x8C4A
   581 #define GL_COMPRESSED_SLUMINANCE_ALPHA    0x8C4B
   582 #endif
   583 
   584 #ifndef GL_VERSION_3_0
   585 #define GL_COMPARE_REF_TO_TEXTURE         0x884E
   586 #define GL_CLIP_DISTANCE0                 0x3000
   587 #define GL_CLIP_DISTANCE1                 0x3001
   588 #define GL_CLIP_DISTANCE2                 0x3002
   589 #define GL_CLIP_DISTANCE3                 0x3003
   590 #define GL_CLIP_DISTANCE4                 0x3004
   591 #define GL_CLIP_DISTANCE5                 0x3005
   592 #define GL_CLIP_DISTANCE6                 0x3006
   593 #define GL_CLIP_DISTANCE7                 0x3007
   594 #define GL_MAX_CLIP_DISTANCES             0x0D32
   595 #define GL_MAJOR_VERSION                  0x821B
   596 #define GL_MINOR_VERSION                  0x821C
   597 #define GL_NUM_EXTENSIONS                 0x821D
   598 #define GL_CONTEXT_FLAGS                  0x821E
   599 #define GL_DEPTH_BUFFER                   0x8223
   600 #define GL_STENCIL_BUFFER                 0x8224
   601 #define GL_COMPRESSED_RED                 0x8225
   602 #define GL_COMPRESSED_RG                  0x8226
   603 #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
   604 #define GL_RGBA32F                        0x8814
   605 #define GL_RGB32F                         0x8815
   606 #define GL_RGBA16F                        0x881A
   607 #define GL_RGB16F                         0x881B
   608 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER    0x88FD
   609 #define GL_MAX_ARRAY_TEXTURE_LAYERS       0x88FF
   610 #define GL_MIN_PROGRAM_TEXEL_OFFSET       0x8904
   611 #define GL_MAX_PROGRAM_TEXEL_OFFSET       0x8905
   612 #define GL_CLAMP_READ_COLOR               0x891C
   613 #define GL_FIXED_ONLY                     0x891D
   614 #define GL_MAX_VARYING_COMPONENTS         0x8B4B
   615 #define GL_TEXTURE_1D_ARRAY               0x8C18
   616 #define GL_PROXY_TEXTURE_1D_ARRAY         0x8C19
   617 #define GL_TEXTURE_2D_ARRAY               0x8C1A
   618 #define GL_PROXY_TEXTURE_2D_ARRAY         0x8C1B
   619 #define GL_TEXTURE_BINDING_1D_ARRAY       0x8C1C
   620 #define GL_TEXTURE_BINDING_2D_ARRAY       0x8C1D
   621 #define GL_R11F_G11F_B10F                 0x8C3A
   622 #define GL_UNSIGNED_INT_10F_11F_11F_REV   0x8C3B
   623 #define GL_RGB9_E5                        0x8C3D
   624 #define GL_UNSIGNED_INT_5_9_9_9_REV       0x8C3E
   625 #define GL_TEXTURE_SHARED_SIZE            0x8C3F
   626 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
   627 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
   628 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
   629 #define GL_TRANSFORM_FEEDBACK_VARYINGS    0x8C83
   630 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
   631 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
   632 #define GL_PRIMITIVES_GENERATED           0x8C87
   633 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
   634 #define GL_RASTERIZER_DISCARD             0x8C89
   635 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
   636 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
   637 #define GL_INTERLEAVED_ATTRIBS            0x8C8C
   638 #define GL_SEPARATE_ATTRIBS               0x8C8D
   639 #define GL_TRANSFORM_FEEDBACK_BUFFER      0x8C8E
   640 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
   641 #define GL_RGBA32UI                       0x8D70
   642 #define GL_RGB32UI                        0x8D71
   643 #define GL_RGBA16UI                       0x8D76
   644 #define GL_RGB16UI                        0x8D77
   645 #define GL_RGBA8UI                        0x8D7C
   646 #define GL_RGB8UI                         0x8D7D
   647 #define GL_RGBA32I                        0x8D82
   648 #define GL_RGB32I                         0x8D83
   649 #define GL_RGBA16I                        0x8D88
   650 #define GL_RGB16I                         0x8D89
   651 #define GL_RGBA8I                         0x8D8E
   652 #define GL_RGB8I                          0x8D8F
   653 #define GL_RED_INTEGER                    0x8D94
   654 #define GL_GREEN_INTEGER                  0x8D95
   655 #define GL_BLUE_INTEGER                   0x8D96
   656 #define GL_RGB_INTEGER                    0x8D98
   657 #define GL_RGBA_INTEGER                   0x8D99
   658 #define GL_BGR_INTEGER                    0x8D9A
   659 #define GL_BGRA_INTEGER                   0x8D9B
   660 #define GL_SAMPLER_1D_ARRAY               0x8DC0
   661 #define GL_SAMPLER_2D_ARRAY               0x8DC1
   662 #define GL_SAMPLER_1D_ARRAY_SHADOW        0x8DC3
   663 #define GL_SAMPLER_2D_ARRAY_SHADOW        0x8DC4
   664 #define GL_SAMPLER_CUBE_SHADOW            0x8DC5
   665 #define GL_UNSIGNED_INT_VEC2              0x8DC6
   666 #define GL_UNSIGNED_INT_VEC3              0x8DC7
   667 #define GL_UNSIGNED_INT_VEC4              0x8DC8
   668 #define GL_INT_SAMPLER_1D                 0x8DC9
   669 #define GL_INT_SAMPLER_2D                 0x8DCA
   670 #define GL_INT_SAMPLER_3D                 0x8DCB
   671 #define GL_INT_SAMPLER_CUBE               0x8DCC
   672 #define GL_INT_SAMPLER_1D_ARRAY           0x8DCE
   673 #define GL_INT_SAMPLER_2D_ARRAY           0x8DCF
   674 #define GL_UNSIGNED_INT_SAMPLER_1D        0x8DD1
   675 #define GL_UNSIGNED_INT_SAMPLER_2D        0x8DD2
   676 #define GL_UNSIGNED_INT_SAMPLER_3D        0x8DD3
   677 #define GL_UNSIGNED_INT_SAMPLER_CUBE      0x8DD4
   678 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY  0x8DD6
   679 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY  0x8DD7
   680 #define GL_QUERY_WAIT                     0x8E13
   681 #define GL_QUERY_NO_WAIT                  0x8E14
   682 #define GL_QUERY_BY_REGION_WAIT           0x8E15
   683 #define GL_QUERY_BY_REGION_NO_WAIT        0x8E16
   684 #define GL_BUFFER_ACCESS_FLAGS            0x911F
   685 #define GL_BUFFER_MAP_LENGTH              0x9120
   686 #define GL_BUFFER_MAP_OFFSET              0x9121
   687 /* Reuse tokens from ARB_depth_buffer_float */
   688 /* reuse GL_DEPTH_COMPONENT32F */
   689 /* reuse GL_DEPTH32F_STENCIL8 */
   690 /* reuse GL_FLOAT_32_UNSIGNED_INT_24_8_REV */
   691 /* Reuse tokens from ARB_framebuffer_object */
   692 /* reuse GL_INVALID_FRAMEBUFFER_OPERATION */
   693 /* reuse GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING */
   694 /* reuse GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE */
   695 /* reuse GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE */
   696 /* reuse GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE */
   697 /* reuse GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE */
   698 /* reuse GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE */
   699 /* reuse GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE */
   700 /* reuse GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE */
   701 /* reuse GL_FRAMEBUFFER_DEFAULT */
   702 /* reuse GL_FRAMEBUFFER_UNDEFINED */
   703 /* reuse GL_DEPTH_STENCIL_ATTACHMENT */
   704 /* reuse GL_INDEX */
   705 /* reuse GL_MAX_RENDERBUFFER_SIZE */
   706 /* reuse GL_DEPTH_STENCIL */
   707 /* reuse GL_UNSIGNED_INT_24_8 */
   708 /* reuse GL_DEPTH24_STENCIL8 */
   709 /* reuse GL_TEXTURE_STENCIL_SIZE */
   710 /* reuse GL_TEXTURE_RED_TYPE */
   711 /* reuse GL_TEXTURE_GREEN_TYPE */
   712 /* reuse GL_TEXTURE_BLUE_TYPE */
   713 /* reuse GL_TEXTURE_ALPHA_TYPE */
   714 /* reuse GL_TEXTURE_DEPTH_TYPE */
   715 /* reuse GL_UNSIGNED_NORMALIZED */
   716 /* reuse GL_FRAMEBUFFER_BINDING */
   717 /* reuse GL_DRAW_FRAMEBUFFER_BINDING */
   718 /* reuse GL_RENDERBUFFER_BINDING */
   719 /* reuse GL_READ_FRAMEBUFFER */
   720 /* reuse GL_DRAW_FRAMEBUFFER */
   721 /* reuse GL_READ_FRAMEBUFFER_BINDING */
   722 /* reuse GL_RENDERBUFFER_SAMPLES */
   723 /* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE */
   724 /* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME */
   725 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL */
   726 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE */
   727 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
   728 /* reuse GL_FRAMEBUFFER_COMPLETE */
   729 /* reuse GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT */
   730 /* reuse GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT */
   731 /* reuse GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER */
   732 /* reuse GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER */
   733 /* reuse GL_FRAMEBUFFER_UNSUPPORTED */
   734 /* reuse GL_MAX_COLOR_ATTACHMENTS */
   735 /* reuse GL_COLOR_ATTACHMENT0 */
   736 /* reuse GL_COLOR_ATTACHMENT1 */
   737 /* reuse GL_COLOR_ATTACHMENT2 */
   738 /* reuse GL_COLOR_ATTACHMENT3 */
   739 /* reuse GL_COLOR_ATTACHMENT4 */
   740 /* reuse GL_COLOR_ATTACHMENT5 */
   741 /* reuse GL_COLOR_ATTACHMENT6 */
   742 /* reuse GL_COLOR_ATTACHMENT7 */
   743 /* reuse GL_COLOR_ATTACHMENT8 */
   744 /* reuse GL_COLOR_ATTACHMENT9 */
   745 /* reuse GL_COLOR_ATTACHMENT10 */
   746 /* reuse GL_COLOR_ATTACHMENT11 */
   747 /* reuse GL_COLOR_ATTACHMENT12 */
   748 /* reuse GL_COLOR_ATTACHMENT13 */
   749 /* reuse GL_COLOR_ATTACHMENT14 */
   750 /* reuse GL_COLOR_ATTACHMENT15 */
   751 /* reuse GL_DEPTH_ATTACHMENT */
   752 /* reuse GL_STENCIL_ATTACHMENT */
   753 /* reuse GL_FRAMEBUFFER */
   754 /* reuse GL_RENDERBUFFER */
   755 /* reuse GL_RENDERBUFFER_WIDTH */
   756 /* reuse GL_RENDERBUFFER_HEIGHT */
   757 /* reuse GL_RENDERBUFFER_INTERNAL_FORMAT */
   758 /* reuse GL_STENCIL_INDEX1 */
   759 /* reuse GL_STENCIL_INDEX4 */
   760 /* reuse GL_STENCIL_INDEX8 */
   761 /* reuse GL_STENCIL_INDEX16 */
   762 /* reuse GL_RENDERBUFFER_RED_SIZE */
   763 /* reuse GL_RENDERBUFFER_GREEN_SIZE */
   764 /* reuse GL_RENDERBUFFER_BLUE_SIZE */
   765 /* reuse GL_RENDERBUFFER_ALPHA_SIZE */
   766 /* reuse GL_RENDERBUFFER_DEPTH_SIZE */
   767 /* reuse GL_RENDERBUFFER_STENCIL_SIZE */
   768 /* reuse GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE */
   769 /* reuse GL_MAX_SAMPLES */
   770 /* Reuse tokens from ARB_framebuffer_sRGB */
   771 /* reuse GL_FRAMEBUFFER_SRGB */
   772 /* Reuse tokens from ARB_half_float_vertex */
   773 /* reuse GL_HALF_FLOAT */
   774 /* Reuse tokens from ARB_map_buffer_range */
   775 /* reuse GL_MAP_READ_BIT */
   776 /* reuse GL_MAP_WRITE_BIT */
   777 /* reuse GL_MAP_INVALIDATE_RANGE_BIT */
   778 /* reuse GL_MAP_INVALIDATE_BUFFER_BIT */
   779 /* reuse GL_MAP_FLUSH_EXPLICIT_BIT */
   780 /* reuse GL_MAP_UNSYNCHRONIZED_BIT */
   781 /* Reuse tokens from ARB_texture_compression_rgtc */
   782 /* reuse GL_COMPRESSED_RED_RGTC1 */
   783 /* reuse GL_COMPRESSED_SIGNED_RED_RGTC1 */
   784 /* reuse GL_COMPRESSED_RG_RGTC2 */
   785 /* reuse GL_COMPRESSED_SIGNED_RG_RGTC2 */
   786 /* Reuse tokens from ARB_texture_rg */
   787 /* reuse GL_RG */
   788 /* reuse GL_RG_INTEGER */
   789 /* reuse GL_R8 */
   790 /* reuse GL_R16 */
   791 /* reuse GL_RG8 */
   792 /* reuse GL_RG16 */
   793 /* reuse GL_R16F */
   794 /* reuse GL_R32F */
   795 /* reuse GL_RG16F */
   796 /* reuse GL_RG32F */
   797 /* reuse GL_R8I */
   798 /* reuse GL_R8UI */
   799 /* reuse GL_R16I */
   800 /* reuse GL_R16UI */
   801 /* reuse GL_R32I */
   802 /* reuse GL_R32UI */
   803 /* reuse GL_RG8I */
   804 /* reuse GL_RG8UI */
   805 /* reuse GL_RG16I */
   806 /* reuse GL_RG16UI */
   807 /* reuse GL_RG32I */
   808 /* reuse GL_RG32UI */
   809 /* Reuse tokens from ARB_vertex_array_object */
   810 /* reuse GL_VERTEX_ARRAY_BINDING */
   811 #endif
   812 
   813 #ifndef GL_VERSION_3_0_DEPRECATED
   814 #define GL_CLAMP_VERTEX_COLOR             0x891A
   815 #define GL_CLAMP_FRAGMENT_COLOR           0x891B
   816 #define GL_ALPHA_INTEGER                  0x8D97
   817 /* Reuse tokens from ARB_framebuffer_object */
   818 /* reuse GL_TEXTURE_LUMINANCE_TYPE */
   819 /* reuse GL_TEXTURE_INTENSITY_TYPE */
   820 #endif
   821 
   822 #ifndef GL_VERSION_3_1
   823 #define GL_SAMPLER_2D_RECT                0x8B63
   824 #define GL_SAMPLER_2D_RECT_SHADOW         0x8B64
   825 #define GL_SAMPLER_BUFFER                 0x8DC2
   826 #define GL_INT_SAMPLER_2D_RECT            0x8DCD
   827 #define GL_INT_SAMPLER_BUFFER             0x8DD0
   828 #define GL_UNSIGNED_INT_SAMPLER_2D_RECT   0x8DD5
   829 #define GL_UNSIGNED_INT_SAMPLER_BUFFER    0x8DD8
   830 #define GL_TEXTURE_BUFFER                 0x8C2A
   831 #define GL_MAX_TEXTURE_BUFFER_SIZE        0x8C2B
   832 #define GL_TEXTURE_BINDING_BUFFER         0x8C2C
   833 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
   834 #define GL_TEXTURE_BUFFER_FORMAT          0x8C2E
   835 #define GL_TEXTURE_RECTANGLE              0x84F5
   836 #define GL_TEXTURE_BINDING_RECTANGLE      0x84F6
   837 #define GL_PROXY_TEXTURE_RECTANGLE        0x84F7
   838 #define GL_MAX_RECTANGLE_TEXTURE_SIZE     0x84F8
   839 #define GL_RED_SNORM                      0x8F90
   840 #define GL_RG_SNORM                       0x8F91
   841 #define GL_RGB_SNORM                      0x8F92
   842 #define GL_RGBA_SNORM                     0x8F93
   843 #define GL_R8_SNORM                       0x8F94
   844 #define GL_RG8_SNORM                      0x8F95
   845 #define GL_RGB8_SNORM                     0x8F96
   846 #define GL_RGBA8_SNORM                    0x8F97
   847 #define GL_R16_SNORM                      0x8F98
   848 #define GL_RG16_SNORM                     0x8F99
   849 #define GL_RGB16_SNORM                    0x8F9A
   850 #define GL_RGBA16_SNORM                   0x8F9B
   851 #define GL_SIGNED_NORMALIZED              0x8F9C
   852 #define GL_PRIMITIVE_RESTART              0x8F9D
   853 #define GL_PRIMITIVE_RESTART_INDEX        0x8F9E
   854 /* Reuse tokens from ARB_copy_buffer */
   855 /* reuse GL_COPY_READ_BUFFER */
   856 /* reuse GL_COPY_WRITE_BUFFER */
   857 /* Reuse tokens from ARB_draw_instanced (none) */
   858 /* Reuse tokens from ARB_uniform_buffer_object */
   859 /* reuse GL_UNIFORM_BUFFER */
   860 /* reuse GL_UNIFORM_BUFFER_BINDING */
   861 /* reuse GL_UNIFORM_BUFFER_START */
   862 /* reuse GL_UNIFORM_BUFFER_SIZE */
   863 /* reuse GL_MAX_VERTEX_UNIFORM_BLOCKS */
   864 /* reuse GL_MAX_FRAGMENT_UNIFORM_BLOCKS */
   865 /* reuse GL_MAX_COMBINED_UNIFORM_BLOCKS */
   866 /* reuse GL_MAX_UNIFORM_BUFFER_BINDINGS */
   867 /* reuse GL_MAX_UNIFORM_BLOCK_SIZE */
   868 /* reuse GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS */
   869 /* reuse GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS */
   870 /* reuse GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT */
   871 /* reuse GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */
   872 /* reuse GL_ACTIVE_UNIFORM_BLOCKS */
   873 /* reuse GL_UNIFORM_TYPE */
   874 /* reuse GL_UNIFORM_SIZE */
   875 /* reuse GL_UNIFORM_NAME_LENGTH */
   876 /* reuse GL_UNIFORM_BLOCK_INDEX */
   877 /* reuse GL_UNIFORM_OFFSET */
   878 /* reuse GL_UNIFORM_ARRAY_STRIDE */
   879 /* reuse GL_UNIFORM_MATRIX_STRIDE */
   880 /* reuse GL_UNIFORM_IS_ROW_MAJOR */
   881 /* reuse GL_UNIFORM_BLOCK_BINDING */
   882 /* reuse GL_UNIFORM_BLOCK_DATA_SIZE */
   883 /* reuse GL_UNIFORM_BLOCK_NAME_LENGTH */
   884 /* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS */
   885 /* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES */
   886 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER */
   887 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER */
   888 /* reuse GL_INVALID_INDEX */
   889 #endif
   890 
   891 #ifndef GL_VERSION_3_2
   892 #define GL_CONTEXT_CORE_PROFILE_BIT       0x00000001
   893 #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
   894 #define GL_LINES_ADJACENCY                0x000A
   895 #define GL_LINE_STRIP_ADJACENCY           0x000B
   896 #define GL_TRIANGLES_ADJACENCY            0x000C
   897 #define GL_TRIANGLE_STRIP_ADJACENCY       0x000D
   898 #define GL_PROGRAM_POINT_SIZE             0x8642
   899 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
   900 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
   901 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
   902 #define GL_GEOMETRY_SHADER                0x8DD9
   903 #define GL_GEOMETRY_VERTICES_OUT          0x8916
   904 #define GL_GEOMETRY_INPUT_TYPE            0x8917
   905 #define GL_GEOMETRY_OUTPUT_TYPE           0x8918
   906 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
   907 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES   0x8DE0
   908 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
   909 #define GL_MAX_VERTEX_OUTPUT_COMPONENTS   0x9122
   910 #define GL_MAX_GEOMETRY_INPUT_COMPONENTS  0x9123
   911 #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
   912 #define GL_MAX_FRAGMENT_INPUT_COMPONENTS  0x9125
   913 #define GL_CONTEXT_PROFILE_MASK           0x9126
   914 /* reuse GL_MAX_VARYING_COMPONENTS */
   915 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
   916 /* Reuse tokens from ARB_depth_clamp */
   917 /* reuse GL_DEPTH_CLAMP */
   918 /* Reuse tokens from ARB_draw_elements_base_vertex (none) */
   919 /* Reuse tokens from ARB_fragment_coord_conventions (none) */
   920 /* Reuse tokens from ARB_provoking_vertex */
   921 /* reuse GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION */
   922 /* reuse GL_FIRST_VERTEX_CONVENTION */
   923 /* reuse GL_LAST_VERTEX_CONVENTION */
   924 /* reuse GL_PROVOKING_VERTEX */
   925 /* Reuse tokens from ARB_seamless_cube_map */
   926 /* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS */
   927 /* Reuse tokens from ARB_sync */
   928 /* reuse GL_MAX_SERVER_WAIT_TIMEOUT */
   929 /* reuse GL_OBJECT_TYPE */
   930 /* reuse GL_SYNC_CONDITION */
   931 /* reuse GL_SYNC_STATUS */
   932 /* reuse GL_SYNC_FLAGS */
   933 /* reuse GL_SYNC_FENCE */
   934 /* reuse GL_SYNC_GPU_COMMANDS_COMPLETE */
   935 /* reuse GL_UNSIGNALED */
   936 /* reuse GL_SIGNALED */
   937 /* reuse GL_ALREADY_SIGNALED */
   938 /* reuse GL_TIMEOUT_EXPIRED */
   939 /* reuse GL_CONDITION_SATISFIED */
   940 /* reuse GL_WAIT_FAILED */
   941 /* reuse GL_TIMEOUT_IGNORED */
   942 /* reuse GL_SYNC_FLUSH_COMMANDS_BIT */
   943 /* reuse GL_TIMEOUT_IGNORED */
   944 /* Reuse tokens from ARB_texture_multisample */
   945 /* reuse GL_SAMPLE_POSITION */
   946 /* reuse GL_SAMPLE_MASK */
   947 /* reuse GL_SAMPLE_MASK_VALUE */
   948 /* reuse GL_MAX_SAMPLE_MASK_WORDS */
   949 /* reuse GL_TEXTURE_2D_MULTISAMPLE */
   950 /* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE */
   951 /* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
   952 /* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY */
   953 /* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE */
   954 /* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY */
   955 /* reuse GL_TEXTURE_SAMPLES */
   956 /* reuse GL_TEXTURE_FIXED_SAMPLE_LOCATIONS */
   957 /* reuse GL_SAMPLER_2D_MULTISAMPLE */
   958 /* reuse GL_INT_SAMPLER_2D_MULTISAMPLE */
   959 /* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE */
   960 /* reuse GL_SAMPLER_2D_MULTISAMPLE_ARRAY */
   961 /* reuse GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
   962 /* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
   963 /* reuse GL_MAX_COLOR_TEXTURE_SAMPLES */
   964 /* reuse GL_MAX_DEPTH_TEXTURE_SAMPLES */
   965 /* reuse GL_MAX_INTEGER_SAMPLES */
   966 /* Don't need to reuse tokens from ARB_vertex_array_bgra since they're already in 1.2 core */
   967 #endif
   968 
   969 #ifndef GL_VERSION_3_3
   970 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR    0x88FE
   971 /* Reuse tokens from ARB_blend_func_extended */
   972 /* reuse GL_SRC1_COLOR */
   973 /* reuse GL_ONE_MINUS_SRC1_COLOR */
   974 /* reuse GL_ONE_MINUS_SRC1_ALPHA */
   975 /* reuse GL_MAX_DUAL_SOURCE_DRAW_BUFFERS */
   976 /* Reuse tokens from ARB_explicit_attrib_location (none) */
   977 /* Reuse tokens from ARB_occlusion_query2 */
   978 /* reuse GL_ANY_SAMPLES_PASSED */
   979 /* Reuse tokens from ARB_sampler_objects */
   980 /* reuse GL_SAMPLER_BINDING */
   981 /* Reuse tokens from ARB_shader_bit_encoding (none) */
   982 /* Reuse tokens from ARB_texture_rgb10_a2ui */
   983 /* reuse GL_RGB10_A2UI */
   984 /* Reuse tokens from ARB_texture_swizzle */
   985 /* reuse GL_TEXTURE_SWIZZLE_R */
   986 /* reuse GL_TEXTURE_SWIZZLE_G */
   987 /* reuse GL_TEXTURE_SWIZZLE_B */
   988 /* reuse GL_TEXTURE_SWIZZLE_A */
   989 /* reuse GL_TEXTURE_SWIZZLE_RGBA */
   990 /* Reuse tokens from ARB_timer_query */
   991 /* reuse GL_TIME_ELAPSED */
   992 /* reuse GL_TIMESTAMP */
   993 /* Reuse tokens from ARB_vertex_type_2_10_10_10_rev */
   994 /* reuse GL_INT_2_10_10_10_REV */
   995 #endif
   996 
   997 #ifndef GL_VERSION_4_0
   998 #define GL_SAMPLE_SHADING                 0x8C36
   999 #define GL_MIN_SAMPLE_SHADING_VALUE       0x8C37
  1000 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
  1001 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
  1002 #define GL_TEXTURE_CUBE_MAP_ARRAY         0x9009
  1003 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
  1004 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY   0x900B
  1005 #define GL_SAMPLER_CUBE_MAP_ARRAY         0x900C
  1006 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW  0x900D
  1007 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY     0x900E
  1008 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
  1009 /* Reuse tokens from ARB_texture_query_lod (none) */
  1010 /* Reuse tokens from ARB_draw_buffers_blend (none) */
  1011 /* Reuse tokens from ARB_draw_indirect */
  1012 /* reuse GL_DRAW_INDIRECT_BUFFER */
  1013 /* reuse GL_DRAW_INDIRECT_BUFFER_BINDING */
  1014 /* Reuse tokens from ARB_gpu_shader5 */
  1015 /* reuse GL_GEOMETRY_SHADER_INVOCATIONS */
  1016 /* reuse GL_MAX_GEOMETRY_SHADER_INVOCATIONS */
  1017 /* reuse GL_MIN_FRAGMENT_INTERPOLATION_OFFSET */
  1018 /* reuse GL_MAX_FRAGMENT_INTERPOLATION_OFFSET */
  1019 /* reuse GL_FRAGMENT_INTERPOLATION_OFFSET_BITS */
  1020 /* reuse GL_MAX_VERTEX_STREAMS */
  1021 /* Reuse tokens from ARB_gpu_shader_fp64 */
  1022 /* reuse GL_DOUBLE_VEC2 */
  1023 /* reuse GL_DOUBLE_VEC3 */
  1024 /* reuse GL_DOUBLE_VEC4 */
  1025 /* reuse GL_DOUBLE_MAT2 */
  1026 /* reuse GL_DOUBLE_MAT3 */
  1027 /* reuse GL_DOUBLE_MAT4 */
  1028 /* reuse GL_DOUBLE_MAT2x3 */
  1029 /* reuse GL_DOUBLE_MAT2x4 */
  1030 /* reuse GL_DOUBLE_MAT3x2 */
  1031 /* reuse GL_DOUBLE_MAT3x4 */
  1032 /* reuse GL_DOUBLE_MAT4x2 */
  1033 /* reuse GL_DOUBLE_MAT4x3 */
  1034 /* Reuse tokens from ARB_shader_subroutine */
  1035 /* reuse GL_ACTIVE_SUBROUTINES */
  1036 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORMS */
  1037 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS */
  1038 /* reuse GL_ACTIVE_SUBROUTINE_MAX_LENGTH */
  1039 /* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH */
  1040 /* reuse GL_MAX_SUBROUTINES */
  1041 /* reuse GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS */
  1042 /* reuse GL_NUM_COMPATIBLE_SUBROUTINES */
  1043 /* reuse GL_COMPATIBLE_SUBROUTINES */
  1044 /* Reuse tokens from ARB_tessellation_shader */
  1045 /* reuse GL_PATCHES */
  1046 /* reuse GL_PATCH_VERTICES */
  1047 /* reuse GL_PATCH_DEFAULT_INNER_LEVEL */
  1048 /* reuse GL_PATCH_DEFAULT_OUTER_LEVEL */
  1049 /* reuse GL_TESS_CONTROL_OUTPUT_VERTICES */
  1050 /* reuse GL_TESS_GEN_MODE */
  1051 /* reuse GL_TESS_GEN_SPACING */
  1052 /* reuse GL_TESS_GEN_VERTEX_ORDER */
  1053 /* reuse GL_TESS_GEN_POINT_MODE */
  1054 /* reuse GL_ISOLINES */
  1055 /* reuse GL_FRACTIONAL_ODD */
  1056 /* reuse GL_FRACTIONAL_EVEN */
  1057 /* reuse GL_MAX_PATCH_VERTICES */
  1058 /* reuse GL_MAX_TESS_GEN_LEVEL */
  1059 /* reuse GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS */
  1060 /* reuse GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS */
  1061 /* reuse GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS */
  1062 /* reuse GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS */
  1063 /* reuse GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS */
  1064 /* reuse GL_MAX_TESS_PATCH_COMPONENTS */
  1065 /* reuse GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS */
  1066 /* reuse GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS */
  1067 /* reuse GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS */
  1068 /* reuse GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS */
  1069 /* reuse GL_MAX_TESS_CONTROL_INPUT_COMPONENTS */
  1070 /* reuse GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS */
  1071 /* reuse GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS */
  1072 /* reuse GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS */
  1073 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER */
  1074 /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER */
  1075 /* reuse GL_TESS_EVALUATION_SHADER */
  1076 /* reuse GL_TESS_CONTROL_SHADER */
  1077 /* Reuse tokens from ARB_texture_buffer_object_rgb32 (none) */
  1078 /* Reuse tokens from ARB_transform_feedback2 */
  1079 /* reuse GL_TRANSFORM_FEEDBACK */
  1080 /* reuse GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED */
  1081 /* reuse GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE */
  1082 /* reuse GL_TRANSFORM_FEEDBACK_BINDING */
  1083 /* Reuse tokens from ARB_transform_feedback3 */
  1084 /* reuse GL_MAX_TRANSFORM_FEEDBACK_BUFFERS */
  1085 /* reuse GL_MAX_VERTEX_STREAMS */
  1086 #endif
  1087 
  1088 #ifndef GL_VERSION_4_1
  1089 /* Reuse tokens from ARB_ES2_compatibility */
  1090 /* reuse GL_FIXED */
  1091 /* reuse GL_IMPLEMENTATION_COLOR_READ_TYPE */
  1092 /* reuse GL_IMPLEMENTATION_COLOR_READ_FORMAT */
  1093 /* reuse GL_LOW_FLOAT */
  1094 /* reuse GL_MEDIUM_FLOAT */
  1095 /* reuse GL_HIGH_FLOAT */
  1096 /* reuse GL_LOW_INT */
  1097 /* reuse GL_MEDIUM_INT */
  1098 /* reuse GL_HIGH_INT */
  1099 /* reuse GL_SHADER_COMPILER */
  1100 /* reuse GL_NUM_SHADER_BINARY_FORMATS */
  1101 /* reuse GL_MAX_VERTEX_UNIFORM_VECTORS */
  1102 /* reuse GL_MAX_VARYING_VECTORS */
  1103 /* reuse GL_MAX_FRAGMENT_UNIFORM_VECTORS */
  1104 /* Reuse tokens from ARB_get_program_binary */
  1105 /* reuse GL_PROGRAM_BINARY_RETRIEVABLE_HINT */
  1106 /* reuse GL_PROGRAM_BINARY_LENGTH */
  1107 /* reuse GL_NUM_PROGRAM_BINARY_FORMATS */
  1108 /* reuse GL_PROGRAM_BINARY_FORMATS */
  1109 /* Reuse tokens from ARB_separate_shader_objects */
  1110 /* reuse GL_VERTEX_SHADER_BIT */
  1111 /* reuse GL_FRAGMENT_SHADER_BIT */
  1112 /* reuse GL_GEOMETRY_SHADER_BIT */
  1113 /* reuse GL_TESS_CONTROL_SHADER_BIT */
  1114 /* reuse GL_TESS_EVALUATION_SHADER_BIT */
  1115 /* reuse GL_ALL_SHADER_BITS */
  1116 /* reuse GL_PROGRAM_SEPARABLE */
  1117 /* reuse GL_ACTIVE_PROGRAM */
  1118 /* reuse GL_PROGRAM_PIPELINE_BINDING */
  1119 /* Reuse tokens from ARB_shader_precision (none) */
  1120 /* Reuse tokens from ARB_vertex_attrib_64bit - all are in GL 3.0 and 4.0 already */
  1121 /* Reuse tokens from ARB_viewport_array - some are in GL 1.1 and ARB_provoking_vertex already */
  1122 /* reuse GL_MAX_VIEWPORTS */
  1123 /* reuse GL_VIEWPORT_SUBPIXEL_BITS */
  1124 /* reuse GL_VIEWPORT_BOUNDS_RANGE */
  1125 /* reuse GL_LAYER_PROVOKING_VERTEX */
  1126 /* reuse GL_VIEWPORT_INDEX_PROVOKING_VERTEX */
  1127 /* reuse GL_UNDEFINED_VERTEX */
  1128 #endif
  1129 
  1130 #ifndef GL_ARB_multitexture
  1131 #define GL_TEXTURE0_ARB                   0x84C0
  1132 #define GL_TEXTURE1_ARB                   0x84C1
  1133 #define GL_TEXTURE2_ARB                   0x84C2
  1134 #define GL_TEXTURE3_ARB                   0x84C3
  1135 #define GL_TEXTURE4_ARB                   0x84C4
  1136 #define GL_TEXTURE5_ARB                   0x84C5
  1137 #define GL_TEXTURE6_ARB                   0x84C6
  1138 #define GL_TEXTURE7_ARB                   0x84C7
  1139 #define GL_TEXTURE8_ARB                   0x84C8
  1140 #define GL_TEXTURE9_ARB                   0x84C9
  1141 #define GL_TEXTURE10_ARB                  0x84CA
  1142 #define GL_TEXTURE11_ARB                  0x84CB
  1143 #define GL_TEXTURE12_ARB                  0x84CC
  1144 #define GL_TEXTURE13_ARB                  0x84CD
  1145 #define GL_TEXTURE14_ARB                  0x84CE
  1146 #define GL_TEXTURE15_ARB                  0x84CF
  1147 #define GL_TEXTURE16_ARB                  0x84D0
  1148 #define GL_TEXTURE17_ARB                  0x84D1
  1149 #define GL_TEXTURE18_ARB                  0x84D2
  1150 #define GL_TEXTURE19_ARB                  0x84D3
  1151 #define GL_TEXTURE20_ARB                  0x84D4
  1152 #define GL_TEXTURE21_ARB                  0x84D5
  1153 #define GL_TEXTURE22_ARB                  0x84D6
  1154 #define GL_TEXTURE23_ARB                  0x84D7
  1155 #define GL_TEXTURE24_ARB                  0x84D8
  1156 #define GL_TEXTURE25_ARB                  0x84D9
  1157 #define GL_TEXTURE26_ARB                  0x84DA
  1158 #define GL_TEXTURE27_ARB                  0x84DB
  1159 #define GL_TEXTURE28_ARB                  0x84DC
  1160 #define GL_TEXTURE29_ARB                  0x84DD
  1161 #define GL_TEXTURE30_ARB                  0x84DE
  1162 #define GL_TEXTURE31_ARB                  0x84DF
  1163 #define GL_ACTIVE_TEXTURE_ARB             0x84E0
  1164 #define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
  1165 #define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
  1166 #endif
  1167 
  1168 #ifndef GL_ARB_transpose_matrix
  1169 #define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
  1170 #define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
  1171 #define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
  1172 #define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
  1173 #endif
  1174 
  1175 #ifndef GL_ARB_multisample
  1176 #define GL_MULTISAMPLE_ARB                0x809D
  1177 #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
  1178 #define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
  1179 #define GL_SAMPLE_COVERAGE_ARB            0x80A0
  1180 #define GL_SAMPLE_BUFFERS_ARB             0x80A8
  1181 #define GL_SAMPLES_ARB                    0x80A9
  1182 #define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
  1183 #define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
  1184 #define GL_MULTISAMPLE_BIT_ARB            0x20000000
  1185 #endif
  1186 
  1187 #ifndef GL_ARB_texture_env_add
  1188 #endif
  1189 
  1190 #ifndef GL_ARB_texture_cube_map
  1191 #define GL_NORMAL_MAP_ARB                 0x8511
  1192 #define GL_REFLECTION_MAP_ARB             0x8512
  1193 #define GL_TEXTURE_CUBE_MAP_ARB           0x8513
  1194 #define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
  1195 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
  1196 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
  1197 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
  1198 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
  1199 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
  1200 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
  1201 #define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
  1202 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
  1203 #endif
  1204 
  1205 #ifndef GL_ARB_texture_compression
  1206 #define GL_COMPRESSED_ALPHA_ARB           0x84E9
  1207 #define GL_COMPRESSED_LUMINANCE_ARB       0x84EA
  1208 #define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
  1209 #define GL_COMPRESSED_INTENSITY_ARB       0x84EC
  1210 #define GL_COMPRESSED_RGB_ARB             0x84ED
  1211 #define GL_COMPRESSED_RGBA_ARB            0x84EE
  1212 #define GL_TEXTURE_COMPRESSION_HINT_ARB   0x84EF
  1213 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
  1214 #define GL_TEXTURE_COMPRESSED_ARB         0x86A1
  1215 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
  1216 #define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
  1217 #endif
  1218 
  1219 #ifndef GL_ARB_texture_border_clamp
  1220 #define GL_CLAMP_TO_BORDER_ARB            0x812D
  1221 #endif
  1222 
  1223 #ifndef GL_ARB_point_parameters
  1224 #define GL_POINT_SIZE_MIN_ARB             0x8126
  1225 #define GL_POINT_SIZE_MAX_ARB             0x8127
  1226 #define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
  1227 #define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
  1228 #endif
  1229 
  1230 #ifndef GL_ARB_vertex_blend
  1231 #define GL_MAX_VERTEX_UNITS_ARB           0x86A4
  1232 #define GL_ACTIVE_VERTEX_UNITS_ARB        0x86A5
  1233 #define GL_WEIGHT_SUM_UNITY_ARB           0x86A6
  1234 #define GL_VERTEX_BLEND_ARB               0x86A7
  1235 #define GL_CURRENT_WEIGHT_ARB             0x86A8
  1236 #define GL_WEIGHT_ARRAY_TYPE_ARB          0x86A9
  1237 #define GL_WEIGHT_ARRAY_STRIDE_ARB        0x86AA
  1238 #define GL_WEIGHT_ARRAY_SIZE_ARB          0x86AB
  1239 #define GL_WEIGHT_ARRAY_POINTER_ARB       0x86AC
  1240 #define GL_WEIGHT_ARRAY_ARB               0x86AD
  1241 #define GL_MODELVIEW0_ARB                 0x1700
  1242 #define GL_MODELVIEW1_ARB                 0x850A
  1243 #define GL_MODELVIEW2_ARB                 0x8722
  1244 #define GL_MODELVIEW3_ARB                 0x8723
  1245 #define GL_MODELVIEW4_ARB                 0x8724
  1246 #define GL_MODELVIEW5_ARB                 0x8725
  1247 #define GL_MODELVIEW6_ARB                 0x8726
  1248 #define GL_MODELVIEW7_ARB                 0x8727
  1249 #define GL_MODELVIEW8_ARB                 0x8728
  1250 #define GL_MODELVIEW9_ARB                 0x8729
  1251 #define GL_MODELVIEW10_ARB                0x872A
  1252 #define GL_MODELVIEW11_ARB                0x872B
  1253 #define GL_MODELVIEW12_ARB                0x872C
  1254 #define GL_MODELVIEW13_ARB                0x872D
  1255 #define GL_MODELVIEW14_ARB                0x872E
  1256 #define GL_MODELVIEW15_ARB                0x872F
  1257 #define GL_MODELVIEW16_ARB                0x8730
  1258 #define GL_MODELVIEW17_ARB                0x8731
  1259 #define GL_MODELVIEW18_ARB                0x8732
  1260 #define GL_MODELVIEW19_ARB                0x8733
  1261 #define GL_MODELVIEW20_ARB                0x8734
  1262 #define GL_MODELVIEW21_ARB                0x8735
  1263 #define GL_MODELVIEW22_ARB                0x8736
  1264 #define GL_MODELVIEW23_ARB                0x8737
  1265 #define GL_MODELVIEW24_ARB                0x8738
  1266 #define GL_MODELVIEW25_ARB                0x8739
  1267 #define GL_MODELVIEW26_ARB                0x873A
  1268 #define GL_MODELVIEW27_ARB                0x873B
  1269 #define GL_MODELVIEW28_ARB                0x873C
  1270 #define GL_MODELVIEW29_ARB                0x873D
  1271 #define GL_MODELVIEW30_ARB                0x873E
  1272 #define GL_MODELVIEW31_ARB                0x873F
  1273 #endif
  1274 
  1275 #ifndef GL_ARB_matrix_palette
  1276 #define GL_MATRIX_PALETTE_ARB             0x8840
  1277 #define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
  1278 #define GL_MAX_PALETTE_MATRICES_ARB       0x8842
  1279 #define GL_CURRENT_PALETTE_MATRIX_ARB     0x8843
  1280 #define GL_MATRIX_INDEX_ARRAY_ARB         0x8844
  1281 #define GL_CURRENT_MATRIX_INDEX_ARB       0x8845
  1282 #define GL_MATRIX_INDEX_ARRAY_SIZE_ARB    0x8846
  1283 #define GL_MATRIX_INDEX_ARRAY_TYPE_ARB    0x8847
  1284 #define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB  0x8848
  1285 #define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
  1286 #endif
  1287 
  1288 #ifndef GL_ARB_texture_env_combine
  1289 #define GL_COMBINE_ARB                    0x8570
  1290 #define GL_COMBINE_RGB_ARB                0x8571
  1291 #define GL_COMBINE_ALPHA_ARB              0x8572
  1292 #define GL_SOURCE0_RGB_ARB                0x8580
  1293 #define GL_SOURCE1_RGB_ARB                0x8581
  1294 #define GL_SOURCE2_RGB_ARB                0x8582
  1295 #define GL_SOURCE0_ALPHA_ARB              0x8588
  1296 #define GL_SOURCE1_ALPHA_ARB              0x8589
  1297 #define GL_SOURCE2_ALPHA_ARB              0x858A
  1298 #define GL_OPERAND0_RGB_ARB               0x8590
  1299 #define GL_OPERAND1_RGB_ARB               0x8591
  1300 #define GL_OPERAND2_RGB_ARB               0x8592
  1301 #define GL_OPERAND0_ALPHA_ARB             0x8598
  1302 #define GL_OPERAND1_ALPHA_ARB             0x8599
  1303 #define GL_OPERAND2_ALPHA_ARB             0x859A
  1304 #define GL_RGB_SCALE_ARB                  0x8573
  1305 #define GL_ADD_SIGNED_ARB                 0x8574
  1306 #define GL_INTERPOLATE_ARB                0x8575
  1307 #define GL_SUBTRACT_ARB                   0x84E7
  1308 #define GL_CONSTANT_ARB                   0x8576
  1309 #define GL_PRIMARY_COLOR_ARB              0x8577
  1310 #define GL_PREVIOUS_ARB                   0x8578
  1311 #endif
  1312 
  1313 #ifndef GL_ARB_texture_env_crossbar
  1314 #endif
  1315 
  1316 #ifndef GL_ARB_texture_env_dot3
  1317 #define GL_DOT3_RGB_ARB                   0x86AE
  1318 #define GL_DOT3_RGBA_ARB                  0x86AF
  1319 #endif
  1320 
  1321 #ifndef GL_ARB_texture_mirrored_repeat
  1322 #define GL_MIRRORED_REPEAT_ARB            0x8370
  1323 #endif
  1324 
  1325 #ifndef GL_ARB_depth_texture
  1326 #define GL_DEPTH_COMPONENT16_ARB          0x81A5
  1327 #define GL_DEPTH_COMPONENT24_ARB          0x81A6
  1328 #define GL_DEPTH_COMPONENT32_ARB          0x81A7
  1329 #define GL_TEXTURE_DEPTH_SIZE_ARB         0x884A
  1330 #define GL_DEPTH_TEXTURE_MODE_ARB         0x884B
  1331 #endif
  1332 
  1333 #ifndef GL_ARB_shadow
  1334 #define GL_TEXTURE_COMPARE_MODE_ARB       0x884C
  1335 #define GL_TEXTURE_COMPARE_FUNC_ARB       0x884D
  1336 #define GL_COMPARE_R_TO_TEXTURE_ARB       0x884E
  1337 #endif
  1338 
  1339 #ifndef GL_ARB_shadow_ambient
  1340 #define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
  1341 #endif
  1342 
  1343 #ifndef GL_ARB_window_pos
  1344 #endif
  1345 
  1346 #ifndef GL_ARB_vertex_program
  1347 #define GL_COLOR_SUM_ARB                  0x8458
  1348 #define GL_VERTEX_PROGRAM_ARB             0x8620
  1349 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
  1350 #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB   0x8623
  1351 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
  1352 #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB   0x8625
  1353 #define GL_CURRENT_VERTEX_ATTRIB_ARB      0x8626
  1354 #define GL_PROGRAM_LENGTH_ARB             0x8627
  1355 #define GL_PROGRAM_STRING_ARB             0x8628
  1356 #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
  1357 #define GL_MAX_PROGRAM_MATRICES_ARB       0x862F
  1358 #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
  1359 #define GL_CURRENT_MATRIX_ARB             0x8641
  1360 #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB  0x8642
  1361 #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB    0x8643
  1362 #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
  1363 #define GL_PROGRAM_ERROR_POSITION_ARB     0x864B
  1364 #define GL_PROGRAM_BINDING_ARB            0x8677
  1365 #define GL_MAX_VERTEX_ATTRIBS_ARB         0x8869
  1366 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
  1367 #define GL_PROGRAM_ERROR_STRING_ARB       0x8874
  1368 #define GL_PROGRAM_FORMAT_ASCII_ARB       0x8875
  1369 #define GL_PROGRAM_FORMAT_ARB             0x8876
  1370 #define GL_PROGRAM_INSTRUCTIONS_ARB       0x88A0
  1371 #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB   0x88A1
  1372 #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
  1373 #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
  1374 #define GL_PROGRAM_TEMPORARIES_ARB        0x88A4
  1375 #define GL_MAX_PROGRAM_TEMPORARIES_ARB    0x88A5
  1376 #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
  1377 #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
  1378 #define GL_PROGRAM_PARAMETERS_ARB         0x88A8
  1379 #define GL_MAX_PROGRAM_PARAMETERS_ARB     0x88A9
  1380 #define GL_PROGRAM_NATIVE_PARAMETERS_ARB  0x88AA
  1381 #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
  1382 #define GL_PROGRAM_ATTRIBS_ARB            0x88AC
  1383 #define GL_MAX_PROGRAM_ATTRIBS_ARB        0x88AD
  1384 #define GL_PROGRAM_NATIVE_ATTRIBS_ARB     0x88AE
  1385 #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
  1386 #define GL_PROGRAM_ADDRESS_REGISTERS_ARB  0x88B0
  1387 #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
  1388 #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
  1389 #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
  1390 #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
  1391 #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
  1392 #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
  1393 #define GL_TRANSPOSE_CURRENT_MATRIX_ARB   0x88B7
  1394 #define GL_MATRIX0_ARB                    0x88C0
  1395 #define GL_MATRIX1_ARB                    0x88C1
  1396 #define GL_MATRIX2_ARB                    0x88C2
  1397 #define GL_MATRIX3_ARB                    0x88C3
  1398 #define GL_MATRIX4_ARB                    0x88C4
  1399 #define GL_MATRIX5_ARB                    0x88C5
  1400 #define GL_MATRIX6_ARB                    0x88C6
  1401 #define GL_MATRIX7_ARB                    0x88C7
  1402 #define GL_MATRIX8_ARB                    0x88C8
  1403 #define GL_MATRIX9_ARB                    0x88C9
  1404 #define GL_MATRIX10_ARB                   0x88CA
  1405 #define GL_MATRIX11_ARB                   0x88CB
  1406 #define GL_MATRIX12_ARB                   0x88CC
  1407 #define GL_MATRIX13_ARB                   0x88CD
  1408 #define GL_MATRIX14_ARB                   0x88CE
  1409 #define GL_MATRIX15_ARB                   0x88CF
  1410 #define GL_MATRIX16_ARB                   0x88D0
  1411 #define GL_MATRIX17_ARB                   0x88D1
  1412 #define GL_MATRIX18_ARB                   0x88D2
  1413 #define GL_MATRIX19_ARB                   0x88D3
  1414 #define GL_MATRIX20_ARB                   0x88D4
  1415 #define GL_MATRIX21_ARB                   0x88D5
  1416 #define GL_MATRIX22_ARB                   0x88D6
  1417 #define GL_MATRIX23_ARB                   0x88D7
  1418 #define GL_MATRIX24_ARB                   0x88D8
  1419 #define GL_MATRIX25_ARB                   0x88D9
  1420 #define GL_MATRIX26_ARB                   0x88DA
  1421 #define GL_MATRIX27_ARB                   0x88DB
  1422 #define GL_MATRIX28_ARB                   0x88DC
  1423 #define GL_MATRIX29_ARB                   0x88DD
  1424 #define GL_MATRIX30_ARB                   0x88DE
  1425 #define GL_MATRIX31_ARB                   0x88DF
  1426 #endif
  1427 
  1428 #ifndef GL_ARB_fragment_program
  1429 #define GL_FRAGMENT_PROGRAM_ARB           0x8804
  1430 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB   0x8805
  1431 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB   0x8806
  1432 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB   0x8807
  1433 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
  1434 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
  1435 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
  1436 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
  1437 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
  1438 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
  1439 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
  1440 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
  1441 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
  1442 #define GL_MAX_TEXTURE_COORDS_ARB         0x8871
  1443 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB    0x8872
  1444 #endif
  1445 
  1446 #ifndef GL_ARB_vertex_buffer_object
  1447 #define GL_BUFFER_SIZE_ARB                0x8764
  1448 #define GL_BUFFER_USAGE_ARB               0x8765
  1449 #define GL_ARRAY_BUFFER_ARB               0x8892
  1450 #define GL_ELEMENT_ARRAY_BUFFER_ARB       0x8893
  1451 #define GL_ARRAY_BUFFER_BINDING_ARB       0x8894
  1452 #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
  1453 #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
  1454 #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
  1455 #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
  1456 #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
  1457 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
  1458 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
  1459 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
  1460 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
  1461 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
  1462 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
  1463 #define GL_READ_ONLY_ARB                  0x88B8
  1464 #define GL_WRITE_ONLY_ARB                 0x88B9
  1465 #define GL_READ_WRITE_ARB                 0x88BA
  1466 #define GL_BUFFER_ACCESS_ARB              0x88BB
  1467 #define GL_BUFFER_MAPPED_ARB              0x88BC
  1468 #define GL_BUFFER_MAP_POINTER_ARB         0x88BD
  1469 #define GL_STREAM_DRAW_ARB                0x88E0
  1470 #define GL_STREAM_READ_ARB                0x88E1
  1471 #define GL_STREAM_COPY_ARB                0x88E2
  1472 #define GL_STATIC_DRAW_ARB                0x88E4
  1473 #define GL_STATIC_READ_ARB                0x88E5
  1474 #define GL_STATIC_COPY_ARB                0x88E6
  1475 #define GL_DYNAMIC_DRAW_ARB               0x88E8
  1476 #define GL_DYNAMIC_READ_ARB               0x88E9
  1477 #define GL_DYNAMIC_COPY_ARB               0x88EA
  1478 #endif
  1479 
  1480 #ifndef GL_ARB_occlusion_query
  1481 #define GL_QUERY_COUNTER_BITS_ARB         0x8864
  1482 #define GL_CURRENT_QUERY_ARB              0x8865
  1483 #define GL_QUERY_RESULT_ARB               0x8866
  1484 #define GL_QUERY_RESULT_AVAILABLE_ARB     0x8867
  1485 #define GL_SAMPLES_PASSED_ARB             0x8914
  1486 #endif
  1487 
  1488 #ifndef GL_ARB_shader_objects
  1489 #define GL_PROGRAM_OBJECT_ARB             0x8B40
  1490 #define GL_SHADER_OBJECT_ARB              0x8B48
  1491 #define GL_OBJECT_TYPE_ARB                0x8B4E
  1492 #define GL_OBJECT_SUBTYPE_ARB             0x8B4F
  1493 #define GL_FLOAT_VEC2_ARB                 0x8B50
  1494 #define GL_FLOAT_VEC3_ARB                 0x8B51
  1495 #define GL_FLOAT_VEC4_ARB                 0x8B52
  1496 #define GL_INT_VEC2_ARB                   0x8B53
  1497 #define GL_INT_VEC3_ARB                   0x8B54
  1498 #define GL_INT_VEC4_ARB                   0x8B55
  1499 #define GL_BOOL_ARB                       0x8B56
  1500 #define GL_BOOL_VEC2_ARB                  0x8B57
  1501 #define GL_BOOL_VEC3_ARB                  0x8B58
  1502 #define GL_BOOL_VEC4_ARB                  0x8B59
  1503 #define GL_FLOAT_MAT2_ARB                 0x8B5A
  1504 #define GL_FLOAT_MAT3_ARB                 0x8B5B
  1505 #define GL_FLOAT_MAT4_ARB                 0x8B5C
  1506 #define GL_SAMPLER_1D_ARB                 0x8B5D
  1507 #define GL_SAMPLER_2D_ARB                 0x8B5E
  1508 #define GL_SAMPLER_3D_ARB                 0x8B5F
  1509 #define GL_SAMPLER_CUBE_ARB               0x8B60
  1510 #define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
  1511 #define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
  1512 #define GL_SAMPLER_2D_RECT_ARB            0x8B63
  1513 #define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
  1514 #define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
  1515 #define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
  1516 #define GL_OBJECT_LINK_STATUS_ARB         0x8B82
  1517 #define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
  1518 #define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
  1519 #define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
  1520 #define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
  1521 #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
  1522 #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
  1523 #endif
  1524 
  1525 #ifndef GL_ARB_vertex_shader
  1526 #define GL_VERTEX_SHADER_ARB              0x8B31
  1527 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
  1528 #define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
  1529 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
  1530 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
  1531 #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
  1532 #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
  1533 #endif
  1534 
  1535 #ifndef GL_ARB_fragment_shader
  1536 #define GL_FRAGMENT_SHADER_ARB            0x8B30
  1537 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
  1538 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
  1539 #endif
  1540 
  1541 #ifndef GL_ARB_shading_language_100
  1542 #define GL_SHADING_LANGUAGE_VERSION_ARB   0x8B8C
  1543 #endif
  1544 
  1545 #ifndef GL_ARB_texture_non_power_of_two
  1546 #endif
  1547 
  1548 #ifndef GL_ARB_point_sprite
  1549 #define GL_POINT_SPRITE_ARB               0x8861
  1550 #define GL_COORD_REPLACE_ARB              0x8862
  1551 #endif
  1552 
  1553 #ifndef GL_ARB_fragment_program_shadow
  1554 #endif
  1555 
  1556 #ifndef GL_ARB_draw_buffers
  1557 #define GL_MAX_DRAW_BUFFERS_ARB           0x8824
  1558 #define GL_DRAW_BUFFER0_ARB               0x8825
  1559 #define GL_DRAW_BUFFER1_ARB               0x8826
  1560 #define GL_DRAW_BUFFER2_ARB               0x8827
  1561 #define GL_DRAW_BUFFER3_ARB               0x8828
  1562 #define GL_DRAW_BUFFER4_ARB               0x8829
  1563 #define GL_DRAW_BUFFER5_ARB               0x882A
  1564 #define GL_DRAW_BUFFER6_ARB               0x882B
  1565 #define GL_DRAW_BUFFER7_ARB               0x882C
  1566 #define GL_DRAW_BUFFER8_ARB               0x882D
  1567 #define GL_DRAW_BUFFER9_ARB               0x882E
  1568 #define GL_DRAW_BUFFER10_ARB              0x882F
  1569 #define GL_DRAW_BUFFER11_ARB              0x8830
  1570 #define GL_DRAW_BUFFER12_ARB              0x8831
  1571 #define GL_DRAW_BUFFER13_ARB              0x8832
  1572 #define GL_DRAW_BUFFER14_ARB              0x8833
  1573 #define GL_DRAW_BUFFER15_ARB              0x8834
  1574 #endif
  1575 
  1576 #ifndef GL_ARB_texture_rectangle
  1577 #define GL_TEXTURE_RECTANGLE_ARB          0x84F5
  1578 #define GL_TEXTURE_BINDING_RECTANGLE_ARB  0x84F6
  1579 #define GL_PROXY_TEXTURE_RECTANGLE_ARB    0x84F7
  1580 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
  1581 #endif
  1582 
  1583 #ifndef GL_ARB_color_buffer_float
  1584 #define GL_RGBA_FLOAT_MODE_ARB            0x8820
  1585 #define GL_CLAMP_VERTEX_COLOR_ARB         0x891A
  1586 #define GL_CLAMP_FRAGMENT_COLOR_ARB       0x891B
  1587 #define GL_CLAMP_READ_COLOR_ARB           0x891C
  1588 #define GL_FIXED_ONLY_ARB                 0x891D
  1589 #endif
  1590 
  1591 #ifndef GL_ARB_half_float_pixel
  1592 #define GL_HALF_FLOAT_ARB                 0x140B
  1593 #endif
  1594 
  1595 #ifndef GL_ARB_texture_float
  1596 #define GL_TEXTURE_RED_TYPE_ARB           0x8C10
  1597 #define GL_TEXTURE_GREEN_TYPE_ARB         0x8C11
  1598 #define GL_TEXTURE_BLUE_TYPE_ARB          0x8C12
  1599 #define GL_TEXTURE_ALPHA_TYPE_ARB         0x8C13
  1600 #define GL_TEXTURE_LUMINANCE_TYPE_ARB     0x8C14
  1601 #define GL_TEXTURE_INTENSITY_TYPE_ARB     0x8C15
  1602 #define GL_TEXTURE_DEPTH_TYPE_ARB         0x8C16
  1603 #define GL_UNSIGNED_NORMALIZED_ARB        0x8C17
  1604 #define GL_RGBA32F_ARB                    0x8814
  1605 #define GL_RGB32F_ARB                     0x8815
  1606 #define GL_ALPHA32F_ARB                   0x8816
  1607 #define GL_INTENSITY32F_ARB               0x8817
  1608 #define GL_LUMINANCE32F_ARB               0x8818
  1609 #define GL_LUMINANCE_ALPHA32F_ARB         0x8819
  1610 #define GL_RGBA16F_ARB                    0x881A
  1611 #define GL_RGB16F_ARB                     0x881B
  1612 #define GL_ALPHA16F_ARB                   0x881C
  1613 #define GL_INTENSITY16F_ARB               0x881D
  1614 #define GL_LUMINANCE16F_ARB               0x881E
  1615 #define GL_LUMINANCE_ALPHA16F_ARB         0x881F
  1616 #endif
  1617 
  1618 #ifndef GL_ARB_pixel_buffer_object
  1619 #define GL_PIXEL_PACK_BUFFER_ARB          0x88EB
  1620 #define GL_PIXEL_UNPACK_BUFFER_ARB        0x88EC
  1621 #define GL_PIXEL_PACK_BUFFER_BINDING_ARB  0x88ED
  1622 #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
  1623 #endif
  1624 
  1625 #ifndef GL_ARB_depth_buffer_float
  1626 #define GL_DEPTH_COMPONENT32F             0x8CAC
  1627 #define GL_DEPTH32F_STENCIL8              0x8CAD
  1628 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
  1629 #endif
  1630 
  1631 #ifndef GL_ARB_draw_instanced
  1632 #endif
  1633 
  1634 #ifndef GL_ARB_framebuffer_object
  1635 #define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
  1636 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
  1637 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
  1638 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
  1639 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
  1640 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
  1641 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
  1642 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
  1643 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
  1644 #define GL_FRAMEBUFFER_DEFAULT            0x8218
  1645 #define GL_FRAMEBUFFER_UNDEFINED          0x8219
  1646 #define GL_DEPTH_STENCIL_ATTACHMENT       0x821A
  1647 #define GL_MAX_RENDERBUFFER_SIZE          0x84E8
  1648 #define GL_DEPTH_STENCIL                  0x84F9
  1649 #define GL_UNSIGNED_INT_24_8              0x84FA
  1650 #define GL_DEPTH24_STENCIL8               0x88F0
  1651 #define GL_TEXTURE_STENCIL_SIZE           0x88F1
  1652 #define GL_TEXTURE_RED_TYPE               0x8C10
  1653 #define GL_TEXTURE_GREEN_TYPE             0x8C11
  1654 #define GL_TEXTURE_BLUE_TYPE              0x8C12
  1655 #define GL_TEXTURE_ALPHA_TYPE             0x8C13
  1656 #define GL_TEXTURE_DEPTH_TYPE             0x8C16
  1657 #define GL_UNSIGNED_NORMALIZED            0x8C17
  1658 #define GL_FRAMEBUFFER_BINDING            0x8CA6
  1659 #define GL_DRAW_FRAMEBUFFER_BINDING       GL_FRAMEBUFFER_BINDING
  1660 #define GL_RENDERBUFFER_BINDING           0x8CA7
  1661 #define GL_READ_FRAMEBUFFER               0x8CA8
  1662 #define GL_DRAW_FRAMEBUFFER               0x8CA9
  1663 #define GL_READ_FRAMEBUFFER_BINDING       0x8CAA
  1664 #define GL_RENDERBUFFER_SAMPLES           0x8CAB
  1665 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
  1666 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
  1667 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
  1668 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
  1669 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
  1670 #define GL_FRAMEBUFFER_COMPLETE           0x8CD5
  1671 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
  1672 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
  1673 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
  1674 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
  1675 #define GL_FRAMEBUFFER_UNSUPPORTED        0x8CDD
  1676 #define GL_MAX_COLOR_ATTACHMENTS          0x8CDF
  1677 #define GL_COLOR_ATTACHMENT0              0x8CE0
  1678 #define GL_COLOR_ATTACHMENT1              0x8CE1
  1679 #define GL_COLOR_ATTACHMENT2              0x8CE2
  1680 #define GL_COLOR_ATTACHMENT3              0x8CE3
  1681 #define GL_COLOR_ATTACHMENT4              0x8CE4
  1682 #define GL_COLOR_ATTACHMENT5              0x8CE5
  1683 #define GL_COLOR_ATTACHMENT6              0x8CE6
  1684 #define GL_COLOR_ATTACHMENT7              0x8CE7
  1685 #define GL_COLOR_ATTACHMENT8              0x8CE8
  1686 #define GL_COLOR_ATTACHMENT9              0x8CE9
  1687 #define GL_COLOR_ATTACHMENT10             0x8CEA
  1688 #define GL_COLOR_ATTACHMENT11             0x8CEB
  1689 #define GL_COLOR_ATTACHMENT12             0x8CEC
  1690 #define GL_COLOR_ATTACHMENT13             0x8CED
  1691 #define GL_COLOR_ATTACHMENT14             0x8CEE
  1692 #define GL_COLOR_ATTACHMENT15             0x8CEF
  1693 #define GL_DEPTH_ATTACHMENT               0x8D00
  1694 #define GL_STENCIL_ATTACHMENT             0x8D20
  1695 #define GL_FRAMEBUFFER                    0x8D40
  1696 #define GL_RENDERBUFFER                   0x8D41
  1697 #define GL_RENDERBUFFER_WIDTH             0x8D42
  1698 #define GL_RENDERBUFFER_HEIGHT            0x8D43
  1699 #define GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
  1700 #define GL_STENCIL_INDEX1                 0x8D46
  1701 #define GL_STENCIL_INDEX4                 0x8D47
  1702 #define GL_STENCIL_INDEX8                 0x8D48
  1703 #define GL_STENCIL_INDEX16                0x8D49
  1704 #define GL_RENDERBUFFER_RED_SIZE          0x8D50
  1705 #define GL_RENDERBUFFER_GREEN_SIZE        0x8D51
  1706 #define GL_RENDERBUFFER_BLUE_SIZE         0x8D52
  1707 #define GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
  1708 #define GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
  1709 #define GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
  1710 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
  1711 #define GL_MAX_SAMPLES                    0x8D57
  1712 #endif
  1713 
  1714 #ifndef GL_ARB_framebuffer_object_DEPRECATED
  1715 #define GL_INDEX                          0x8222
  1716 #define GL_TEXTURE_LUMINANCE_TYPE         0x8C14
  1717 #define GL_TEXTURE_INTENSITY_TYPE         0x8C15
  1718 #endif
  1719 
  1720 #ifndef GL_ARB_framebuffer_sRGB
  1721 #define GL_FRAMEBUFFER_SRGB               0x8DB9
  1722 #endif
  1723 
  1724 #ifndef GL_ARB_geometry_shader4
  1725 #define GL_LINES_ADJACENCY_ARB            0x000A
  1726 #define GL_LINE_STRIP_ADJACENCY_ARB       0x000B
  1727 #define GL_TRIANGLES_ADJACENCY_ARB        0x000C
  1728 #define GL_TRIANGLE_STRIP_ADJACENCY_ARB   0x000D
  1729 #define GL_PROGRAM_POINT_SIZE_ARB         0x8642
  1730 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
  1731 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
  1732 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
  1733 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
  1734 #define GL_GEOMETRY_SHADER_ARB            0x8DD9
  1735 #define GL_GEOMETRY_VERTICES_OUT_ARB      0x8DDA
  1736 #define GL_GEOMETRY_INPUT_TYPE_ARB        0x8DDB
  1737 #define GL_GEOMETRY_OUTPUT_TYPE_ARB       0x8DDC
  1738 #define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
  1739 #define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
  1740 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
  1741 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
  1742 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
  1743 /* reuse GL_MAX_VARYING_COMPONENTS */
  1744 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
  1745 #endif
  1746 
  1747 #ifndef GL_ARB_half_float_vertex
  1748 #define GL_HALF_FLOAT                     0x140B
  1749 #endif
  1750 
  1751 #ifndef GL_ARB_instanced_arrays
  1752 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
  1753 #endif
  1754 
  1755 #ifndef GL_ARB_map_buffer_range
  1756 #define GL_MAP_READ_BIT                   0x0001
  1757 #define GL_MAP_WRITE_BIT                  0x0002
  1758 #define GL_MAP_INVALIDATE_RANGE_BIT       0x0004
  1759 #define GL_MAP_INVALIDATE_BUFFER_BIT      0x0008
  1760 #define GL_MAP_FLUSH_EXPLICIT_BIT         0x0010
  1761 #define GL_MAP_UNSYNCHRONIZED_BIT         0x0020
  1762 #endif
  1763 
  1764 #ifndef GL_ARB_texture_buffer_object
  1765 #define GL_TEXTURE_BUFFER_ARB             0x8C2A
  1766 #define GL_MAX_TEXTURE_BUFFER_SIZE_ARB    0x8C2B
  1767 #define GL_TEXTURE_BINDING_BUFFER_ARB     0x8C2C
  1768 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D
  1769 #define GL_TEXTURE_BUFFER_FORMAT_ARB      0x8C2E
  1770 #endif
  1771 
  1772 #ifndef GL_ARB_texture_compression_rgtc
  1773 #define GL_COMPRESSED_RED_RGTC1           0x8DBB
  1774 #define GL_COMPRESSED_SIGNED_RED_RGTC1    0x8DBC
  1775 #define GL_COMPRESSED_RG_RGTC2            0x8DBD
  1776 #define GL_COMPRESSED_SIGNED_RG_RGTC2     0x8DBE
  1777 #endif
  1778 
  1779 #ifndef GL_ARB_texture_rg
  1780 #define GL_RG                             0x8227
  1781 #define GL_RG_INTEGER                     0x8228
  1782 #define GL_R8                             0x8229
  1783 #define GL_R16                            0x822A
  1784 #define GL_RG8                            0x822B
  1785 #define GL_RG16                           0x822C
  1786 #define GL_R16F                           0x822D
  1787 #define GL_R32F                           0x822E
  1788 #define GL_RG16F                          0x822F
  1789 #define GL_RG32F                          0x8230
  1790 #define GL_R8I                            0x8231
  1791 #define GL_R8UI                           0x8232
  1792 #define GL_R16I                           0x8233
  1793 #define GL_R16UI                          0x8234
  1794 #define GL_R32I                           0x8235
  1795 #define GL_R32UI                          0x8236
  1796 #define GL_RG8I                           0x8237
  1797 #define GL_RG8UI                          0x8238
  1798 #define GL_RG16I                          0x8239
  1799 #define GL_RG16UI                         0x823A
  1800 #define GL_RG32I                          0x823B
  1801 #define GL_RG32UI                         0x823C
  1802 #endif
  1803 
  1804 #ifndef GL_ARB_vertex_array_object
  1805 #define GL_VERTEX_ARRAY_BINDING           0x85B5
  1806 #endif
  1807 
  1808 #ifndef GL_ARB_uniform_buffer_object
  1809 #define GL_UNIFORM_BUFFER                 0x8A11
  1810 #define GL_UNIFORM_BUFFER_BINDING         0x8A28
  1811 #define GL_UNIFORM_BUFFER_START           0x8A29
  1812 #define GL_UNIFORM_BUFFER_SIZE            0x8A2A
  1813 #define GL_MAX_VERTEX_UNIFORM_BLOCKS      0x8A2B
  1814 #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS    0x8A2C
  1815 #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS    0x8A2D
  1816 #define GL_MAX_COMBINED_UNIFORM_BLOCKS    0x8A2E
  1817 #define GL_MAX_UNIFORM_BUFFER_BINDINGS    0x8A2F
  1818 #define GL_MAX_UNIFORM_BLOCK_SIZE         0x8A30
  1819 #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
  1820 #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
  1821 #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
  1822 #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
  1823 #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
  1824 #define GL_ACTIVE_UNIFORM_BLOCKS          0x8A36
  1825 #define GL_UNIFORM_TYPE                   0x8A37
  1826 #define GL_UNIFORM_SIZE                   0x8A38
  1827 #define GL_UNIFORM_NAME_LENGTH            0x8A39
  1828 #define GL_UNIFORM_BLOCK_INDEX            0x8A3A
  1829 #define GL_UNIFORM_OFFSET                 0x8A3B
  1830 #define GL_UNIFORM_ARRAY_STRIDE           0x8A3C
  1831 #define GL_UNIFORM_MATRIX_STRIDE          0x8A3D
  1832 #define GL_UNIFORM_IS_ROW_MAJOR           0x8A3E
  1833 #define GL_UNIFORM_BLOCK_BINDING          0x8A3F
  1834 #define GL_UNIFORM_BLOCK_DATA_SIZE        0x8A40
  1835 #define GL_UNIFORM_BLOCK_NAME_LENGTH      0x8A41
  1836 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS  0x8A42
  1837 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
  1838 #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
  1839 #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
  1840 #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
  1841 #define GL_INVALID_INDEX                  0xFFFFFFFFu
  1842 #endif
  1843 
  1844 #ifndef GL_ARB_compatibility
  1845 /* ARB_compatibility just defines tokens from core 3.0 */
  1846 #endif
  1847 
  1848 #ifndef GL_ARB_copy_buffer
  1849 #define GL_COPY_READ_BUFFER               0x8F36
  1850 #define GL_COPY_WRITE_BUFFER              0x8F37
  1851 #endif
  1852 
  1853 #ifndef GL_ARB_shader_texture_lod
  1854 #endif
  1855 
  1856 #ifndef GL_ARB_depth_clamp
  1857 #define GL_DEPTH_CLAMP                    0x864F
  1858 #endif
  1859 
  1860 #ifndef GL_ARB_draw_elements_base_vertex
  1861 #endif
  1862 
  1863 #ifndef GL_ARB_fragment_coord_conventions
  1864 #endif
  1865 
  1866 #ifndef GL_ARB_provoking_vertex
  1867 #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
  1868 #define GL_FIRST_VERTEX_CONVENTION        0x8E4D
  1869 #define GL_LAST_VERTEX_CONVENTION         0x8E4E
  1870 #define GL_PROVOKING_VERTEX               0x8E4F
  1871 #endif
  1872 
  1873 #ifndef GL_ARB_seamless_cube_map
  1874 #define GL_TEXTURE_CUBE_MAP_SEAMLESS      0x884F
  1875 #endif
  1876 
  1877 #ifndef GL_ARB_sync
  1878 #define GL_MAX_SERVER_WAIT_TIMEOUT        0x9111
  1879 #define GL_OBJECT_TYPE                    0x9112
  1880 #define GL_SYNC_CONDITION                 0x9113
  1881 #define GL_SYNC_STATUS                    0x9114
  1882 #define GL_SYNC_FLAGS                     0x9115
  1883 #define GL_SYNC_FENCE                     0x9116
  1884 #define GL_SYNC_GPU_COMMANDS_COMPLETE     0x9117
  1885 #define GL_UNSIGNALED                     0x9118
  1886 #define GL_SIGNALED                       0x9119
  1887 #define GL_ALREADY_SIGNALED               0x911A
  1888 #define GL_TIMEOUT_EXPIRED                0x911B
  1889 #define GL_CONDITION_SATISFIED            0x911C
  1890 #define GL_WAIT_FAILED                    0x911D
  1891 #define GL_SYNC_FLUSH_COMMANDS_BIT        0x00000001
  1892 #define GL_TIMEOUT_IGNORED                0xFFFFFFFFFFFFFFFFull
  1893 #endif
  1894 
  1895 #ifndef GL_ARB_texture_multisample
  1896 #define GL_SAMPLE_POSITION                0x8E50
  1897 #define GL_SAMPLE_MASK                    0x8E51
  1898 #define GL_SAMPLE_MASK_VALUE              0x8E52
  1899 #define GL_MAX_SAMPLE_MASK_WORDS          0x8E59
  1900 #define GL_TEXTURE_2D_MULTISAMPLE         0x9100
  1901 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE   0x9101
  1902 #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY   0x9102
  1903 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
  1904 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
  1905 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
  1906 #define GL_TEXTURE_SAMPLES                0x9106
  1907 #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
  1908 #define GL_SAMPLER_2D_MULTISAMPLE         0x9108
  1909 #define GL_INT_SAMPLER_2D_MULTISAMPLE     0x9109
  1910 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
  1911 #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY   0x910B
  1912 #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
  1913 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
  1914 #define GL_MAX_COLOR_TEXTURE_SAMPLES      0x910E
  1915 #define GL_MAX_DEPTH_TEXTURE_SAMPLES      0x910F
  1916 #define GL_MAX_INTEGER_SAMPLES            0x9110
  1917 #endif
  1918 
  1919 #ifndef GL_ARB_vertex_array_bgra
  1920 /* reuse GL_BGRA */
  1921 #endif
  1922 
  1923 #ifndef GL_ARB_draw_buffers_blend
  1924 #endif
  1925 
  1926 #ifndef GL_ARB_sample_shading
  1927 #define GL_SAMPLE_SHADING_ARB             0x8C36
  1928 #define GL_MIN_SAMPLE_SHADING_VALUE_ARB   0x8C37
  1929 #endif
  1930 
  1931 #ifndef GL_ARB_texture_cube_map_array
  1932 #define GL_TEXTURE_CUBE_MAP_ARRAY_ARB     0x9009
  1933 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
  1934 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
  1935 #define GL_SAMPLER_CUBE_MAP_ARRAY_ARB     0x900C
  1936 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
  1937 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
  1938 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
  1939 #endif
  1940 
  1941 #ifndef GL_ARB_texture_gather
  1942 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
  1943 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
  1944 #endif
  1945 
  1946 #ifndef GL_ARB_texture_query_lod
  1947 #endif
  1948 
  1949 #ifndef GL_ARB_shading_language_include
  1950 #define GL_SHADER_INCLUDE_ARB             0x8DAE
  1951 #define GL_NAMED_STRING_LENGTH_ARB        0x8DE9
  1952 #define GL_NAMED_STRING_TYPE_ARB          0x8DEA
  1953 #endif
  1954 
  1955 #ifndef GL_ARB_texture_compression_bptc
  1956 #define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
  1957 #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
  1958 #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
  1959 #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
  1960 #endif
  1961 
  1962 #ifndef GL_ARB_blend_func_extended
  1963 #define GL_SRC1_COLOR                     0x88F9
  1964 /* reuse GL_SRC1_ALPHA */
  1965 #define GL_ONE_MINUS_SRC1_COLOR           0x88FA
  1966 #define GL_ONE_MINUS_SRC1_ALPHA           0x88FB
  1967 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS   0x88FC
  1968 #endif
  1969 
  1970 #ifndef GL_ARB_explicit_attrib_location
  1971 #endif
  1972 
  1973 #ifndef GL_ARB_occlusion_query2
  1974 #define GL_ANY_SAMPLES_PASSED             0x8C2F
  1975 #endif
  1976 
  1977 #ifndef GL_ARB_sampler_objects
  1978 #define GL_SAMPLER_BINDING                0x8919
  1979 #endif
  1980 
  1981 #ifndef GL_ARB_shader_bit_encoding
  1982 #endif
  1983 
  1984 #ifndef GL_ARB_texture_rgb10_a2ui
  1985 #define GL_RGB10_A2UI                     0x906F
  1986 #endif
  1987 
  1988 #ifndef GL_ARB_texture_swizzle
  1989 #define GL_TEXTURE_SWIZZLE_R              0x8E42
  1990 #define GL_TEXTURE_SWIZZLE_G              0x8E43
  1991 #define GL_TEXTURE_SWIZZLE_B              0x8E44
  1992 #define GL_TEXTURE_SWIZZLE_A              0x8E45
  1993 #define GL_TEXTURE_SWIZZLE_RGBA           0x8E46
  1994 #endif
  1995 
  1996 #ifndef GL_ARB_timer_query
  1997 #define GL_TIME_ELAPSED                   0x88BF
  1998 #define GL_TIMESTAMP                      0x8E28
  1999 #endif
  2000 
  2001 #ifndef GL_ARB_vertex_type_2_10_10_10_rev
  2002 /* reuse GL_UNSIGNED_INT_2_10_10_10_REV */
  2003 #define GL_INT_2_10_10_10_REV             0x8D9F
  2004 #endif
  2005 
  2006 #ifndef GL_ARB_draw_indirect
  2007 #define GL_DRAW_INDIRECT_BUFFER           0x8F3F
  2008 #define GL_DRAW_INDIRECT_BUFFER_BINDING   0x8F43
  2009 #endif
  2010 
  2011 #ifndef GL_ARB_gpu_shader5
  2012 #define GL_GEOMETRY_SHADER_INVOCATIONS    0x887F
  2013 #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
  2014 #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
  2015 #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
  2016 #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
  2017 /* reuse GL_MAX_VERTEX_STREAMS */
  2018 #endif
  2019 
  2020 #ifndef GL_ARB_gpu_shader_fp64
  2021 /* reuse GL_DOUBLE */
  2022 #define GL_DOUBLE_VEC2                    0x8FFC
  2023 #define GL_DOUBLE_VEC3                    0x8FFD
  2024 #define GL_DOUBLE_VEC4                    0x8FFE
  2025 #define GL_DOUBLE_MAT2                    0x8F46
  2026 #define GL_DOUBLE_MAT3                    0x8F47
  2027 #define GL_DOUBLE_MAT4                    0x8F48
  2028 #define GL_DOUBLE_MAT2x3                  0x8F49
  2029 #define GL_DOUBLE_MAT2x4                  0x8F4A
  2030 #define GL_DOUBLE_MAT3x2                  0x8F4B
  2031 #define GL_DOUBLE_MAT3x4                  0x8F4C
  2032 #define GL_DOUBLE_MAT4x2                  0x8F4D
  2033 #define GL_DOUBLE_MAT4x3                  0x8F4E
  2034 #endif
  2035 
  2036 #ifndef GL_ARB_shader_subroutine
  2037 #define GL_ACTIVE_SUBROUTINES             0x8DE5
  2038 #define GL_ACTIVE_SUBROUTINE_UNIFORMS     0x8DE6
  2039 #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
  2040 #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH   0x8E48
  2041 #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
  2042 #define GL_MAX_SUBROUTINES                0x8DE7
  2043 #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
  2044 #define GL_NUM_COMPATIBLE_SUBROUTINES     0x8E4A
  2045 #define GL_COMPATIBLE_SUBROUTINES         0x8E4B
  2046 /* reuse GL_UNIFORM_SIZE */
  2047 /* reuse GL_UNIFORM_NAME_LENGTH */
  2048 #endif
  2049 
  2050 #ifndef GL_ARB_tessellation_shader
  2051 #define GL_PATCHES                        0x000E
  2052 #define GL_PATCH_VERTICES                 0x8E72
  2053 #define GL_PATCH_DEFAULT_INNER_LEVEL      0x8E73
  2054 #define GL_PATCH_DEFAULT_OUTER_LEVEL      0x8E74
  2055 #define GL_TESS_CONTROL_OUTPUT_VERTICES   0x8E75
  2056 #define GL_TESS_GEN_MODE                  0x8E76
  2057 #define GL_TESS_GEN_SPACING               0x8E77
  2058 #define GL_TESS_GEN_VERTEX_ORDER          0x8E78
  2059 #define GL_TESS_GEN_POINT_MODE            0x8E79
  2060 /* reuse GL_TRIANGLES */
  2061 /* reuse GL_QUADS */
  2062 #define GL_ISOLINES                       0x8E7A
  2063 /* reuse GL_EQUAL */
  2064 #define GL_FRACTIONAL_ODD                 0x8E7B
  2065 #define GL_FRACTIONAL_EVEN                0x8E7C
  2066 /* reuse GL_CCW */
  2067 /* reuse GL_CW */
  2068 #define GL_MAX_PATCH_VERTICES             0x8E7D
  2069 #define GL_MAX_TESS_GEN_LEVEL             0x8E7E
  2070 #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
  2071 #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
  2072 #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
  2073 #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
  2074 #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
  2075 #define GL_MAX_TESS_PATCH_COMPONENTS      0x8E84
  2076 #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
  2077 #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
  2078 #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
  2079 #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
  2080 #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
  2081 #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
  2082 #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
  2083 #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
  2084 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
  2085 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
  2086 #define GL_TESS_EVALUATION_SHADER         0x8E87
  2087 #define GL_TESS_CONTROL_SHADER            0x8E88
  2088 #endif
  2089 
  2090 #ifndef GL_ARB_texture_buffer_object_rgb32
  2091 /* reuse GL_RGB32F */
  2092 /* reuse GL_RGB32UI */
  2093 /* reuse GL_RGB32I */
  2094 #endif
  2095 
  2096 #ifndef GL_ARB_transform_feedback2
  2097 #define GL_TRANSFORM_FEEDBACK             0x8E22
  2098 #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
  2099 #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
  2100 #define GL_TRANSFORM_FEEDBACK_BINDING     0x8E25
  2101 #endif
  2102 
  2103 #ifndef GL_ARB_transform_feedback3
  2104 #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
  2105 #define GL_MAX_VERTEX_STREAMS             0x8E71
  2106 #endif
  2107 
  2108 #ifndef GL_ARB_ES2_compatibility
  2109 #define GL_FIXED                          0x140C
  2110 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
  2111 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
  2112 #define GL_LOW_FLOAT                      0x8DF0
  2113 #define GL_MEDIUM_FLOAT                   0x8DF1
  2114 #define GL_HIGH_FLOAT                     0x8DF2
  2115 #define GL_LOW_INT                        0x8DF3
  2116 #define GL_MEDIUM_INT                     0x8DF4
  2117 #define GL_HIGH_INT                       0x8DF5
  2118 #define GL_SHADER_COMPILER                0x8DFA
  2119 #define GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
  2120 #define GL_MAX_VERTEX_UNIFORM_VECTORS     0x8DFB
  2121 #define GL_MAX_VARYING_VECTORS            0x8DFC
  2122 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS   0x8DFD
  2123 #endif
  2124 
  2125 #ifndef GL_ARB_get_program_binary
  2126 #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
  2127 #define GL_PROGRAM_BINARY_LENGTH          0x8741
  2128 #define GL_NUM_PROGRAM_BINARY_FORMATS     0x87FE
  2129 #define GL_PROGRAM_BINARY_FORMATS         0x87FF
  2130 #endif
  2131 
  2132 #ifndef GL_ARB_separate_shader_objects
  2133 #define GL_VERTEX_SHADER_BIT              0x00000001
  2134 #define GL_FRAGMENT_SHADER_BIT            0x00000002
  2135 #define GL_GEOMETRY_SHADER_BIT            0x00000004
  2136 #define GL_TESS_CONTROL_SHADER_BIT        0x00000008
  2137 #define GL_TESS_EVALUATION_SHADER_BIT     0x00000010
  2138 #define GL_ALL_SHADER_BITS                0xFFFFFFFF
  2139 #define GL_PROGRAM_SEPARABLE              0x8258
  2140 #define GL_ACTIVE_PROGRAM                 0x8259
  2141 #define GL_PROGRAM_PIPELINE_BINDING       0x825A
  2142 #endif
  2143 
  2144 #ifndef GL_ARB_shader_precision
  2145 #endif
  2146 
  2147 #ifndef GL_ARB_vertex_attrib_64bit
  2148 /* reuse GL_RGB32I */
  2149 /* reuse GL_DOUBLE_VEC2 */
  2150 /* reuse GL_DOUBLE_VEC3 */
  2151 /* reuse GL_DOUBLE_VEC4 */
  2152 /* reuse GL_DOUBLE_MAT2 */
  2153 /* reuse GL_DOUBLE_MAT3 */
  2154 /* reuse GL_DOUBLE_MAT4 */
  2155 /* reuse GL_DOUBLE_MAT2x3 */
  2156 /* reuse GL_DOUBLE_MAT2x4 */
  2157 /* reuse GL_DOUBLE_MAT3x2 */
  2158 /* reuse GL_DOUBLE_MAT3x4 */
  2159 /* reuse GL_DOUBLE_MAT4x2 */
  2160 /* reuse GL_DOUBLE_MAT4x3 */
  2161 #endif
  2162 
  2163 #ifndef GL_ARB_viewport_array
  2164 /* reuse GL_SCISSOR_BOX */
  2165 /* reuse GL_VIEWPORT */
  2166 /* reuse GL_DEPTH_RANGE */
  2167 /* reuse GL_SCISSOR_TEST */
  2168 #define GL_MAX_VIEWPORTS                  0x825B
  2169 #define GL_VIEWPORT_SUBPIXEL_BITS         0x825C
  2170 #define GL_VIEWPORT_BOUNDS_RANGE          0x825D
  2171 #define GL_LAYER_PROVOKING_VERTEX         0x825E
  2172 #define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
  2173 #define GL_UNDEFINED_VERTEX               0x8260
  2174 /* reuse GL_FIRST_VERTEX_CONVENTION */
  2175 /* reuse GL_LAST_VERTEX_CONVENTION */
  2176 /* reuse GL_PROVOKING_VERTEX */
  2177 #endif
  2178 
  2179 #ifndef GL_ARB_cl_event
  2180 #define GL_SYNC_CL_EVENT_ARB              0x8240
  2181 #define GL_SYNC_CL_EVENT_COMPLETE_ARB     0x8241
  2182 #endif
  2183 
  2184 #ifndef GL_ARB_debug_output
  2185 #define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB   0x8242
  2186 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
  2187 #define GL_DEBUG_CALLBACK_FUNCTION_ARB    0x8244
  2188 #define GL_DEBUG_CALLBACK_USER_PARAM_ARB  0x8245
  2189 #define GL_DEBUG_SOURCE_API_ARB           0x8246
  2190 #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
  2191 #define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
  2192 #define GL_DEBUG_SOURCE_THIRD_PARTY_ARB   0x8249
  2193 #define GL_DEBUG_SOURCE_APPLICATION_ARB   0x824A
  2194 #define GL_DEBUG_SOURCE_OTHER_ARB         0x824B
  2195 #define GL_DEBUG_TYPE_ERROR_ARB           0x824C
  2196 #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
  2197 #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
  2198 #define GL_DEBUG_TYPE_PORTABILITY_ARB     0x824F
  2199 #define GL_DEBUG_TYPE_PERFORMANCE_ARB     0x8250
  2200 #define GL_DEBUG_TYPE_OTHER_ARB           0x8251
  2201 #define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB   0x9143
  2202 #define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB  0x9144
  2203 #define GL_DEBUG_LOGGED_MESSAGES_ARB      0x9145
  2204 #define GL_DEBUG_SEVERITY_HIGH_ARB        0x9146
  2205 #define GL_DEBUG_SEVERITY_MEDIUM_ARB      0x9147
  2206 #define GL_DEBUG_SEVERITY_LOW_ARB         0x9148
  2207 #endif
  2208 
  2209 #ifndef GL_ARB_robustness
  2210 /* reuse GL_NO_ERROR */
  2211 #define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
  2212 #define GL_LOSE_CONTEXT_ON_RESET_ARB      0x8252
  2213 #define GL_GUILTY_CONTEXT_RESET_ARB       0x8253
  2214 #define GL_INNOCENT_CONTEXT_RESET_ARB     0x8254
  2215 #define GL_UNKNOWN_CONTEXT_RESET_ARB      0x8255
  2216 #define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
  2217 #define GL_NO_RESET_NOTIFICATION_ARB      0x8261
  2218 #endif
  2219 
  2220 #ifndef GL_ARB_shader_stencil_export
  2221 #endif
  2222 
  2223 #ifndef GL_EXT_abgr
  2224 #define GL_ABGR_EXT                       0x8000
  2225 #endif
  2226 
  2227 #ifndef GL_EXT_blend_color
  2228 #define GL_CONSTANT_COLOR_EXT             0x8001
  2229 #define GL_ONE_MINUS_CONSTANT_COLOR_EXT   0x8002
  2230 #define GL_CONSTANT_ALPHA_EXT             0x8003
  2231 #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT   0x8004
  2232 #define GL_BLEND_COLOR_EXT                0x8005
  2233 #endif
  2234 
  2235 #ifndef GL_EXT_polygon_offset
  2236 #define GL_POLYGON_OFFSET_EXT             0x8037
  2237 #define GL_POLYGON_OFFSET_FACTOR_EXT      0x8038
  2238 #define GL_POLYGON_OFFSET_BIAS_EXT        0x8039
  2239 #endif
  2240 
  2241 #ifndef GL_EXT_texture
  2242 #define GL_ALPHA4_EXT                     0x803B
  2243 #define GL_ALPHA8_EXT                     0x803C
  2244 #define GL_ALPHA12_EXT                    0x803D
  2245 #define GL_ALPHA16_EXT                    0x803E
  2246 #define GL_LUMINANCE4_EXT                 0x803F
  2247 #define GL_LUMINANCE8_EXT                 0x8040
  2248 #define GL_LUMINANCE12_EXT                0x8041
  2249 #define GL_LUMINANCE16_EXT                0x8042
  2250 #define GL_LUMINANCE4_ALPHA4_EXT          0x8043
  2251 #define GL_LUMINANCE6_ALPHA2_EXT          0x8044
  2252 #define GL_LUMINANCE8_ALPHA8_EXT          0x8045
  2253 #define GL_LUMINANCE12_ALPHA4_EXT         0x8046
  2254 #define GL_LUMINANCE12_ALPHA12_EXT        0x8047
  2255 #define GL_LUMINANCE16_ALPHA16_EXT        0x8048
  2256 #define GL_INTENSITY_EXT                  0x8049
  2257 #define GL_INTENSITY4_EXT                 0x804A
  2258 #define GL_INTENSITY8_EXT                 0x804B
  2259 #define GL_INTENSITY12_EXT                0x804C
  2260 #define GL_INTENSITY16_EXT                0x804D
  2261 #define GL_RGB2_EXT                       0x804E
  2262 #define GL_RGB4_EXT                       0x804F
  2263 #define GL_RGB5_EXT                       0x8050
  2264 #define GL_RGB8_EXT                       0x8051
  2265 #define GL_RGB10_EXT                      0x8052
  2266 #define GL_RGB12_EXT                      0x8053
  2267 #define GL_RGB16_EXT                      0x8054
  2268 #define GL_RGBA2_EXT                      0x8055
  2269 #define GL_RGBA4_EXT                      0x8056
  2270 #define GL_RGB5_A1_EXT                    0x8057
  2271 #define GL_RGBA8_EXT                      0x8058
  2272 #define GL_RGB10_A2_EXT                   0x8059
  2273 #define GL_RGBA12_EXT                     0x805A
  2274 #define GL_RGBA16_EXT                     0x805B
  2275 #define GL_TEXTURE_RED_SIZE_EXT           0x805C
  2276 #define GL_TEXTURE_GREEN_SIZE_EXT         0x805D
  2277 #define GL_TEXTURE_BLUE_SIZE_EXT          0x805E
  2278 #define GL_TEXTURE_ALPHA_SIZE_EXT         0x805F
  2279 #define GL_TEXTURE_LUMINANCE_SIZE_EXT     0x8060
  2280 #define GL_TEXTURE_INTENSITY_SIZE_EXT     0x8061
  2281 #define GL_REPLACE_EXT                    0x8062
  2282 #define GL_PROXY_TEXTURE_1D_EXT           0x8063
  2283 #define GL_PROXY_TEXTURE_2D_EXT           0x8064
  2284 #define GL_TEXTURE_TOO_LARGE_EXT          0x8065
  2285 #endif
  2286 
  2287 #ifndef GL_EXT_texture3D
  2288 #define GL_PACK_SKIP_IMAGES_EXT           0x806B
  2289 #define GL_PACK_IMAGE_HEIGHT_EXT          0x806C
  2290 #define GL_UNPACK_SKIP_IMAGES_EXT         0x806D
  2291 #define GL_UNPACK_IMAGE_HEIGHT_EXT        0x806E
  2292 #define GL_TEXTURE_3D_EXT                 0x806F
  2293 #define GL_PROXY_TEXTURE_3D_EXT           0x8070
  2294 #define GL_TEXTURE_DEPTH_EXT              0x8071
  2295 #define GL_TEXTURE_WRAP_R_EXT             0x8072
  2296 #define GL_MAX_3D_TEXTURE_SIZE_EXT        0x8073
  2297 #endif
  2298 
  2299 #ifndef GL_SGIS_texture_filter4
  2300 #define GL_FILTER4_SGIS                   0x8146
  2301 #define GL_TEXTURE_FILTER4_SIZE_SGIS      0x8147
  2302 #endif
  2303 
  2304 #ifndef GL_EXT_subtexture
  2305 #endif
  2306 
  2307 #ifndef GL_EXT_copy_texture
  2308 #endif
  2309 
  2310 #ifndef GL_EXT_histogram
  2311 #define GL_HISTOGRAM_EXT                  0x8024
  2312 #define GL_PROXY_HISTOGRAM_EXT            0x8025
  2313 #define GL_HISTOGRAM_WIDTH_EXT            0x8026
  2314 #define GL_HISTOGRAM_FORMAT_EXT           0x8027
  2315 #define GL_HISTOGRAM_RED_SIZE_EXT         0x8028
  2316 #define GL_HISTOGRAM_GREEN_SIZE_EXT       0x8029
  2317 #define GL_HISTOGRAM_BLUE_SIZE_EXT        0x802A
  2318 #define GL_HISTOGRAM_ALPHA_SIZE_EXT       0x802B
  2319 #define GL_HISTOGRAM_LUMINANCE_SIZE_EXT   0x802C
  2320 #define GL_HISTOGRAM_SINK_EXT             0x802D
  2321 #define GL_MINMAX_EXT                     0x802E
  2322 #define GL_MINMAX_FORMAT_EXT              0x802F
  2323 #define GL_MINMAX_SINK_EXT                0x8030
  2324 #define GL_TABLE_TOO_LARGE_EXT            0x8031
  2325 #endif
  2326 
  2327 #ifndef GL_EXT_convolution
  2328 #define GL_CONVOLUTION_1D_EXT             0x8010
  2329 #define GL_CONVOLUTION_2D_EXT             0x8011
  2330 #define GL_SEPARABLE_2D_EXT               0x8012
  2331 #define GL_CONVOLUTION_BORDER_MODE_EXT    0x8013
  2332 #define GL_CONVOLUTION_FILTER_SCALE_EXT   0x8014
  2333 #define GL_CONVOLUTION_FILTER_BIAS_EXT    0x8015
  2334 #define GL_REDUCE_EXT                     0x8016
  2335 #define GL_CONVOLUTION_FORMAT_EXT         0x8017
  2336 #define GL_CONVOLUTION_WIDTH_EXT          0x8018
  2337 #define GL_CONVOLUTION_HEIGHT_EXT         0x8019
  2338 #define GL_MAX_CONVOLUTION_WIDTH_EXT      0x801A
  2339 #define GL_MAX_CONVOLUTION_HEIGHT_EXT     0x801B
  2340 #define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
  2341 #define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
  2342 #define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
  2343 #define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
  2344 #define GL_POST_CONVOLUTION_RED_BIAS_EXT  0x8020
  2345 #define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
  2346 #define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
  2347 #define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
  2348 #endif
  2349 
  2350 #ifndef GL_SGI_color_matrix
  2351 #define GL_COLOR_MATRIX_SGI               0x80B1
  2352 #define GL_COLOR_MATRIX_STACK_DEPTH_SGI   0x80B2
  2353 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
  2354 #define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
  2355 #define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
  2356 #define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
  2357 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
  2358 #define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
  2359 #define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
  2360 #define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
  2361 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
  2362 #endif
  2363 
  2364 #ifndef GL_SGI_color_table
  2365 #define GL_COLOR_TABLE_SGI                0x80D0
  2366 #define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
  2367 #define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
  2368 #define GL_PROXY_COLOR_TABLE_SGI          0x80D3
  2369 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
  2370 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
  2371 #define GL_COLOR_TABLE_SCALE_SGI          0x80D6
  2372 #define GL_COLOR_TABLE_BIAS_SGI           0x80D7
  2373 #define GL_COLOR_TABLE_FORMAT_SGI         0x80D8
  2374 #define GL_COLOR_TABLE_WIDTH_SGI          0x80D9
  2375 #define GL_COLOR_TABLE_RED_SIZE_SGI       0x80DA
  2376 #define GL_COLOR_TABLE_GREEN_SIZE_SGI     0x80DB
  2377 #define GL_COLOR_TABLE_BLUE_SIZE_SGI      0x80DC
  2378 #define GL_COLOR_TABLE_ALPHA_SIZE_SGI     0x80DD
  2379 #define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
  2380 #define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
  2381 #endif
  2382 
  2383 #ifndef GL_SGIS_pixel_texture
  2384 #define GL_PIXEL_TEXTURE_SGIS             0x8353
  2385 #define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354
  2386 #define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355
  2387 #define GL_PIXEL_GROUP_COLOR_SGIS         0x8356
  2388 #endif
  2389 
  2390 #ifndef GL_SGIX_pixel_texture
  2391 #define GL_PIXEL_TEX_GEN_SGIX             0x8139
  2392 #define GL_PIXEL_TEX_GEN_MODE_SGIX        0x832B
  2393 #endif
  2394 
  2395 #ifndef GL_SGIS_texture4D
  2396 #define GL_PACK_SKIP_VOLUMES_SGIS         0x8130
  2397 #define GL_PACK_IMAGE_DEPTH_SGIS          0x8131
  2398 #define GL_UNPACK_SKIP_VOLUMES_SGIS       0x8132
  2399 #define GL_UNPACK_IMAGE_DEPTH_SGIS        0x8133
  2400 #define GL_TEXTURE_4D_SGIS                0x8134
  2401 #define GL_PROXY_TEXTURE_4D_SGIS          0x8135
  2402 #define GL_TEXTURE_4DSIZE_SGIS            0x8136
  2403 #define GL_TEXTURE_WRAP_Q_SGIS            0x8137
  2404 #define GL_MAX_4D_TEXTURE_SIZE_SGIS       0x8138
  2405 #define GL_TEXTURE_4D_BINDING_SGIS        0x814F
  2406 #endif
  2407 
  2408 #ifndef GL_SGI_texture_color_table
  2409 #define GL_TEXTURE_COLOR_TABLE_SGI        0x80BC
  2410 #define GL_PROXY_TEXTURE_COLOR_TABLE_SGI  0x80BD
  2411 #endif
  2412 
  2413 #ifndef GL_EXT_cmyka
  2414 #define GL_CMYK_EXT                       0x800C
  2415 #define GL_CMYKA_EXT                      0x800D
  2416 #define GL_PACK_CMYK_HINT_EXT             0x800E
  2417 #define GL_UNPACK_CMYK_HINT_EXT           0x800F
  2418 #endif
  2419 
  2420 #ifndef GL_EXT_texture_object
  2421 #define GL_TEXTURE_PRIORITY_EXT           0x8066
  2422 #define GL_TEXTURE_RESIDENT_EXT           0x8067
  2423 #define GL_TEXTURE_1D_BINDING_EXT         0x8068
  2424 #define GL_TEXTURE_2D_BINDING_EXT         0x8069
  2425 #define GL_TEXTURE_3D_BINDING_EXT         0x806A
  2426 #endif
  2427 
  2428 #ifndef GL_SGIS_detail_texture
  2429 #define GL_DETAIL_TEXTURE_2D_SGIS         0x8095
  2430 #define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
  2431 #define GL_LINEAR_DETAIL_SGIS             0x8097
  2432 #define GL_LINEAR_DETAIL_ALPHA_SGIS       0x8098
  2433 #define GL_LINEAR_DETAIL_COLOR_SGIS       0x8099
  2434 #define GL_DETAIL_TEXTURE_LEVEL_SGIS      0x809A
  2435 #define GL_DETAIL_TEXTURE_MODE_SGIS       0x809B
  2436 #define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C
  2437 #endif
  2438 
  2439 #ifndef GL_SGIS_sharpen_texture
  2440 #define GL_LINEAR_SHARPEN_SGIS            0x80AD
  2441 #define GL_LINEAR_SHARPEN_ALPHA_SGIS      0x80AE
  2442 #define GL_LINEAR_SHARPEN_COLOR_SGIS      0x80AF
  2443 #define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
  2444 #endif
  2445 
  2446 #ifndef GL_EXT_packed_pixels
  2447 #define GL_UNSIGNED_BYTE_3_3_2_EXT        0x8032
  2448 #define GL_UNSIGNED_SHORT_4_4_4_4_EXT     0x8033
  2449 #define GL_UNSIGNED_SHORT_5_5_5_1_EXT     0x8034
  2450 #define GL_UNSIGNED_INT_8_8_8_8_EXT       0x8035
  2451 #define GL_UNSIGNED_INT_10_10_10_2_EXT    0x8036
  2452 #endif
  2453 
  2454 #ifndef GL_SGIS_texture_lod
  2455 #define GL_TEXTURE_MIN_LOD_SGIS           0x813A
  2456 #define GL_TEXTURE_MAX_LOD_SGIS           0x813B
  2457 #define GL_TEXTURE_BASE_LEVEL_SGIS        0x813C
  2458 #define GL_TEXTURE_MAX_LEVEL_SGIS         0x813D
  2459 #endif
  2460 
  2461 #ifndef GL_SGIS_multisample
  2462 #define GL_MULTISAMPLE_SGIS               0x809D
  2463 #define GL_SAMPLE_ALPHA_TO_MASK_SGIS      0x809E
  2464 #define GL_SAMPLE_ALPHA_TO_ONE_SGIS       0x809F
  2465 #define GL_SAMPLE_MASK_SGIS               0x80A0
  2466 #define GL_1PASS_SGIS                     0x80A1
  2467 #define GL_2PASS_0_SGIS                   0x80A2
  2468 #define GL_2PASS_1_SGIS                   0x80A3
  2469 #define GL_4PASS_0_SGIS                   0x80A4
  2470 #define GL_4PASS_1_SGIS                   0x80A5
  2471 #define GL_4PASS_2_SGIS                   0x80A6
  2472 #define GL_4PASS_3_SGIS                   0x80A7
  2473 #define GL_SAMPLE_BUFFERS_SGIS            0x80A8
  2474 #define GL_SAMPLES_SGIS                   0x80A9
  2475 #define GL_SAMPLE_MASK_VALUE_SGIS         0x80AA
  2476 #define GL_SAMPLE_MASK_INVERT_SGIS        0x80AB
  2477 #define GL_SAMPLE_PATTERN_SGIS            0x80AC
  2478 #endif
  2479 
  2480 #ifndef GL_EXT_rescale_normal
  2481 #define GL_RESCALE_NORMAL_EXT             0x803A
  2482 #endif
  2483 
  2484 #ifndef GL_EXT_vertex_array
  2485 #define GL_VERTEX_ARRAY_EXT               0x8074
  2486 #define GL_NORMAL_ARRAY_EXT               0x8075
  2487 #define GL_COLOR_ARRAY_EXT                0x8076
  2488 #define GL_INDEX_ARRAY_EXT                0x8077
  2489 #define GL_TEXTURE_COORD_ARRAY_EXT        0x8078
  2490 #define GL_EDGE_FLAG_ARRAY_EXT            0x8079
  2491 #define GL_VERTEX_ARRAY_SIZE_EXT          0x807A
  2492 #define GL_VERTEX_ARRAY_TYPE_EXT          0x807B
  2493 #define GL_VERTEX_ARRAY_STRIDE_EXT        0x807C
  2494 #define GL_VERTEX_ARRAY_COUNT_EXT         0x807D
  2495 #define GL_NORMAL_ARRAY_TYPE_EXT          0x807E
  2496 #define GL_NORMAL_ARRAY_STRIDE_EXT        0x807F
  2497 #define GL_NORMAL_ARRAY_COUNT_EXT         0x8080
  2498 #define GL_COLOR_ARRAY_SIZE_EXT           0x8081
  2499 #define GL_COLOR_ARRAY_TYPE_EXT           0x8082
  2500 #define GL_COLOR_ARRAY_STRIDE_EXT         0x8083
  2501 #define GL_COLOR_ARRAY_COUNT_EXT          0x8084
  2502 #define GL_INDEX_ARRAY_TYPE_EXT           0x8085
  2503 #define GL_INDEX_ARRAY_STRIDE_EXT         0x8086
  2504 #define GL_INDEX_ARRAY_COUNT_EXT          0x8087
  2505 #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT   0x8088
  2506 #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT   0x8089
  2507 #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
  2508 #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT  0x808B
  2509 #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT     0x808C
  2510 #define GL_EDGE_FLAG_ARRAY_COUNT_EXT      0x808D
  2511 #define GL_VERTEX_ARRAY_POINTER_EXT       0x808E
  2512 #define GL_NORMAL_ARRAY_POINTER_EXT       0x808F
  2513 #define GL_COLOR_ARRAY_POINTER_EXT        0x8090
  2514 #define GL_INDEX_ARRAY_POINTER_EXT        0x8091
  2515 #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
  2516 #define GL_EDGE_FLAG_ARRAY_POINTER_EXT    0x8093
  2517 #endif
  2518 
  2519 #ifndef GL_EXT_misc_attribute
  2520 #endif
  2521 
  2522 #ifndef GL_SGIS_generate_mipmap
  2523 #define GL_GENERATE_MIPMAP_SGIS           0x8191
  2524 #define GL_GENERATE_MIPMAP_HINT_SGIS      0x8192
  2525 #endif
  2526 
  2527 #ifndef GL_SGIX_clipmap
  2528 #define GL_LINEAR_CLIPMAP_LINEAR_SGIX     0x8170
  2529 #define GL_TEXTURE_CLIPMAP_CENTER_SGIX    0x8171
  2530 #define GL_TEXTURE_CLIPMAP_FRAME_SGIX     0x8172
  2531 #define GL_TEXTURE_CLIPMAP_OFFSET_SGIX    0x8173
  2532 #define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174
  2533 #define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175
  2534 #define GL_TEXTURE_CLIPMAP_DEPTH_SGIX     0x8176
  2535 #define GL_MAX_CLIPMAP_DEPTH_SGIX         0x8177
  2536 #define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
  2537 #define GL_NEAREST_CLIPMAP_NEAREST_SGIX   0x844D
  2538 #define GL_NEAREST_CLIPMAP_LINEAR_SGIX    0x844E
  2539 #define GL_LINEAR_CLIPMAP_NEAREST_SGIX    0x844F
  2540 #endif
  2541 
  2542 #ifndef GL_SGIX_shadow
  2543 #define GL_TEXTURE_COMPARE_SGIX           0x819A
  2544 #define GL_TEXTURE_COMPARE_OPERATOR_SGIX  0x819B
  2545 #define GL_TEXTURE_LEQUAL_R_SGIX          0x819C
  2546 #define GL_TEXTURE_GEQUAL_R_SGIX          0x819D
  2547 #endif
  2548 
  2549 #ifndef GL_SGIS_texture_edge_clamp
  2550 #define GL_CLAMP_TO_EDGE_SGIS             0x812F
  2551 #endif
  2552 
  2553 #ifndef GL_SGIS_texture_border_clamp
  2554 #define GL_CLAMP_TO_BORDER_SGIS           0x812D
  2555 #endif
  2556 
  2557 #ifndef GL_EXT_blend_minmax
  2558 #define GL_FUNC_ADD_EXT                   0x8006
  2559 #define GL_MIN_EXT                        0x8007
  2560 #define GL_MAX_EXT                        0x8008
  2561 #define GL_BLEND_EQUATION_EXT             0x8009
  2562 #endif
  2563 
  2564 #ifndef GL_EXT_blend_subtract
  2565 #define GL_FUNC_SUBTRACT_EXT              0x800A
  2566 #define GL_FUNC_REVERSE_SUBTRACT_EXT      0x800B
  2567 #endif
  2568 
  2569 #ifndef GL_EXT_blend_logic_op
  2570 #endif
  2571 
  2572 #ifndef GL_SGIX_interlace
  2573 #define GL_INTERLACE_SGIX                 0x8094
  2574 #endif
  2575 
  2576 #ifndef GL_SGIX_pixel_tiles
  2577 #define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E
  2578 #define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F
  2579 #define GL_PIXEL_TILE_WIDTH_SGIX          0x8140
  2580 #define GL_PIXEL_TILE_HEIGHT_SGIX         0x8141
  2581 #define GL_PIXEL_TILE_GRID_WIDTH_SGIX     0x8142
  2582 #define GL_PIXEL_TILE_GRID_HEIGHT_SGIX    0x8143
  2583 #define GL_PIXEL_TILE_GRID_DEPTH_SGIX     0x8144
  2584 #define GL_PIXEL_TILE_CACHE_SIZE_SGIX     0x8145
  2585 #endif
  2586 
  2587 #ifndef GL_SGIS_texture_select
  2588 #define GL_DUAL_ALPHA4_SGIS               0x8110
  2589 #define GL_DUAL_ALPHA8_SGIS               0x8111
  2590 #define GL_DUAL_ALPHA12_SGIS              0x8112
  2591 #define GL_DUAL_ALPHA16_SGIS              0x8113
  2592 #define GL_DUAL_LUMINANCE4_SGIS           0x8114
  2593 #define GL_DUAL_LUMINANCE8_SGIS           0x8115
  2594 #define GL_DUAL_LUMINANCE12_SGIS          0x8116
  2595 #define GL_DUAL_LUMINANCE16_SGIS          0x8117
  2596 #define GL_DUAL_INTENSITY4_SGIS           0x8118
  2597 #define GL_DUAL_INTENSITY8_SGIS           0x8119
  2598 #define GL_DUAL_INTENSITY12_SGIS          0x811A
  2599 #define GL_DUAL_INTENSITY16_SGIS          0x811B
  2600 #define GL_DUAL_LUMINANCE_ALPHA4_SGIS     0x811C
  2601 #define GL_DUAL_LUMINANCE_ALPHA8_SGIS     0x811D
  2602 #define GL_QUAD_ALPHA4_SGIS               0x811E
  2603 #define GL_QUAD_ALPHA8_SGIS               0x811F
  2604 #define GL_QUAD_LUMINANCE4_SGIS           0x8120
  2605 #define GL_QUAD_LUMINANCE8_SGIS           0x8121
  2606 #define GL_QUAD_INTENSITY4_SGIS           0x8122
  2607 #define GL_QUAD_INTENSITY8_SGIS           0x8123
  2608 #define GL_DUAL_TEXTURE_SELECT_SGIS       0x8124
  2609 #define GL_QUAD_TEXTURE_SELECT_SGIS       0x8125
  2610 #endif
  2611 
  2612 #ifndef GL_SGIX_sprite
  2613 #define GL_SPRITE_SGIX                    0x8148
  2614 #define GL_SPRITE_MODE_SGIX               0x8149
  2615 #define GL_SPRITE_AXIS_SGIX               0x814A
  2616 #define GL_SPRITE_TRANSLATION_SGIX        0x814B
  2617 #define GL_SPRITE_AXIAL_SGIX              0x814C
  2618 #define GL_SPRITE_OBJECT_ALIGNED_SGIX     0x814D
  2619 #define GL_SPRITE_EYE_ALIGNED_SGIX        0x814E
  2620 #endif
  2621 
  2622 #ifndef GL_SGIX_texture_multi_buffer
  2623 #define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E
  2624 #endif
  2625 
  2626 #ifndef GL_EXT_point_parameters
  2627 #define GL_POINT_SIZE_MIN_EXT             0x8126
  2628 #define GL_POINT_SIZE_MAX_EXT             0x8127
  2629 #define GL_POINT_FADE_THRESHOLD_SIZE_EXT  0x8128
  2630 #define GL_DISTANCE_ATTENUATION_EXT       0x8129
  2631 #endif
  2632 
  2633 #ifndef GL_SGIS_point_parameters
  2634 #define GL_POINT_SIZE_MIN_SGIS            0x8126
  2635 #define GL_POINT_SIZE_MAX_SGIS            0x8127
  2636 #define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128
  2637 #define GL_DISTANCE_ATTENUATION_SGIS      0x8129
  2638 #endif
  2639 
  2640 #ifndef GL_SGIX_instruments
  2641 #define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
  2642 #define GL_INSTRUMENT_MEASUREMENTS_SGIX   0x8181
  2643 #endif
  2644 
  2645 #ifndef GL_SGIX_texture_scale_bias
  2646 #define GL_POST_TEXTURE_FILTER_BIAS_SGIX  0x8179
  2647 #define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A
  2648 #define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B
  2649 #define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C
  2650 #endif
  2651 
  2652 #ifndef GL_SGIX_framezoom
  2653 #define GL_FRAMEZOOM_SGIX                 0x818B
  2654 #define GL_FRAMEZOOM_FACTOR_SGIX          0x818C
  2655 #define GL_MAX_FRAMEZOOM_FACTOR_SGIX      0x818D
  2656 #endif
  2657 
  2658 #ifndef GL_SGIX_tag_sample_buffer
  2659 #endif
  2660 
  2661 #ifndef GL_FfdMaskSGIX
  2662 #define GL_TEXTURE_DEFORMATION_BIT_SGIX   0x00000001
  2663 #define GL_GEOMETRY_DEFORMATION_BIT_SGIX  0x00000002
  2664 #endif
  2665 
  2666 #ifndef GL_SGIX_polynomial_ffd
  2667 #define GL_GEOMETRY_DEFORMATION_SGIX      0x8194
  2668 #define GL_TEXTURE_DEFORMATION_SGIX       0x8195
  2669 #define GL_DEFORMATIONS_MASK_SGIX         0x8196
  2670 #define GL_MAX_DEFORMATION_ORDER_SGIX     0x8197
  2671 #endif
  2672 
  2673 #ifndef GL_SGIX_reference_plane
  2674 #define GL_REFERENCE_PLANE_SGIX           0x817D
  2675 #define GL_REFERENCE_PLANE_EQUATION_SGIX  0x817E
  2676 #endif
  2677 
  2678 #ifndef GL_SGIX_flush_raster
  2679 #endif
  2680 
  2681 #ifndef GL_SGIX_depth_texture
  2682 #define GL_DEPTH_COMPONENT16_SGIX         0x81A5
  2683 #define GL_DEPTH_COMPONENT24_SGIX         0x81A6
  2684 #define GL_DEPTH_COMPONENT32_SGIX         0x81A7
  2685 #endif
  2686 
  2687 #ifndef GL_SGIS_fog_function
  2688 #define GL_FOG_FUNC_SGIS                  0x812A
  2689 #define GL_FOG_FUNC_POINTS_SGIS           0x812B
  2690 #define GL_MAX_FOG_FUNC_POINTS_SGIS       0x812C
  2691 #endif
  2692 
  2693 #ifndef GL_SGIX_fog_offset
  2694 #define GL_FOG_OFFSET_SGIX                0x8198
  2695 #define GL_FOG_OFFSET_VALUE_SGIX          0x8199
  2696 #endif
  2697 
  2698 #ifndef GL_HP_image_transform
  2699 #define GL_IMAGE_SCALE_X_HP               0x8155
  2700 #define GL_IMAGE_SCALE_Y_HP               0x8156
  2701 #define GL_IMAGE_TRANSLATE_X_HP           0x8157
  2702 #define GL_IMAGE_TRANSLATE_Y_HP           0x8158
  2703 #define GL_IMAGE_ROTATE_ANGLE_HP          0x8159
  2704 #define GL_IMAGE_ROTATE_ORIGIN_X_HP       0x815A
  2705 #define GL_IMAGE_ROTATE_ORIGIN_Y_HP       0x815B
  2706 #define GL_IMAGE_MAG_FILTER_HP            0x815C
  2707 #define GL_IMAGE_MIN_FILTER_HP            0x815D
  2708 #define GL_IMAGE_CUBIC_WEIGHT_HP          0x815E
  2709 #define GL_CUBIC_HP                       0x815F
  2710 #define GL_AVERAGE_HP                     0x8160
  2711 #define GL_IMAGE_TRANSFORM_2D_HP          0x8161
  2712 #define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162
  2713 #define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163
  2714 #endif
  2715 
  2716 #ifndef GL_HP_convolution_border_modes
  2717 #define GL_IGNORE_BORDER_HP               0x8150
  2718 #define GL_CONSTANT_BORDER_HP             0x8151
  2719 #define GL_REPLICATE_BORDER_HP            0x8153
  2720 #define GL_CONVOLUTION_BORDER_COLOR_HP    0x8154
  2721 #endif
  2722 
  2723 #ifndef GL_INGR_palette_buffer
  2724 #endif
  2725 
  2726 #ifndef GL_SGIX_texture_add_env
  2727 #define GL_TEXTURE_ENV_BIAS_SGIX          0x80BE
  2728 #endif
  2729 
  2730 #ifndef GL_EXT_color_subtable
  2731 #endif
  2732 
  2733 #ifndef GL_PGI_vertex_hints
  2734 #define GL_VERTEX_DATA_HINT_PGI           0x1A22A
  2735 #define GL_VERTEX_CONSISTENT_HINT_PGI     0x1A22B
  2736 #define GL_MATERIAL_SIDE_HINT_PGI         0x1A22C
  2737 #define GL_MAX_VERTEX_HINT_PGI            0x1A22D
  2738 #define GL_COLOR3_BIT_PGI                 0x00010000
  2739 #define GL_COLOR4_BIT_PGI                 0x00020000
  2740 #define GL_EDGEFLAG_BIT_PGI               0x00040000
  2741 #define GL_INDEX_BIT_PGI                  0x00080000
  2742 #define GL_MAT_AMBIENT_BIT_PGI            0x00100000
  2743 #define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000
  2744 #define GL_MAT_DIFFUSE_BIT_PGI            0x00400000
  2745 #define GL_MAT_EMISSION_BIT_PGI           0x00800000
  2746 #define GL_MAT_COLOR_INDEXES_BIT_PGI      0x01000000
  2747 #define GL_MAT_SHININESS_BIT_PGI          0x02000000
  2748 #define GL_MAT_SPECULAR_BIT_PGI           0x04000000
  2749 #define GL_NORMAL_BIT_PGI                 0x08000000
  2750 #define GL_TEXCOORD1_BIT_PGI              0x10000000
  2751 #define GL_TEXCOORD2_BIT_PGI              0x20000000
  2752 #define GL_TEXCOORD3_BIT_PGI              0x40000000
  2753 #define GL_TEXCOORD4_BIT_PGI              0x80000000
  2754 #define GL_VERTEX23_BIT_PGI               0x00000004
  2755 #define GL_VERTEX4_BIT_PGI                0x00000008
  2756 #endif
  2757 
  2758 #ifndef GL_PGI_misc_hints
  2759 #define GL_PREFER_DOUBLEBUFFER_HINT_PGI   0x1A1F8
  2760 #define GL_CONSERVE_MEMORY_HINT_PGI       0x1A1FD
  2761 #define GL_RECLAIM_MEMORY_HINT_PGI        0x1A1FE
  2762 #define GL_NATIVE_GRAPHICS_HANDLE_PGI     0x1A202
  2763 #define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203
  2764 #define GL_NATIVE_GRAPHICS_END_HINT_PGI   0x1A204
  2765 #define GL_ALWAYS_FAST_HINT_PGI           0x1A20C
  2766 #define GL_ALWAYS_SOFT_HINT_PGI           0x1A20D
  2767 #define GL_ALLOW_DRAW_OBJ_HINT_PGI        0x1A20E
  2768 #define GL_ALLOW_DRAW_WIN_HINT_PGI        0x1A20F
  2769 #define GL_ALLOW_DRAW_FRG_HINT_PGI        0x1A210
  2770 #define GL_ALLOW_DRAW_MEM_HINT_PGI        0x1A211
  2771 #define GL_STRICT_DEPTHFUNC_HINT_PGI      0x1A216
  2772 #define GL_STRICT_LIGHTING_HINT_PGI       0x1A217
  2773 #define GL_STRICT_SCISSOR_HINT_PGI        0x1A218
  2774 #define GL_FULL_STIPPLE_HINT_PGI          0x1A219
  2775 #define GL_CLIP_NEAR_HINT_PGI             0x1A220
  2776 #define GL_CLIP_FAR_HINT_PGI              0x1A221
  2777 #define GL_WIDE_LINE_HINT_PGI             0x1A222
  2778 #define GL_BACK_NORMALS_HINT_PGI          0x1A223
  2779 #endif
  2780 
  2781 #ifndef GL_EXT_paletted_texture
  2782 #define GL_COLOR_INDEX1_EXT               0x80E2
  2783 #define GL_COLOR_INDEX2_EXT               0x80E3
  2784 #define GL_COLOR_INDEX4_EXT               0x80E4
  2785 #define GL_COLOR_INDEX8_EXT               0x80E5
  2786 #define GL_COLOR_INDEX12_EXT              0x80E6
  2787 #define GL_COLOR_INDEX16_EXT              0x80E7
  2788 #define GL_TEXTURE_INDEX_SIZE_EXT         0x80ED
  2789 #endif
  2790 
  2791 #ifndef GL_EXT_clip_volume_hint
  2792 #define GL_CLIP_VOLUME_CLIPPING_HINT_EXT  0x80F0
  2793 #endif
  2794 
  2795 #ifndef GL_SGIX_list_priority
  2796 #define GL_LIST_PRIORITY_SGIX             0x8182
  2797 #endif
  2798 
  2799 #ifndef GL_SGIX_ir_instrument1
  2800 #define GL_IR_INSTRUMENT1_SGIX            0x817F
  2801 #endif
  2802 
  2803 #ifndef GL_SGIX_calligraphic_fragment
  2804 #define GL_CALLIGRAPHIC_FRAGMENT_SGIX     0x8183
  2805 #endif
  2806 
  2807 #ifndef GL_SGIX_texture_lod_bias
  2808 #define GL_TEXTURE_LOD_BIAS_S_SGIX        0x818E
  2809 #define GL_TEXTURE_LOD_BIAS_T_SGIX        0x818F
  2810 #define GL_TEXTURE_LOD_BIAS_R_SGIX        0x8190
  2811 #endif
  2812 
  2813 #ifndef GL_SGIX_shadow_ambient
  2814 #define GL_SHADOW_AMBIENT_SGIX            0x80BF
  2815 #endif
  2816 
  2817 #ifndef GL_EXT_index_texture
  2818 #endif
  2819 
  2820 #ifndef GL_EXT_index_material
  2821 #define GL_INDEX_MATERIAL_EXT             0x81B8
  2822 #define GL_INDEX_MATERIAL_PARAMETER_EXT   0x81B9
  2823 #define GL_INDEX_MATERIAL_FACE_EXT        0x81BA
  2824 #endif
  2825 
  2826 #ifndef GL_EXT_index_func
  2827 #define GL_INDEX_TEST_EXT                 0x81B5
  2828 #define GL_INDEX_TEST_FUNC_EXT            0x81B6
  2829 #define GL_INDEX_TEST_REF_EXT             0x81B7
  2830 #endif
  2831 
  2832 #ifndef GL_EXT_index_array_formats
  2833 #define GL_IUI_V2F_EXT                    0x81AD
  2834 #define GL_IUI_V3F_EXT                    0x81AE
  2835 #define GL_IUI_N3F_V2F_EXT                0x81AF
  2836 #define GL_IUI_N3F_V3F_EXT                0x81B0
  2837 #define GL_T2F_IUI_V2F_EXT                0x81B1
  2838 #define GL_T2F_IUI_V3F_EXT                0x81B2
  2839 #define GL_T2F_IUI_N3F_V2F_EXT            0x81B3
  2840 #define GL_T2F_IUI_N3F_V3F_EXT            0x81B4
  2841 #endif
  2842 
  2843 #ifndef GL_EXT_compiled_vertex_array
  2844 #define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT   0x81A8
  2845 #define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT   0x81A9
  2846 #endif
  2847 
  2848 #ifndef GL_EXT_cull_vertex
  2849 #define GL_CULL_VERTEX_EXT                0x81AA
  2850 #define GL_CULL_VERTEX_EYE_POSITION_EXT   0x81AB
  2851 #define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
  2852 #endif
  2853 
  2854 #ifndef GL_SGIX_ycrcb
  2855 #define GL_YCRCB_422_SGIX                 0x81BB
  2856 #define GL_YCRCB_444_SGIX                 0x81BC
  2857 #endif
  2858 
  2859 #ifndef GL_SGIX_fragment_lighting
  2860 #define GL_FRAGMENT_LIGHTING_SGIX         0x8400
  2861 #define GL_FRAGMENT_COLOR_MATERIAL_SGIX   0x8401
  2862 #define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402
  2863 #define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403
  2864 #define GL_MAX_FRAGMENT_LIGHTS_SGIX       0x8404
  2865 #define GL_MAX_ACTIVE_LIGHTS_SGIX         0x8405
  2866 #define GL_CURRENT_RASTER_NORMAL_SGIX     0x8406
  2867 #define GL_LIGHT_ENV_MODE_SGIX            0x8407
  2868 #define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408
  2869 #define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409
  2870 #define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A
  2871 #define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B
  2872 #define GL_FRAGMENT_LIGHT0_SGIX           0x840C
  2873 #define GL_FRAGMENT_LIGHT1_SGIX           0x840D
  2874 #define GL_FRAGMENT_LIGHT2_SGIX           0x840E
  2875 #define GL_FRAGMENT_LIGHT3_SGIX           0x840F
  2876 #define GL_FRAGMENT_LIGHT4_SGIX           0x8410
  2877 #define GL_FRAGMENT_LIGHT5_SGIX           0x8411
  2878 #define GL_FRAGMENT_LIGHT6_SGIX           0x8412
  2879 #define GL_FRAGMENT_LIGHT7_SGIX           0x8413
  2880 #endif
  2881 
  2882 #ifndef GL_IBM_rasterpos_clip
  2883 #define GL_RASTER_POSITION_UNCLIPPED_IBM  0x19262
  2884 #endif
  2885 
  2886 #ifndef GL_HP_texture_lighting
  2887 #define GL_TEXTURE_LIGHTING_MODE_HP       0x8167
  2888 #define GL_TEXTURE_POST_SPECULAR_HP       0x8168
  2889 #define GL_TEXTURE_PRE_SPECULAR_HP        0x8169
  2890 #endif
  2891 
  2892 #ifndef GL_EXT_draw_range_elements
  2893 #define GL_MAX_ELEMENTS_VERTICES_EXT      0x80E8
  2894 #define GL_MAX_ELEMENTS_INDICES_EXT       0x80E9
  2895 #endif
  2896 
  2897 #ifndef GL_WIN_phong_shading
  2898 #define GL_PHONG_WIN                      0x80EA
  2899 #define GL_PHONG_HINT_WIN                 0x80EB
  2900 #endif
  2901 
  2902 #ifndef GL_WIN_specular_fog
  2903 #define GL_FOG_SPECULAR_TEXTURE_WIN       0x80EC
  2904 #endif
  2905 
  2906 #ifndef GL_EXT_light_texture
  2907 #define GL_FRAGMENT_MATERIAL_EXT          0x8349
  2908 #define GL_FRAGMENT_NORMAL_EXT            0x834A
  2909 #define GL_FRAGMENT_COLOR_EXT             0x834C
  2910 #define GL_ATTENUATION_EXT                0x834D
  2911 #define GL_SHADOW_ATTENUATION_EXT         0x834E
  2912 #define GL_TEXTURE_APPLICATION_MODE_EXT   0x834F
  2913 #define GL_TEXTURE_LIGHT_EXT              0x8350
  2914 #define GL_TEXTURE_MATERIAL_FACE_EXT      0x8351
  2915 #define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352
  2916 /* reuse GL_FRAGMENT_DEPTH_EXT */
  2917 #endif
  2918 
  2919 #ifndef GL_SGIX_blend_alpha_minmax
  2920 #define GL_ALPHA_MIN_SGIX                 0x8320
  2921 #define GL_ALPHA_MAX_SGIX                 0x8321
  2922 #endif
  2923 
  2924 #ifndef GL_SGIX_impact_pixel_texture
  2925 #define GL_PIXEL_TEX_GEN_Q_CEILING_SGIX   0x8184
  2926 #define GL_PIXEL_TEX_GEN_Q_ROUND_SGIX     0x8185
  2927 #define GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX     0x8186
  2928 #define GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX 0x8187
  2929 #define GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX 0x8188
  2930 #define GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX    0x8189
  2931 #define GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX    0x818A
  2932 #endif
  2933 
  2934 #ifndef GL_EXT_bgra
  2935 #define GL_BGR_EXT                        0x80E0
  2936 #define GL_BGRA_EXT                       0x80E1
  2937 #endif
  2938 
  2939 #ifndef GL_SGIX_async
  2940 #define GL_ASYNC_MARKER_SGIX              0x8329
  2941 #endif
  2942 
  2943 #ifndef GL_SGIX_async_pixel
  2944 #define GL_ASYNC_TEX_IMAGE_SGIX           0x835C
  2945 #define GL_ASYNC_DRAW_PIXELS_SGIX         0x835D
  2946 #define GL_ASYNC_READ_PIXELS_SGIX         0x835E
  2947 #define GL_MAX_ASYNC_TEX_IMAGE_SGIX       0x835F
  2948 #define GL_MAX_ASYNC_DRAW_PIXELS_SGIX     0x8360
  2949 #define GL_MAX_ASYNC_READ_PIXELS_SGIX     0x8361
  2950 #endif
  2951 
  2952 #ifndef GL_SGIX_async_histogram
  2953 #define GL_ASYNC_HISTOGRAM_SGIX           0x832C
  2954 #define GL_MAX_ASYNC_HISTOGRAM_SGIX       0x832D
  2955 #endif
  2956 
  2957 #ifndef GL_INTEL_texture_scissor
  2958 #endif
  2959 
  2960 #ifndef GL_INTEL_parallel_arrays
  2961 #define GL_PARALLEL_ARRAYS_INTEL          0x83F4
  2962 #define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5
  2963 #define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6
  2964 #define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7
  2965 #define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8
  2966 #endif
  2967 
  2968 #ifndef GL_HP_occlusion_test
  2969 #define GL_OCCLUSION_TEST_HP              0x8165
  2970 #define GL_OCCLUSION_TEST_RESULT_HP       0x8166
  2971 #endif
  2972 
  2973 #ifndef GL_EXT_pixel_transform
  2974 #define GL_PIXEL_TRANSFORM_2D_EXT         0x8330
  2975 #define GL_PIXEL_MAG_FILTER_EXT           0x8331
  2976 #define GL_PIXEL_MIN_FILTER_EXT           0x8332
  2977 #define GL_PIXEL_CUBIC_WEIGHT_EXT         0x8333
  2978 #define GL_CUBIC_EXT                      0x8334
  2979 #define GL_AVERAGE_EXT                    0x8335
  2980 #define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336
  2981 #define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337
  2982 #define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT  0x8338
  2983 #endif
  2984 
  2985 #ifndef GL_EXT_pixel_transform_color_table
  2986 #endif
  2987 
  2988 #ifndef GL_EXT_shared_texture_palette
  2989 #define GL_SHARED_TEXTURE_PALETTE_EXT     0x81FB
  2990 #endif
  2991 
  2992 #ifndef GL_EXT_separate_specular_color
  2993 #define GL_LIGHT_MODEL_COLOR_CONTROL_EXT  0x81F8
  2994 #define GL_SINGLE_COLOR_EXT               0x81F9
  2995 #define GL_SEPARATE_SPECULAR_COLOR_EXT    0x81FA
  2996 #endif
  2997 
  2998 #ifndef GL_EXT_secondary_color
  2999 #define GL_COLOR_SUM_EXT                  0x8458
  3000 #define GL_CURRENT_SECONDARY_COLOR_EXT    0x8459
  3001 #define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
  3002 #define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
  3003 #define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
  3004 #define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
  3005 #define GL_SECONDARY_COLOR_ARRAY_EXT      0x845E
  3006 #endif
  3007 
  3008 #ifndef GL_EXT_texture_perturb_normal
  3009 #define GL_PERTURB_EXT                    0x85AE
  3010 #define GL_TEXTURE_NORMAL_EXT             0x85AF
  3011 #endif
  3012 
  3013 #ifndef GL_EXT_multi_draw_arrays
  3014 #endif
  3015 
  3016 #ifndef GL_EXT_fog_coord
  3017 #define GL_FOG_COORDINATE_SOURCE_EXT      0x8450
  3018 #define GL_FOG_COORDINATE_EXT             0x8451
  3019 #define GL_FRAGMENT_DEPTH_EXT             0x8452
  3020 #define GL_CURRENT_FOG_COORDINATE_EXT     0x8453
  3021 #define GL_FOG_COORDINATE_ARRAY_TYPE_EXT  0x8454
  3022 #define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
  3023 #define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
  3024 #define GL_FOG_COORDINATE_ARRAY_EXT       0x8457
  3025 #endif
  3026 
  3027 #ifndef GL_REND_screen_coordinates
  3028 #define GL_SCREEN_COORDINATES_REND        0x8490
  3029 #define GL_INVERTED_SCREEN_W_REND         0x8491
  3030 #endif
  3031 
  3032 #ifndef GL_EXT_coordinate_frame
  3033 #define GL_TANGENT_ARRAY_EXT              0x8439
  3034 #define GL_BINORMAL_ARRAY_EXT             0x843A
  3035 #define GL_CURRENT_TANGENT_EXT            0x843B
  3036 #define GL_CURRENT_BINORMAL_EXT           0x843C
  3037 #define GL_TANGENT_ARRAY_TYPE_EXT         0x843E
  3038 #define GL_TANGENT_ARRAY_STRIDE_EXT       0x843F
  3039 #define GL_BINORMAL_ARRAY_TYPE_EXT        0x8440
  3040 #define GL_BINORMAL_ARRAY_STRIDE_EXT      0x8441
  3041 #define GL_TANGENT_ARRAY_POINTER_EXT      0x8442
  3042 #define GL_BINORMAL_ARRAY_POINTER_EXT     0x8443
  3043 #define GL_MAP1_TANGENT_EXT               0x8444
  3044 #define GL_MAP2_TANGENT_EXT               0x8445
  3045 #define GL_MAP1_BINORMAL_EXT              0x8446
  3046 #define GL_MAP2_BINORMAL_EXT              0x8447
  3047 #endif
  3048 
  3049 #ifndef GL_EXT_texture_env_combine
  3050 #define GL_COMBINE_EXT                    0x8570
  3051 #define GL_COMBINE_RGB_EXT                0x8571
  3052 #define GL_COMBINE_ALPHA_EXT              0x8572
  3053 #define GL_RGB_SCALE_EXT                  0x8573
  3054 #define GL_ADD_SIGNED_EXT                 0x8574
  3055 #define GL_INTERPOLATE_EXT                0x8575
  3056 #define GL_CONSTANT_EXT                   0x8576
  3057 #define GL_PRIMARY_COLOR_EXT              0x8577
  3058 #define GL_PREVIOUS_EXT                   0x8578
  3059 #define GL_SOURCE0_RGB_EXT                0x8580
  3060 #define GL_SOURCE1_RGB_EXT                0x8581
  3061 #define GL_SOURCE2_RGB_EXT                0x8582
  3062 #define GL_SOURCE0_ALPHA_EXT              0x8588
  3063 #define GL_SOURCE1_ALPHA_EXT              0x8589
  3064 #define GL_SOURCE2_ALPHA_EXT              0x858A
  3065 #define GL_OPERAND0_RGB_EXT               0x8590
  3066 #define GL_OPERAND1_RGB_EXT               0x8591
  3067 #define GL_OPERAND2_RGB_EXT               0x8592
  3068 #define GL_OPERAND0_ALPHA_EXT             0x8598
  3069 #define GL_OPERAND1_ALPHA_EXT             0x8599
  3070 #define GL_OPERAND2_ALPHA_EXT             0x859A
  3071 #endif
  3072 
  3073 #ifndef GL_APPLE_specular_vector
  3074 #define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
  3075 #endif
  3076 
  3077 #ifndef GL_APPLE_transform_hint
  3078 #define GL_TRANSFORM_HINT_APPLE           0x85B1
  3079 #endif
  3080 
  3081 #ifndef GL_SGIX_fog_scale
  3082 #define GL_FOG_SCALE_SGIX                 0x81FC
  3083 #define GL_FOG_SCALE_VALUE_SGIX           0x81FD
  3084 #endif
  3085 
  3086 #ifndef GL_SUNX_constant_data
  3087 #define GL_UNPACK_CONSTANT_DATA_SUNX      0x81D5
  3088 #define GL_TEXTURE_CONSTANT_DATA_SUNX     0x81D6
  3089 #endif
  3090 
  3091 #ifndef GL_SUN_global_alpha
  3092 #define GL_GLOBAL_ALPHA_SUN               0x81D9
  3093 #define GL_GLOBAL_ALPHA_FACTOR_SUN        0x81DA
  3094 #endif
  3095 
  3096 #ifndef GL_SUN_triangle_list
  3097 #define GL_RESTART_SUN                    0x0001
  3098 #define GL_REPLACE_MIDDLE_SUN             0x0002
  3099 #define GL_REPLACE_OLDEST_SUN             0x0003
  3100 #define GL_TRIANGLE_LIST_SUN              0x81D7
  3101 #define GL_REPLACEMENT_CODE_SUN           0x81D8
  3102 #define GL_REPLACEMENT_CODE_ARRAY_SUN     0x85C0
  3103 #define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
  3104 #define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
  3105 #define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
  3106 #define GL_R1UI_V3F_SUN                   0x85C4
  3107 #define GL_R1UI_C4UB_V3F_SUN              0x85C5
  3108 #define GL_R1UI_C3F_V3F_SUN               0x85C6
  3109 #define GL_R1UI_N3F_V3F_SUN               0x85C7
  3110 #define GL_R1UI_C4F_N3F_V3F_SUN           0x85C8
  3111 #define GL_R1UI_T2F_V3F_SUN               0x85C9
  3112 #define GL_R1UI_T2F_N3F_V3F_SUN           0x85CA
  3113 #define GL_R1UI_T2F_C4F_N3F_V3F_SUN       0x85CB
  3114 #endif
  3115 
  3116 #ifndef GL_SUN_vertex
  3117 #endif
  3118 
  3119 #ifndef GL_EXT_blend_func_separate
  3120 #define GL_BLEND_DST_RGB_EXT              0x80C8
  3121 #define GL_BLEND_SRC_RGB_EXT              0x80C9
  3122 #define GL_BLEND_DST_ALPHA_EXT            0x80CA
  3123 #define GL_BLEND_SRC_ALPHA_EXT            0x80CB
  3124 #endif
  3125 
  3126 #ifndef GL_INGR_color_clamp
  3127 #define GL_RED_MIN_CLAMP_INGR             0x8560
  3128 #define GL_GREEN_MIN_CLAMP_INGR           0x8561
  3129 #define GL_BLUE_MIN_CLAMP_INGR            0x8562
  3130 #define GL_ALPHA_MIN_CLAMP_INGR           0x8563
  3131 #define GL_RED_MAX_CLAMP_INGR             0x8564
  3132 #define GL_GREEN_MAX_CLAMP_INGR           0x8565
  3133 #define GL_BLUE_MAX_CLAMP_INGR            0x8566
  3134 #define GL_ALPHA_MAX_CLAMP_INGR           0x8567
  3135 #endif
  3136 
  3137 #ifndef GL_INGR_interlace_read
  3138 #define GL_INTERLACE_READ_INGR            0x8568
  3139 #endif
  3140 
  3141 #ifndef GL_EXT_stencil_wrap
  3142 #define GL_INCR_WRAP_EXT                  0x8507
  3143 #define GL_DECR_WRAP_EXT                  0x8508
  3144 #endif
  3145 
  3146 #ifndef GL_EXT_422_pixels
  3147 #define GL_422_EXT                        0x80CC
  3148 #define GL_422_REV_EXT                    0x80CD
  3149 #define GL_422_AVERAGE_EXT                0x80CE
  3150 #define GL_422_REV_AVERAGE_EXT            0x80CF
  3151 #endif
  3152 
  3153 #ifndef GL_NV_texgen_reflection
  3154 #define GL_NORMAL_MAP_NV                  0x8511
  3155 #define GL_REFLECTION_MAP_NV              0x8512
  3156 #endif
  3157 
  3158 #ifndef GL_EXT_texture_cube_map
  3159 #define GL_NORMAL_MAP_EXT                 0x8511
  3160 #define GL_REFLECTION_MAP_EXT             0x8512
  3161 #define GL_TEXTURE_CUBE_MAP_EXT           0x8513
  3162 #define GL_TEXTURE_BINDING_CUBE_MAP_EXT   0x8514
  3163 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
  3164 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
  3165 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
  3166 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
  3167 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
  3168 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
  3169 #define GL_PROXY_TEXTURE_CUBE_MAP_EXT     0x851B
  3170 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT  0x851C
  3171 #endif
  3172 
  3173 #ifndef GL_SUN_convolution_border_modes
  3174 #define GL_WRAP_BORDER_SUN                0x81D4
  3175 #endif
  3176 
  3177 #ifndef GL_EXT_texture_env_add
  3178 #endif
  3179 
  3180 #ifndef GL_EXT_texture_lod_bias
  3181 #define GL_MAX_TEXTURE_LOD_BIAS_EXT       0x84FD
  3182 #define GL_TEXTURE_FILTER_CONTROL_EXT     0x8500
  3183 #define GL_TEXTURE_LOD_BIAS_EXT           0x8501
  3184 #endif
  3185 
  3186 #ifndef GL_EXT_texture_filter_anisotropic
  3187 #define GL_TEXTURE_MAX_ANISOTROPY_EXT     0x84FE
  3188 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
  3189 #endif
  3190 
  3191 #ifndef GL_EXT_vertex_weighting
  3192 #define GL_MODELVIEW0_STACK_DEPTH_EXT     GL_MODELVIEW_STACK_DEPTH
  3193 #define GL_MODELVIEW1_STACK_DEPTH_EXT     0x8502
  3194 #define GL_MODELVIEW0_MATRIX_EXT          GL_MODELVIEW_MATRIX
  3195 #define GL_MODELVIEW1_MATRIX_EXT          0x8506
  3196 #define GL_VERTEX_WEIGHTING_EXT           0x8509
  3197 #define GL_MODELVIEW0_EXT                 GL_MODELVIEW
  3198 #define GL_MODELVIEW1_EXT                 0x850A
  3199 #define GL_CURRENT_VERTEX_WEIGHT_EXT      0x850B
  3200 #define GL_VERTEX_WEIGHT_ARRAY_EXT        0x850C
  3201 #define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT   0x850D
  3202 #define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT   0x850E
  3203 #define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F
  3204 #define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
  3205 #endif
  3206 
  3207 #ifndef GL_NV_light_max_exponent
  3208 #define GL_MAX_SHININESS_NV               0x8504
  3209 #define GL_MAX_SPOT_EXPONENT_NV           0x8505
  3210 #endif
  3211 
  3212 #ifndef GL_NV_vertex_array_range
  3213 #define GL_VERTEX_ARRAY_RANGE_NV          0x851D
  3214 #define GL_VERTEX_ARRAY_RANGE_LENGTH_NV   0x851E
  3215 #define GL_VERTEX_ARRAY_RANGE_VALID_NV    0x851F
  3216 #define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
  3217 #define GL_VERTEX_ARRAY_RANGE_POINTER_NV  0x8521
  3218 #endif
  3219 
  3220 #ifndef GL_NV_register_combiners
  3221 #define GL_REGISTER_COMBINERS_NV          0x8522
  3222 #define GL_VARIABLE_A_NV                  0x8523
  3223 #define GL_VARIABLE_B_NV                  0x8524
  3224 #define GL_VARIABLE_C_NV                  0x8525
  3225 #define GL_VARIABLE_D_NV                  0x8526
  3226 #define GL_VARIABLE_E_NV                  0x8527
  3227 #define GL_VARIABLE_F_NV                  0x8528
  3228 #define GL_VARIABLE_G_NV                  0x8529
  3229 #define GL_CONSTANT_COLOR0_NV             0x852A
  3230 #define GL_CONSTANT_COLOR1_NV             0x852B
  3231 #define GL_PRIMARY_COLOR_NV               0x852C
  3232 #define GL_SECONDARY_COLOR_NV             0x852D
  3233 #define GL_SPARE0_NV                      0x852E
  3234 #define GL_SPARE1_NV                      0x852F
  3235 #define GL_DISCARD_NV                     0x8530
  3236 #define GL_E_TIMES_F_NV                   0x8531
  3237 #define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
  3238 #define GL_UNSIGNED_IDENTITY_NV           0x8536
  3239 #define GL_UNSIGNED_INVERT_NV             0x8537
  3240 #define GL_EXPAND_NORMAL_NV               0x8538
  3241 #define GL_EXPAND_NEGATE_NV               0x8539
  3242 #define GL_HALF_BIAS_NORMAL_NV            0x853A
  3243 #define GL_HALF_BIAS_NEGATE_NV            0x853B
  3244 #define GL_SIGNED_IDENTITY_NV             0x853C
  3245 #define GL_SIGNED_NEGATE_NV               0x853D
  3246 #define GL_SCALE_BY_TWO_NV                0x853E
  3247 #define GL_SCALE_BY_FOUR_NV               0x853F
  3248 #define GL_SCALE_BY_ONE_HALF_NV           0x8540
  3249 #define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV   0x8541
  3250 #define GL_COMBINER_INPUT_NV              0x8542
  3251 #define GL_COMBINER_MAPPING_NV            0x8543
  3252 #define GL_COMBINER_COMPONENT_USAGE_NV    0x8544
  3253 #define GL_COMBINER_AB_DOT_PRODUCT_NV     0x8545
  3254 #define GL_COMBINER_CD_DOT_PRODUCT_NV     0x8546
  3255 #define GL_COMBINER_MUX_SUM_NV            0x8547
  3256 #define GL_COMBINER_SCALE_NV              0x8548
  3257 #define GL_COMBINER_BIAS_NV               0x8549
  3258 #define GL_COMBINER_AB_OUTPUT_NV          0x854A
  3259 #define GL_COMBINER_CD_OUTPUT_NV          0x854B
  3260 #define GL_COMBINER_SUM_OUTPUT_NV         0x854C
  3261 #define GL_MAX_GENERAL_COMBINERS_NV       0x854D
  3262 #define GL_NUM_GENERAL_COMBINERS_NV       0x854E
  3263 #define GL_COLOR_SUM_CLAMP_NV             0x854F
  3264 #define GL_COMBINER0_NV                   0x8550
  3265 #define GL_COMBINER1_NV                   0x8551
  3266 #define GL_COMBINER2_NV                   0x8552
  3267 #define GL_COMBINER3_NV                   0x8553
  3268 #define GL_COMBINER4_NV                   0x8554
  3269 #define GL_COMBINER5_NV                   0x8555
  3270 #define GL_COMBINER6_NV                   0x8556
  3271 #define GL_COMBINER7_NV                   0x8557
  3272 /* reuse GL_TEXTURE0_ARB */
  3273 /* reuse GL_TEXTURE1_ARB */
  3274 /* reuse GL_ZERO */
  3275 /* reuse GL_NONE */
  3276 /* reuse GL_FOG */
  3277 #endif
  3278 
  3279 #ifndef GL_NV_fog_distance
  3280 #define GL_FOG_DISTANCE_MODE_NV           0x855A
  3281 #define GL_EYE_RADIAL_NV                  0x855B
  3282 #define GL_EYE_PLANE_ABSOLUTE_NV          0x855C
  3283 /* reuse GL_EYE_PLANE */
  3284 #endif
  3285 
  3286 #ifndef GL_NV_texgen_emboss
  3287 #define GL_EMBOSS_LIGHT_NV                0x855D
  3288 #define GL_EMBOSS_CONSTANT_NV             0x855E
  3289 #define GL_EMBOSS_MAP_NV                  0x855F
  3290 #endif
  3291 
  3292 #ifndef GL_NV_blend_square
  3293 #endif
  3294 
  3295 #ifndef GL_NV_texture_env_combine4
  3296 #define GL_COMBINE4_NV                    0x8503
  3297 #define GL_SOURCE3_RGB_NV                 0x8583
  3298 #define GL_SOURCE3_ALPHA_NV               0x858B
  3299 #define GL_OPERAND3_RGB_NV                0x8593
  3300 #define GL_OPERAND3_ALPHA_NV              0x859B
  3301 #endif
  3302 
  3303 #ifndef GL_MESA_resize_buffers
  3304 #endif
  3305 
  3306 #ifndef GL_MESA_window_pos
  3307 #endif
  3308 
  3309 #ifndef GL_EXT_texture_compression_s3tc
  3310 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0
  3311 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT  0x83F1
  3312 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT  0x83F2
  3313 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT  0x83F3
  3314 #endif
  3315 
  3316 #ifndef GL_IBM_cull_vertex
  3317 #define GL_CULL_VERTEX_IBM                103050
  3318 #endif
  3319 
  3320 #ifndef GL_IBM_multimode_draw_arrays
  3321 #endif
  3322 
  3323 #ifndef GL_IBM_vertex_array_lists
  3324 #define GL_VERTEX_ARRAY_LIST_IBM          103070
  3325 #define GL_NORMAL_ARRAY_LIST_IBM          103071
  3326 #define GL_COLOR_ARRAY_LIST_IBM           103072
  3327 #define GL_INDEX_ARRAY_LIST_IBM           103073
  3328 #define GL_TEXTURE_COORD_ARRAY_LIST_IBM   103074
  3329 #define GL_EDGE_FLAG_ARRAY_LIST_IBM       103075
  3330 #define GL_FOG_COORDINATE_ARRAY_LIST_IBM  103076
  3331 #define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077
  3332 #define GL_VERTEX_ARRAY_LIST_STRIDE_IBM   103080
  3333 #define GL_NORMAL_ARRAY_LIST_STRIDE_IBM   103081
  3334 #define GL_COLOR_ARRAY_LIST_STRIDE_IBM    103082
  3335 #define GL_INDEX_ARRAY_LIST_STRIDE_IBM    103083
  3336 #define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084
  3337 #define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085
  3338 #define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086
  3339 #define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087
  3340 #endif
  3341 
  3342 #ifndef GL_SGIX_subsample
  3343 #define GL_PACK_SUBSAMPLE_RATE_SGIX       0x85A0
  3344 #define GL_UNPACK_SUBSAMPLE_RATE_SGIX     0x85A1
  3345 #define GL_PIXEL_SUBSAMPLE_4444_SGIX      0x85A2
  3346 #define GL_PIXEL_SUBSAMPLE_2424_SGIX      0x85A3
  3347 #define GL_PIXEL_SUBSAMPLE_4242_SGIX      0x85A4
  3348 #endif
  3349 
  3350 #ifndef GL_SGIX_ycrcb_subsample
  3351 #endif
  3352 
  3353 #ifndef GL_SGIX_ycrcba
  3354 #define GL_YCRCB_SGIX                     0x8318
  3355 #define GL_YCRCBA_SGIX                    0x8319
  3356 #endif
  3357 
  3358 #ifndef GL_SGI_depth_pass_instrument
  3359 #define GL_DEPTH_PASS_INSTRUMENT_SGIX     0x8310
  3360 #define GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX 0x8311
  3361 #define GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX 0x8312
  3362 #endif
  3363 
  3364 #ifndef GL_3DFX_texture_compression_FXT1
  3365 #define GL_COMPRESSED_RGB_FXT1_3DFX       0x86B0
  3366 #define GL_COMPRESSED_RGBA_FXT1_3DFX      0x86B1
  3367 #endif
  3368 
  3369 #ifndef GL_3DFX_multisample
  3370 #define GL_MULTISAMPLE_3DFX               0x86B2
  3371 #define GL_SAMPLE_BUFFERS_3DFX            0x86B3
  3372 #define GL_SAMPLES_3DFX                   0x86B4
  3373 #define GL_MULTISAMPLE_BIT_3DFX           0x20000000
  3374 #endif
  3375 
  3376 #ifndef GL_3DFX_tbuffer
  3377 #endif
  3378 
  3379 #ifndef GL_EXT_multisample
  3380 #define GL_MULTISAMPLE_EXT                0x809D
  3381 #define GL_SAMPLE_ALPHA_TO_MASK_EXT       0x809E
  3382 #define GL_SAMPLE_ALPHA_TO_ONE_EXT        0x809F
  3383 #define GL_SAMPLE_MASK_EXT                0x80A0
  3384 #define GL_1PASS_EXT                      0x80A1
  3385 #define GL_2PASS_0_EXT                    0x80A2
  3386 #define GL_2PASS_1_EXT                    0x80A3
  3387 #define GL_4PASS_0_EXT                    0x80A4
  3388 #define GL_4PASS_1_EXT                    0x80A5
  3389 #define GL_4PASS_2_EXT                    0x80A6
  3390 #define GL_4PASS_3_EXT                    0x80A7
  3391 #define GL_SAMPLE_BUFFERS_EXT             0x80A8
  3392 #define GL_SAMPLES_EXT                    0x80A9
  3393 #define GL_SAMPLE_MASK_VALUE_EXT          0x80AA
  3394 #define GL_SAMPLE_MASK_INVERT_EXT         0x80AB
  3395 #define GL_SAMPLE_PATTERN_EXT             0x80AC
  3396 #define GL_MULTISAMPLE_BIT_EXT            0x20000000
  3397 #endif
  3398 
  3399 #ifndef GL_SGIX_vertex_preclip
  3400 #define GL_VERTEX_PRECLIP_SGIX            0x83EE
  3401 #define GL_VERTEX_PRECLIP_HINT_SGIX       0x83EF
  3402 #endif
  3403 
  3404 #ifndef GL_SGIX_convolution_accuracy
  3405 #define GL_CONVOLUTION_HINT_SGIX          0x8316
  3406 #endif
  3407 
  3408 #ifndef GL_SGIX_resample
  3409 #define GL_PACK_RESAMPLE_SGIX             0x842C
  3410 #define GL_UNPACK_RESAMPLE_SGIX           0x842D
  3411 #define GL_RESAMPLE_REPLICATE_SGIX        0x842E
  3412 #define GL_RESAMPLE_ZERO_FILL_SGIX        0x842F
  3413 #define GL_RESAMPLE_DECIMATE_SGIX         0x8430
  3414 #endif
  3415 
  3416 #ifndef GL_SGIS_point_line_texgen
  3417 #define GL_EYE_DISTANCE_TO_POINT_SGIS     0x81F0
  3418 #define GL_OBJECT_DISTANCE_TO_POINT_SGIS  0x81F1
  3419 #define GL_EYE_DISTANCE_TO_LINE_SGIS      0x81F2
  3420 #define GL_OBJECT_DISTANCE_TO_LINE_SGIS   0x81F3
  3421 #define GL_EYE_POINT_SGIS                 0x81F4
  3422 #define GL_OBJECT_POINT_SGIS              0x81F5
  3423 #define GL_EYE_LINE_SGIS                  0x81F6
  3424 #define GL_OBJECT_LINE_SGIS               0x81F7
  3425 #endif
  3426 
  3427 #ifndef GL_SGIS_texture_color_mask
  3428 #define GL_TEXTURE_COLOR_WRITEMASK_SGIS   0x81EF
  3429 #endif
  3430 
  3431 #ifndef GL_EXT_texture_env_dot3
  3432 #define GL_DOT3_RGB_EXT                   0x8740
  3433 #define GL_DOT3_RGBA_EXT                  0x8741
  3434 #endif
  3435 
  3436 #ifndef GL_ATI_texture_mirror_once
  3437 #define GL_MIRROR_CLAMP_ATI               0x8742
  3438 #define GL_MIRROR_CLAMP_TO_EDGE_ATI       0x8743
  3439 #endif
  3440 
  3441 #ifndef GL_NV_fence
  3442 #define GL_ALL_COMPLETED_NV               0x84F2
  3443 #define GL_FENCE_STATUS_NV                0x84F3
  3444 #define GL_FENCE_CONDITION_NV             0x84F4
  3445 #endif
  3446 
  3447 #ifndef GL_IBM_texture_mirrored_repeat
  3448 #define GL_MIRRORED_REPEAT_IBM            0x8370
  3449 #endif
  3450 
  3451 #ifndef GL_NV_evaluators
  3452 #define GL_EVAL_2D_NV                     0x86C0
  3453 #define GL_EVAL_TRIANGULAR_2D_NV          0x86C1
  3454 #define GL_MAP_TESSELLATION_NV            0x86C2
  3455 #define GL_MAP_ATTRIB_U_ORDER_NV          0x86C3
  3456 #define GL_MAP_ATTRIB_V_ORDER_NV          0x86C4
  3457 #define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5
  3458 #define GL_EVAL_VERTEX_ATTRIB0_NV         0x86C6
  3459 #define GL_EVAL_VERTEX_ATTRIB1_NV         0x86C7
  3460 #define GL_EVAL_VERTEX_ATTRIB2_NV         0x86C8
  3461 #define GL_EVAL_VERTEX_ATTRIB3_NV         0x86C9
  3462 #define GL_EVAL_VERTEX_ATTRIB4_NV         0x86CA
  3463 #define GL_EVAL_VERTEX_ATTRIB5_NV         0x86CB
  3464 #define GL_EVAL_VERTEX_ATTRIB6_NV         0x86CC
  3465 #define GL_EVAL_VERTEX_ATTRIB7_NV         0x86CD
  3466 #define GL_EVAL_VERTEX_ATTRIB8_NV         0x86CE
  3467 #define GL_EVAL_VERTEX_ATTRIB9_NV         0x86CF
  3468 #define GL_EVAL_VERTEX_ATTRIB10_NV        0x86D0
  3469 #define GL_EVAL_VERTEX_ATTRIB11_NV        0x86D1
  3470 #define GL_EVAL_VERTEX_ATTRIB12_NV        0x86D2
  3471 #define GL_EVAL_VERTEX_ATTRIB13_NV        0x86D3
  3472 #define GL_EVAL_VERTEX_ATTRIB14_NV        0x86D4
  3473 #define GL_EVAL_VERTEX_ATTRIB15_NV        0x86D5
  3474 #define GL_MAX_MAP_TESSELLATION_NV        0x86D6
  3475 #define GL_MAX_RATIONAL_EVAL_ORDER_NV     0x86D7
  3476 #endif
  3477 
  3478 #ifndef GL_NV_packed_depth_stencil
  3479 #define GL_DEPTH_STENCIL_NV               0x84F9
  3480 #define GL_UNSIGNED_INT_24_8_NV           0x84FA
  3481 #endif
  3482 
  3483 #ifndef GL_NV_register_combiners2
  3484 #define GL_PER_STAGE_CONSTANTS_NV         0x8535
  3485 #endif
  3486 
  3487 #ifndef GL_NV_texture_compression_vtc
  3488 #endif
  3489 
  3490 #ifndef GL_NV_texture_rectangle
  3491 #define GL_TEXTURE_RECTANGLE_NV           0x84F5
  3492 #define GL_TEXTURE_BINDING_RECTANGLE_NV   0x84F6
  3493 #define GL_PROXY_TEXTURE_RECTANGLE_NV     0x84F7
  3494 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV  0x84F8
  3495 #endif
  3496 
  3497 #ifndef GL_NV_texture_shader
  3498 #define GL_OFFSET_TEXTURE_RECTANGLE_NV    0x864C
  3499 #define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D
  3500 #define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E
  3501 #define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9
  3502 #define GL_UNSIGNED_INT_S8_S8_8_8_NV      0x86DA
  3503 #define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV  0x86DB
  3504 #define GL_DSDT_MAG_INTENSITY_NV          0x86DC
  3505 #define GL_SHADER_CONSISTENT_NV           0x86DD
  3506 #define GL_TEXTURE_SHADER_NV              0x86DE
  3507 #define GL_SHADER_OPERATION_NV            0x86DF
  3508 #define GL_CULL_MODES_NV                  0x86E0
  3509 #define GL_OFFSET_TEXTURE_MATRIX_NV       0x86E1
  3510 #define GL_OFFSET_TEXTURE_SCALE_NV        0x86E2
  3511 #define GL_OFFSET_TEXTURE_BIAS_NV         0x86E3
  3512 #define GL_OFFSET_TEXTURE_2D_MATRIX_NV    GL_OFFSET_TEXTURE_MATRIX_NV
  3513 #define GL_OFFSET_TEXTURE_2D_SCALE_NV     GL_OFFSET_TEXTURE_SCALE_NV
  3514 #define GL_OFFSET_TEXTURE_2D_BIAS_NV      GL_OFFSET_TEXTURE_BIAS_NV
  3515 #define GL_PREVIOUS_TEXTURE_INPUT_NV      0x86E4
  3516 #define GL_CONST_EYE_NV                   0x86E5
  3517 #define GL_PASS_THROUGH_NV                0x86E6
  3518 #define GL_CULL_FRAGMENT_NV               0x86E7
  3519 #define GL_OFFSET_TEXTURE_2D_NV           0x86E8
  3520 #define GL_DEPENDENT_AR_TEXTURE_2D_NV     0x86E9
  3521 #define GL_DEPENDENT_GB_TEXTURE_2D_NV     0x86EA
  3522 #define GL_DOT_PRODUCT_NV                 0x86EC
  3523 #define GL_DOT_PRODUCT_DEPTH_REPLACE_NV   0x86ED
  3524 #define GL_DOT_PRODUCT_TEXTURE_2D_NV      0x86EE
  3525 #define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0
  3526 #define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1
  3527 #define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2
  3528 #define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3
  3529 #define GL_HILO_NV                        0x86F4
  3530 #define GL_DSDT_NV                        0x86F5
  3531 #define GL_DSDT_MAG_NV                    0x86F6
  3532 #define GL_DSDT_MAG_VIB_NV                0x86F7
  3533 #define GL_HILO16_NV                      0x86F8
  3534 #define GL_SIGNED_HILO_NV                 0x86F9
  3535 #define GL_SIGNED_HILO16_NV               0x86FA
  3536 #define GL_SIGNED_RGBA_NV                 0x86FB
  3537 #define GL_SIGNED_RGBA8_NV                0x86FC
  3538 #define GL_SIGNED_RGB_NV                  0x86FE
  3539 #define GL_SIGNED_RGB8_NV                 0x86FF
  3540 #define GL_SIGNED_LUMINANCE_NV            0x8701
  3541 #define GL_SIGNED_LUMINANCE8_NV           0x8702
  3542 #define GL_SIGNED_LUMINANCE_ALPHA_NV      0x8703
  3543 #define GL_SIGNED_LUMINANCE8_ALPHA8_NV    0x8704
  3544 #define GL_SIGNED_ALPHA_NV                0x8705
  3545 #define GL_SIGNED_ALPHA8_NV               0x8706
  3546 #define GL_SIGNED_INTENSITY_NV            0x8707
  3547 #define GL_SIGNED_INTENSITY8_NV           0x8708
  3548 #define GL_DSDT8_NV                       0x8709
  3549 #define GL_DSDT8_MAG8_NV                  0x870A
  3550 #define GL_DSDT8_MAG8_INTENSITY8_NV       0x870B
  3551 #define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV   0x870C
  3552 #define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D
  3553 #define GL_HI_SCALE_NV                    0x870E
  3554 #define GL_LO_SCALE_NV                    0x870F
  3555 #define GL_DS_SCALE_NV                    0x8710
  3556 #define GL_DT_SCALE_NV                    0x8711
  3557 #define GL_MAGNITUDE_SCALE_NV             0x8712
  3558 #define GL_VIBRANCE_SCALE_NV              0x8713
  3559 #define GL_HI_BIAS_NV                     0x8714
  3560 #define GL_LO_BIAS_NV                     0x8715
  3561 #define GL_DS_BIAS_NV                     0x8716
  3562 #define GL_DT_BIAS_NV                     0x8717
  3563 #define GL_MAGNITUDE_BIAS_NV              0x8718
  3564 #define GL_VIBRANCE_BIAS_NV               0x8719
  3565 #define GL_TEXTURE_BORDER_VALUES_NV       0x871A
  3566 #define GL_TEXTURE_HI_SIZE_NV             0x871B
  3567 #define GL_TEXTURE_LO_SIZE_NV             0x871C
  3568 #define GL_TEXTURE_DS_SIZE_NV             0x871D
  3569 #define GL_TEXTURE_DT_SIZE_NV             0x871E
  3570 #define GL_TEXTURE_MAG_SIZE_NV            0x871F
  3571 #endif
  3572 
  3573 #ifndef GL_NV_texture_shader2
  3574 #define GL_DOT_PRODUCT_TEXTURE_3D_NV      0x86EF
  3575 #endif
  3576 
  3577 #ifndef GL_NV_vertex_array_range2
  3578 #define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533
  3579 #endif
  3580 
  3581 #ifndef GL_NV_vertex_program
  3582 #define GL_VERTEX_PROGRAM_NV              0x8620
  3583 #define GL_VERTEX_STATE_PROGRAM_NV        0x8621
  3584 #define GL_ATTRIB_ARRAY_SIZE_NV           0x8623
  3585 #define GL_ATTRIB_ARRAY_STRIDE_NV         0x8624
  3586 #define GL_ATTRIB_ARRAY_TYPE_NV           0x8625
  3587 #define GL_CURRENT_ATTRIB_NV              0x8626
  3588 #define GL_PROGRAM_LENGTH_NV              0x8627
  3589 #define GL_PROGRAM_STRING_NV              0x8628
  3590 #define GL_MODELVIEW_PROJECTION_NV        0x8629
  3591 #define GL_IDENTITY_NV                    0x862A
  3592 #define GL_INVERSE_NV                     0x862B
  3593 #define GL_TRANSPOSE_NV                   0x862C
  3594 #define GL_INVERSE_TRANSPOSE_NV           0x862D
  3595 #define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E
  3596 #define GL_MAX_TRACK_MATRICES_NV          0x862F
  3597 #define GL_MATRIX0_NV                     0x8630
  3598 #define GL_MATRIX1_NV                     0x8631
  3599 #define GL_MATRIX2_NV                     0x8632
  3600 #define GL_MATRIX3_NV                     0x8633
  3601 #define GL_MATRIX4_NV                     0x8634
  3602 #define GL_MATRIX5_NV                     0x8635
  3603 #define GL_MATRIX6_NV                     0x8636
  3604 #define GL_MATRIX7_NV                     0x8637
  3605 #define GL_CURRENT_MATRIX_STACK_DEPTH_NV  0x8640
  3606 #define GL_CURRENT_MATRIX_NV              0x8641
  3607 #define GL_VERTEX_PROGRAM_POINT_SIZE_NV   0x8642
  3608 #define GL_VERTEX_PROGRAM_TWO_SIDE_NV     0x8643
  3609 #define GL_PROGRAM_PARAMETER_NV           0x8644
  3610 #define GL_ATTRIB_ARRAY_POINTER_NV        0x8645
  3611 #define GL_PROGRAM_TARGET_NV              0x8646
  3612 #define GL_PROGRAM_RESIDENT_NV            0x8647
  3613 #define GL_TRACK_MATRIX_NV                0x8648
  3614 #define GL_TRACK_MATRIX_TRANSFORM_NV      0x8649
  3615 #define GL_VERTEX_PROGRAM_BINDING_NV      0x864A
  3616 #define GL_PROGRAM_ERROR_POSITION_NV      0x864B
  3617 #define GL_VERTEX_ATTRIB_ARRAY0_NV        0x8650
  3618 #define GL_VERTEX_ATTRIB_ARRAY1_NV        0x8651
  3619 #define GL_VERTEX_ATTRIB_ARRAY2_NV        0x8652
  3620 #define GL_VERTEX_ATTRIB_ARRAY3_NV        0x8653
  3621 #define GL_VERTEX_ATTRIB_ARRAY4_NV        0x8654
  3622 #define GL_VERTEX_ATTRIB_ARRAY5_NV        0x8655
  3623 #define GL_VERTEX_ATTRIB_ARRAY6_NV        0x8656
  3624 #define GL_VERTEX_ATTRIB_ARRAY7_NV        0x8657
  3625 #define GL_VERTEX_ATTRIB_ARRAY8_NV        0x8658
  3626 #define GL_VERTEX_ATTRIB_ARRAY9_NV        0x8659
  3627 #define GL_VERTEX_ATTRIB_ARRAY10_NV       0x865A
  3628 #define GL_VERTEX_ATTRIB_ARRAY11_NV       0x865B
  3629 #define GL_VERTEX_ATTRIB_ARRAY12_NV       0x865C
  3630 #define GL_VERTEX_ATTRIB_ARRAY13_NV       0x865D
  3631 #define GL_VERTEX_ATTRIB_ARRAY14_NV       0x865E
  3632 #define GL_VERTEX_ATTRIB_ARRAY15_NV       0x865F
  3633 #define GL_MAP1_VERTEX_ATTRIB0_4_NV       0x8660
  3634 #define GL_MAP1_VERTEX_ATTRIB1_4_NV       0x8661
  3635 #define GL_MAP1_VERTEX_ATTRIB2_4_NV       0x8662
  3636 #define GL_MAP1_VERTEX_ATTRIB3_4_NV       0x8663
  3637 #define GL_MAP1_VERTEX_ATTRIB4_4_NV       0x8664
  3638 #define GL_MAP1_VERTEX_ATTRIB5_4_NV       0x8665
  3639 #define GL_MAP1_VERTEX_ATTRIB6_4_NV       0x8666
  3640 #define GL_MAP1_VERTEX_ATTRIB7_4_NV       0x8667
  3641 #define GL_MAP1_VERTEX_ATTRIB8_4_NV       0x8668
  3642 #define GL_MAP1_VERTEX_ATTRIB9_4_NV       0x8669
  3643 #define GL_MAP1_VERTEX_ATTRIB10_4_NV      0x866A
  3644 #define GL_MAP1_VERTEX_ATTRIB11_4_NV      0x866B
  3645 #define GL_MAP1_VERTEX_ATTRIB12_4_NV      0x866C
  3646 #define GL_MAP1_VERTEX_ATTRIB13_4_NV      0x866D
  3647 #define GL_MAP1_VERTEX_ATTRIB14_4_NV      0x866E
  3648 #define GL_MAP1_VERTEX_ATTRIB15_4_NV      0x866F
  3649 #define GL_MAP2_VERTEX_ATTRIB0_4_NV       0x8670
  3650 #define GL_MAP2_VERTEX_ATTRIB1_4_NV       0x8671
  3651 #define GL_MAP2_VERTEX_ATTRIB2_4_NV       0x8672
  3652 #define GL_MAP2_VERTEX_ATTRIB3_4_NV       0x8673
  3653 #define GL_MAP2_VERTEX_ATTRIB4_4_NV       0x8674
  3654 #define GL_MAP2_VERTEX_ATTRIB5_4_NV       0x8675
  3655 #define GL_MAP2_VERTEX_ATTRIB6_4_NV       0x8676
  3656 #define GL_MAP2_VERTEX_ATTRIB7_4_NV       0x8677
  3657 #define GL_MAP2_VERTEX_ATTRIB8_4_NV       0x8678
  3658 #define GL_MAP2_VERTEX_ATTRIB9_4_NV       0x8679
  3659 #define GL_MAP2_VERTEX_ATTRIB10_4_NV      0x867A
  3660 #define GL_MAP2_VERTEX_ATTRIB11_4_NV      0x867B
  3661 #define GL_MAP2_VERTEX_ATTRIB12_4_NV      0x867C
  3662 #define GL_MAP2_VERTEX_ATTRIB13_4_NV      0x867D
  3663 #define GL_MAP2_VERTEX_ATTRIB14_4_NV      0x867E
  3664 #define GL_MAP2_VERTEX_ATTRIB15_4_NV      0x867F
  3665 #endif
  3666 
  3667 #ifndef GL_SGIX_texture_coordinate_clamp
  3668 #define GL_TEXTURE_MAX_CLAMP_S_SGIX       0x8369
  3669 #define GL_TEXTURE_MAX_CLAMP_T_SGIX       0x836A
  3670 #define GL_TEXTURE_MAX_CLAMP_R_SGIX       0x836B
  3671 #endif
  3672 
  3673 #ifndef GL_SGIX_scalebias_hint
  3674 #define GL_SCALEBIAS_HINT_SGIX            0x8322
  3675 #endif
  3676 
  3677 #ifndef GL_OML_interlace
  3678 #define GL_INTERLACE_OML                  0x8980
  3679 #define GL_INTERLACE_READ_OML             0x8981
  3680 #endif
  3681 
  3682 #ifndef GL_OML_subsample
  3683 #define GL_FORMAT_SUBSAMPLE_24_24_OML     0x8982
  3684 #define GL_FORMAT_SUBSAMPLE_244_244_OML   0x8983
  3685 #endif
  3686 
  3687 #ifndef GL_OML_resample
  3688 #define GL_PACK_RESAMPLE_OML              0x8984
  3689 #define GL_UNPACK_RESAMPLE_OML            0x8985
  3690 #define GL_RESAMPLE_REPLICATE_OML         0x8986
  3691 #define GL_RESAMPLE_ZERO_FILL_OML         0x8987
  3692 #define GL_RESAMPLE_AVERAGE_OML           0x8988
  3693 #define GL_RESAMPLE_DECIMATE_OML          0x8989
  3694 #endif
  3695 
  3696 #ifndef GL_NV_copy_depth_to_color
  3697 #define GL_DEPTH_STENCIL_TO_RGBA_NV       0x886E
  3698 #define GL_DEPTH_STENCIL_TO_BGRA_NV       0x886F
  3699 #endif
  3700 
  3701 #ifndef GL_ATI_envmap_bumpmap
  3702 #define GL_BUMP_ROT_MATRIX_ATI            0x8775
  3703 #define GL_BUMP_ROT_MATRIX_SIZE_ATI       0x8776
  3704 #define GL_BUMP_NUM_TEX_UNITS_ATI         0x8777
  3705 #define GL_BUMP_TEX_UNITS_ATI             0x8778
  3706 #define GL_DUDV_ATI                       0x8779
  3707 #define GL_DU8DV8_ATI                     0x877A
  3708 #define GL_BUMP_ENVMAP_ATI                0x877B
  3709 #define GL_BUMP_TARGET_ATI                0x877C
  3710 #endif
  3711 
  3712 #ifndef GL_ATI_fragment_shader
  3713 #define GL_FRAGMENT_SHADER_ATI            0x8920
  3714 #define GL_REG_0_ATI                      0x8921
  3715 #define GL_REG_1_ATI                      0x8922
  3716 #define GL_REG_2_ATI                      0x8923
  3717 #define GL_REG_3_ATI                      0x8924
  3718 #define GL_REG_4_ATI                      0x8925
  3719 #define GL_REG_5_ATI                      0x8926
  3720 #define GL_REG_6_ATI                      0x8927
  3721 #define GL_REG_7_ATI                      0x8928
  3722 #define GL_REG_8_ATI                      0x8929
  3723 #define GL_REG_9_ATI                      0x892A
  3724 #define GL_REG_10_ATI                     0x892B
  3725 #define GL_REG_11_ATI                     0x892C
  3726 #define GL_REG_12_ATI                     0x892D
  3727 #define GL_REG_13_ATI                     0x892E
  3728 #define GL_REG_14_ATI                     0x892F
  3729 #define GL_REG_15_ATI                     0x8930
  3730 #define GL_REG_16_ATI                     0x8931
  3731 #define GL_REG_17_ATI                     0x8932
  3732 #define GL_REG_18_ATI                     0x8933
  3733 #define GL_REG_19_ATI                     0x8934
  3734 #define GL_REG_20_ATI                     0x8935
  3735 #define GL_REG_21_ATI                     0x8936
  3736 #define GL_REG_22_ATI                     0x8937
  3737 #define GL_REG_23_ATI                     0x8938
  3738 #define GL_REG_24_ATI                     0x8939
  3739 #define GL_REG_25_ATI                     0x893A
  3740 #define GL_REG_26_ATI                     0x893B
  3741 #define GL_REG_27_ATI                     0x893C
  3742 #define GL_REG_28_ATI                     0x893D
  3743 #define GL_REG_29_ATI                     0x893E
  3744 #define GL_REG_30_ATI                     0x893F
  3745 #define GL_REG_31_ATI                     0x8940
  3746 #define GL_CON_0_ATI                      0x8941
  3747 #define GL_CON_1_ATI                      0x8942
  3748 #define GL_CON_2_ATI                      0x8943
  3749 #define GL_CON_3_ATI                      0x8944
  3750 #define GL_CON_4_ATI                      0x8945
  3751 #define GL_CON_5_ATI                      0x8946
  3752 #define GL_CON_6_ATI                      0x8947
  3753 #define GL_CON_7_ATI                      0x8948
  3754 #define GL_CON_8_ATI                      0x8949
  3755 #define GL_CON_9_ATI                      0x894A
  3756 #define GL_CON_10_ATI                     0x894B
  3757 #define GL_CON_11_ATI                     0x894C
  3758 #define GL_CON_12_ATI                     0x894D
  3759 #define GL_CON_13_ATI                     0x894E
  3760 #define GL_CON_14_ATI                     0x894F
  3761 #define GL_CON_15_ATI                     0x8950
  3762 #define GL_CON_16_ATI                     0x8951
  3763 #define GL_CON_17_ATI                     0x8952
  3764 #define GL_CON_18_ATI                     0x8953
  3765 #define GL_CON_19_ATI                     0x8954
  3766 #define GL_CON_20_ATI                     0x8955
  3767 #define GL_CON_21_ATI                     0x8956
  3768 #define GL_CON_22_ATI                     0x8957
  3769 #define GL_CON_23_ATI                     0x8958
  3770 #define GL_CON_24_ATI                     0x8959
  3771 #define GL_CON_25_ATI                     0x895A
  3772 #define GL_CON_26_ATI                     0x895B
  3773 #define GL_CON_27_ATI                     0x895C
  3774 #define GL_CON_28_ATI                     0x895D
  3775 #define GL_CON_29_ATI                     0x895E
  3776 #define GL_CON_30_ATI                     0x895F
  3777 #define GL_CON_31_ATI                     0x8960
  3778 #define GL_MOV_ATI                        0x8961
  3779 #define GL_ADD_ATI                        0x8963
  3780 #define GL_MUL_ATI                        0x8964
  3781 #define GL_SUB_ATI                        0x8965
  3782 #define GL_DOT3_ATI                       0x8966
  3783 #define GL_DOT4_ATI                       0x8967
  3784 #define GL_MAD_ATI                        0x8968
  3785 #define GL_LERP_ATI                       0x8969
  3786 #define GL_CND_ATI                        0x896A
  3787 #define GL_CND0_ATI                       0x896B
  3788 #define GL_DOT2_ADD_ATI                   0x896C
  3789 #define GL_SECONDARY_INTERPOLATOR_ATI     0x896D
  3790 #define GL_NUM_FRAGMENT_REGISTERS_ATI     0x896E
  3791 #define GL_NUM_FRAGMENT_CONSTANTS_ATI     0x896F
  3792 #define GL_NUM_PASSES_ATI                 0x8970
  3793 #define GL_NUM_INSTRUCTIONS_PER_PASS_ATI  0x8971
  3794 #define GL_NUM_INSTRUCTIONS_TOTAL_ATI     0x8972
  3795 #define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973
  3796 #define GL_NUM_LOOPBACK_COMPONENTS_ATI    0x8974
  3797 #define GL_COLOR_ALPHA_PAIRING_ATI        0x8975
  3798 #define GL_SWIZZLE_STR_ATI                0x8976
  3799 #define GL_SWIZZLE_STQ_ATI                0x8977
  3800 #define GL_SWIZZLE_STR_DR_ATI             0x8978
  3801 #define GL_SWIZZLE_STQ_DQ_ATI             0x8979
  3802 #define GL_SWIZZLE_STRQ_ATI               0x897A
  3803 #define GL_SWIZZLE_STRQ_DQ_ATI            0x897B
  3804 #define GL_RED_BIT_ATI                    0x00000001
  3805 #define GL_GREEN_BIT_ATI                  0x00000002
  3806 #define GL_BLUE_BIT_ATI                   0x00000004
  3807 #define GL_2X_BIT_ATI                     0x00000001
  3808 #define GL_4X_BIT_ATI                     0x00000002
  3809 #define GL_8X_BIT_ATI                     0x00000004
  3810 #define GL_HALF_BIT_ATI                   0x00000008
  3811 #define GL_QUARTER_BIT_ATI                0x00000010
  3812 #define GL_EIGHTH_BIT_ATI                 0x00000020
  3813 #define GL_SATURATE_BIT_ATI               0x00000040
  3814 #define GL_COMP_BIT_ATI                   0x00000002
  3815 #define GL_NEGATE_BIT_ATI                 0x00000004
  3816 #define GL_BIAS_BIT_ATI                   0x00000008
  3817 #endif
  3818 
  3819 #ifndef GL_ATI_pn_triangles
  3820 #define GL_PN_TRIANGLES_ATI               0x87F0
  3821 #define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1
  3822 #define GL_PN_TRIANGLES_POINT_MODE_ATI    0x87F2
  3823 #define GL_PN_TRIANGLES_NORMAL_MODE_ATI   0x87F3
  3824 #define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4
  3825 #define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5
  3826 #define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6
  3827 #define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7
  3828 #define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8
  3829 #endif
  3830 
  3831 #ifndef GL_ATI_vertex_array_object
  3832 #define GL_STATIC_ATI                     0x8760
  3833 #define GL_DYNAMIC_ATI                    0x8761
  3834 #define GL_PRESERVE_ATI                   0x8762
  3835 #define GL_DISCARD_ATI                    0x8763
  3836 #define GL_OBJECT_BUFFER_SIZE_ATI         0x8764
  3837 #define GL_OBJECT_BUFFER_USAGE_ATI        0x8765
  3838 #define GL_ARRAY_OBJECT_BUFFER_ATI        0x8766
  3839 #define GL_ARRAY_OBJECT_OFFSET_ATI        0x8767
  3840 #endif
  3841 
  3842 #ifndef GL_EXT_vertex_shader
  3843 #define GL_VERTEX_SHADER_EXT              0x8780
  3844 #define GL_VERTEX_SHADER_BINDING_EXT      0x8781
  3845 #define GL_OP_INDEX_EXT                   0x8782
  3846 #define GL_OP_NEGATE_EXT                  0x8783
  3847 #define GL_OP_DOT3_EXT                    0x8784
  3848 #define GL_OP_DOT4_EXT                    0x8785
  3849 #define GL_OP_MUL_EXT                     0x8786
  3850 #define GL_OP_ADD_EXT                     0x8787
  3851 #define GL_OP_MADD_EXT                    0x8788
  3852 #define GL_OP_FRAC_EXT                    0x8789
  3853 #define GL_OP_MAX_EXT                     0x878A
  3854 #define GL_OP_MIN_EXT                     0x878B
  3855 #define GL_OP_SET_GE_EXT                  0x878C
  3856 #define GL_OP_SET_LT_EXT                  0x878D
  3857 #define GL_OP_CLAMP_EXT                   0x878E
  3858 #define GL_OP_FLOOR_EXT                   0x878F
  3859 #define GL_OP_ROUND_EXT                   0x8790
  3860 #define GL_OP_EXP_BASE_2_EXT              0x8791
  3861 #define GL_OP_LOG_BASE_2_EXT              0x8792
  3862 #define GL_OP_POWER_EXT                   0x8793
  3863 #define GL_OP_RECIP_EXT                   0x8794
  3864 #define GL_OP_RECIP_SQRT_EXT              0x8795
  3865 #define GL_OP_SUB_EXT                     0x8796
  3866 #define GL_OP_CROSS_PRODUCT_EXT           0x8797
  3867 #define GL_OP_MULTIPLY_MATRIX_EXT         0x8798
  3868 #define GL_OP_MOV_EXT                     0x8799
  3869 #define GL_OUTPUT_VERTEX_EXT              0x879A
  3870 #define GL_OUTPUT_COLOR0_EXT              0x879B
  3871 #define GL_OUTPUT_COLOR1_EXT              0x879C
  3872 #define GL_OUTPUT_TEXTURE_COORD0_EXT      0x879D
  3873 #define GL_OUTPUT_TEXTURE_COORD1_EXT      0x879E
  3874 #define GL_OUTPUT_TEXTURE_COORD2_EXT      0x879F
  3875 #define GL_OUTPUT_TEXTURE_COORD3_EXT      0x87A0
  3876 #define GL_OUTPUT_TEXTURE_COORD4_EXT      0x87A1
  3877 #define GL_OUTPUT_TEXTURE_COORD5_EXT      0x87A2
  3878 #define GL_OUTPUT_TEXTURE_COORD6_EXT      0x87A3
  3879 #define GL_OUTPUT_TEXTURE_COORD7_EXT      0x87A4
  3880 #define GL_OUTPUT_TEXTURE_COORD8_EXT      0x87A5
  3881 #define GL_OUTPUT_TEXTURE_COORD9_EXT      0x87A6
  3882 #define GL_OUTPUT_TEXTURE_COORD10_EXT     0x87A7
  3883 #define GL_OUTPUT_TEXTURE_COORD11_EXT     0x87A8
  3884 #define GL_OUTPUT_TEXTURE_COORD12_EXT     0x87A9
  3885 #define GL_OUTPUT_TEXTURE_COORD13_EXT     0x87AA
  3886 #define GL_OUTPUT_TEXTURE_COORD14_EXT     0x87AB
  3887 #define GL_OUTPUT_TEXTURE_COORD15_EXT     0x87AC
  3888 #define GL_OUTPUT_TEXTURE_COORD16_EXT     0x87AD
  3889 #define GL_OUTPUT_TEXTURE_COORD17_EXT     0x87AE
  3890 #define GL_OUTPUT_TEXTURE_COORD18_EXT     0x87AF
  3891 #define GL_OUTPUT_TEXTURE_COORD19_EXT     0x87B0
  3892 #define GL_OUTPUT_TEXTURE_COORD20_EXT     0x87B1
  3893 #define GL_OUTPUT_TEXTURE_COORD21_EXT     0x87B2
  3894 #define GL_OUTPUT_TEXTURE_COORD22_EXT     0x87B3
  3895 #define GL_OUTPUT_TEXTURE_COORD23_EXT     0x87B4
  3896 #define GL_OUTPUT_TEXTURE_COORD24_EXT     0x87B5
  3897 #define GL_OUTPUT_TEXTURE_COORD25_EXT     0x87B6
  3898 #define GL_OUTPUT_TEXTURE_COORD26_EXT     0x87B7
  3899 #define GL_OUTPUT_TEXTURE_COORD27_EXT     0x87B8
  3900 #define GL_OUTPUT_TEXTURE_COORD28_EXT     0x87B9
  3901 #define GL_OUTPUT_TEXTURE_COORD29_EXT     0x87BA
  3902 #define GL_OUTPUT_TEXTURE_COORD30_EXT     0x87BB
  3903 #define GL_OUTPUT_TEXTURE_COORD31_EXT     0x87BC
  3904 #define GL_OUTPUT_FOG_EXT                 0x87BD
  3905 #define GL_SCALAR_EXT                     0x87BE
  3906 #define GL_VECTOR_EXT                     0x87BF
  3907 #define GL_MATRIX_EXT                     0x87C0
  3908 #define GL_VARIANT_EXT                    0x87C1
  3909 #define GL_INVARIANT_EXT                  0x87C2
  3910 #define GL_LOCAL_CONSTANT_EXT             0x87C3
  3911 #define GL_LOCAL_EXT                      0x87C4
  3912 #define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5
  3913 #define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6
  3914 #define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7
  3915 #define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8
  3916 #define GL_MAX_VERTEX_SHADER_LOCALS_EXT   0x87C9
  3917 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA
  3918 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB
  3919 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC
  3920 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD
  3921 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE
  3922 #define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF
  3923 #define GL_VERTEX_SHADER_VARIANTS_EXT     0x87D0
  3924 #define GL_VERTEX_SHADER_INVARIANTS_EXT   0x87D1
  3925 #define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2
  3926 #define GL_VERTEX_SHADER_LOCALS_EXT       0x87D3
  3927 #define GL_VERTEX_SHADER_OPTIMIZED_EXT    0x87D4
  3928 #define GL_X_EXT                          0x87D5
  3929 #define GL_Y_EXT                          0x87D6
  3930 #define GL_Z_EXT                          0x87D7
  3931 #define GL_W_EXT                          0x87D8
  3932 #define GL_NEGATIVE_X_EXT                 0x87D9
  3933 #define GL_NEGATIVE_Y_EXT                 0x87DA
  3934 #define GL_NEGATIVE_Z_EXT                 0x87DB
  3935 #define GL_NEGATIVE_W_EXT                 0x87DC
  3936 #define GL_ZERO_EXT                       0x87DD
  3937 #define GL_ONE_EXT                        0x87DE
  3938 #define GL_NEGATIVE_ONE_EXT               0x87DF
  3939 #define GL_NORMALIZED_RANGE_EXT           0x87E0
  3940 #define GL_FULL_RANGE_EXT                 0x87E1
  3941 #define GL_CURRENT_VERTEX_EXT             0x87E2
  3942 #define GL_MVP_MATRIX_EXT                 0x87E3
  3943 #define GL_VARIANT_VALUE_EXT              0x87E4
  3944 #define GL_VARIANT_DATATYPE_EXT           0x87E5
  3945 #define GL_VARIANT_ARRAY_STRIDE_EXT       0x87E6
  3946 #define GL_VARIANT_ARRAY_TYPE_EXT         0x87E7
  3947 #define GL_VARIANT_ARRAY_EXT              0x87E8
  3948 #define GL_VARIANT_ARRAY_POINTER_EXT      0x87E9
  3949 #define GL_INVARIANT_VALUE_EXT            0x87EA
  3950 #define GL_INVARIANT_DATATYPE_EXT         0x87EB
  3951 #define GL_LOCAL_CONSTANT_VALUE_EXT       0x87EC
  3952 #define GL_LOCAL_CONSTANT_DATATYPE_EXT    0x87ED
  3953 #endif
  3954 
  3955 #ifndef GL_ATI_vertex_streams
  3956 #define GL_MAX_VERTEX_STREAMS_ATI         0x876B
  3957 #define GL_VERTEX_STREAM0_ATI             0x876C
  3958 #define GL_VERTEX_STREAM1_ATI             0x876D
  3959 #define GL_VERTEX_STREAM2_ATI             0x876E
  3960 #define GL_VERTEX_STREAM3_ATI             0x876F
  3961 #define GL_VERTEX_STREAM4_ATI             0x8770
  3962 #define GL_VERTEX_STREAM5_ATI             0x8771
  3963 #define GL_VERTEX_STREAM6_ATI             0x8772
  3964 #define GL_VERTEX_STREAM7_ATI             0x8773
  3965 #define GL_VERTEX_SOURCE_ATI              0x8774
  3966 #endif
  3967 
  3968 #ifndef GL_ATI_element_array
  3969 #define GL_ELEMENT_ARRAY_ATI              0x8768
  3970 #define GL_ELEMENT_ARRAY_TYPE_ATI         0x8769
  3971 #define GL_ELEMENT_ARRAY_POINTER_ATI      0x876A
  3972 #endif
  3973 
  3974 #ifndef GL_SUN_mesh_array
  3975 #define GL_QUAD_MESH_SUN                  0x8614
  3976 #define GL_TRIANGLE_MESH_SUN              0x8615
  3977 #endif
  3978 
  3979 #ifndef GL_SUN_slice_accum
  3980 #define GL_SLICE_ACCUM_SUN                0x85CC
  3981 #endif
  3982 
  3983 #ifndef GL_NV_multisample_filter_hint
  3984 #define GL_MULTISAMPLE_FILTER_HINT_NV     0x8534
  3985 #endif
  3986 
  3987 #ifndef GL_NV_depth_clamp
  3988 #define GL_DEPTH_CLAMP_NV                 0x864F
  3989 #endif
  3990 
  3991 #ifndef GL_NV_occlusion_query
  3992 #define GL_PIXEL_COUNTER_BITS_NV          0x8864
  3993 #define GL_CURRENT_OCCLUSION_QUERY_ID_NV  0x8865
  3994 #define GL_PIXEL_COUNT_NV                 0x8866
  3995 #define GL_PIXEL_COUNT_AVAILABLE_NV       0x8867
  3996 #endif
  3997 
  3998 #ifndef GL_NV_point_sprite
  3999 #define GL_POINT_SPRITE_NV                0x8861
  4000 #define GL_COORD_REPLACE_NV               0x8862
  4001 #define GL_POINT_SPRITE_R_MODE_NV         0x8863
  4002 #endif
  4003 
  4004 #ifndef GL_NV_texture_shader3
  4005 #define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850
  4006 #define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851
  4007 #define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852
  4008 #define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
  4009 #define GL_OFFSET_HILO_TEXTURE_2D_NV      0x8854
  4010 #define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855
  4011 #define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856
  4012 #define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
  4013 #define GL_DEPENDENT_HILO_TEXTURE_2D_NV   0x8858
  4014 #define GL_DEPENDENT_RGB_TEXTURE_3D_NV    0x8859
  4015 #define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A
  4016 #define GL_DOT_PRODUCT_PASS_THROUGH_NV    0x885B
  4017 #define GL_DOT_PRODUCT_TEXTURE_1D_NV      0x885C
  4018 #define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D
  4019 #define GL_HILO8_NV                       0x885E
  4020 #define GL_SIGNED_HILO8_NV                0x885F
  4021 #define GL_FORCE_BLUE_TO_ONE_NV           0x8860
  4022 #endif
  4023 
  4024 #ifndef GL_NV_vertex_program1_1
  4025 #endif
  4026 
  4027 #ifndef GL_EXT_shadow_funcs
  4028 #endif
  4029 
  4030 #ifndef GL_EXT_stencil_two_side
  4031 #define GL_STENCIL_TEST_TWO_SIDE_EXT      0x8910
  4032 #define GL_ACTIVE_STENCIL_FACE_EXT        0x8911
  4033 #endif
  4034 
  4035 #ifndef GL_ATI_text_fragment_shader
  4036 #define GL_TEXT_FRAGMENT_SHADER_ATI       0x8200
  4037 #endif
  4038 
  4039 #ifndef GL_APPLE_client_storage
  4040 #define GL_UNPACK_CLIENT_STORAGE_APPLE    0x85B2
  4041 #endif
  4042 
  4043 #ifndef GL_APPLE_element_array
  4044 #define GL_ELEMENT_ARRAY_APPLE            0x8A0C
  4045 #define GL_ELEMENT_ARRAY_TYPE_APPLE       0x8A0D
  4046 #define GL_ELEMENT_ARRAY_POINTER_APPLE    0x8A0E
  4047 #endif
  4048 
  4049 #ifndef GL_APPLE_fence
  4050 #define GL_DRAW_PIXELS_APPLE              0x8A0A
  4051 #define GL_FENCE_APPLE                    0x8A0B
  4052 #endif
  4053 
  4054 #ifndef GL_APPLE_vertex_array_object
  4055 #define GL_VERTEX_ARRAY_BINDING_APPLE     0x85B5
  4056 #endif
  4057 
  4058 #ifndef GL_APPLE_vertex_array_range
  4059 #define GL_VERTEX_ARRAY_RANGE_APPLE       0x851D
  4060 #define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E
  4061 #define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F
  4062 #define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521
  4063 #define GL_STORAGE_CLIENT_APPLE           0x85B4
  4064 #define GL_STORAGE_CACHED_APPLE           0x85BE
  4065 #define GL_STORAGE_SHARED_APPLE           0x85BF
  4066 #endif
  4067 
  4068 #ifndef GL_APPLE_ycbcr_422
  4069 #define GL_YCBCR_422_APPLE                0x85B9
  4070 #define GL_UNSIGNED_SHORT_8_8_APPLE       0x85BA
  4071 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE   0x85BB
  4072 #endif
  4073 
  4074 #ifndef GL_S3_s3tc
  4075 #define GL_RGB_S3TC                       0x83A0
  4076 #define GL_RGB4_S3TC                      0x83A1
  4077 #define GL_RGBA_S3TC                      0x83A2
  4078 #define GL_RGBA4_S3TC                     0x83A3
  4079 #endif
  4080 
  4081 #ifndef GL_ATI_draw_buffers
  4082 #define GL_MAX_DRAW_BUFFERS_ATI           0x8824
  4083 #define GL_DRAW_BUFFER0_ATI               0x8825
  4084 #define GL_DRAW_BUFFER1_ATI               0x8826
  4085 #define GL_DRAW_BUFFER2_ATI               0x8827
  4086 #define GL_DRAW_BUFFER3_ATI               0x8828
  4087 #define GL_DRAW_BUFFER4_ATI               0x8829
  4088 #define GL_DRAW_BUFFER5_ATI               0x882A
  4089 #define GL_DRAW_BUFFER6_ATI               0x882B
  4090 #define GL_DRAW_BUFFER7_ATI               0x882C
  4091 #define GL_DRAW_BUFFER8_ATI               0x882D
  4092 #define GL_DRAW_BUFFER9_ATI               0x882E
  4093 #define GL_DRAW_BUFFER10_ATI              0x882F
  4094 #define GL_DRAW_BUFFER11_ATI              0x8830
  4095 #define GL_DRAW_BUFFER12_ATI              0x8831
  4096 #define GL_DRAW_BUFFER13_ATI              0x8832
  4097 #define GL_DRAW_BUFFER14_ATI              0x8833
  4098 #define GL_DRAW_BUFFER15_ATI              0x8834
  4099 #endif
  4100 
  4101 #ifndef GL_ATI_pixel_format_float
  4102 #define GL_TYPE_RGBA_FLOAT_ATI            0x8820
  4103 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
  4104 #endif
  4105 
  4106 #ifndef GL_ATI_texture_env_combine3
  4107 #define GL_MODULATE_ADD_ATI               0x8744
  4108 #define GL_MODULATE_SIGNED_ADD_ATI        0x8745
  4109 #define GL_MODULATE_SUBTRACT_ATI          0x8746
  4110 #endif
  4111 
  4112 #ifndef GL_ATI_texture_float
  4113 #define GL_RGBA_FLOAT32_ATI               0x8814
  4114 #define GL_RGB_FLOAT32_ATI                0x8815
  4115 #define GL_ALPHA_FLOAT32_ATI              0x8816
  4116 #define GL_INTENSITY_FLOAT32_ATI          0x8817
  4117 #define GL_LUMINANCE_FLOAT32_ATI          0x8818
  4118 #define GL_LUMINANCE_ALPHA_FLOAT32_ATI    0x8819
  4119 #define GL_RGBA_FLOAT16_ATI               0x881A
  4120 #define GL_RGB_FLOAT16_ATI                0x881B
  4121 #define GL_ALPHA_FLOAT16_ATI              0x881C
  4122 #define GL_INTENSITY_FLOAT16_ATI          0x881D
  4123 #define GL_LUMINANCE_FLOAT16_ATI          0x881E
  4124 #define GL_LUMINANCE_ALPHA_FLOAT16_ATI    0x881F
  4125 #endif
  4126 
  4127 #ifndef GL_NV_float_buffer
  4128 #define GL_FLOAT_R_NV                     0x8880
  4129 #define GL_FLOAT_RG_NV                    0x8881
  4130 #define GL_FLOAT_RGB_NV                   0x8882
  4131 #define GL_FLOAT_RGBA_NV                  0x8883
  4132 #define GL_FLOAT_R16_NV                   0x8884
  4133 #define GL_FLOAT_R32_NV                   0x8885
  4134 #define GL_FLOAT_RG16_NV                  0x8886
  4135 #define GL_FLOAT_RG32_NV                  0x8887
  4136 #define GL_FLOAT_RGB16_NV                 0x8888
  4137 #define GL_FLOAT_RGB32_NV                 0x8889
  4138 #define GL_FLOAT_RGBA16_NV                0x888A
  4139 #define GL_FLOAT_RGBA32_NV                0x888B
  4140 #define GL_TEXTURE_FLOAT_COMPONENTS_NV    0x888C
  4141 #define GL_FLOAT_CLEAR_COLOR_VALUE_NV     0x888D
  4142 #define GL_FLOAT_RGBA_MODE_NV             0x888E
  4143 #endif
  4144 
  4145 #ifndef GL_NV_fragment_program
  4146 #define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868
  4147 #define GL_FRAGMENT_PROGRAM_NV            0x8870
  4148 #define GL_MAX_TEXTURE_COORDS_NV          0x8871
  4149 #define GL_MAX_TEXTURE_IMAGE_UNITS_NV     0x8872
  4150 #define GL_FRAGMENT_PROGRAM_BINDING_NV    0x8873
  4151 #define GL_PROGRAM_ERROR_STRING_NV        0x8874
  4152 #endif
  4153 
  4154 #ifndef GL_NV_half_float
  4155 #define GL_HALF_FLOAT_NV                  0x140B
  4156 #endif
  4157 
  4158 #ifndef GL_NV_pixel_data_range
  4159 #define GL_WRITE_PIXEL_DATA_RANGE_NV      0x8878
  4160 #define GL_READ_PIXEL_DATA_RANGE_NV       0x8879
  4161 #define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A
  4162 #define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B
  4163 #define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C
  4164 #define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D
  4165 #endif
  4166 
  4167 #ifndef GL_NV_primitive_restart
  4168 #define GL_PRIMITIVE_RESTART_NV           0x8558
  4169 #define GL_PRIMITIVE_RESTART_INDEX_NV     0x8559
  4170 #endif
  4171 
  4172 #ifndef GL_NV_texture_expand_normal
  4173 #define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F
  4174 #endif
  4175 
  4176 #ifndef GL_NV_vertex_program2
  4177 #endif
  4178 
  4179 #ifndef GL_ATI_map_object_buffer
  4180 #endif
  4181 
  4182 #ifndef GL_ATI_separate_stencil
  4183 #define GL_STENCIL_BACK_FUNC_ATI          0x8800
  4184 #define GL_STENCIL_BACK_FAIL_ATI          0x8801
  4185 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
  4186 #define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803
  4187 #endif
  4188 
  4189 #ifndef GL_ATI_vertex_attrib_array_object
  4190 #endif
  4191 
  4192 #ifndef GL_OES_read_format
  4193 #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
  4194 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
  4195 #endif
  4196 
  4197 #ifndef GL_EXT_depth_bounds_test
  4198 #define GL_DEPTH_BOUNDS_TEST_EXT          0x8890
  4199 #define GL_DEPTH_BOUNDS_EXT               0x8891
  4200 #endif
  4201 
  4202 #ifndef GL_EXT_texture_mirror_clamp
  4203 #define GL_MIRROR_CLAMP_EXT               0x8742
  4204 #define GL_MIRROR_CLAMP_TO_EDGE_EXT       0x8743
  4205 #define GL_MIRROR_CLAMP_TO_BORDER_EXT     0x8912
  4206 #endif
  4207 
  4208 #ifndef GL_EXT_blend_equation_separate
  4209 #define GL_BLEND_EQUATION_RGB_EXT         0x8009
  4210 #define GL_BLEND_EQUATION_ALPHA_EXT       0x883D
  4211 #endif
  4212 
  4213 #ifndef GL_MESA_pack_invert
  4214 #define GL_PACK_INVERT_MESA               0x8758
  4215 #endif
  4216 
  4217 #ifndef GL_MESA_ycbcr_texture
  4218 #define GL_UNSIGNED_SHORT_8_8_MESA        0x85BA
  4219 #define GL_UNSIGNED_SHORT_8_8_REV_MESA    0x85BB
  4220 #define GL_YCBCR_MESA                     0x8757
  4221 #endif
  4222 
  4223 #ifndef GL_EXT_pixel_buffer_object
  4224 #define GL_PIXEL_PACK_BUFFER_EXT          0x88EB
  4225 #define GL_PIXEL_UNPACK_BUFFER_EXT        0x88EC
  4226 #define GL_PIXEL_PACK_BUFFER_BINDING_EXT  0x88ED
  4227 #define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF
  4228 #endif
  4229 
  4230 #ifndef GL_NV_fragment_program_option
  4231 #endif
  4232 
  4233 #ifndef GL_NV_fragment_program2
  4234 #define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
  4235 #define GL_MAX_PROGRAM_CALL_DEPTH_NV      0x88F5
  4236 #define GL_MAX_PROGRAM_IF_DEPTH_NV        0x88F6
  4237 #define GL_MAX_PROGRAM_LOOP_DEPTH_NV      0x88F7
  4238 #define GL_MAX_PROGRAM_LOOP_COUNT_NV      0x88F8
  4239 #endif
  4240 
  4241 #ifndef GL_NV_vertex_program2_option
  4242 /* reuse GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV */
  4243 /* reuse GL_MAX_PROGRAM_CALL_DEPTH_NV */
  4244 #endif
  4245 
  4246 #ifndef GL_NV_vertex_program3
  4247 /* reuse GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB */
  4248 #endif
  4249 
  4250 #ifndef GL_EXT_framebuffer_object
  4251 #define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
  4252 #define GL_MAX_RENDERBUFFER_SIZE_EXT      0x84E8
  4253 #define GL_FRAMEBUFFER_BINDING_EXT        0x8CA6
  4254 #define GL_RENDERBUFFER_BINDING_EXT       0x8CA7
  4255 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0
  4256 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1
  4257 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2
  4258 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
  4259 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
  4260 #define GL_FRAMEBUFFER_COMPLETE_EXT       0x8CD5
  4261 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
  4262 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
  4263 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
  4264 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA
  4265 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB
  4266 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC
  4267 #define GL_FRAMEBUFFER_UNSUPPORTED_EXT    0x8CDD
  4268 #define GL_MAX_COLOR_ATTACHMENTS_EXT      0x8CDF
  4269 #define GL_COLOR_ATTACHMENT0_EXT          0x8CE0
  4270 #define GL_COLOR_ATTACHMENT1_EXT          0x8CE1
  4271 #define GL_COLOR_ATTACHMENT2_EXT          0x8CE2
  4272 #define GL_COLOR_ATTACHMENT3_EXT          0x8CE3
  4273 #define GL_COLOR_ATTACHMENT4_EXT          0x8CE4
  4274 #define GL_COLOR_ATTACHMENT5_EXT          0x8CE5
  4275 #define GL_COLOR_ATTACHMENT6_EXT          0x8CE6
  4276 #define GL_COLOR_ATTACHMENT7_EXT          0x8CE7
  4277 #define GL_COLOR_ATTACHMENT8_EXT          0x8CE8
  4278 #define GL_COLOR_ATTACHMENT9_EXT          0x8CE9
  4279 #define GL_COLOR_ATTACHMENT10_EXT         0x8CEA
  4280 #define GL_COLOR_ATTACHMENT11_EXT         0x8CEB
  4281 #define GL_COLOR_ATTACHMENT12_EXT         0x8CEC
  4282 #define GL_COLOR_ATTACHMENT13_EXT         0x8CED
  4283 #define GL_COLOR_ATTACHMENT14_EXT         0x8CEE
  4284 #define GL_COLOR_ATTACHMENT15_EXT         0x8CEF
  4285 #define GL_DEPTH_ATTACHMENT_EXT           0x8D00
  4286 #define GL_STENCIL_ATTACHMENT_EXT         0x8D20
  4287 #define GL_FRAMEBUFFER_EXT                0x8D40
  4288 #define GL_RENDERBUFFER_EXT               0x8D41
  4289 #define GL_RENDERBUFFER_WIDTH_EXT         0x8D42
  4290 #define GL_RENDERBUFFER_HEIGHT_EXT        0x8D43
  4291 #define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44
  4292 #define GL_STENCIL_INDEX1_EXT             0x8D46
  4293 #define GL_STENCIL_INDEX4_EXT             0x8D47
  4294 #define GL_STENCIL_INDEX8_EXT             0x8D48
  4295 #define GL_STENCIL_INDEX16_EXT            0x8D49
  4296 #define GL_RENDERBUFFER_RED_SIZE_EXT      0x8D50
  4297 #define GL_RENDERBUFFER_GREEN_SIZE_EXT    0x8D51
  4298 #define GL_RENDERBUFFER_BLUE_SIZE_EXT     0x8D52
  4299 #define GL_RENDERBUFFER_ALPHA_SIZE_EXT    0x8D53
  4300 #define GL_RENDERBUFFER_DEPTH_SIZE_EXT    0x8D54
  4301 #define GL_RENDERBUFFER_STENCIL_SIZE_EXT  0x8D55
  4302 #endif
  4303 
  4304 #ifndef GL_GREMEDY_string_marker
  4305 #endif
  4306 
  4307 #ifndef GL_EXT_packed_depth_stencil
  4308 #define GL_DEPTH_STENCIL_EXT              0x84F9
  4309 #define GL_UNSIGNED_INT_24_8_EXT          0x84FA
  4310 #define GL_DEPTH24_STENCIL8_EXT           0x88F0
  4311 #define GL_TEXTURE_STENCIL_SIZE_EXT       0x88F1
  4312 #endif
  4313 
  4314 #ifndef GL_EXT_stencil_clear_tag
  4315 #define GL_STENCIL_TAG_BITS_EXT           0x88F2
  4316 #define GL_STENCIL_CLEAR_TAG_VALUE_EXT    0x88F3
  4317 #endif
  4318 
  4319 #ifndef GL_EXT_texture_sRGB
  4320 #define GL_SRGB_EXT                       0x8C40
  4321 #define GL_SRGB8_EXT                      0x8C41
  4322 #define GL_SRGB_ALPHA_EXT                 0x8C42
  4323 #define GL_SRGB8_ALPHA8_EXT               0x8C43
  4324 #define GL_SLUMINANCE_ALPHA_EXT           0x8C44
  4325 #define GL_SLUMINANCE8_ALPHA8_EXT         0x8C45
  4326 #define GL_SLUMINANCE_EXT                 0x8C46
  4327 #define GL_SLUMINANCE8_EXT                0x8C47
  4328 #define GL_COMPRESSED_SRGB_EXT            0x8C48
  4329 #define GL_COMPRESSED_SRGB_ALPHA_EXT      0x8C49
  4330 #define GL_COMPRESSED_SLUMINANCE_EXT      0x8C4A
  4331 #define GL_COMPRESSED_SLUMINANCE_ALPHA_EXT 0x8C4B
  4332 #define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT  0x8C4C
  4333 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
  4334 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
  4335 #define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
  4336 #endif
  4337 
  4338 #ifndef GL_EXT_framebuffer_blit
  4339 #define GL_READ_FRAMEBUFFER_EXT           0x8CA8
  4340 #define GL_DRAW_FRAMEBUFFER_EXT           0x8CA9
  4341 #define GL_DRAW_FRAMEBUFFER_BINDING_EXT   GL_FRAMEBUFFER_BINDING_EXT
  4342 #define GL_READ_FRAMEBUFFER_BINDING_EXT   0x8CAA
  4343 #endif
  4344 
  4345 #ifndef GL_EXT_framebuffer_multisample
  4346 #define GL_RENDERBUFFER_SAMPLES_EXT       0x8CAB
  4347 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
  4348 #define GL_MAX_SAMPLES_EXT                0x8D57
  4349 #endif
  4350 
  4351 #ifndef GL_MESAX_texture_stack
  4352 #define GL_TEXTURE_1D_STACK_MESAX         0x8759
  4353 #define GL_TEXTURE_2D_STACK_MESAX         0x875A
  4354 #define GL_PROXY_TEXTURE_1D_STACK_MESAX   0x875B
  4355 #define GL_PROXY_TEXTURE_2D_STACK_MESAX   0x875C
  4356 #define GL_TEXTURE_1D_STACK_BINDING_MESAX 0x875D
  4357 #define GL_TEXTURE_2D_STACK_BINDING_MESAX 0x875E
  4358 #endif
  4359 
  4360 #ifndef GL_EXT_timer_query
  4361 #define GL_TIME_ELAPSED_EXT               0x88BF
  4362 #endif
  4363 
  4364 #ifndef GL_EXT_gpu_program_parameters
  4365 #endif
  4366 
  4367 #ifndef GL_APPLE_flush_buffer_range
  4368 #define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12
  4369 #define GL_BUFFER_FLUSHING_UNMAP_APPLE    0x8A13
  4370 #endif
  4371 
  4372 #ifndef GL_NV_gpu_program4
  4373 #define GL_MIN_PROGRAM_TEXEL_OFFSET_NV    0x8904
  4374 #define GL_MAX_PROGRAM_TEXEL_OFFSET_NV    0x8905
  4375 #define GL_PROGRAM_ATTRIB_COMPONENTS_NV   0x8906
  4376 #define GL_PROGRAM_RESULT_COMPONENTS_NV   0x8907
  4377 #define GL_MAX_PROGRAM_ATTRIB_COMPONENTS_NV 0x8908
  4378 #define GL_MAX_PROGRAM_RESULT_COMPONENTS_NV 0x8909
  4379 #define GL_MAX_PROGRAM_GENERIC_ATTRIBS_NV 0x8DA5
  4380 #define GL_MAX_PROGRAM_GENERIC_RESULTS_NV 0x8DA6
  4381 #endif
  4382 
  4383 #ifndef GL_NV_geometry_program4
  4384 #define GL_LINES_ADJACENCY_EXT            0x000A
  4385 #define GL_LINE_STRIP_ADJACENCY_EXT       0x000B
  4386 #define GL_TRIANGLES_ADJACENCY_EXT        0x000C
  4387 #define GL_TRIANGLE_STRIP_ADJACENCY_EXT   0x000D
  4388 #define GL_GEOMETRY_PROGRAM_NV            0x8C26
  4389 #define GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27
  4390 #define GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28
  4391 #define GL_GEOMETRY_VERTICES_OUT_EXT      0x8DDA
  4392 #define GL_GEOMETRY_INPUT_TYPE_EXT        0x8DDB
  4393 #define GL_GEOMETRY_OUTPUT_TYPE_EXT       0x8DDC
  4394 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29
  4395 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7
  4396 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8
  4397 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT 0x8DA9
  4398 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT 0x8CD4
  4399 #define GL_PROGRAM_POINT_SIZE_EXT         0x8642
  4400 #endif
  4401 
  4402 #ifndef GL_EXT_geometry_shader4
  4403 #define GL_GEOMETRY_SHADER_EXT            0x8DD9
  4404 /* reuse GL_GEOMETRY_VERTICES_OUT_EXT */
  4405 /* reuse GL_GEOMETRY_INPUT_TYPE_EXT */
  4406 /* reuse GL_GEOMETRY_OUTPUT_TYPE_EXT */
  4407 /* reuse GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT */
  4408 #define GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD
  4409 #define GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE
  4410 #define GL_MAX_VARYING_COMPONENTS_EXT     0x8B4B
  4411 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF
  4412 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0
  4413 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1
  4414 /* reuse GL_LINES_ADJACENCY_EXT */
  4415 /* reuse GL_LINE_STRIP_ADJACENCY_EXT */
  4416 /* reuse GL_TRIANGLES_ADJACENCY_EXT */
  4417 /* reuse GL_TRIANGLE_STRIP_ADJACENCY_EXT */
  4418 /* reuse GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT */
  4419 /* reuse GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT */
  4420 /* reuse GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT */
  4421 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT */
  4422 /* reuse GL_PROGRAM_POINT_SIZE_EXT */
  4423 #endif
  4424 
  4425 #ifndef GL_NV_vertex_program4
  4426 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER_NV 0x88FD
  4427 #endif
  4428 
  4429 #ifndef GL_EXT_gpu_shader4
  4430 #define GL_SAMPLER_1D_ARRAY_EXT           0x8DC0
  4431 #define GL_SAMPLER_2D_ARRAY_EXT           0x8DC1
  4432 #define GL_SAMPLER_BUFFER_EXT             0x8DC2
  4433 #define GL_SAMPLER_1D_ARRAY_SHADOW_EXT    0x8DC3
  4434 #define GL_SAMPLER_2D_ARRAY_SHADOW_EXT    0x8DC4
  4435 #define GL_SAMPLER_CUBE_SHADOW_EXT        0x8DC5
  4436 #define GL_UNSIGNED_INT_VEC2_EXT          0x8DC6
  4437 #define GL_UNSIGNED_INT_VEC3_EXT          0x8DC7
  4438 #define GL_UNSIGNED_INT_VEC4_EXT          0x8DC8
  4439 #define GL_INT_SAMPLER_1D_EXT             0x8DC9
  4440 #define GL_INT_SAMPLER_2D_EXT             0x8DCA
  4441 #define GL_INT_SAMPLER_3D_EXT             0x8DCB
  4442 #define GL_INT_SAMPLER_CUBE_EXT           0x8DCC
  4443 #define GL_INT_SAMPLER_2D_RECT_EXT        0x8DCD
  4444 #define GL_INT_SAMPLER_1D_ARRAY_EXT       0x8DCE
  4445 #define GL_INT_SAMPLER_2D_ARRAY_EXT       0x8DCF
  4446 #define GL_INT_SAMPLER_BUFFER_EXT         0x8DD0
  4447 #define GL_UNSIGNED_INT_SAMPLER_1D_EXT    0x8DD1
  4448 #define GL_UNSIGNED_INT_SAMPLER_2D_EXT    0x8DD2
  4449 #define GL_UNSIGNED_INT_SAMPLER_3D_EXT    0x8DD3
  4450 #define GL_UNSIGNED_INT_SAMPLER_CUBE_EXT  0x8DD4
  4451 #define GL_UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5
  4452 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6
  4453 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7
  4454 #define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8
  4455 #endif
  4456 
  4457 #ifndef GL_EXT_draw_instanced
  4458 #endif
  4459 
  4460 #ifndef GL_EXT_packed_float
  4461 #define GL_R11F_G11F_B10F_EXT             0x8C3A
  4462 #define GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B
  4463 #define GL_RGBA_SIGNED_COMPONENTS_EXT     0x8C3C
  4464 #endif
  4465 
  4466 #ifndef GL_EXT_texture_array
  4467 #define GL_TEXTURE_1D_ARRAY_EXT           0x8C18
  4468 #define GL_PROXY_TEXTURE_1D_ARRAY_EXT     0x8C19
  4469 #define GL_TEXTURE_2D_ARRAY_EXT           0x8C1A
  4470 #define GL_PROXY_TEXTURE_2D_ARRAY_EXT     0x8C1B
  4471 #define GL_TEXTURE_BINDING_1D_ARRAY_EXT   0x8C1C
  4472 #define GL_TEXTURE_BINDING_2D_ARRAY_EXT   0x8C1D
  4473 #define GL_MAX_ARRAY_TEXTURE_LAYERS_EXT   0x88FF
  4474 #define GL_COMPARE_REF_DEPTH_TO_TEXTURE_EXT 0x884E
  4475 /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT */
  4476 #endif
  4477 
  4478 #ifndef GL_EXT_texture_buffer_object
  4479 #define GL_TEXTURE_BUFFER_EXT             0x8C2A
  4480 #define GL_MAX_TEXTURE_BUFFER_SIZE_EXT    0x8C2B
  4481 #define GL_TEXTURE_BINDING_BUFFER_EXT     0x8C2C
  4482 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D
  4483 #define GL_TEXTURE_BUFFER_FORMAT_EXT      0x8C2E
  4484 #endif
  4485 
  4486 #ifndef GL_EXT_texture_compression_latc
  4487 #define GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70
  4488 #define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71
  4489 #define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72
  4490 #define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT 0x8C73
  4491 #endif
  4492 
  4493 #ifndef GL_EXT_texture_compression_rgtc
  4494 #define GL_COMPRESSED_RED_RGTC1_EXT       0x8DBB
  4495 #define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC
  4496 #define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD
  4497 #define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE
  4498 #endif
  4499 
  4500 #ifndef GL_EXT_texture_shared_exponent
  4501 #define GL_RGB9_E5_EXT                    0x8C3D
  4502 #define GL_UNSIGNED_INT_5_9_9_9_REV_EXT   0x8C3E
  4503 #define GL_TEXTURE_SHARED_SIZE_EXT        0x8C3F
  4504 #endif
  4505 
  4506 #ifndef GL_NV_depth_buffer_float
  4507 #define GL_DEPTH_COMPONENT32F_NV          0x8DAB
  4508 #define GL_DEPTH32F_STENCIL8_NV           0x8DAC
  4509 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD
  4510 #define GL_DEPTH_BUFFER_FLOAT_MODE_NV     0x8DAF
  4511 #endif
  4512 
  4513 #ifndef GL_NV_fragment_program4
  4514 #endif
  4515 
  4516 #ifndef GL_NV_framebuffer_multisample_coverage
  4517 #define GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB
  4518 #define GL_RENDERBUFFER_COLOR_SAMPLES_NV  0x8E10
  4519 #define GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11
  4520 #define GL_MULTISAMPLE_COVERAGE_MODES_NV  0x8E12
  4521 #endif
  4522 
  4523 #ifndef GL_EXT_framebuffer_sRGB
  4524 #define GL_FRAMEBUFFER_SRGB_EXT           0x8DB9
  4525 #define GL_FRAMEBUFFER_SRGB_CAPABLE_EXT   0x8DBA
  4526 #endif
  4527 
  4528 #ifndef GL_NV_geometry_shader4
  4529 #endif
  4530 
  4531 #ifndef GL_NV_parameter_buffer_object
  4532 #define GL_MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV 0x8DA0
  4533 #define GL_MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV 0x8DA1
  4534 #define GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2
  4535 #define GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3
  4536 #define GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4
  4537 #endif
  4538 
  4539 #ifndef GL_EXT_draw_buffers2
  4540 #endif
  4541 
  4542 #ifndef GL_NV_transform_feedback
  4543 #define GL_BACK_PRIMARY_COLOR_NV          0x8C77
  4544 #define GL_BACK_SECONDARY_COLOR_NV        0x8C78
  4545 #define GL_TEXTURE_COORD_NV               0x8C79
  4546 #define GL_CLIP_DISTANCE_NV               0x8C7A
  4547 #define GL_VERTEX_ID_NV                   0x8C7B
  4548 #define GL_PRIMITIVE_ID_NV                0x8C7C
  4549 #define GL_GENERIC_ATTRIB_NV              0x8C7D
  4550 #define GL_TRANSFORM_FEEDBACK_ATTRIBS_NV  0x8C7E
  4551 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_NV 0x8C7F
  4552 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV 0x8C80
  4553 #define GL_ACTIVE_VARYINGS_NV             0x8C81
  4554 #define GL_ACTIVE_VARYING_MAX_LENGTH_NV   0x8C82
  4555 #define GL_TRANSFORM_FEEDBACK_VARYINGS_NV 0x8C83
  4556 #define GL_TRANSFORM_FEEDBACK_BUFFER_START_NV 0x8C84
  4557 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_NV 0x8C85
  4558 #define GL_TRANSFORM_FEEDBACK_RECORD_NV   0x8C86
  4559 #define GL_PRIMITIVES_GENERATED_NV        0x8C87
  4560 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV 0x8C88
  4561 #define GL_RASTERIZER_DISCARD_NV          0x8C89
  4562 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV 0x8C8A
  4563 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV 0x8C8B
  4564 #define GL_INTERLEAVED_ATTRIBS_NV         0x8C8C
  4565 #define GL_SEPARATE_ATTRIBS_NV            0x8C8D
  4566 #define GL_TRANSFORM_FEEDBACK_BUFFER_NV   0x8C8E
  4567 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_NV 0x8C8F
  4568 #define GL_LAYER_NV                       0x8DAA
  4569 #define GL_NEXT_BUFFER_NV                 -2
  4570 #define GL_SKIP_COMPONENTS4_NV            -3
  4571 #define GL_SKIP_COMPONENTS3_NV            -4
  4572 #define GL_SKIP_COMPONENTS2_NV            -5
  4573 #define GL_SKIP_COMPONENTS1_NV            -6
  4574 #endif
  4575 
  4576 #ifndef GL_EXT_bindable_uniform
  4577 #define GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2
  4578 #define GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3
  4579 #define GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4
  4580 #define GL_MAX_BINDABLE_UNIFORM_SIZE_EXT  0x8DED
  4581 #define GL_UNIFORM_BUFFER_EXT             0x8DEE
  4582 #define GL_UNIFORM_BUFFER_BINDING_EXT     0x8DEF
  4583 #endif
  4584 
  4585 #ifndef GL_EXT_texture_integer
  4586 #define GL_RGBA32UI_EXT                   0x8D70
  4587 #define GL_RGB32UI_EXT                    0x8D71
  4588 #define GL_ALPHA32UI_EXT                  0x8D72
  4589 #define GL_INTENSITY32UI_EXT              0x8D73
  4590 #define GL_LUMINANCE32UI_EXT              0x8D74
  4591 #define GL_LUMINANCE_ALPHA32UI_EXT        0x8D75
  4592 #define GL_RGBA16UI_EXT                   0x8D76
  4593 #define GL_RGB16UI_EXT                    0x8D77
  4594 #define GL_ALPHA16UI_EXT                  0x8D78
  4595 #define GL_INTENSITY16UI_EXT              0x8D79
  4596 #define GL_LUMINANCE16UI_EXT              0x8D7A
  4597 #define GL_LUMINANCE_ALPHA16UI_EXT        0x8D7B
  4598 #define GL_RGBA8UI_EXT                    0x8D7C
  4599 #define GL_RGB8UI_EXT                     0x8D7D
  4600 #define GL_ALPHA8UI_EXT                   0x8D7E
  4601 #define GL_INTENSITY8UI_EXT               0x8D7F
  4602 #define GL_LUMINANCE8UI_EXT               0x8D80
  4603 #define GL_LUMINANCE_ALPHA8UI_EXT         0x8D81
  4604 #define GL_RGBA32I_EXT                    0x8D82
  4605 #define GL_RGB32I_EXT                     0x8D83
  4606 #define GL_ALPHA32I_EXT                   0x8D84
  4607 #define GL_INTENSITY32I_EXT               0x8D85
  4608 #define GL_LUMINANCE32I_EXT               0x8D86
  4609 #define GL_LUMINANCE_ALPHA32I_EXT         0x8D87
  4610 #define GL_RGBA16I_EXT                    0x8D88
  4611 #define GL_RGB16I_EXT                     0x8D89
  4612 #define GL_ALPHA16I_EXT                   0x8D8A
  4613 #define GL_INTENSITY16I_EXT               0x8D8B
  4614 #define GL_LUMINANCE16I_EXT               0x8D8C
  4615 #define GL_LUMINANCE_ALPHA16I_EXT         0x8D8D
  4616 #define GL_RGBA8I_EXT                     0x8D8E
  4617 #define GL_RGB8I_EXT                      0x8D8F
  4618 #define GL_ALPHA8I_EXT                    0x8D90
  4619 #define GL_INTENSITY8I_EXT                0x8D91
  4620 #define GL_LUMINANCE8I_EXT                0x8D92
  4621 #define GL_LUMINANCE_ALPHA8I_EXT          0x8D93
  4622 #define GL_RED_INTEGER_EXT                0x8D94
  4623 #define GL_GREEN_INTEGER_EXT              0x8D95
  4624 #define GL_BLUE_INTEGER_EXT               0x8D96
  4625 #define GL_ALPHA_INTEGER_EXT              0x8D97
  4626 #define GL_RGB_INTEGER_EXT                0x8D98
  4627 #define GL_RGBA_INTEGER_EXT               0x8D99
  4628 #define GL_BGR_INTEGER_EXT                0x8D9A
  4629 #define GL_BGRA_INTEGER_EXT               0x8D9B
  4630 #define GL_LUMINANCE_INTEGER_EXT          0x8D9C
  4631 #define GL_LUMINANCE_ALPHA_INTEGER_EXT    0x8D9D
  4632 #define GL_RGBA_INTEGER_MODE_EXT          0x8D9E
  4633 #endif
  4634 
  4635 #ifndef GL_GREMEDY_frame_terminator
  4636 #endif
  4637 
  4638 #ifndef GL_NV_conditional_render
  4639 #define GL_QUERY_WAIT_NV                  0x8E13
  4640 #define GL_QUERY_NO_WAIT_NV               0x8E14
  4641 #define GL_QUERY_BY_REGION_WAIT_NV        0x8E15
  4642 #define GL_QUERY_BY_REGION_NO_WAIT_NV     0x8E16
  4643 #endif
  4644 
  4645 #ifndef GL_NV_present_video
  4646 #define GL_FRAME_NV                       0x8E26
  4647 #define GL_FIELDS_NV                      0x8E27
  4648 #define GL_CURRENT_TIME_NV                0x8E28
  4649 #define GL_NUM_FILL_STREAMS_NV            0x8E29
  4650 #define GL_PRESENT_TIME_NV                0x8E2A
  4651 #define GL_PRESENT_DURATION_NV            0x8E2B
  4652 #endif
  4653 
  4654 #ifndef GL_EXT_transform_feedback
  4655 #define GL_TRANSFORM_FEEDBACK_BUFFER_EXT  0x8C8E
  4656 #define GL_TRANSFORM_FEEDBACK_BUFFER_START_EXT 0x8C84
  4657 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT 0x8C85
  4658 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT 0x8C8F
  4659 #define GL_INTERLEAVED_ATTRIBS_EXT        0x8C8C
  4660 #define GL_SEPARATE_ATTRIBS_EXT           0x8C8D
  4661 #define GL_PRIMITIVES_GENERATED_EXT       0x8C87
  4662 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88
  4663 #define GL_RASTERIZER_DISCARD_EXT         0x8C89
  4664 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A
  4665 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B
  4666 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80
  4667 #define GL_TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83
  4668 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F
  4669 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76
  4670 #endif
  4671 
  4672 #ifndef GL_EXT_direct_state_access
  4673 #define GL_PROGRAM_MATRIX_EXT             0x8E2D
  4674 #define GL_TRANSPOSE_PROGRAM_MATRIX_EXT   0x8E2E
  4675 #define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8E2F
  4676 #endif
  4677 
  4678 #ifndef GL_EXT_vertex_array_bgra
  4679 /* reuse GL_BGRA */
  4680 #endif
  4681 
  4682 #ifndef GL_EXT_texture_swizzle
  4683 #define GL_TEXTURE_SWIZZLE_R_EXT          0x8E42
  4684 #define GL_TEXTURE_SWIZZLE_G_EXT          0x8E43
  4685 #define GL_TEXTURE_SWIZZLE_B_EXT          0x8E44
  4686 #define GL_TEXTURE_SWIZZLE_A_EXT          0x8E45
  4687 #define GL_TEXTURE_SWIZZLE_RGBA_EXT       0x8E46
  4688 #endif
  4689 
  4690 #ifndef GL_NV_explicit_multisample
  4691 #define GL_SAMPLE_POSITION_NV             0x8E50
  4692 #define GL_SAMPLE_MASK_NV                 0x8E51
  4693 #define GL_SAMPLE_MASK_VALUE_NV           0x8E52
  4694 #define GL_TEXTURE_BINDING_RENDERBUFFER_NV 0x8E53
  4695 #define GL_TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV 0x8E54
  4696 #define GL_TEXTURE_RENDERBUFFER_NV        0x8E55
  4697 #define GL_SAMPLER_RENDERBUFFER_NV        0x8E56
  4698 #define GL_INT_SAMPLER_RENDERBUFFER_NV    0x8E57
  4699 #define GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV 0x8E58
  4700 #define GL_MAX_SAMPLE_MASK_WORDS_NV       0x8E59
  4701 #endif
  4702 
  4703 #ifndef GL_NV_transform_feedback2
  4704 #define GL_TRANSFORM_FEEDBACK_NV          0x8E22
  4705 #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV 0x8E23
  4706 #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV 0x8E24
  4707 #define GL_TRANSFORM_FEEDBACK_BINDING_NV  0x8E25
  4708 #endif
  4709 
  4710 #ifndef GL_ATI_meminfo
  4711 #define GL_VBO_FREE_MEMORY_ATI            0x87FB
  4712 #define GL_TEXTURE_FREE_MEMORY_ATI        0x87FC
  4713 #define GL_RENDERBUFFER_FREE_MEMORY_ATI   0x87FD
  4714 #endif
  4715 
  4716 #ifndef GL_AMD_performance_monitor
  4717 #define GL_COUNTER_TYPE_AMD               0x8BC0
  4718 #define GL_COUNTER_RANGE_AMD              0x8BC1
  4719 #define GL_UNSIGNED_INT64_AMD             0x8BC2
  4720 #define GL_PERCENTAGE_AMD                 0x8BC3
  4721 #define GL_PERFMON_RESULT_AVAILABLE_AMD   0x8BC4
  4722 #define GL_PERFMON_RESULT_SIZE_AMD        0x8BC5
  4723 #define GL_PERFMON_RESULT_AMD             0x8BC6
  4724 #endif
  4725 
  4726 #ifndef GL_AMD_texture_texture4
  4727 #endif
  4728 
  4729 #ifndef GL_AMD_vertex_shader_tesselator
  4730 #define GL_SAMPLER_BUFFER_AMD             0x9001
  4731 #define GL_INT_SAMPLER_BUFFER_AMD         0x9002
  4732 #define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003
  4733 #define GL_TESSELLATION_MODE_AMD          0x9004
  4734 #define GL_TESSELLATION_FACTOR_AMD        0x9005
  4735 #define GL_DISCRETE_AMD                   0x9006
  4736 #define GL_CONTINUOUS_AMD                 0x9007
  4737 #endif
  4738 
  4739 #ifndef GL_EXT_provoking_vertex
  4740 #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT 0x8E4C
  4741 #define GL_FIRST_VERTEX_CONVENTION_EXT    0x8E4D
  4742 #define GL_LAST_VERTEX_CONVENTION_EXT     0x8E4E
  4743 #define GL_PROVOKING_VERTEX_EXT           0x8E4F
  4744 #endif
  4745 
  4746 #ifndef GL_EXT_texture_snorm
  4747 #define GL_ALPHA_SNORM                    0x9010
  4748 #define GL_LUMINANCE_SNORM                0x9011
  4749 #define GL_LUMINANCE_ALPHA_SNORM          0x9012
  4750 #define GL_INTENSITY_SNORM                0x9013
  4751 #define GL_ALPHA8_SNORM                   0x9014
  4752 #define GL_LUMINANCE8_SNORM               0x9015
  4753 #define GL_LUMINANCE8_ALPHA8_SNORM        0x9016
  4754 #define GL_INTENSITY8_SNORM               0x9017
  4755 #define GL_ALPHA16_SNORM                  0x9018
  4756 #define GL_LUMINANCE16_SNORM              0x9019
  4757 #define GL_LUMINANCE16_ALPHA16_SNORM      0x901A
  4758 #define GL_INTENSITY16_SNORM              0x901B
  4759 /* reuse GL_RED_SNORM */
  4760 /* reuse GL_RG_SNORM */
  4761 /* reuse GL_RGB_SNORM */
  4762 /* reuse GL_RGBA_SNORM */
  4763 /* reuse GL_R8_SNORM */
  4764 /* reuse GL_RG8_SNORM */
  4765 /* reuse GL_RGB8_SNORM */
  4766 /* reuse GL_RGBA8_SNORM */
  4767 /* reuse GL_R16_SNORM */
  4768 /* reuse GL_RG16_SNORM */
  4769 /* reuse GL_RGB16_SNORM */
  4770 /* reuse GL_RGBA16_SNORM */
  4771 /* reuse GL_SIGNED_NORMALIZED */
  4772 #endif
  4773 
  4774 #ifndef GL_AMD_draw_buffers_blend
  4775 #endif
  4776 
  4777 #ifndef GL_APPLE_texture_range
  4778 #define GL_TEXTURE_RANGE_LENGTH_APPLE     0x85B7
  4779 #define GL_TEXTURE_RANGE_POINTER_APPLE    0x85B8
  4780 #define GL_TEXTURE_STORAGE_HINT_APPLE     0x85BC
  4781 #define GL_STORAGE_PRIVATE_APPLE          0x85BD
  4782 /* reuse GL_STORAGE_CACHED_APPLE */
  4783 /* reuse GL_STORAGE_SHARED_APPLE */
  4784 #endif
  4785 
  4786 #ifndef GL_APPLE_float_pixels
  4787 #define GL_HALF_APPLE                     0x140B
  4788 #define GL_RGBA_FLOAT32_APPLE             0x8814
  4789 #define GL_RGB_FLOAT32_APPLE              0x8815
  4790 #define GL_ALPHA_FLOAT32_APPLE            0x8816
  4791 #define GL_INTENSITY_FLOAT32_APPLE        0x8817
  4792 #define GL_LUMINANCE_FLOAT32_APPLE        0x8818
  4793 #define GL_LUMINANCE_ALPHA_FLOAT32_APPLE  0x8819
  4794 #define GL_RGBA_FLOAT16_APPLE             0x881A
  4795 #define GL_RGB_FLOAT16_APPLE              0x881B
  4796 #define GL_ALPHA_FLOAT16_APPLE            0x881C
  4797 #define GL_INTENSITY_FLOAT16_APPLE        0x881D
  4798 #define GL_LUMINANCE_FLOAT16_APPLE        0x881E
  4799 #define GL_LUMINANCE_ALPHA_FLOAT16_APPLE  0x881F
  4800 #define GL_COLOR_FLOAT_APPLE              0x8A0F
  4801 #endif
  4802 
  4803 #ifndef GL_APPLE_vertex_program_evaluators
  4804 #define GL_VERTEX_ATTRIB_MAP1_APPLE       0x8A00
  4805 #define GL_VERTEX_ATTRIB_MAP2_APPLE       0x8A01
  4806 #define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE  0x8A02
  4807 #define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03
  4808 #define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04
  4809 #define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05
  4810 #define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE  0x8A06
  4811 #define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07
  4812 #define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08
  4813 #define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09
  4814 #endif
  4815 
  4816 #ifndef GL_APPLE_aux_depth_stencil
  4817 #define GL_AUX_DEPTH_STENCIL_APPLE        0x8A14
  4818 #endif
  4819 
  4820 #ifndef GL_APPLE_object_purgeable
  4821 #define GL_BUFFER_OBJECT_APPLE            0x85B3
  4822 #define GL_RELEASED_APPLE                 0x8A19
  4823 #define GL_VOLATILE_APPLE                 0x8A1A
  4824 #define GL_RETAINED_APPLE                 0x8A1B
  4825 #define GL_UNDEFINED_APPLE                0x8A1C
  4826 #define GL_PURGEABLE_APPLE                0x8A1D
  4827 #endif
  4828 
  4829 #ifndef GL_APPLE_row_bytes
  4830 #define GL_PACK_ROW_BYTES_APPLE           0x8A15
  4831 #define GL_UNPACK_ROW_BYTES_APPLE         0x8A16
  4832 #endif
  4833 
  4834 #ifndef GL_APPLE_rgb_422
  4835 #define GL_RGB_422_APPLE                  0x8A1F
  4836 /* reuse GL_UNSIGNED_SHORT_8_8_APPLE */
  4837 /* reuse GL_UNSIGNED_SHORT_8_8_REV_APPLE */
  4838 #endif
  4839 
  4840 #ifndef GL_NV_video_capture
  4841 #define GL_VIDEO_BUFFER_NV                0x9020
  4842 #define GL_VIDEO_BUFFER_BINDING_NV        0x9021
  4843 #define GL_FIELD_UPPER_NV                 0x9022
  4844 #define GL_FIELD_LOWER_NV                 0x9023
  4845 #define GL_NUM_VIDEO_CAPTURE_STREAMS_NV   0x9024
  4846 #define GL_NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV 0x9025
  4847 #define GL_VIDEO_CAPTURE_TO_422_SUPPORTED_NV 0x9026
  4848 #define GL_LAST_VIDEO_CAPTURE_STATUS_NV   0x9027
  4849 #define GL_VIDEO_BUFFER_PITCH_NV          0x9028
  4850 #define GL_VIDEO_COLOR_CONVERSION_MATRIX_NV 0x9029
  4851 #define GL_VIDEO_COLOR_CONVERSION_MAX_NV  0x902A
  4852 #define GL_VIDEO_COLOR_CONVERSION_MIN_NV  0x902B
  4853 #define GL_VIDEO_COLOR_CONVERSION_OFFSET_NV 0x902C
  4854 #define GL_VIDEO_BUFFER_INTERNAL_FORMAT_NV 0x902D
  4855 #define GL_PARTIAL_SUCCESS_NV             0x902E
  4856 #define GL_SUCCESS_NV                     0x902F
  4857 #define GL_FAILURE_NV                     0x9030
  4858 #define GL_YCBYCR8_422_NV                 0x9031
  4859 #define GL_YCBAYCR8A_4224_NV              0x9032
  4860 #define GL_Z6Y10Z6CB10Z6Y10Z6CR10_422_NV  0x9033
  4861 #define GL_Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV 0x9034
  4862 #define GL_Z4Y12Z4CB12Z4Y12Z4CR12_422_NV  0x9035
  4863 #define GL_Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV 0x9036
  4864 #define GL_Z4Y12Z4CB12Z4CR12_444_NV       0x9037
  4865 #define GL_VIDEO_CAPTURE_FRAME_WIDTH_NV   0x9038
  4866 #define GL_VIDEO_CAPTURE_FRAME_HEIGHT_NV  0x9039
  4867 #define GL_VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV 0x903A
  4868 #define GL_VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV 0x903B
  4869 #define GL_VIDEO_CAPTURE_SURFACE_ORIGIN_NV 0x903C
  4870 #endif
  4871 
  4872 #ifndef GL_NV_copy_image
  4873 #endif
  4874 
  4875 #ifndef GL_EXT_separate_shader_objects
  4876 #define GL_ACTIVE_PROGRAM_EXT             0x8B8D
  4877 #endif
  4878 
  4879 #ifndef GL_NV_parameter_buffer_object2
  4880 #endif
  4881 
  4882 #ifndef GL_NV_shader_buffer_load
  4883 #define GL_BUFFER_GPU_ADDRESS_NV          0x8F1D
  4884 #define GL_GPU_ADDRESS_NV                 0x8F34
  4885 #define GL_MAX_SHADER_BUFFER_ADDRESS_NV   0x8F35
  4886 #endif
  4887 
  4888 #ifndef GL_NV_vertex_buffer_unified_memory
  4889 #define GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV 0x8F1E
  4890 #define GL_ELEMENT_ARRAY_UNIFIED_NV       0x8F1F
  4891 #define GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV 0x8F20
  4892 #define GL_VERTEX_ARRAY_ADDRESS_NV        0x8F21
  4893 #define GL_NORMAL_ARRAY_ADDRESS_NV        0x8F22
  4894 #define GL_COLOR_ARRAY_ADDRESS_NV         0x8F23
  4895 #define GL_INDEX_ARRAY_ADDRESS_NV         0x8F24
  4896 #define GL_TEXTURE_COORD_ARRAY_ADDRESS_NV 0x8F25
  4897 #define GL_EDGE_FLAG_ARRAY_ADDRESS_NV     0x8F26
  4898 #define GL_SECONDARY_COLOR_ARRAY_ADDRESS_NV 0x8F27
  4899 #define GL_FOG_COORD_ARRAY_ADDRESS_NV     0x8F28
  4900 #define GL_ELEMENT_ARRAY_ADDRESS_NV       0x8F29
  4901 #define GL_VERTEX_ATTRIB_ARRAY_LENGTH_NV  0x8F2A
  4902 #define GL_VERTEX_ARRAY_LENGTH_NV         0x8F2B
  4903 #define GL_NORMAL_ARRAY_LENGTH_NV         0x8F2C
  4904 #define GL_COLOR_ARRAY_LENGTH_NV          0x8F2D
  4905 #define GL_INDEX_ARRAY_LENGTH_NV          0x8F2E
  4906 #define GL_TEXTURE_COORD_ARRAY_LENGTH_NV  0x8F2F
  4907 #define GL_EDGE_FLAG_ARRAY_LENGTH_NV      0x8F30
  4908 #define GL_SECONDARY_COLOR_ARRAY_LENGTH_NV 0x8F31
  4909 #define GL_FOG_COORD_ARRAY_LENGTH_NV      0x8F32
  4910 #define GL_ELEMENT_ARRAY_LENGTH_NV        0x8F33
  4911 #define GL_DRAW_INDIRECT_UNIFIED_NV       0x8F40
  4912 #define GL_DRAW_INDIRECT_ADDRESS_NV       0x8F41
  4913 #define GL_DRAW_INDIRECT_LENGTH_NV        0x8F42
  4914 #endif
  4915 
  4916 #ifndef GL_NV_texture_barrier
  4917 #endif
  4918 
  4919 #ifndef GL_AMD_shader_stencil_export
  4920 #endif
  4921 
  4922 #ifndef GL_AMD_seamless_cubemap_per_texture
  4923 /* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS_ARB */
  4924 #endif
  4925 
  4926 #ifndef GL_AMD_conservative_depth
  4927 #endif
  4928 
  4929 #ifndef GL_EXT_shader_image_load_store
  4930 #define GL_MAX_IMAGE_UNITS_EXT            0x8F38
  4931 #define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT 0x8F39
  4932 #define GL_IMAGE_BINDING_NAME_EXT         0x8F3A
  4933 #define GL_IMAGE_BINDING_LEVEL_EXT        0x8F3B
  4934 #define GL_IMAGE_BINDING_LAYERED_EXT      0x8F3C
  4935 #define GL_IMAGE_BINDING_LAYER_EXT        0x8F3D
  4936 #define GL_IMAGE_BINDING_ACCESS_EXT       0x8F3E
  4937 #define GL_IMAGE_1D_EXT                   0x904C
  4938 #define GL_IMAGE_2D_EXT                   0x904D
  4939 #define GL_IMAGE_3D_EXT                   0x904E
  4940 #define GL_IMAGE_2D_RECT_EXT              0x904F
  4941 #define GL_IMAGE_CUBE_EXT                 0x9050
  4942 #define GL_IMAGE_BUFFER_EXT               0x9051
  4943 #define GL_IMAGE_1D_ARRAY_EXT             0x9052
  4944 #define GL_IMAGE_2D_ARRAY_EXT             0x9053
  4945 #define GL_IMAGE_CUBE_MAP_ARRAY_EXT       0x9054
  4946 #define GL_IMAGE_2D_MULTISAMPLE_EXT       0x9055
  4947 #define GL_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9056
  4948 #define GL_INT_IMAGE_1D_EXT               0x9057
  4949 #define GL_INT_IMAGE_2D_EXT               0x9058
  4950 #define GL_INT_IMAGE_3D_EXT               0x9059
  4951 #define GL_INT_IMAGE_2D_RECT_EXT          0x905A
  4952 #define GL_INT_IMAGE_CUBE_EXT             0x905B
  4953 #define GL_INT_IMAGE_BUFFER_EXT           0x905C
  4954 #define GL_INT_IMAGE_1D_ARRAY_EXT         0x905D
  4955 #define GL_INT_IMAGE_2D_ARRAY_EXT         0x905E
  4956 #define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT   0x905F
  4957 #define GL_INT_IMAGE_2D_MULTISAMPLE_EXT   0x9060
  4958 #define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x9061
  4959 #define GL_UNSIGNED_INT_IMAGE_1D_EXT      0x9062
  4960 #define GL_UNSIGNED_INT_IMAGE_2D_EXT      0x9063
  4961 #define GL_UNSIGNED_INT_IMAGE_3D_EXT      0x9064
  4962 #define GL_UNSIGNED_INT_IMAGE_2D_RECT_EXT 0x9065
  4963 #define GL_UNSIGNED_INT_IMAGE_CUBE_EXT    0x9066
  4964 #define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT  0x9067
  4965 #define GL_UNSIGNED_INT_IMAGE_1D_ARRAY_EXT 0x9068
  4966 #define GL_UNSIGNED_INT_IMAGE_2D_ARRAY_EXT 0x9069
  4967 #define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A
  4968 #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT 0x906B
  4969 #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT 0x906C
  4970 #define GL_MAX_IMAGE_SAMPLES_EXT          0x906D
  4971 #define GL_IMAGE_BINDING_FORMAT_EXT       0x906E
  4972 #define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT 0x00000001
  4973 #define GL_ELEMENT_ARRAY_BARRIER_BIT_EXT  0x00000002
  4974 #define GL_UNIFORM_BARRIER_BIT_EXT        0x00000004
  4975 #define GL_TEXTURE_FETCH_BARRIER_BIT_EXT  0x00000008
  4976 #define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT 0x00000020
  4977 #define GL_COMMAND_BARRIER_BIT_EXT        0x00000040
  4978 #define GL_PIXEL_BUFFER_BARRIER_BIT_EXT   0x00000080
  4979 #define GL_TEXTURE_UPDATE_BARRIER_BIT_EXT 0x00000100
  4980 #define GL_BUFFER_UPDATE_BARRIER_BIT_EXT  0x00000200
  4981 #define GL_FRAMEBUFFER_BARRIER_BIT_EXT    0x00000400
  4982 #define GL_TRANSFORM_FEEDBACK_BARRIER_BIT_EXT 0x00000800
  4983 #define GL_ATOMIC_COUNTER_BARRIER_BIT_EXT 0x00001000
  4984 #define GL_ALL_BARRIER_BITS_EXT           0xFFFFFFFF
  4985 #endif
  4986 
  4987 #ifndef GL_EXT_vertex_attrib_64bit
  4988 /* reuse GL_DOUBLE */
  4989 #define GL_DOUBLE_VEC2_EXT                0x8FFC
  4990 #define GL_DOUBLE_VEC3_EXT                0x8FFD
  4991 #define GL_DOUBLE_VEC4_EXT                0x8FFE
  4992 #define GL_DOUBLE_MAT2_EXT                0x8F46
  4993 #define GL_DOUBLE_MAT3_EXT                0x8F47
  4994 #define GL_DOUBLE_MAT4_EXT                0x8F48
  4995 #define GL_DOUBLE_MAT2x3_EXT              0x8F49
  4996 #define GL_DOUBLE_MAT2x4_EXT              0x8F4A
  4997 #define GL_DOUBLE_MAT3x2_EXT              0x8F4B
  4998 #define GL_DOUBLE_MAT3x4_EXT              0x8F4C
  4999 #define GL_DOUBLE_MAT4x2_EXT              0x8F4D
  5000 #define GL_DOUBLE_MAT4x3_EXT              0x8F4E
  5001 #endif
  5002 
  5003 #ifndef GL_NV_gpu_program5
  5004 #define GL_MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV 0x8E5A
  5005 #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5B
  5006 #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_NV 0x8E5C
  5007 #define GL_FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV 0x8E5D
  5008 #define GL_MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV 0x8F44
  5009 #define GL_MAX_PROGRAM_SUBROUTINE_NUM_NV  0x8F45
  5010 #endif
  5011 
  5012 #ifndef GL_NV_gpu_shader5
  5013 #define GL_INT64_NV                       0x140E
  5014 #define GL_UNSIGNED_INT64_NV              0x140F
  5015 #define GL_INT8_NV                        0x8FE0
  5016 #define GL_INT8_VEC2_NV                   0x8FE1
  5017 #define GL_INT8_VEC3_NV                   0x8FE2
  5018 #define GL_INT8_VEC4_NV                   0x8FE3
  5019 #define GL_INT16_NV                       0x8FE4
  5020 #define GL_INT16_VEC2_NV                  0x8FE5
  5021 #define GL_INT16_VEC3_NV                  0x8FE6
  5022 #define GL_INT16_VEC4_NV                  0x8FE7
  5023 #define GL_INT64_VEC2_NV                  0x8FE9
  5024 #define GL_INT64_VEC3_NV                  0x8FEA
  5025 #define GL_INT64_VEC4_NV                  0x8FEB
  5026 #define GL_UNSIGNED_INT8_NV               0x8FEC
  5027 #define GL_UNSIGNED_INT8_VEC2_NV          0x8FED
  5028 #define GL_UNSIGNED_INT8_VEC3_NV          0x8FEE
  5029 #define GL_UNSIGNED_INT8_VEC4_NV          0x8FEF
  5030 #define GL_UNSIGNED_INT16_NV              0x8FF0
  5031 #define GL_UNSIGNED_INT16_VEC2_NV         0x8FF1
  5032 #define GL_UNSIGNED_INT16_VEC3_NV         0x8FF2
  5033 #define GL_UNSIGNED_INT16_VEC4_NV         0x8FF3
  5034 #define GL_UNSIGNED_INT64_VEC2_NV         0x8FF5
  5035 #define GL_UNSIGNED_INT64_VEC3_NV         0x8FF6
  5036 #define GL_UNSIGNED_INT64_VEC4_NV         0x8FF7
  5037 #define GL_FLOAT16_NV                     0x8FF8
  5038 #define GL_FLOAT16_VEC2_NV                0x8FF9
  5039 #define GL_FLOAT16_VEC3_NV                0x8FFA
  5040 #define GL_FLOAT16_VEC4_NV                0x8FFB
  5041 /* reuse GL_PATCHES */
  5042 #endif
  5043 
  5044 #ifndef GL_NV_shader_buffer_store
  5045 #define GL_SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV 0x00000010
  5046 /* reuse GL_READ_WRITE */
  5047 /* reuse GL_WRITE_ONLY */
  5048 #endif
  5049 
  5050 #ifndef GL_NV_tessellation_program5
  5051 #define GL_MAX_PROGRAM_PATCH_ATTRIBS_NV   0x86D8
  5052 #define GL_TESS_CONTROL_PROGRAM_NV        0x891E
  5053 #define GL_TESS_EVALUATION_PROGRAM_NV     0x891F
  5054 #define GL_TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV 0x8C74
  5055 #define GL_TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV 0x8C75
  5056 #endif
  5057 
  5058 #ifndef GL_NV_vertex_attrib_integer_64bit
  5059 /* reuse GL_INT64_NV */
  5060 /* reuse GL_UNSIGNED_INT64_NV */
  5061 #endif
  5062 
  5063 #ifndef GL_NV_multisample_coverage
  5064 #define GL_COVERAGE_SAMPLES_NV            0x80A9
  5065 #define GL_COLOR_SAMPLES_NV               0x8E20
  5066 #endif
  5067 
  5068 #ifndef GL_AMD_name_gen_delete
  5069 #define GL_DATA_BUFFER_AMD                0x9151
  5070 #define GL_PERFORMANCE_MONITOR_AMD        0x9152
  5071 #define GL_QUERY_OBJECT_AMD               0x9153
  5072 #define GL_VERTEX_ARRAY_OBJECT_AMD        0x9154
  5073 #define GL_SAMPLER_OBJECT_AMD             0x9155
  5074 #endif
  5075 
  5076 #ifndef GL_AMD_debug_output
  5077 #define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD  0x9144
  5078 #define GL_DEBUG_LOGGED_MESSAGES_AMD      0x9145
  5079 #define GL_DEBUG_SEVERITY_HIGH_AMD        0x9146
  5080 #define GL_DEBUG_SEVERITY_MEDIUM_AMD      0x9147
  5081 #define GL_DEBUG_SEVERITY_LOW_AMD         0x9148
  5082 #define GL_DEBUG_CATEGORY_API_ERROR_AMD   0x9149
  5083 #define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A
  5084 #define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B
  5085 #define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C
  5086 #define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D
  5087 #define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E
  5088 #define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F
  5089 #define GL_DEBUG_CATEGORY_OTHER_AMD       0x9150
  5090 #endif
  5091 
  5092 #ifndef GL_NV_vdpau_interop
  5093 #define GL_SURFACE_STATE_NV               0x86EB
  5094 #define GL_SURFACE_REGISTERED_NV          0x86FD
  5095 #define GL_SURFACE_MAPPED_NV              0x8700
  5096 #define GL_WRITE_DISCARD_NV               0x88BE
  5097 #endif
  5098 
  5099 #ifndef GL_AMD_transform_feedback3_lines_triangles
  5100 #endif
  5101 
  5102 
  5103 /*************************************************************/
  5104 
  5105 #include <stddef.h>
  5106 #ifndef GL_VERSION_2_0
  5107 /* GL type for program/shader text */
  5108 typedef char GLchar;
  5109 #endif
  5110 
  5111 #ifndef GL_VERSION_1_5
  5112 /* GL types for handling large vertex buffer objects */
  5113 #if defined(__APPLE__)
  5114 typedef long GLintptr;
  5115 typedef long GLsizeiptr;
  5116 #else
  5117 typedef ptrdiff_t GLintptr;
  5118 typedef ptrdiff_t GLsizeiptr;
  5119 #endif
  5120 #endif
  5121 
  5122 #ifndef GL_ARB_vertex_buffer_object
  5123 /* GL types for handling large vertex buffer objects */
  5124 #if defined(__APPLE__)
  5125 typedef long GLintptrARB;
  5126 typedef long GLsizeiptrARB;
  5127 #else
  5128 typedef ptrdiff_t GLintptrARB;
  5129 typedef ptrdiff_t GLsizeiptrARB;
  5130 #endif
  5131 #endif
  5132 
  5133 #ifndef GL_ARB_shader_objects
  5134 /* GL types for program/shader text and shader object handles */
  5135 typedef char GLcharARB;
  5136 #if defined(__APPLE__)
  5137 typedef void *GLhandleARB;
  5138 #else
  5139 typedef unsigned int GLhandleARB;
  5140 #endif
  5141 #endif
  5142 
  5143 /* GL type for "half" precision (s10e5) float data in host memory */
  5144 #ifndef GL_ARB_half_float_pixel
  5145 typedef unsigned short GLhalfARB;
  5146 #endif
  5147 
  5148 #ifndef GL_NV_half_float
  5149 typedef unsigned short GLhalfNV;
  5150 #endif
  5151 
  5152 #ifndef GLEXT_64_TYPES_DEFINED
  5153 /* This code block is duplicated in glxext.h, so must be protected */
  5154 #define GLEXT_64_TYPES_DEFINED
  5155 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
  5156 /* (as used in the GL_EXT_timer_query extension). */
  5157 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  5158 #include <inttypes.h>
  5159 #elif defined(__sun__) || defined(__digital__)
  5160 #include <inttypes.h>
  5161 #if defined(__STDC__)
  5162 #if defined(__arch64__) || defined(_LP64)
  5163 typedef long int int64_t;
  5164 typedef unsigned long int uint64_t;
  5165 #else
  5166 typedef long long int int64_t;
  5167 typedef unsigned long long int uint64_t;
  5168 #endif /* __arch64__ */
  5169 #endif /* __STDC__ */
  5170 #elif defined( __VMS ) || defined(__sgi)
  5171 #include <inttypes.h>
  5172 #elif defined(__SCO__) || defined(__USLC__)
  5173 #include <stdint.h>
  5174 #elif defined(__UNIXOS2__) || defined(__SOL64__)
  5175 typedef long int int32_t;
  5176 typedef long long int int64_t;
  5177 typedef unsigned long long int uint64_t;
  5178 #elif defined(_WIN32) && defined(__GNUC__)
  5179 #include <stdint.h>
  5180 #elif defined(_WIN32)
  5181 typedef __int32 int32_t;
  5182 typedef __int64 int64_t;
  5183 typedef unsigned __int64 uint64_t;
  5184 #else
  5185 /* Fallback if nothing above works */
  5186 #include <inttypes.h>
  5187 #endif
  5188 #endif
  5189 
  5190 #ifndef GL_EXT_timer_query
  5191 typedef int64_t GLint64EXT;
  5192 typedef uint64_t GLuint64EXT;
  5193 #endif
  5194 
  5195 #ifndef GL_ARB_sync
  5196 typedef int64_t GLint64;
  5197 typedef uint64_t GLuint64;
  5198 typedef struct __GLsync *GLsync;
  5199 #endif
  5200 
  5201 #ifndef GL_ARB_cl_event
  5202 /* These incomplete types let us declare types compatible with OpenCL's cl_context and cl_event */
  5203 struct _cl_context;
  5204 struct _cl_event;
  5205 #endif
  5206 
  5207 #ifndef GL_ARB_debug_output
  5208 typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
  5209 #endif
  5210 
  5211 #ifndef GL_AMD_debug_output
  5212 typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
  5213 #endif
  5214 
  5215 #ifndef GL_NV_vdpau_interop
  5216 typedef GLintptr GLvdpauSurfaceNV;
  5217 #endif
  5218 
  5219 #ifndef GL_VERSION_1_2
  5220 #define GL_VERSION_1_2 1
  5221 #ifdef GL_GLEXT_PROTOTYPES
  5222 GLAPI void APIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  5223 GLAPI void APIENTRY glBlendEquation (GLenum mode);
  5224 GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
  5225 GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  5226 GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
  5227 GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  5228 #endif /* GL_GLEXT_PROTOTYPES */
  5229 typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  5230 typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
  5231 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
  5232 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);
  5233 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);
  5234 typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  5235 #endif
  5236 
  5237 #ifndef GL_VERSION_1_2_DEPRECATED
  5238 #define GL_VERSION_1_2_DEPRECATED 1
  5239 #ifdef GL_GLEXT_PROTOTYPES
  5240 GLAPI void APIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
  5241 GLAPI void APIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
  5242 GLAPI void APIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
  5243 GLAPI void APIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  5244 GLAPI void APIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *table);
  5245 GLAPI void APIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
  5246 GLAPI void APIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
  5247 GLAPI void APIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
  5248 GLAPI void APIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
  5249 GLAPI void APIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
  5250 GLAPI void APIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
  5251 GLAPI void APIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
  5252 GLAPI void APIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
  5253 GLAPI void APIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
  5254 GLAPI void APIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
  5255 GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  5256 GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
  5257 GLAPI void APIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, GLvoid *image);
  5258 GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
  5259 GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
  5260 GLAPI void APIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
  5261 GLAPI void APIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
  5262 GLAPI void APIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
  5263 GLAPI void APIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
  5264 GLAPI void APIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
  5265 GLAPI void APIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
  5266 GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
  5267 GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
  5268 GLAPI void APIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
  5269 GLAPI void APIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
  5270 GLAPI void APIENTRY glResetHistogram (GLenum target);
  5271 GLAPI void APIENTRY glResetMinmax (GLenum target);
  5272 #endif /* GL_GLEXT_PROTOTYPES */
  5273 typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
  5274 typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
  5275 typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
  5276 typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  5277 typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
  5278 typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  5279 typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  5280 typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
  5281 typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
  5282 typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
  5283 typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
  5284 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
  5285 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
  5286 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
  5287 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
  5288 typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  5289 typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
  5290 typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
  5291 typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  5292 typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  5293 typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
  5294 typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
  5295 typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
  5296 typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  5297 typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  5298 typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
  5299 typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  5300 typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  5301 typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
  5302 typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
  5303 typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
  5304 typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
  5305 #endif
  5306 
  5307 #ifndef GL_VERSION_1_3
  5308 #define GL_VERSION_1_3 1
  5309 #ifdef GL_GLEXT_PROTOTYPES
  5310 GLAPI void APIENTRY glActiveTexture (GLenum texture);
  5311 GLAPI void APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
  5312 GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  5313 GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  5314 GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  5315 GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  5316 GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  5317 GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  5318 GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, GLvoid *img);
  5319 #endif /* GL_GLEXT_PROTOTYPES */
  5320 typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
  5321 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
  5322 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  5323 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  5324 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  5325 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);
  5326 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  5327 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  5328 typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
  5329 #endif
  5330 
  5331 #ifndef GL_VERSION_1_3_DEPRECATED
  5332 #define GL_VERSION_1_3_DEPRECATED 1
  5333 #ifdef GL_GLEXT_PROTOTYPES
  5334 GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
  5335 GLAPI void APIENTRY glMultiTexCoord1d (GLenum target, GLdouble s);
  5336 GLAPI void APIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
  5337 GLAPI void APIENTRY glMultiTexCoord1f (GLenum target, GLfloat s);
  5338 GLAPI void APIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
  5339 GLAPI void APIENTRY glMultiTexCoord1i (GLenum target, GLint s);
  5340 GLAPI void APIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
  5341 GLAPI void APIENTRY glMultiTexCoord1s (GLenum target, GLshort s);
  5342 GLAPI void APIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
  5343 GLAPI void APIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
  5344 GLAPI void APIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
  5345 GLAPI void APIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
  5346 GLAPI void APIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
  5347 GLAPI void APIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
  5348 GLAPI void APIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
  5349 GLAPI void APIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
  5350 GLAPI void APIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
  5351 GLAPI void APIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
  5352 GLAPI void APIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
  5353 GLAPI void APIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
  5354 GLAPI void APIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
  5355 GLAPI void APIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
  5356 GLAPI void APIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
  5357 GLAPI void APIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
  5358 GLAPI void APIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
  5359 GLAPI void APIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  5360 GLAPI void APIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
  5361 GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  5362 GLAPI void APIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
  5363 GLAPI void APIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
  5364 GLAPI void APIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
  5365 GLAPI void APIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  5366 GLAPI void APIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
  5367 GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *m);
  5368 GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *m);
  5369 GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *m);
  5370 GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *m);
  5371 #endif /* GL_GLEXT_PROTOTYPES */
  5372 typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
  5373 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
  5374 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
  5375 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
  5376 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
  5377 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
  5378 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
  5379 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
  5380 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
  5381 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
  5382 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
  5383 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
  5384 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
  5385 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
  5386 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
  5387 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
  5388 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
  5389 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
  5390 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
  5391 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
  5392 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
  5393 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
  5394 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
  5395 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
  5396 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
  5397 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  5398 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
  5399 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  5400 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
  5401 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
  5402 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
  5403 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  5404 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
  5405 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
  5406 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
  5407 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
  5408 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
  5409 #endif
  5410 
  5411 #ifndef GL_VERSION_1_4
  5412 #define GL_VERSION_1_4 1
  5413 #ifdef GL_GLEXT_PROTOTYPES
  5414 GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  5415 GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
  5416 GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
  5417 GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
  5418 GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
  5419 GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
  5420 GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
  5421 #endif /* GL_GLEXT_PROTOTYPES */
  5422 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  5423 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
  5424 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
  5425 typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
  5426 typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
  5427 typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
  5428 typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
  5429 #endif
  5430 
  5431 #ifndef GL_VERSION_1_4_DEPRECATED
  5432 #define GL_VERSION_1_4_DEPRECATED 1
  5433 #ifdef GL_GLEXT_PROTOTYPES
  5434 GLAPI void APIENTRY glFogCoordf (GLfloat coord);
  5435 GLAPI void APIENTRY glFogCoordfv (const GLfloat *coord);
  5436 GLAPI void APIENTRY glFogCoordd (GLdouble coord);
  5437 GLAPI void APIENTRY glFogCoorddv (const GLdouble *coord);
  5438 GLAPI void APIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
  5439 GLAPI void APIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
  5440 GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *v);
  5441 GLAPI void APIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
  5442 GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *v);
  5443 GLAPI void APIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
  5444 GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *v);
  5445 GLAPI void APIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue);
  5446 GLAPI void APIENTRY glSecondaryColor3iv (const GLint *v);
  5447 GLAPI void APIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
  5448 GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *v);
  5449 GLAPI void APIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
  5450 GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *v);
  5451 GLAPI void APIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
  5452 GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *v);
  5453 GLAPI void APIENTRY glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
  5454 GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *v);
  5455 GLAPI void APIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  5456 GLAPI void APIENTRY glWindowPos2d (GLdouble x, GLdouble y);
  5457 GLAPI void APIENTRY glWindowPos2dv (const GLdouble *v);
  5458 GLAPI void APIENTRY glWindowPos2f (GLfloat x, GLfloat y);
  5459 GLAPI void APIENTRY glWindowPos2fv (const GLfloat *v);
  5460 GLAPI void APIENTRY glWindowPos2i (GLint x, GLint y);
  5461 GLAPI void APIENTRY glWindowPos2iv (const GLint *v);
  5462 GLAPI void APIENTRY glWindowPos2s (GLshort x, GLshort y);
  5463 GLAPI void APIENTRY glWindowPos2sv (const GLshort *v);
  5464 GLAPI void APIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
  5465 GLAPI void APIENTRY glWindowPos3dv (const GLdouble *v);
  5466 GLAPI void APIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
  5467 GLAPI void APIENTRY glWindowPos3fv (const GLfloat *v);
  5468 GLAPI void APIENTRY glWindowPos3i (GLint x, GLint y, GLint z);
  5469 GLAPI void APIENTRY glWindowPos3iv (const GLint *v);
  5470 GLAPI void APIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z);
  5471 GLAPI void APIENTRY glWindowPos3sv (const GLshort *v);
  5472 #endif /* GL_GLEXT_PROTOTYPES */
  5473 typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
  5474 typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
  5475 typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
  5476 typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
  5477 typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer);
  5478 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
  5479 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
  5480 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
  5481 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
  5482 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
  5483 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
  5484 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
  5485 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
  5486 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
  5487 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
  5488 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
  5489 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
  5490 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
  5491 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
  5492 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
  5493 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
  5494 typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  5495 typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
  5496 typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
  5497 typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
  5498 typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
  5499 typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
  5500 typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v);
  5501 typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
  5502 typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
  5503 typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
  5504 typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
  5505 typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
  5506 typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
  5507 typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
  5508 typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v);
  5509 typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
  5510 typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
  5511 #endif
  5512 
  5513 #ifndef GL_VERSION_1_5
  5514 #define GL_VERSION_1_5 1
  5515 #ifdef GL_GLEXT_PROTOTYPES
  5516 GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
  5517 GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
  5518 GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
  5519 GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
  5520 GLAPI void APIENTRY glEndQuery (GLenum target);
  5521 GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
  5522 GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
  5523 GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
  5524 GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
  5525 GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
  5526 GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
  5527 GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
  5528 GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
  5529 GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
  5530 GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
  5531 GLAPI GLvoid* APIENTRY glMapBuffer (GLenum target, GLenum access);
  5532 GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
  5533 GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
  5534 GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, GLvoid* *params);
  5535 #endif /* GL_GLEXT_PROTOTYPES */
  5536 typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
  5537 typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
  5538 typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
  5539 typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
  5540 typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
  5541 typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
  5542 typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
  5543 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
  5544 typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
  5545 typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
  5546 typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
  5547 typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
  5548 typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
  5549 typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
  5550 typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
  5551 typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
  5552 typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
  5553 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  5554 typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
  5555 #endif
  5556 
  5557 #ifndef GL_VERSION_2_0
  5558 #define GL_VERSION_2_0 1
  5559 #ifdef GL_GLEXT_PROTOTYPES
  5560 GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
  5561 GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
  5562 GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
  5563 GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
  5564 GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
  5565 GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
  5566 GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
  5567 GLAPI void APIENTRY glCompileShader (GLuint shader);
  5568 GLAPI GLuint APIENTRY glCreateProgram (void);
  5569 GLAPI GLuint APIENTRY glCreateShader (GLenum type);
  5570 GLAPI void APIENTRY glDeleteProgram (GLuint program);
  5571 GLAPI void APIENTRY glDeleteShader (GLuint shader);
  5572 GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
  5573 GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
  5574 GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
  5575 GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  5576 GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  5577 GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
  5578 GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
  5579 GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
  5580 GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  5581 GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
  5582 GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  5583 GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
  5584 GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
  5585 GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
  5586 GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
  5587 GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
  5588 GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
  5589 GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
  5590 GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid* *pointer);
  5591 GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
  5592 GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
  5593 GLAPI void APIENTRY glLinkProgram (GLuint program);
  5594 GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
  5595 GLAPI void APIENTRY glUseProgram (GLuint program);
  5596 GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
  5597 GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
  5598 GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  5599 GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  5600 GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
  5601 GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
  5602 GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
  5603 GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  5604 GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
  5605 GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
  5606 GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
  5607 GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
  5608 GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
  5609 GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
  5610 GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
  5611 GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
  5612 GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5613 GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5614 GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5615 GLAPI void APIENTRY glValidateProgram (GLuint program);
  5616 GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
  5617 GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
  5618 GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
  5619 GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
  5620 GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
  5621 GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
  5622 GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
  5623 GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
  5624 GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
  5625 GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
  5626 GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
  5627 GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
  5628 GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  5629 GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
  5630 GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
  5631 GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
  5632 GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
  5633 GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
  5634 GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
  5635 GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
  5636 GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
  5637 GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
  5638 GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
  5639 GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
  5640 GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
  5641 GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
  5642 GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  5643 GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
  5644 GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  5645 GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
  5646 GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
  5647 GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
  5648 GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
  5649 GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
  5650 GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
  5651 GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
  5652 GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
  5653 #endif /* GL_GLEXT_PROTOTYPES */
  5654 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
  5655 typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
  5656 typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
  5657 typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
  5658 typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
  5659 typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
  5660 typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
  5661 typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
  5662 typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
  5663 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
  5664 typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
  5665 typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
  5666 typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
  5667 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
  5668 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
  5669 typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  5670 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  5671 typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
  5672 typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
  5673 typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
  5674 typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  5675 typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
  5676 typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  5677 typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
  5678 typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
  5679 typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
  5680 typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
  5681 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
  5682 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
  5683 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
  5684 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
  5685 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
  5686 typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
  5687 typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
  5688 typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
  5689 typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
  5690 typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
  5691 typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
  5692 typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  5693 typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  5694 typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
  5695 typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
  5696 typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
  5697 typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  5698 typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
  5699 typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
  5700 typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
  5701 typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
  5702 typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
  5703 typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
  5704 typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
  5705 typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
  5706 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5707 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5708 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5709 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
  5710 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
  5711 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
  5712 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
  5713 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
  5714 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
  5715 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
  5716 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
  5717 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
  5718 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
  5719 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
  5720 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
  5721 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
  5722 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  5723 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
  5724 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
  5725 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
  5726 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
  5727 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
  5728 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
  5729 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
  5730 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
  5731 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
  5732 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
  5733 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
  5734 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
  5735 typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
  5736 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  5737 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
  5738 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  5739 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
  5740 typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
  5741 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
  5742 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
  5743 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
  5744 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
  5745 typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
  5746 typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
  5747 #endif
  5748 
  5749 #ifndef GL_VERSION_2_1
  5750 #define GL_VERSION_2_1 1
  5751 #ifdef GL_GLEXT_PROTOTYPES
  5752 GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5753 GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5754 GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5755 GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5756 GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5757 GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5758 #endif /* GL_GLEXT_PROTOTYPES */
  5759 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5760 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5761 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5762 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5763 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5764 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  5765 #endif
  5766 
  5767 #ifndef GL_VERSION_3_0
  5768 #define GL_VERSION_3_0 1
  5769 /* OpenGL 3.0 also reuses entry points from these extensions: */
  5770 /* ARB_framebuffer_object */
  5771 /* ARB_map_buffer_range */
  5772 /* ARB_vertex_array_object */
  5773 #ifdef GL_GLEXT_PROTOTYPES
  5774 GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  5775 GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
  5776 GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
  5777 GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
  5778 GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
  5779 GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
  5780 GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
  5781 GLAPI void APIENTRY glEndTransformFeedback (void);
  5782 GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  5783 GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
  5784 GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
  5785 GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  5786 GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
  5787 GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
  5788 GLAPI void APIENTRY glEndConditionalRender (void);
  5789 GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  5790 GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
  5791 GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
  5792 GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
  5793 GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
  5794 GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
  5795 GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
  5796 GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
  5797 GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
  5798 GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
  5799 GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  5800 GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
  5801 GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
  5802 GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
  5803 GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
  5804 GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
  5805 GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
  5806 GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
  5807 GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
  5808 GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
  5809 GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
  5810 GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
  5811 GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
  5812 GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
  5813 GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
  5814 GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
  5815 GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
  5816 GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
  5817 GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
  5818 GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  5819 GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
  5820 GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
  5821 GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
  5822 GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
  5823 GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
  5824 GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
  5825 GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
  5826 GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
  5827 GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
  5828 GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
  5829 GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
  5830 GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  5831 GLAPI const GLubyte * APIENTRY glGetStringi (GLenum name, GLuint index);
  5832 #endif /* GL_GLEXT_PROTOTYPES */
  5833 typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  5834 typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
  5835 typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
  5836 typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
  5837 typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
  5838 typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
  5839 typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
  5840 typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
  5841 typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  5842 typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
  5843 typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
  5844 typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  5845 typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
  5846 typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
  5847 typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
  5848 typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  5849 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
  5850 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
  5851 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
  5852 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
  5853 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
  5854 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
  5855 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
  5856 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
  5857 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
  5858 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  5859 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
  5860 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
  5861 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
  5862 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
  5863 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
  5864 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
  5865 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
  5866 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
  5867 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
  5868 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
  5869 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
  5870 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
  5871 typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
  5872 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
  5873 typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
  5874 typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
  5875 typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
  5876 typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
  5877 typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  5878 typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  5879 typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  5880 typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  5881 typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  5882 typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
  5883 typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
  5884 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
  5885 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
  5886 typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
  5887 typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
  5888 typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
  5889 typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  5890 typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
  5891 #endif
  5892 
  5893 #ifndef GL_VERSION_3_1
  5894 #define GL_VERSION_3_1 1
  5895 /* OpenGL 3.1 also reuses entry points from these extensions: */
  5896 /* ARB_copy_buffer */
  5897 /* ARB_uniform_buffer_object */
  5898 #ifdef GL_GLEXT_PROTOTYPES
  5899 GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  5900 GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
  5901 GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
  5902 GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
  5903 #endif /* GL_GLEXT_PROTOTYPES */
  5904 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  5905 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
  5906 typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
  5907 typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
  5908 #endif
  5909 
  5910 #ifndef GL_VERSION_3_2
  5911 #define GL_VERSION_3_2 1
  5912 /* OpenGL 3.2 also reuses entry points from these extensions: */
  5913 /* ARB_draw_elements_base_vertex */
  5914 /* ARB_provoking_vertex */
  5915 /* ARB_sync */
  5916 /* ARB_texture_multisample */
  5917 #ifdef GL_GLEXT_PROTOTYPES
  5918 GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
  5919 GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
  5920 GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
  5921 #endif /* GL_GLEXT_PROTOTYPES */
  5922 typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
  5923 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
  5924 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
  5925 #endif
  5926 
  5927 #ifndef GL_VERSION_3_3
  5928 #define GL_VERSION_3_3 1
  5929 /* OpenGL 3.3 also reuses entry points from these extensions: */
  5930 /* ARB_blend_func_extended */
  5931 /* ARB_sampler_objects */
  5932 /* ARB_explicit_attrib_location, but it has none */
  5933 /* ARB_occlusion_query2 (no entry points) */
  5934 /* ARB_shader_bit_encoding (no entry points) */
  5935 /* ARB_texture_rgb10_a2ui (no entry points) */
  5936 /* ARB_texture_swizzle (no entry points) */
  5937 /* ARB_timer_query */
  5938 /* ARB_vertex_type_2_10_10_10_rev */
  5939 #ifdef GL_GLEXT_PROTOTYPES
  5940 GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
  5941 #endif /* GL_GLEXT_PROTOTYPES */
  5942 typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
  5943 #endif
  5944 
  5945 #ifndef GL_VERSION_4_0
  5946 #define GL_VERSION_4_0 1
  5947 /* OpenGL 4.0 also reuses entry points from these extensions: */
  5948 /* ARB_texture_query_lod (no entry points) */
  5949 /* ARB_draw_indirect */
  5950 /* ARB_gpu_shader5 (no entry points) */
  5951 /* ARB_gpu_shader_fp64 */
  5952 /* ARB_shader_subroutine */
  5953 /* ARB_tessellation_shader */
  5954 /* ARB_texture_buffer_object_rgb32 (no entry points) */
  5955 /* ARB_texture_cube_map_array (no entry points) */
  5956 /* ARB_texture_gather (no entry points) */
  5957 /* ARB_transform_feedback2 */
  5958 /* ARB_transform_feedback3 */
  5959 #ifdef GL_GLEXT_PROTOTYPES
  5960 GLAPI void APIENTRY glMinSampleShading (GLclampf value);
  5961 GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
  5962 GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  5963 GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
  5964 GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  5965 #endif /* GL_GLEXT_PROTOTYPES */
  5966 typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLclampf value);
  5967 typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
  5968 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  5969 typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
  5970 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  5971 #endif
  5972 
  5973 #ifndef GL_VERSION_4_1
  5974 #define GL_VERSION_4_1 1
  5975 /* OpenGL 4.1 also reuses entry points from these extensions: */
  5976 /* ARB_ES2_compatibility */
  5977 /* ARB_get_program_binary */
  5978 /* ARB_separate_shader_objects */
  5979 /* ARB_shader_precision (no entry points) */
  5980 /* ARB_vertex_attrib_64bit */
  5981 /* ARB_viewport_array */
  5982 #endif
  5983 
  5984 #ifndef GL_ARB_multitexture
  5985 #define GL_ARB_multitexture 1
  5986 #ifdef GL_GLEXT_PROTOTYPES
  5987 GLAPI void APIENTRY glActiveTextureARB (GLenum texture);
  5988 GLAPI void APIENTRY glClientActiveTextureARB (GLenum texture);
  5989 GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum target, GLdouble s);
  5990 GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum target, const GLdouble *v);
  5991 GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum target, GLfloat s);
  5992 GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum target, const GLfloat *v);
  5993 GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum target, GLint s);
  5994 GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum target, const GLint *v);
  5995 GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum target, GLshort s);
  5996 GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum target, const GLshort *v);
  5997 GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum target, GLdouble s, GLdouble t);
  5998 GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum target, const GLdouble *v);
  5999 GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t);
  6000 GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum target, const GLfloat *v);
  6001 GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum target, GLint s, GLint t);
  6002 GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum target, const GLint *v);
  6003 GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum target, GLshort s, GLshort t);
  6004 GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum target, const GLshort *v);
  6005 GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r);
  6006 GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum target, const GLdouble *v);
  6007 GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r);
  6008 GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum target, const GLfloat *v);
  6009 GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum target, GLint s, GLint t, GLint r);
  6010 GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum target, const GLint *v);
  6011 GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum target, GLshort s, GLshort t, GLshort r);
  6012 GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum target, const GLshort *v);
  6013 GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  6014 GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum target, const GLdouble *v);
  6015 GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  6016 GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum target, const GLfloat *v);
  6017 GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum target, GLint s, GLint t, GLint r, GLint q);
  6018 GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum target, const GLint *v);
  6019 GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  6020 GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum target, const GLshort *v);
  6021 #endif /* GL_GLEXT_PROTOTYPES */
  6022 typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
  6023 typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
  6024 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
  6025 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
  6026 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
  6027 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
  6028 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
  6029 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
  6030 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
  6031 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
  6032 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
  6033 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
  6034 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
  6035 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
  6036 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
  6037 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
  6038 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
  6039 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
  6040 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
  6041 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
  6042 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
  6043 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
  6044 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
  6045 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
  6046 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
  6047 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
  6048 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  6049 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
  6050 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  6051 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
  6052 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
  6053 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
  6054 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  6055 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
  6056 #endif
  6057 
  6058 #ifndef GL_ARB_transpose_matrix
  6059 #define GL_ARB_transpose_matrix 1
  6060 #ifdef GL_GLEXT_PROTOTYPES
  6061 GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *m);
  6062 GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *m);
  6063 GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *m);
  6064 GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *m);
  6065 #endif /* GL_GLEXT_PROTOTYPES */
  6066 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
  6067 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
  6068 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
  6069 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
  6070 #endif
  6071 
  6072 #ifndef GL_ARB_multisample
  6073 #define GL_ARB_multisample 1
  6074 #ifdef GL_GLEXT_PROTOTYPES
  6075 GLAPI void APIENTRY glSampleCoverageARB (GLclampf value, GLboolean invert);
  6076 #endif /* GL_GLEXT_PROTOTYPES */
  6077 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value, GLboolean invert);
  6078 #endif
  6079 
  6080 #ifndef GL_ARB_texture_env_add
  6081 #define GL_ARB_texture_env_add 1
  6082 #endif
  6083 
  6084 #ifndef GL_ARB_texture_cube_map
  6085 #define GL_ARB_texture_cube_map 1
  6086 #endif
  6087 
  6088 #ifndef GL_ARB_texture_compression
  6089 #define GL_ARB_texture_compression 1
  6090 #ifdef GL_GLEXT_PROTOTYPES
  6091 GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  6092 GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  6093 GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  6094 GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  6095 GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  6096 GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  6097 GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum target, GLint level, GLvoid *img);
  6098 #endif /* GL_GLEXT_PROTOTYPES */
  6099 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  6100 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  6101 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  6102 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  6103 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  6104 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  6105 typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, GLvoid *img);
  6106 #endif
  6107 
  6108 #ifndef GL_ARB_texture_border_clamp
  6109 #define GL_ARB_texture_border_clamp 1
  6110 #endif
  6111 
  6112 #ifndef GL_ARB_point_parameters
  6113 #define GL_ARB_point_parameters 1
  6114 #ifdef GL_GLEXT_PROTOTYPES
  6115 GLAPI void APIENTRY glPointParameterfARB (GLenum pname, GLfloat param);
  6116 GLAPI void APIENTRY glPointParameterfvARB (GLenum pname, const GLfloat *params);
  6117 #endif /* GL_GLEXT_PROTOTYPES */
  6118 typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
  6119 typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params);
  6120 #endif
  6121 
  6122 #ifndef GL_ARB_vertex_blend
  6123 #define GL_ARB_vertex_blend 1
  6124 #ifdef GL_GLEXT_PROTOTYPES
  6125 GLAPI void APIENTRY glWeightbvARB (GLint size, const GLbyte *weights);
  6126 GLAPI void APIENTRY glWeightsvARB (GLint size, const GLshort *weights);
  6127 GLAPI void APIENTRY glWeightivARB (GLint size, const GLint *weights);
  6128 GLAPI void APIENTRY glWeightfvARB (GLint size, const GLfloat *weights);
  6129 GLAPI void APIENTRY glWeightdvARB (GLint size, const GLdouble *weights);
  6130 GLAPI void APIENTRY glWeightubvARB (GLint size, const GLubyte *weights);
  6131 GLAPI void APIENTRY glWeightusvARB (GLint size, const GLushort *weights);
  6132 GLAPI void APIENTRY glWeightuivARB (GLint size, const GLuint *weights);
  6133 GLAPI void APIENTRY glWeightPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  6134 GLAPI void APIENTRY glVertexBlendARB (GLint count);
  6135 #endif /* GL_GLEXT_PROTOTYPES */
  6136 typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights);
  6137 typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights);
  6138 typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights);
  6139 typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights);
  6140 typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights);
  6141 typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights);
  6142 typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights);
  6143 typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights);
  6144 typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  6145 typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count);
  6146 #endif
  6147 
  6148 #ifndef GL_ARB_matrix_palette
  6149 #define GL_ARB_matrix_palette 1
  6150 #ifdef GL_GLEXT_PROTOTYPES
  6151 GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint index);
  6152 GLAPI void APIENTRY glMatrixIndexubvARB (GLint size, const GLubyte *indices);
  6153 GLAPI void APIENTRY glMatrixIndexusvARB (GLint size, const GLushort *indices);
  6154 GLAPI void APIENTRY glMatrixIndexuivARB (GLint size, const GLuint *indices);
  6155 GLAPI void APIENTRY glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  6156 #endif /* GL_GLEXT_PROTOTYPES */
  6157 typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
  6158 typedef void (APIEN