include/SDL_opengl.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 28 May 2006 13:04:16 +0000
branchSDL-1.3
changeset 1662 782fd950bd46
parent 1619 e79e4c5e531b
child 1663 11775724e3fe
permissions -rw-r--r--
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.

WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.

The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce

The headers are being converted to automatically generate doxygen documentation.
     1 /*
     2     SDL - Simple DirectMedia Layer
     3     Copyright (C) 1997-2006 Sam Lantinga
     4 
     5     This library is free software; you can redistribute it and/or
     6     modify it under the terms of the GNU Lesser General Public
     7     License as published by the Free Software Foundation; either
     8     version 2.1 of the License, or (at your option) any later version.
     9 
    10     This library is distributed in the hope that it will be useful,
    11     but WITHOUT ANY WARRANTY; without even the implied warranty of
    12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    13     Lesser General Public License for more details.
    14 
    15     You should have received a copy of the GNU Lesser General Public
    16     License along with this library; if not, write to the Free Software
    17     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    18 
    19     Sam Lantinga
    20     slouken@libsdl.org
    21 */
    22 
    23 /**
    24  * \file SDL_opengl.h
    25  *
    26  * This is a simple file to encapsulate the OpenGL API headers
    27  */
    28 
    29 #include "SDL_config.h"
    30 
    31 #ifdef __WIN32__
    32 #define WIN32_LEAN_AND_MEAN
    33 #ifndef NOMINMAX
    34 #define NOMINMAX                /* Don't defined min() and max() */
    35 #endif
    36 #include <windows.h>
    37 #endif
    38 #ifndef NO_SDL_GLEXT
    39 #define __glext_h_              /* Don't let gl.h include glext.h */
    40 #endif
    41 #if defined(__MACOSX__)
    42 #include <OpenGL/gl.h>          /* Header File For The OpenGL Library */
    43 #include <OpenGL/glu.h>         /* Header File For The GLU Library */
    44 #elif defined(__MACOS__)
    45 #include <gl.h>                 /* Header File For The OpenGL Library */
    46 #include <glu.h>                /* Header File For The GLU Library */
    47 #else
    48 #include <GL/gl.h>              /* Header File For The OpenGL Library */
    49 #include <GL/glu.h>             /* Header File For The GLU Library */
    50 #endif
    51 #ifndef NO_SDL_GLEXT
    52 #undef __glext_h_
    53 #endif
    54 
    55 /* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials.
    56    It is included here because glext.h is not available on some systems.
    57    If you don't want this version included, simply define "NO_SDL_GLEXT"
    58  */
    59 #ifndef NO_SDL_GLEXT
    60 #if !defined(__glext_h_) && !defined(GL_GLEXT_LEGACY)
    61 #define __glext_h_
    62 
    63 #ifdef __cplusplus
    64 extern "C"
    65 {
    66 #endif
    67 
    68 /*
    69 ** License Applicability. Except to the extent portions of this file are
    70 ** made subject to an alternative license as permitted in the SGI Free
    71 ** Software License B, Version 1.1 (the "License"), the contents of this
    72 ** file are subject only to the provisions of the License. You may not use
    73 ** this file except in compliance with the License. You may obtain a copy
    74 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
    75 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
    76 ** 
    77 ** http://oss.sgi.com/projects/FreeB
    78 ** 
    79 ** Note that, as provided in the License, the Software is distributed on an
    80 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
    81 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
    82 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
    83 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
    84 ** 
    85 ** Original Code. The Original Code is: OpenGL Sample Implementation,
    86 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
    87 ** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
    88 ** Copyright in any portions created by third parties is as indicated
    89 ** elsewhere herein. All Rights Reserved.
    90 ** 
    91 ** Additional Notice Provisions: This software was created using the
    92 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
    93 ** not been independently verified as being compliant with the OpenGL(R)
    94 ** version 1.2.1 Specification.
    95 */
    96 
    97 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
    98 #define WIN32_LEAN_AND_MEAN 1
    99 #include <windows.h>
   100 #endif
   101 
   102 #ifndef APIENTRY
   103 #define APIENTRY
   104 #endif
   105 #ifndef APIENTRYP
   106 #define APIENTRYP APIENTRY *
   107 #endif
   108 #ifndef GLAPI
   109 #define GLAPI extern
   110 #endif
   111 
   112 /*************************************************************/
   113 
   114 /* Header file version number, required by OpenGL ABI for Linux */
   115 /* glext.h last updated 2005/06/20 */
   116 /* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
   117 #define GL_GLEXT_VERSION 29
   118 
   119 #ifndef GL_VERSION_1_2
   120 #define GL_UNSIGNED_BYTE_3_3_2            0x8032
   121 #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
   122 #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
   123 #define GL_UNSIGNED_INT_8_8_8_8           0x8035
   124 #define GL_UNSIGNED_INT_10_10_10_2        0x8036
   125 #define GL_RESCALE_NORMAL                 0x803A
   126 #define GL_TEXTURE_BINDING_3D             0x806A
   127 #define GL_PACK_SKIP_IMAGES               0x806B
   128 #define GL_PACK_IMAGE_HEIGHT              0x806C
   129 #define GL_UNPACK_SKIP_IMAGES             0x806D
   130 #define GL_UNPACK_IMAGE_HEIGHT            0x806E
   131 #define GL_TEXTURE_3D                     0x806F
   132 #define GL_PROXY_TEXTURE_3D               0x8070
   133 #define GL_TEXTURE_DEPTH                  0x8071
   134 #define GL_TEXTURE_WRAP_R                 0x8072
   135 #define GL_MAX_3D_TEXTURE_SIZE            0x8073
   136 #define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
   137 #define GL_UNSIGNED_SHORT_5_6_5           0x8363
   138 #define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
   139 #define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
   140 #define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
   141 #define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
   142 #define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
   143 #define GL_BGR                            0x80E0
   144 #define GL_BGRA                           0x80E1
   145 #define GL_MAX_ELEMENTS_VERTICES          0x80E8
   146 #define GL_MAX_ELEMENTS_INDICES           0x80E9
   147 #define GL_CLAMP_TO_EDGE                  0x812F
   148 #define GL_TEXTURE_MIN_LOD                0x813A
   149 #define GL_TEXTURE_MAX_LOD                0x813B
   150 #define GL_TEXTURE_BASE_LEVEL             0x813C
   151 #define GL_TEXTURE_MAX_LEVEL              0x813D
   152 #define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
   153 #define GL_SINGLE_COLOR                   0x81F9
   154 #define GL_SEPARATE_SPECULAR_COLOR        0x81FA
   155 #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
   156 #define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
   157 #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
   158 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
   159 #define GL_ALIASED_POINT_SIZE_RANGE       0x846D
   160 #define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
   161 #endif
   162 
   163 #ifndef GL_ARB_imaging
   164 #define GL_CONSTANT_COLOR                 0x8001
   165 #define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
   166 #define GL_CONSTANT_ALPHA                 0x8003
   167 #define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
   168 #define GL_BLEND_COLOR                    0x8005
   169 #define GL_FUNC_ADD                       0x8006
   170 #define GL_MIN                            0x8007
   171 #define GL_MAX                            0x8008
   172 #define GL_BLEND_EQUATION                 0x8009
   173 #define GL_FUNC_SUBTRACT                  0x800A
   174 #define GL_FUNC_REVERSE_SUBTRACT          0x800B
   175 #define GL_CONVOLUTION_1D                 0x8010
   176 #define GL_CONVOLUTION_2D                 0x8011
   177 #define GL_SEPARABLE_2D                   0x8012
   178 #define GL_CONVOLUTION_BORDER_MODE        0x8013
   179 #define GL_CONVOLUTION_FILTER_SCALE       0x8014
   180 #define GL_CONVOLUTION_FILTER_BIAS        0x8015
   181 #define GL_REDUCE                         0x8016
   182 #define GL_CONVOLUTION_FORMAT             0x8017
   183 #define GL_CONVOLUTION_WIDTH              0x8018
   184 #define GL_CONVOLUTION_HEIGHT             0x8019
   185 #define GL_MAX_CONVOLUTION_WIDTH          0x801A
   186 #define GL_MAX_CONVOLUTION_HEIGHT         0x801B
   187 #define GL_POST_CONVOLUTION_RED_SCALE     0x801C
   188 #define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
   189 #define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
   190 #define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
   191 #define GL_POST_CONVOLUTION_RED_BIAS      0x8020
   192 #define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
   193 #define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
   194 #define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
   195 #define GL_HISTOGRAM                      0x8024
   196 #define GL_PROXY_HISTOGRAM                0x8025
   197 #define GL_HISTOGRAM_WIDTH                0x8026
   198 #define GL_HISTOGRAM_FORMAT               0x8027
   199 #define GL_HISTOGRAM_RED_SIZE             0x8028
   200 #define GL_HISTOGRAM_GREEN_SIZE           0x8029
   201 #define GL_HISTOGRAM_BLUE_SIZE            0x802A
   202 #define GL_HISTOGRAM_ALPHA_SIZE           0x802B
   203 #define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
   204 #define GL_HISTOGRAM_SINK                 0x802D
   205 #define GL_MINMAX                         0x802E
   206 #define GL_MINMAX_FORMAT                  0x802F
   207 #define GL_MINMAX_SINK                    0x8030
   208 #define GL_TABLE_TOO_LARGE                0x8031
   209 #define GL_COLOR_MATRIX                   0x80B1
   210 #define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
   211 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
   212 #define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
   213 #define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
   214 #define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
   215 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
   216 #define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
   217 #define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
   218 #define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
   219 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
   220 #define GL_COLOR_TABLE                    0x80D0
   221 #define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
   222 #define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
   223 #define GL_PROXY_COLOR_TABLE              0x80D3
   224 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
   225 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
   226 #define GL_COLOR_TABLE_SCALE              0x80D6
   227 #define GL_COLOR_TABLE_BIAS               0x80D7
   228 #define GL_COLOR_TABLE_FORMAT             0x80D8
   229 #define GL_COLOR_TABLE_WIDTH              0x80D9
   230 #define GL_COLOR_TABLE_RED_SIZE           0x80DA
   231 #define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
   232 #define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
   233 #define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
   234 #define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
   235 #define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
   236 #define GL_CONSTANT_BORDER                0x8151
   237 #define GL_REPLICATE_BORDER               0x8153
   238 #define GL_CONVOLUTION_BORDER_COLOR       0x8154
   239 #endif
   240 
   241 #ifndef GL_VERSION_1_3
   242 #define GL_TEXTURE0                       0x84C0
   243 #define GL_TEXTURE1                       0x84C1
   244 #define GL_TEXTURE2                       0x84C2
   245 #define GL_TEXTURE3                       0x84C3
   246 #define GL_TEXTURE4                       0x84C4
   247 #define GL_TEXTURE5                       0x84C5
   248 #define GL_TEXTURE6                       0x84C6
   249 #define GL_TEXTURE7                       0x84C7
   250 #define GL_TEXTURE8                       0x84C8
   251 #define GL_TEXTURE9                       0x84C9
   252 #define GL_TEXTURE10                      0x84CA
   253 #define GL_TEXTURE11                      0x84CB
   254 #define GL_TEXTURE12                      0x84CC
   255 #define GL_TEXTURE13                      0x84CD
   256 #define GL_TEXTURE14                      0x84CE
   257 #define GL_TEXTURE15                      0x84CF
   258 #define GL_TEXTURE16                      0x84D0
   259 #define GL_TEXTURE17                      0x84D1
   260 #define GL_TEXTURE18                      0x84D2
   261 #define GL_TEXTURE19                      0x84D3
   262 #define GL_TEXTURE20                      0x84D4
   263 #define GL_TEXTURE21                      0x84D5
   264 #define GL_TEXTURE22                      0x84D6
   265 #define GL_TEXTURE23                      0x84D7
   266 #define GL_TEXTURE24                      0x84D8
   267 #define GL_TEXTURE25                      0x84D9
   268 #define GL_TEXTURE26                      0x84DA
   269 #define GL_TEXTURE27                      0x84DB
   270 #define GL_TEXTURE28                      0x84DC
   271 #define GL_TEXTURE29                      0x84DD
   272 #define GL_TEXTURE30                      0x84DE
   273 #define GL_TEXTURE31                      0x84DF
   274 #define GL_ACTIVE_TEXTURE                 0x84E0
   275 #define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
   276 #define GL_MAX_TEXTURE_UNITS              0x84E2
   277 #define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
   278 #define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
   279 #define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
   280 #define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
   281 #define GL_MULTISAMPLE                    0x809D
   282 #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
   283 #define GL_SAMPLE_ALPHA_TO_ONE            0x809F
   284 #define GL_SAMPLE_COVERAGE                0x80A0
   285 #define GL_SAMPLE_BUFFERS                 0x80A8
   286 #define GL_SAMPLES                        0x80A9
   287 #define GL_SAMPLE_COVERAGE_VALUE          0x80AA
   288 #define GL_SAMPLE_COVERAGE_INVERT         0x80AB
   289 #define GL_MULTISAMPLE_BIT                0x20000000
   290 #define GL_NORMAL_MAP                     0x8511
   291 #define GL_REFLECTION_MAP                 0x8512
   292 #define GL_TEXTURE_CUBE_MAP               0x8513
   293 #define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
   294 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
   295 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
   296 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
   297 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
   298 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
   299 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
   300 #define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
   301 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
   302 #define GL_COMPRESSED_ALPHA               0x84E9
   303 #define GL_COMPRESSED_LUMINANCE           0x84EA
   304 #define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
   305 #define GL_COMPRESSED_INTENSITY           0x84EC
   306 #define GL_COMPRESSED_RGB                 0x84ED
   307 #define GL_COMPRESSED_RGBA                0x84EE
   308 #define GL_TEXTURE_COMPRESSION_HINT       0x84EF
   309 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
   310 #define GL_TEXTURE_COMPRESSED             0x86A1
   311 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
   312 #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
   313 #define GL_CLAMP_TO_BORDER                0x812D
   314 #define GL_COMBINE                        0x8570
   315 #define GL_COMBINE_RGB                    0x8571
   316 #define GL_COMBINE_ALPHA                  0x8572
   317 #define GL_SOURCE0_RGB                    0x8580
   318 #define GL_SOURCE1_RGB                    0x8581
   319 #define GL_SOURCE2_RGB                    0x8582
   320 #define GL_SOURCE0_ALPHA                  0x8588
   321 #define GL_SOURCE1_ALPHA                  0x8589
   322 #define GL_SOURCE2_ALPHA                  0x858A
   323 #define GL_OPERAND0_RGB                   0x8590
   324 #define GL_OPERAND1_RGB                   0x8591
   325 #define GL_OPERAND2_RGB                   0x8592
   326 #define GL_OPERAND0_ALPHA                 0x8598
   327 #define GL_OPERAND1_ALPHA                 0x8599
   328 #define GL_OPERAND2_ALPHA                 0x859A
   329 #define GL_RGB_SCALE                      0x8573
   330 #define GL_ADD_SIGNED                     0x8574
   331 #define GL_INTERPOLATE                    0x8575
   332 #define GL_SUBTRACT                       0x84E7
   333 #define GL_CONSTANT                       0x8576
   334 #define GL_PRIMARY_COLOR                  0x8577
   335 #define GL_PREVIOUS                       0x8578
   336 #define GL_DOT3_RGB                       0x86AE
   337 #define GL_DOT3_RGBA                      0x86AF
   338 #endif
   339 
   340 #ifndef GL_VERSION_1_4
   341 #define GL_BLEND_DST_RGB                  0x80C8
   342 #define GL_BLEND_SRC_RGB                  0x80C9
   343 #define GL_BLEND_DST_ALPHA                0x80CA
   344 #define GL_BLEND_SRC_ALPHA                0x80CB
   345 #define GL_POINT_SIZE_MIN                 0x8126
   346 #define GL_POINT_SIZE_MAX                 0x8127
   347 #define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
   348 #define GL_POINT_DISTANCE_ATTENUATION     0x8129
   349 #define GL_GENERATE_MIPMAP                0x8191
   350 #define GL_GENERATE_MIPMAP_HINT           0x8192
   351 #define GL_DEPTH_COMPONENT16              0x81A5
   352 #define GL_DEPTH_COMPONENT24              0x81A6
   353 #define GL_DEPTH_COMPONENT32              0x81A7
   354 #define GL_MIRRORED_REPEAT                0x8370
   355 #define GL_FOG_COORDINATE_SOURCE          0x8450
   356 #define GL_FOG_COORDINATE                 0x8451
   357 #define GL_FRAGMENT_DEPTH                 0x8452
   358 #define GL_CURRENT_FOG_COORDINATE         0x8453
   359 #define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
   360 #define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
   361 #define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
   362 #define GL_FOG_COORDINATE_ARRAY           0x8457
   363 #define GL_COLOR_SUM                      0x8458
   364 #define GL_CURRENT_SECONDARY_COLOR        0x8459
   365 #define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
   366 #define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
   367 #define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
   368 #define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
   369 #define GL_SECONDARY_COLOR_ARRAY          0x845E
   370 #define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
   371 #define GL_TEXTURE_FILTER_CONTROL         0x8500
   372 #define GL_TEXTURE_LOD_BIAS               0x8501
   373 #define GL_INCR_WRAP                      0x8507
   374 #define GL_DECR_WRAP                      0x8508
   375 #define GL_TEXTURE_DEPTH_SIZE             0x884A
   376 #define GL_DEPTH_TEXTURE_MODE             0x884B
   377 #define GL_TEXTURE_COMPARE_MODE           0x884C
   378 #define GL_TEXTURE_COMPARE_FUNC           0x884D
   379 #define GL_COMPARE_R_TO_TEXTURE           0x884E
   380 #endif
   381 
   382 #ifndef GL_VERSION_1_5
   383 #define GL_BUFFER_SIZE                    0x8764
   384 #define GL_BUFFER_USAGE                   0x8765
   385 #define GL_QUERY_COUNTER_BITS             0x8864
   386 #define GL_CURRENT_QUERY                  0x8865
   387 #define GL_QUERY_RESULT                   0x8866
   388 #define GL_QUERY_RESULT_AVAILABLE         0x8867
   389 #define GL_ARRAY_BUFFER                   0x8892
   390 #define GL_ELEMENT_ARRAY_BUFFER           0x8893
   391 #define GL_ARRAY_BUFFER_BINDING           0x8894
   392 #define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
   393 #define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
   394 #define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
   395 #define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
   396 #define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
   397 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
   398 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
   399 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
   400 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
   401 #define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
   402 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
   403 #define GL_READ_ONLY                      0x88B8
   404 #define GL_WRITE_ONLY                     0x88B9
   405 #define GL_READ_WRITE                     0x88BA
   406 #define GL_BUFFER_ACCESS                  0x88BB
   407 #define GL_BUFFER_MAPPED                  0x88BC
   408 #define GL_BUFFER_MAP_POINTER             0x88BD
   409 #define GL_STREAM_DRAW                    0x88E0
   410 #define GL_STREAM_READ                    0x88E1
   411 #define GL_STREAM_COPY                    0x88E2
   412 #define GL_STATIC_DRAW                    0x88E4
   413 #define GL_STATIC_READ                    0x88E5
   414 #define GL_STATIC_COPY                    0x88E6
   415 #define GL_DYNAMIC_DRAW                   0x88E8
   416 #define GL_DYNAMIC_READ                   0x88E9
   417 #define GL_DYNAMIC_COPY                   0x88EA
   418 #define GL_SAMPLES_PASSED                 0x8914
   419 #define GL_FOG_COORD_SRC                  GL_FOG_COORDINATE_SOURCE
   420 #define GL_FOG_COORD                      GL_FOG_COORDINATE
   421 #define GL_CURRENT_FOG_COORD              GL_CURRENT_FOG_COORDINATE
   422 #define GL_FOG_COORD_ARRAY_TYPE           GL_FOG_COORDINATE_ARRAY_TYPE
   423 #define GL_FOG_COORD_ARRAY_STRIDE         GL_FOG_COORDINATE_ARRAY_STRIDE
   424 #define GL_FOG_COORD_ARRAY_POINTER        GL_FOG_COORDINATE_ARRAY_POINTER
   425 #define GL_FOG_COORD_ARRAY                GL_FOG_COORDINATE_ARRAY
   426 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
   427 #define GL_SRC0_RGB                       GL_SOURCE0_RGB
   428 #define GL_SRC1_RGB                       GL_SOURCE1_RGB
   429 #define GL_SRC2_RGB                       GL_SOURCE2_RGB
   430 #define GL_SRC0_ALPHA                     GL_SOURCE0_ALPHA
   431 #define GL_SRC1_ALPHA                     GL_SOURCE1_ALPHA
   432 #define GL_SRC2_ALPHA                     GL_SOURCE2_ALPHA
   433 #endif
   434 
   435 #ifndef GL_VERSION_2_0
   436 #define GL_BLEND_EQUATION_RGB             GL_BLEND_EQUATION
   437 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
   438 #define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
   439 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
   440 #define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
   441 #define GL_CURRENT_VERTEX_ATTRIB          0x8626
   442 #define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
   443 #define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
   444 #define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
   445 #define GL_STENCIL_BACK_FUNC              0x8800
   446 #define GL_STENCIL_BACK_FAIL              0x8801
   447 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
   448 #define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
   449 #define GL_MAX_DRAW_BUFFERS               0x8824
   450 #define GL_DRAW_BUFFER0                   0x8825
   451 #define GL_DRAW_BUFFER1                   0x8826
   452 #define GL_DRAW_BUFFER2                   0x8827
   453 #define GL_DRAW_BUFFER3                   0x8828
   454 #define GL_DRAW_BUFFER4                   0x8829
   455 #define GL_DRAW_BUFFER5                   0x882A
   456 #define GL_DRAW_BUFFER6                   0x882B
   457 #define GL_DRAW_BUFFER7                   0x882C
   458 #define GL_DRAW_BUFFER8                   0x882D
   459 #define GL_DRAW_BUFFER9                   0x882E
   460 #define GL_DRAW_BUFFER10                  0x882F
   461 #define GL_DRAW_BUFFER11                  0x8830
   462 #define GL_DRAW_BUFFER12                  0x8831
   463 #define GL_DRAW_BUFFER13                  0x8832
   464 #define GL_DRAW_BUFFER14                  0x8833
   465 #define GL_DRAW_BUFFER15                  0x8834
   466 #define GL_BLEND_EQUATION_ALPHA           0x883D
   467 #define GL_POINT_SPRITE                   0x8861
   468 #define GL_COORD_REPLACE                  0x8862
   469 #define GL_MAX_VERTEX_ATTRIBS             0x8869
   470 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
   471 #define GL_MAX_TEXTURE_COORDS             0x8871
   472 #define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
   473 #define GL_FRAGMENT_SHADER                0x8B30
   474 #define GL_VERTEX_SHADER                  0x8B31
   475 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
   476 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
   477 #define GL_MAX_VARYING_FLOATS             0x8B4B
   478 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
   479 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
   480 #define GL_SHADER_TYPE                    0x8B4F
   481 #define GL_FLOAT_VEC2                     0x8B50
   482 #define GL_FLOAT_VEC3                     0x8B51
   483 #define GL_FLOAT_VEC4                     0x8B52
   484 #define GL_INT_VEC2                       0x8B53
   485 #define GL_INT_VEC3                       0x8B54
   486 #define GL_INT_VEC4                       0x8B55
   487 #define GL_BOOL                           0x8B56
   488 #define GL_BOOL_VEC2                      0x8B57
   489 #define GL_BOOL_VEC3                      0x8B58
   490 #define GL_BOOL_VEC4                      0x8B59
   491 #define GL_FLOAT_MAT2                     0x8B5A
   492 #define GL_FLOAT_MAT3                     0x8B5B
   493 #define GL_FLOAT_MAT4                     0x8B5C
   494 #define GL_SAMPLER_1D                     0x8B5D
   495 #define GL_SAMPLER_2D                     0x8B5E
   496 #define GL_SAMPLER_3D                     0x8B5F
   497 #define GL_SAMPLER_CUBE                   0x8B60
   498 #define GL_SAMPLER_1D_SHADOW              0x8B61
   499 #define GL_SAMPLER_2D_SHADOW              0x8B62
   500 #define GL_DELETE_STATUS                  0x8B80
   501 #define GL_COMPILE_STATUS                 0x8B81
   502 #define GL_LINK_STATUS                    0x8B82
   503 #define GL_VALIDATE_STATUS                0x8B83
   504 #define GL_INFO_LOG_LENGTH                0x8B84
   505 #define GL_ATTACHED_SHADERS               0x8B85
   506 #define GL_ACTIVE_UNIFORMS                0x8B86
   507 #define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
   508 #define GL_SHADER_SOURCE_LENGTH           0x8B88
   509 #define GL_ACTIVE_ATTRIBUTES              0x8B89
   510 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
   511 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
   512 #define GL_SHADING_LANGUAGE_VERSION       0x8B8C
   513 #define GL_CURRENT_PROGRAM                0x8B8D
   514 #define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
   515 #define GL_LOWER_LEFT                     0x8CA1
   516 #define GL_UPPER_LEFT                     0x8CA2
   517 #define GL_STENCIL_BACK_REF               0x8CA3
   518 #define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
   519 #define GL_STENCIL_BACK_WRITEMASK         0x8CA5
   520 #endif
   521 
   522 #ifndef GL_ARB_multitexture
   523 #define GL_TEXTURE0_ARB                   0x84C0
   524 #define GL_TEXTURE1_ARB                   0x84C1
   525 #define GL_TEXTURE2_ARB                   0x84C2
   526 #define GL_TEXTURE3_ARB                   0x84C3
   527 #define GL_TEXTURE4_ARB                   0x84C4
   528 #define GL_TEXTURE5_ARB                   0x84C5
   529 #define GL_TEXTURE6_ARB                   0x84C6
   530 #define GL_TEXTURE7_ARB                   0x84C7
   531 #define GL_TEXTURE8_ARB                   0x84C8
   532 #define GL_TEXTURE9_ARB                   0x84C9
   533 #define GL_TEXTURE10_ARB                  0x84CA
   534 #define GL_TEXTURE11_ARB                  0x84CB
   535 #define GL_TEXTURE12_ARB                  0x84CC
   536 #define GL_TEXTURE13_ARB                  0x84CD
   537 #define GL_TEXTURE14_ARB                  0x84CE
   538 #define GL_TEXTURE15_ARB                  0x84CF
   539 #define GL_TEXTURE16_ARB                  0x84D0
   540 #define GL_TEXTURE17_ARB                  0x84D1
   541 #define GL_TEXTURE18_ARB                  0x84D2
   542 #define GL_TEXTURE19_ARB                  0x84D3
   543 #define GL_TEXTURE20_ARB                  0x84D4
   544 #define GL_TEXTURE21_ARB                  0x84D5
   545 #define GL_TEXTURE22_ARB                  0x84D6
   546 #define GL_TEXTURE23_ARB                  0x84D7
   547 #define GL_TEXTURE24_ARB                  0x84D8
   548 #define GL_TEXTURE25_ARB                  0x84D9
   549 #define GL_TEXTURE26_ARB                  0x84DA
   550 #define GL_TEXTURE27_ARB                  0x84DB
   551 #define GL_TEXTURE28_ARB                  0x84DC
   552 #define GL_TEXTURE29_ARB                  0x84DD
   553 #define GL_TEXTURE30_ARB                  0x84DE
   554 #define GL_TEXTURE31_ARB                  0x84DF
   555 #define GL_ACTIVE_TEXTURE_ARB             0x84E0
   556 #define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
   557 #define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
   558 #endif
   559 
   560 #ifndef GL_ARB_transpose_matrix
   561 #define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
   562 #define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
   563 #define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
   564 #define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
   565 #endif
   566 
   567 #ifndef GL_ARB_multisample
   568 #define GL_MULTISAMPLE_ARB                0x809D
   569 #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
   570 #define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
   571 #define GL_SAMPLE_COVERAGE_ARB            0x80A0
   572 #define GL_SAMPLE_BUFFERS_ARB             0x80A8
   573 #define GL_SAMPLES_ARB                    0x80A9
   574 #define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
   575 #define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
   576 #define GL_MULTISAMPLE_BIT_ARB            0x20000000
   577 #endif
   578 
   579 #ifndef GL_ARB_texture_env_add
   580 #endif
   581 
   582 #ifndef GL_ARB_texture_cube_map
   583 #define GL_NORMAL_MAP_ARB                 0x8511
   584 #define GL_REFLECTION_MAP_ARB             0x8512
   585 #define GL_TEXTURE_CUBE_MAP_ARB           0x8513
   586 #define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
   587 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
   588 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
   589 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
   590 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
   591 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
   592 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
   593 #define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
   594 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
   595 #endif
   596 
   597 #ifndef GL_ARB_texture_compression
   598 #define GL_COMPRESSED_ALPHA_ARB           0x84E9
   599 #define GL_COMPRESSED_LUMINANCE_ARB       0x84EA
   600 #define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
   601 #define GL_COMPRESSED_INTENSITY_ARB       0x84EC
   602 #define GL_COMPRESSED_RGB_ARB             0x84ED
   603 #define GL_COMPRESSED_RGBA_ARB            0x84EE
   604 #define GL_TEXTURE_COMPRESSION_HINT_ARB   0x84EF
   605 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
   606 #define GL_TEXTURE_COMPRESSED_ARB         0x86A1
   607 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
   608 #define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
   609 #endif
   610 
   611 #ifndef GL_ARB_texture_border_clamp
   612 #define GL_CLAMP_TO_BORDER_ARB            0x812D
   613 #endif
   614 
   615 #ifndef GL_ARB_point_parameters
   616 #define GL_POINT_SIZE_MIN_ARB             0x8126
   617 #define GL_POINT_SIZE_MAX_ARB             0x8127
   618 #define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
   619 #define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
   620 #endif
   621 
   622 #ifndef GL_ARB_vertex_blend
   623 #define GL_MAX_VERTEX_UNITS_ARB           0x86A4
   624 #define GL_ACTIVE_VERTEX_UNITS_ARB        0x86A5
   625 #define GL_WEIGHT_SUM_UNITY_ARB           0x86A6
   626 #define GL_VERTEX_BLEND_ARB               0x86A7
   627 #define GL_CURRENT_WEIGHT_ARB             0x86A8
   628 #define GL_WEIGHT_ARRAY_TYPE_ARB          0x86A9
   629 #define GL_WEIGHT_ARRAY_STRIDE_ARB        0x86AA
   630 #define GL_WEIGHT_ARRAY_SIZE_ARB          0x86AB
   631 #define GL_WEIGHT_ARRAY_POINTER_ARB       0x86AC
   632 #define GL_WEIGHT_ARRAY_ARB               0x86AD
   633 #define GL_MODELVIEW0_ARB                 0x1700
   634 #define GL_MODELVIEW1_ARB                 0x850A
   635 #define GL_MODELVIEW2_ARB                 0x8722
   636 #define GL_MODELVIEW3_ARB                 0x8723
   637 #define GL_MODELVIEW4_ARB                 0x8724
   638 #define GL_MODELVIEW5_ARB                 0x8725
   639 #define GL_MODELVIEW6_ARB                 0x8726
   640 #define GL_MODELVIEW7_ARB                 0x8727
   641 #define GL_MODELVIEW8_ARB                 0x8728
   642 #define GL_MODELVIEW9_ARB                 0x8729
   643 #define GL_MODELVIEW10_ARB                0x872A
   644 #define GL_MODELVIEW11_ARB                0x872B
   645 #define GL_MODELVIEW12_ARB                0x872C
   646 #define GL_MODELVIEW13_ARB                0x872D
   647 #define GL_MODELVIEW14_ARB                0x872E
   648 #define GL_MODELVIEW15_ARB                0x872F
   649 #define GL_MODELVIEW16_ARB                0x8730
   650 #define GL_MODELVIEW17_ARB                0x8731
   651 #define GL_MODELVIEW18_ARB                0x8732
   652 #define GL_MODELVIEW19_ARB                0x8733
   653 #define GL_MODELVIEW20_ARB                0x8734
   654 #define GL_MODELVIEW21_ARB                0x8735
   655 #define GL_MODELVIEW22_ARB                0x8736
   656 #define GL_MODELVIEW23_ARB                0x8737
   657 #define GL_MODELVIEW24_ARB                0x8738
   658 #define GL_MODELVIEW25_ARB                0x8739
   659 #define GL_MODELVIEW26_ARB                0x873A
   660 #define GL_MODELVIEW27_ARB                0x873B
   661 #define GL_MODELVIEW28_ARB                0x873C
   662 #define GL_MODELVIEW29_ARB                0x873D
   663 #define GL_MODELVIEW30_ARB                0x873E
   664 #define GL_MODELVIEW31_ARB                0x873F
   665 #endif
   666 
   667 #ifndef GL_ARB_matrix_palette
   668 #define GL_MATRIX_PALETTE_ARB             0x8840
   669 #define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
   670 #define GL_MAX_PALETTE_MATRICES_ARB       0x8842
   671 #define GL_CURRENT_PALETTE_MATRIX_ARB     0x8843
   672 #define GL_MATRIX_INDEX_ARRAY_ARB         0x8844
   673 #define GL_CURRENT_MATRIX_INDEX_ARB       0x8845
   674 #define GL_MATRIX_INDEX_ARRAY_SIZE_ARB    0x8846
   675 #define GL_MATRIX_INDEX_ARRAY_TYPE_ARB    0x8847
   676 #define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB  0x8848
   677 #define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
   678 #endif
   679 
   680 #ifndef GL_ARB_texture_env_combine
   681 #define GL_COMBINE_ARB                    0x8570
   682 #define GL_COMBINE_RGB_ARB                0x8571
   683 #define GL_COMBINE_ALPHA_ARB              0x8572
   684 #define GL_SOURCE0_RGB_ARB                0x8580
   685 #define GL_SOURCE1_RGB_ARB                0x8581
   686 #define GL_SOURCE2_RGB_ARB                0x8582
   687 #define GL_SOURCE0_ALPHA_ARB              0x8588
   688 #define GL_SOURCE1_ALPHA_ARB              0x8589
   689 #define GL_SOURCE2_ALPHA_ARB              0x858A
   690 #define GL_OPERAND0_RGB_ARB               0x8590
   691 #define GL_OPERAND1_RGB_ARB               0x8591
   692 #define GL_OPERAND2_RGB_ARB               0x8592
   693 #define GL_OPERAND0_ALPHA_ARB             0x8598
   694 #define GL_OPERAND1_ALPHA_ARB             0x8599
   695 #define GL_OPERAND2_ALPHA_ARB             0x859A
   696 #define GL_RGB_SCALE_ARB                  0x8573
   697 #define GL_ADD_SIGNED_ARB                 0x8574
   698 #define GL_INTERPOLATE_ARB                0x8575
   699 #define GL_SUBTRACT_ARB                   0x84E7
   700 #define GL_CONSTANT_ARB                   0x8576
   701 #define GL_PRIMARY_COLOR_ARB              0x8577
   702 #define GL_PREVIOUS_ARB                   0x8578
   703 #endif
   704 
   705 #ifndef GL_ARB_texture_env_crossbar
   706 #endif
   707 
   708 #ifndef GL_ARB_texture_env_dot3
   709 #define GL_DOT3_RGB_ARB                   0x86AE
   710 #define GL_DOT3_RGBA_ARB                  0x86AF
   711 #endif
   712 
   713 #ifndef GL_ARB_texture_mirrored_repeat
   714 #define GL_MIRRORED_REPEAT_ARB            0x8370
   715 #endif
   716 
   717 #ifndef GL_ARB_depth_texture
   718 #define GL_DEPTH_COMPONENT16_ARB          0x81A5
   719 #define GL_DEPTH_COMPONENT24_ARB          0x81A6
   720 #define GL_DEPTH_COMPONENT32_ARB          0x81A7
   721 #define GL_TEXTURE_DEPTH_SIZE_ARB         0x884A
   722 #define GL_DEPTH_TEXTURE_MODE_ARB         0x884B
   723 #endif
   724 
   725 #ifndef GL_ARB_shadow
   726 #define GL_TEXTURE_COMPARE_MODE_ARB       0x884C
   727 #define GL_TEXTURE_COMPARE_FUNC_ARB       0x884D
   728 #define GL_COMPARE_R_TO_TEXTURE_ARB       0x884E
   729 #endif
   730 
   731 #ifndef GL_ARB_shadow_ambient
   732 #define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
   733 #endif
   734 
   735 #ifndef GL_ARB_window_pos
   736 #endif
   737 
   738 #ifndef GL_ARB_vertex_program
   739 #define GL_COLOR_SUM_ARB                  0x8458
   740 #define GL_VERTEX_PROGRAM_ARB             0x8620
   741 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
   742 #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB   0x8623
   743 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
   744 #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB   0x8625
   745 #define GL_CURRENT_VERTEX_ATTRIB_ARB      0x8626
   746 #define GL_PROGRAM_LENGTH_ARB             0x8627
   747 #define GL_PROGRAM_STRING_ARB             0x8628
   748 #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
   749 #define GL_MAX_PROGRAM_MATRICES_ARB       0x862F
   750 #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
   751 #define GL_CURRENT_MATRIX_ARB             0x8641
   752 #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB  0x8642
   753 #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB    0x8643
   754 #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
   755 #define GL_PROGRAM_ERROR_POSITION_ARB     0x864B
   756 #define GL_PROGRAM_BINDING_ARB            0x8677
   757 #define GL_MAX_VERTEX_ATTRIBS_ARB         0x8869
   758 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
   759 #define GL_PROGRAM_ERROR_STRING_ARB       0x8874
   760 #define GL_PROGRAM_FORMAT_ASCII_ARB       0x8875
   761 #define GL_PROGRAM_FORMAT_ARB             0x8876
   762 #define GL_PROGRAM_INSTRUCTIONS_ARB       0x88A0
   763 #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB   0x88A1
   764 #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
   765 #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
   766 #define GL_PROGRAM_TEMPORARIES_ARB        0x88A4
   767 #define GL_MAX_PROGRAM_TEMPORARIES_ARB    0x88A5
   768 #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
   769 #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
   770 #define GL_PROGRAM_PARAMETERS_ARB         0x88A8
   771 #define GL_MAX_PROGRAM_PARAMETERS_ARB     0x88A9
   772 #define GL_PROGRAM_NATIVE_PARAMETERS_ARB  0x88AA
   773 #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
   774 #define GL_PROGRAM_ATTRIBS_ARB            0x88AC
   775 #define GL_MAX_PROGRAM_ATTRIBS_ARB        0x88AD
   776 #define GL_PROGRAM_NATIVE_ATTRIBS_ARB     0x88AE
   777 #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
   778 #define GL_PROGRAM_ADDRESS_REGISTERS_ARB  0x88B0
   779 #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
   780 #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
   781 #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
   782 #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
   783 #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
   784 #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
   785 #define GL_TRANSPOSE_CURRENT_MATRIX_ARB   0x88B7
   786 #define GL_MATRIX0_ARB                    0x88C0
   787 #define GL_MATRIX1_ARB                    0x88C1
   788 #define GL_MATRIX2_ARB                    0x88C2
   789 #define GL_MATRIX3_ARB                    0x88C3
   790 #define GL_MATRIX4_ARB                    0x88C4
   791 #define GL_MATRIX5_ARB                    0x88C5
   792 #define GL_MATRIX6_ARB                    0x88C6
   793 #define GL_MATRIX7_ARB                    0x88C7
   794 #define GL_MATRIX8_ARB                    0x88C8
   795 #define GL_MATRIX9_ARB                    0x88C9
   796 #define GL_MATRIX10_ARB                   0x88CA
   797 #define GL_MATRIX11_ARB                   0x88CB
   798 #define GL_MATRIX12_ARB                   0x88CC
   799 #define GL_MATRIX13_ARB                   0x88CD
   800 #define GL_MATRIX14_ARB                   0x88CE
   801 #define GL_MATRIX15_ARB                   0x88CF
   802 #define GL_MATRIX16_ARB                   0x88D0
   803 #define GL_MATRIX17_ARB                   0x88D1
   804 #define GL_MATRIX18_ARB                   0x88D2
   805 #define GL_MATRIX19_ARB                   0x88D3
   806 #define GL_MATRIX20_ARB                   0x88D4
   807 #define GL_MATRIX21_ARB                   0x88D5
   808 #define GL_MATRIX22_ARB                   0x88D6
   809 #define GL_MATRIX23_ARB                   0x88D7
   810 #define GL_MATRIX24_ARB                   0x88D8
   811 #define GL_MATRIX25_ARB                   0x88D9
   812 #define GL_MATRIX26_ARB                   0x88DA
   813 #define GL_MATRIX27_ARB                   0x88DB
   814 #define GL_MATRIX28_ARB                   0x88DC
   815 #define GL_MATRIX29_ARB                   0x88DD
   816 #define GL_MATRIX30_ARB                   0x88DE
   817 #define GL_MATRIX31_ARB                   0x88DF
   818 #endif
   819 
   820 #ifndef GL_ARB_fragment_program
   821 #define GL_FRAGMENT_PROGRAM_ARB           0x8804
   822 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB   0x8805
   823 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB   0x8806
   824 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB   0x8807
   825 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
   826 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
   827 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
   828 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
   829 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
   830 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
   831 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
   832 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
   833 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
   834 #define GL_MAX_TEXTURE_COORDS_ARB         0x8871
   835 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB    0x8872
   836 #endif
   837 
   838 #ifndef GL_ARB_vertex_buffer_object
   839 #define GL_BUFFER_SIZE_ARB                0x8764
   840 #define GL_BUFFER_USAGE_ARB               0x8765
   841 #define GL_ARRAY_BUFFER_ARB               0x8892
   842 #define GL_ELEMENT_ARRAY_BUFFER_ARB       0x8893
   843 #define GL_ARRAY_BUFFER_BINDING_ARB       0x8894
   844 #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
   845 #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
   846 #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
   847 #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
   848 #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
   849 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
   850 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
   851 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
   852 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
   853 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
   854 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
   855 #define GL_READ_ONLY_ARB                  0x88B8
   856 #define GL_WRITE_ONLY_ARB                 0x88B9
   857 #define GL_READ_WRITE_ARB                 0x88BA
   858 #define GL_BUFFER_ACCESS_ARB              0x88BB
   859 #define GL_BUFFER_MAPPED_ARB              0x88BC
   860 #define GL_BUFFER_MAP_POINTER_ARB         0x88BD
   861 #define GL_STREAM_DRAW_ARB                0x88E0
   862 #define GL_STREAM_READ_ARB                0x88E1
   863 #define GL_STREAM_COPY_ARB                0x88E2
   864 #define GL_STATIC_DRAW_ARB                0x88E4
   865 #define GL_STATIC_READ_ARB                0x88E5
   866 #define GL_STATIC_COPY_ARB                0x88E6
   867 #define GL_DYNAMIC_DRAW_ARB               0x88E8
   868 #define GL_DYNAMIC_READ_ARB               0x88E9
   869 #define GL_DYNAMIC_COPY_ARB               0x88EA
   870 #endif
   871 
   872 #ifndef GL_ARB_occlusion_query
   873 #define GL_QUERY_COUNTER_BITS_ARB         0x8864
   874 #define GL_CURRENT_QUERY_ARB              0x8865
   875 #define GL_QUERY_RESULT_ARB               0x8866
   876 #define GL_QUERY_RESULT_AVAILABLE_ARB     0x8867
   877 #define GL_SAMPLES_PASSED_ARB             0x8914
   878 #endif
   879 
   880 #ifndef GL_ARB_shader_objects
   881 #define GL_PROGRAM_OBJECT_ARB             0x8B40
   882 #define GL_SHADER_OBJECT_ARB              0x8B48
   883 #define GL_OBJECT_TYPE_ARB                0x8B4E
   884 #define GL_OBJECT_SUBTYPE_ARB             0x8B4F
   885 #define GL_FLOAT_VEC2_ARB                 0x8B50
   886 #define GL_FLOAT_VEC3_ARB                 0x8B51
   887 #define GL_FLOAT_VEC4_ARB                 0x8B52
   888 #define GL_INT_VEC2_ARB                   0x8B53
   889 #define GL_INT_VEC3_ARB                   0x8B54
   890 #define GL_INT_VEC4_ARB                   0x8B55
   891 #define GL_BOOL_ARB                       0x8B56
   892 #define GL_BOOL_VEC2_ARB                  0x8B57
   893 #define GL_BOOL_VEC3_ARB                  0x8B58
   894 #define GL_BOOL_VEC4_ARB                  0x8B59
   895 #define GL_FLOAT_MAT2_ARB                 0x8B5A
   896 #define GL_FLOAT_MAT3_ARB                 0x8B5B
   897 #define GL_FLOAT_MAT4_ARB                 0x8B5C
   898 #define GL_SAMPLER_1D_ARB                 0x8B5D
   899 #define GL_SAMPLER_2D_ARB                 0x8B5E
   900 #define GL_SAMPLER_3D_ARB                 0x8B5F
   901 #define GL_SAMPLER_CUBE_ARB               0x8B60
   902 #define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
   903 #define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
   904 #define GL_SAMPLER_2D_RECT_ARB            0x8B63
   905 #define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
   906 #define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
   907 #define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
   908 #define GL_OBJECT_LINK_STATUS_ARB         0x8B82
   909 #define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
   910 #define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
   911 #define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
   912 #define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
   913 #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
   914 #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
   915 #endif
   916 
   917 #ifndef GL_ARB_vertex_shader
   918 #define GL_VERTEX_SHADER_ARB              0x8B31
   919 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
   920 #define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
   921 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
   922 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
   923 #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
   924 #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
   925 #endif
   926 
   927 #ifndef GL_ARB_fragment_shader
   928 #define GL_FRAGMENT_SHADER_ARB            0x8B30
   929 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
   930 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
   931 #endif
   932 
   933 #ifndef GL_ARB_shading_language_100
   934 #define GL_SHADING_LANGUAGE_VERSION_ARB   0x8B8C
   935 #endif
   936 
   937 #ifndef GL_ARB_texture_non_power_of_two
   938 #endif
   939 
   940 #ifndef GL_ARB_point_sprite
   941 #define GL_POINT_SPRITE_ARB               0x8861
   942 #define GL_COORD_REPLACE_ARB              0x8862
   943 #endif
   944 
   945 #ifndef GL_ARB_fragment_program_shadow
   946 #endif
   947 
   948 #ifndef GL_ARB_draw_buffers
   949 #define GL_MAX_DRAW_BUFFERS_ARB           0x8824
   950 #define GL_DRAW_BUFFER0_ARB               0x8825
   951 #define GL_DRAW_BUFFER1_ARB               0x8826
   952 #define GL_DRAW_BUFFER2_ARB               0x8827
   953 #define GL_DRAW_BUFFER3_ARB               0x8828
   954 #define GL_DRAW_BUFFER4_ARB               0x8829
   955 #define GL_DRAW_BUFFER5_ARB               0x882A
   956 #define GL_DRAW_BUFFER6_ARB               0x882B
   957 #define GL_DRAW_BUFFER7_ARB               0x882C
   958 #define GL_DRAW_BUFFER8_ARB               0x882D
   959 #define GL_DRAW_BUFFER9_ARB               0x882E
   960 #define GL_DRAW_BUFFER10_ARB              0x882F
   961 #define GL_DRAW_BUFFER11_ARB              0x8830
   962 #define GL_DRAW_BUFFER12_ARB              0x8831
   963 #define GL_DRAW_BUFFER13_ARB              0x8832
   964 #define GL_DRAW_BUFFER14_ARB              0x8833
   965 #define GL_DRAW_BUFFER15_ARB              0x8834
   966 #endif
   967 
   968 #ifndef GL_ARB_texture_rectangle
   969 #define GL_TEXTURE_RECTANGLE_ARB          0x84F5
   970 #define GL_TEXTURE_BINDING_RECTANGLE_ARB  0x84F6
   971 #define GL_PROXY_TEXTURE_RECTANGLE_ARB    0x84F7
   972 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
   973 #endif
   974 
   975 #ifndef GL_ARB_color_buffer_float
   976 #define GL_RGBA_FLOAT_MODE_ARB            0x8820
   977 #define GL_CLAMP_VERTEX_COLOR_ARB         0x891A
   978 #define GL_CLAMP_FRAGMENT_COLOR_ARB       0x891B
   979 #define GL_CLAMP_READ_COLOR_ARB           0x891C
   980 #define GL_FIXED_ONLY_ARB                 0x891D
   981 #endif
   982 
   983 #ifndef GL_ARB_half_float_pixel
   984 #define GL_HALF_FLOAT_ARB                 0x140B
   985 #endif
   986 
   987 #ifndef GL_ARB_texture_float
   988 #define GL_TEXTURE_RED_TYPE_ARB           0x8C10
   989 #define GL_TEXTURE_GREEN_TYPE_ARB         0x8C11
   990 #define GL_TEXTURE_BLUE_TYPE_ARB          0x8C12
   991 #define GL_TEXTURE_ALPHA_TYPE_ARB         0x8C13
   992 #define GL_TEXTURE_LUMINANCE_TYPE_ARB     0x8C14
   993 #define GL_TEXTURE_INTENSITY_TYPE_ARB     0x8C15
   994 #define GL_TEXTURE_DEPTH_TYPE_ARB         0x8C16
   995 #define GL_UNSIGNED_NORMALIZED_ARB        0x8C17
   996 #define GL_RGBA32F_ARB                    0x8814
   997 #define GL_RGB32F_ARB                     0x8815
   998 #define GL_ALPHA32F_ARB                   0x8816
   999 #define GL_INTENSITY32F_ARB               0x8817
  1000 #define GL_LUMINANCE32F_ARB               0x8818
  1001 #define GL_LUMINANCE_ALPHA32F_ARB         0x8819
  1002 #define GL_RGBA16F_ARB                    0x881A
  1003 #define GL_RGB16F_ARB                     0x881B
  1004 #define GL_ALPHA16F_ARB                   0x881C
  1005 #define GL_INTENSITY16F_ARB               0x881D
  1006 #define GL_LUMINANCE16F_ARB               0x881E
  1007 #define GL_LUMINANCE_ALPHA16F_ARB         0x881F
  1008 #endif
  1009 
  1010 #ifndef GL_ARB_pixel_buffer_object
  1011 #define GL_PIXEL_PACK_BUFFER_ARB          0x88EB
  1012 #define GL_PIXEL_UNPACK_BUFFER_ARB        0x88EC
  1013 #define GL_PIXEL_PACK_BUFFER_BINDING_ARB  0x88ED
  1014 #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
  1015 #endif
  1016 
  1017 #ifndef GL_EXT_abgr
  1018 #define GL_ABGR_EXT                       0x8000
  1019 #endif
  1020 
  1021 #ifndef GL_EXT_blend_color
  1022 #define GL_CONSTANT_COLOR_EXT             0x8001
  1023 #define GL_ONE_MINUS_CONSTANT_COLOR_EXT   0x8002
  1024 #define GL_CONSTANT_ALPHA_EXT             0x8003
  1025 #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT   0x8004
  1026 #define GL_BLEND_COLOR_EXT                0x8005
  1027 #endif
  1028 
  1029 #ifndef GL_EXT_polygon_offset
  1030 #define GL_POLYGON_OFFSET_EXT             0x8037
  1031 #define GL_POLYGON_OFFSET_FACTOR_EXT      0x8038
  1032 #define GL_POLYGON_OFFSET_BIAS_EXT        0x8039
  1033 #endif
  1034 
  1035 #ifndef GL_EXT_texture
  1036 #define GL_ALPHA4_EXT                     0x803B
  1037 #define GL_ALPHA8_EXT                     0x803C
  1038 #define GL_ALPHA12_EXT                    0x803D
  1039 #define GL_ALPHA16_EXT                    0x803E
  1040 #define GL_LUMINANCE4_EXT                 0x803F
  1041 #define GL_LUMINANCE8_EXT                 0x8040
  1042 #define GL_LUMINANCE12_EXT                0x8041
  1043 #define GL_LUMINANCE16_EXT                0x8042
  1044 #define GL_LUMINANCE4_ALPHA4_EXT          0x8043
  1045 #define GL_LUMINANCE6_ALPHA2_EXT          0x8044
  1046 #define GL_LUMINANCE8_ALPHA8_EXT          0x8045
  1047 #define GL_LUMINANCE12_ALPHA4_EXT         0x8046
  1048 #define GL_LUMINANCE12_ALPHA12_EXT        0x8047
  1049 #define GL_LUMINANCE16_ALPHA16_EXT        0x8048
  1050 #define GL_INTENSITY_EXT                  0x8049
  1051 #define GL_INTENSITY4_EXT                 0x804A
  1052 #define GL_INTENSITY8_EXT                 0x804B
  1053 #define GL_INTENSITY12_EXT                0x804C
  1054 #define GL_INTENSITY16_EXT                0x804D
  1055 #define GL_RGB2_EXT                       0x804E
  1056 #define GL_RGB4_EXT                       0x804F
  1057 #define GL_RGB5_EXT                       0x8050
  1058 #define GL_RGB8_EXT                       0x8051
  1059 #define GL_RGB10_EXT                      0x8052
  1060 #define GL_RGB12_EXT                      0x8053
  1061 #define GL_RGB16_EXT                      0x8054
  1062 #define GL_RGBA2_EXT                      0x8055
  1063 #define GL_RGBA4_EXT                      0x8056
  1064 #define GL_RGB5_A1_EXT                    0x8057
  1065 #define GL_RGBA8_EXT                      0x8058
  1066 #define GL_RGB10_A2_EXT                   0x8059
  1067 #define GL_RGBA12_EXT                     0x805A
  1068 #define GL_RGBA16_EXT                     0x805B
  1069 #define GL_TEXTURE_RED_SIZE_EXT           0x805C
  1070 #define GL_TEXTURE_GREEN_SIZE_EXT         0x805D
  1071 #define GL_TEXTURE_BLUE_SIZE_EXT          0x805E
  1072 #define GL_TEXTURE_ALPHA_SIZE_EXT         0x805F
  1073 #define GL_TEXTURE_LUMINANCE_SIZE_EXT     0x8060
  1074 #define GL_TEXTURE_INTENSITY_SIZE_EXT     0x8061
  1075 #define GL_REPLACE_EXT                    0x8062
  1076 #define GL_PROXY_TEXTURE_1D_EXT           0x8063
  1077 #define GL_PROXY_TEXTURE_2D_EXT           0x8064
  1078 #define GL_TEXTURE_TOO_LARGE_EXT          0x8065
  1079 #endif
  1080 
  1081 #ifndef GL_EXT_texture3D
  1082 #define GL_PACK_SKIP_IMAGES_EXT           0x806B
  1083 #define GL_PACK_IMAGE_HEIGHT_EXT          0x806C
  1084 #define GL_UNPACK_SKIP_IMAGES_EXT         0x806D
  1085 #define GL_UNPACK_IMAGE_HEIGHT_EXT        0x806E
  1086 #define GL_TEXTURE_3D_EXT                 0x806F
  1087 #define GL_PROXY_TEXTURE_3D_EXT           0x8070
  1088 #define GL_TEXTURE_DEPTH_EXT              0x8071
  1089 #define GL_TEXTURE_WRAP_R_EXT             0x8072
  1090 #define GL_MAX_3D_TEXTURE_SIZE_EXT        0x8073
  1091 #endif
  1092 
  1093 #ifndef GL_SGIS_texture_filter4
  1094 #define GL_FILTER4_SGIS                   0x8146
  1095 #define GL_TEXTURE_FILTER4_SIZE_SGIS      0x8147
  1096 #endif
  1097 
  1098 #ifndef GL_EXT_subtexture
  1099 #endif
  1100 
  1101 #ifndef GL_EXT_copy_texture
  1102 #endif
  1103 
  1104 #ifndef GL_EXT_histogram
  1105 #define GL_HISTOGRAM_EXT                  0x8024
  1106 #define GL_PROXY_HISTOGRAM_EXT            0x8025
  1107 #define GL_HISTOGRAM_WIDTH_EXT            0x8026
  1108 #define GL_HISTOGRAM_FORMAT_EXT           0x8027
  1109 #define GL_HISTOGRAM_RED_SIZE_EXT         0x8028
  1110 #define GL_HISTOGRAM_GREEN_SIZE_EXT       0x8029
  1111 #define GL_HISTOGRAM_BLUE_SIZE_EXT        0x802A
  1112 #define GL_HISTOGRAM_ALPHA_SIZE_EXT       0x802B
  1113 #define GL_HISTOGRAM_LUMINANCE_SIZE_EXT   0x802C
  1114 #define GL_HISTOGRAM_SINK_EXT             0x802D
  1115 #define GL_MINMAX_EXT                     0x802E
  1116 #define GL_MINMAX_FORMAT_EXT              0x802F
  1117 #define GL_MINMAX_SINK_EXT                0x8030
  1118 #define GL_TABLE_TOO_LARGE_EXT            0x8031
  1119 #endif
  1120 
  1121 #ifndef GL_EXT_convolution
  1122 #define GL_CONVOLUTION_1D_EXT             0x8010
  1123 #define GL_CONVOLUTION_2D_EXT             0x8011
  1124 #define GL_SEPARABLE_2D_EXT               0x8012
  1125 #define GL_CONVOLUTION_BORDER_MODE_EXT    0x8013
  1126 #define GL_CONVOLUTION_FILTER_SCALE_EXT   0x8014
  1127 #define GL_CONVOLUTION_FILTER_BIAS_EXT    0x8015
  1128 #define GL_REDUCE_EXT                     0x8016
  1129 #define GL_CONVOLUTION_FORMAT_EXT         0x8017
  1130 #define GL_CONVOLUTION_WIDTH_EXT          0x8018
  1131 #define GL_CONVOLUTION_HEIGHT_EXT         0x8019
  1132 #define GL_MAX_CONVOLUTION_WIDTH_EXT      0x801A
  1133 #define GL_MAX_CONVOLUTION_HEIGHT_EXT     0x801B
  1134 #define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
  1135 #define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
  1136 #define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
  1137 #define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
  1138 #define GL_POST_CONVOLUTION_RED_BIAS_EXT  0x8020
  1139 #define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
  1140 #define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
  1141 #define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
  1142 #endif
  1143 
  1144 #ifndef GL_SGI_color_matrix
  1145 #define GL_COLOR_MATRIX_SGI               0x80B1
  1146 #define GL_COLOR_MATRIX_STACK_DEPTH_SGI   0x80B2
  1147 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
  1148 #define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
  1149 #define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
  1150 #define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
  1151 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
  1152 #define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
  1153 #define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
  1154 #define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
  1155 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
  1156 #endif
  1157 
  1158 #ifndef GL_SGI_color_table
  1159 #define GL_COLOR_TABLE_SGI                0x80D0
  1160 #define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
  1161 #define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
  1162 #define GL_PROXY_COLOR_TABLE_SGI          0x80D3
  1163 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
  1164 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
  1165 #define GL_COLOR_TABLE_SCALE_SGI          0x80D6
  1166 #define GL_COLOR_TABLE_BIAS_SGI           0x80D7
  1167 #define GL_COLOR_TABLE_FORMAT_SGI         0x80D8
  1168 #define GL_COLOR_TABLE_WIDTH_SGI          0x80D9
  1169 #define GL_COLOR_TABLE_RED_SIZE_SGI       0x80DA
  1170 #define GL_COLOR_TABLE_GREEN_SIZE_SGI     0x80DB
  1171 #define GL_COLOR_TABLE_BLUE_SIZE_SGI      0x80DC
  1172 #define GL_COLOR_TABLE_ALPHA_SIZE_SGI     0x80DD
  1173 #define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
  1174 #define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
  1175 #endif
  1176 
  1177 #ifndef GL_SGIS_pixel_texture
  1178 #define GL_PIXEL_TEXTURE_SGIS             0x8353
  1179 #define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354
  1180 #define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355
  1181 #define GL_PIXEL_GROUP_COLOR_SGIS         0x8356
  1182 #endif
  1183 
  1184 #ifndef GL_SGIX_pixel_texture
  1185 #define GL_PIXEL_TEX_GEN_SGIX             0x8139
  1186 #define GL_PIXEL_TEX_GEN_MODE_SGIX        0x832B
  1187 #endif
  1188 
  1189 #ifndef GL_SGIS_texture4D
  1190 #define GL_PACK_SKIP_VOLUMES_SGIS         0x8130
  1191 #define GL_PACK_IMAGE_DEPTH_SGIS          0x8131
  1192 #define GL_UNPACK_SKIP_VOLUMES_SGIS       0x8132
  1193 #define GL_UNPACK_IMAGE_DEPTH_SGIS        0x8133
  1194 #define GL_TEXTURE_4D_SGIS                0x8134
  1195 #define GL_PROXY_TEXTURE_4D_SGIS          0x8135
  1196 #define GL_TEXTURE_4DSIZE_SGIS            0x8136
  1197 #define GL_TEXTURE_WRAP_Q_SGIS            0x8137
  1198 #define GL_MAX_4D_TEXTURE_SIZE_SGIS       0x8138
  1199 #define GL_TEXTURE_4D_BINDING_SGIS        0x814F
  1200 #endif
  1201 
  1202 #ifndef GL_SGI_texture_color_table
  1203 #define GL_TEXTURE_COLOR_TABLE_SGI        0x80BC
  1204 #define GL_PROXY_TEXTURE_COLOR_TABLE_SGI  0x80BD
  1205 #endif
  1206 
  1207 #ifndef GL_EXT_cmyka
  1208 #define GL_CMYK_EXT                       0x800C
  1209 #define GL_CMYKA_EXT                      0x800D
  1210 #define GL_PACK_CMYK_HINT_EXT             0x800E
  1211 #define GL_UNPACK_CMYK_HINT_EXT           0x800F
  1212 #endif
  1213 
  1214 #ifndef GL_EXT_texture_object
  1215 #define GL_TEXTURE_PRIORITY_EXT           0x8066
  1216 #define GL_TEXTURE_RESIDENT_EXT           0x8067
  1217 #define GL_TEXTURE_1D_BINDING_EXT         0x8068
  1218 #define GL_TEXTURE_2D_BINDING_EXT         0x8069
  1219 #define GL_TEXTURE_3D_BINDING_EXT         0x806A
  1220 #endif
  1221 
  1222 #ifndef GL_SGIS_detail_texture
  1223 #define GL_DETAIL_TEXTURE_2D_SGIS         0x8095
  1224 #define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
  1225 #define GL_LINEAR_DETAIL_SGIS             0x8097
  1226 #define GL_LINEAR_DETAIL_ALPHA_SGIS       0x8098
  1227 #define GL_LINEAR_DETAIL_COLOR_SGIS       0x8099
  1228 #define GL_DETAIL_TEXTURE_LEVEL_SGIS      0x809A
  1229 #define GL_DETAIL_TEXTURE_MODE_SGIS       0x809B
  1230 #define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C
  1231 #endif
  1232 
  1233 #ifndef GL_SGIS_sharpen_texture
  1234 #define GL_LINEAR_SHARPEN_SGIS            0x80AD
  1235 #define GL_LINEAR_SHARPEN_ALPHA_SGIS      0x80AE
  1236 #define GL_LINEAR_SHARPEN_COLOR_SGIS      0x80AF
  1237 #define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
  1238 #endif
  1239 
  1240 #ifndef GL_EXT_packed_pixels
  1241 #define GL_UNSIGNED_BYTE_3_3_2_EXT        0x8032
  1242 #define GL_UNSIGNED_SHORT_4_4_4_4_EXT     0x8033
  1243 #define GL_UNSIGNED_SHORT_5_5_5_1_EXT     0x8034
  1244 #define GL_UNSIGNED_INT_8_8_8_8_EXT       0x8035
  1245 #define GL_UNSIGNED_INT_10_10_10_2_EXT    0x8036
  1246 #endif
  1247 
  1248 #ifndef GL_SGIS_texture_lod
  1249 #define GL_TEXTURE_MIN_LOD_SGIS           0x813A
  1250 #define GL_TEXTURE_MAX_LOD_SGIS           0x813B
  1251 #define GL_TEXTURE_BASE_LEVEL_SGIS        0x813C
  1252 #define GL_TEXTURE_MAX_LEVEL_SGIS         0x813D
  1253 #endif
  1254 
  1255 #ifndef GL_SGIS_multisample
  1256 #define GL_MULTISAMPLE_SGIS               0x809D
  1257 #define GL_SAMPLE_ALPHA_TO_MASK_SGIS      0x809E
  1258 #define GL_SAMPLE_ALPHA_TO_ONE_SGIS       0x809F
  1259 #define GL_SAMPLE_MASK_SGIS               0x80A0
  1260 #define GL_1PASS_SGIS                     0x80A1
  1261 #define GL_2PASS_0_SGIS                   0x80A2
  1262 #define GL_2PASS_1_SGIS                   0x80A3
  1263 #define GL_4PASS_0_SGIS                   0x80A4
  1264 #define GL_4PASS_1_SGIS                   0x80A5
  1265 #define GL_4PASS_2_SGIS                   0x80A6
  1266 #define GL_4PASS_3_SGIS                   0x80A7
  1267 #define GL_SAMPLE_BUFFERS_SGIS            0x80A8
  1268 #define GL_SAMPLES_SGIS                   0x80A9
  1269 #define GL_SAMPLE_MASK_VALUE_SGIS         0x80AA
  1270 #define GL_SAMPLE_MASK_INVERT_SGIS        0x80AB
  1271 #define GL_SAMPLE_PATTERN_SGIS            0x80AC
  1272 #endif
  1273 
  1274 #ifndef GL_EXT_rescale_normal
  1275 #define GL_RESCALE_NORMAL_EXT             0x803A
  1276 #endif
  1277 
  1278 #ifndef GL_EXT_vertex_array
  1279 #define GL_VERTEX_ARRAY_EXT               0x8074
  1280 #define GL_NORMAL_ARRAY_EXT               0x8075
  1281 #define GL_COLOR_ARRAY_EXT                0x8076
  1282 #define GL_INDEX_ARRAY_EXT                0x8077
  1283 #define GL_TEXTURE_COORD_ARRAY_EXT        0x8078
  1284 #define GL_EDGE_FLAG_ARRAY_EXT            0x8079
  1285 #define GL_VERTEX_ARRAY_SIZE_EXT          0x807A
  1286 #define GL_VERTEX_ARRAY_TYPE_EXT          0x807B
  1287 #define GL_VERTEX_ARRAY_STRIDE_EXT        0x807C
  1288 #define GL_VERTEX_ARRAY_COUNT_EXT         0x807D
  1289 #define GL_NORMAL_ARRAY_TYPE_EXT          0x807E
  1290 #define GL_NORMAL_ARRAY_STRIDE_EXT        0x807F
  1291 #define GL_NORMAL_ARRAY_COUNT_EXT         0x8080
  1292 #define GL_COLOR_ARRAY_SIZE_EXT           0x8081
  1293 #define GL_COLOR_ARRAY_TYPE_EXT           0x8082
  1294 #define GL_COLOR_ARRAY_STRIDE_EXT         0x8083
  1295 #define GL_COLOR_ARRAY_COUNT_EXT          0x8084
  1296 #define GL_INDEX_ARRAY_TYPE_EXT           0x8085
  1297 #define GL_INDEX_ARRAY_STRIDE_EXT         0x8086
  1298 #define GL_INDEX_ARRAY_COUNT_EXT          0x8087
  1299 #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT   0x8088
  1300 #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT   0x8089
  1301 #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
  1302 #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT  0x808B
  1303 #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT     0x808C
  1304 #define GL_EDGE_FLAG_ARRAY_COUNT_EXT      0x808D
  1305 #define GL_VERTEX_ARRAY_POINTER_EXT       0x808E
  1306 #define GL_NORMAL_ARRAY_POINTER_EXT       0x808F
  1307 #define GL_COLOR_ARRAY_POINTER_EXT        0x8090
  1308 #define GL_INDEX_ARRAY_POINTER_EXT        0x8091
  1309 #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
  1310 #define GL_EDGE_FLAG_ARRAY_POINTER_EXT    0x8093
  1311 #endif
  1312 
  1313 #ifndef GL_EXT_misc_attribute
  1314 #endif
  1315 
  1316 #ifndef GL_SGIS_generate_mipmap
  1317 #define GL_GENERATE_MIPMAP_SGIS           0x8191
  1318 #define GL_GENERATE_MIPMAP_HINT_SGIS      0x8192
  1319 #endif
  1320 
  1321 #ifndef GL_SGIX_clipmap
  1322 #define GL_LINEAR_CLIPMAP_LINEAR_SGIX     0x8170
  1323 #define GL_TEXTURE_CLIPMAP_CENTER_SGIX    0x8171
  1324 #define GL_TEXTURE_CLIPMAP_FRAME_SGIX     0x8172
  1325 #define GL_TEXTURE_CLIPMAP_OFFSET_SGIX    0x8173
  1326 #define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174
  1327 #define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175
  1328 #define GL_TEXTURE_CLIPMAP_DEPTH_SGIX     0x8176
  1329 #define GL_MAX_CLIPMAP_DEPTH_SGIX         0x8177
  1330 #define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
  1331 #define GL_NEAREST_CLIPMAP_NEAREST_SGIX   0x844D
  1332 #define GL_NEAREST_CLIPMAP_LINEAR_SGIX    0x844E
  1333 #define GL_LINEAR_CLIPMAP_NEAREST_SGIX    0x844F
  1334 #endif
  1335 
  1336 #ifndef GL_SGIX_shadow
  1337 #define GL_TEXTURE_COMPARE_SGIX           0x819A
  1338 #define GL_TEXTURE_COMPARE_OPERATOR_SGIX  0x819B
  1339 #define GL_TEXTURE_LEQUAL_R_SGIX          0x819C
  1340 #define GL_TEXTURE_GEQUAL_R_SGIX          0x819D
  1341 #endif
  1342 
  1343 #ifndef GL_SGIS_texture_edge_clamp
  1344 #define GL_CLAMP_TO_EDGE_SGIS             0x812F
  1345 #endif
  1346 
  1347 #ifndef GL_SGIS_texture_border_clamp
  1348 #define GL_CLAMP_TO_BORDER_SGIS           0x812D
  1349 #endif
  1350 
  1351 #ifndef GL_EXT_blend_minmax
  1352 #define GL_FUNC_ADD_EXT                   0x8006
  1353 #define GL_MIN_EXT                        0x8007
  1354 #define GL_MAX_EXT                        0x8008
  1355 #define GL_BLEND_EQUATION_EXT             0x8009
  1356 #endif
  1357 
  1358 #ifndef GL_EXT_blend_subtract
  1359 #define GL_FUNC_SUBTRACT_EXT              0x800A
  1360 #define GL_FUNC_REVERSE_SUBTRACT_EXT      0x800B
  1361 #endif
  1362 
  1363 #ifndef GL_EXT_blend_logic_op
  1364 #endif
  1365 
  1366 #ifndef GL_SGIX_interlace
  1367 #define GL_INTERLACE_SGIX                 0x8094
  1368 #endif
  1369 
  1370 #ifndef GL_SGIX_pixel_tiles
  1371 #define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E
  1372 #define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F
  1373 #define GL_PIXEL_TILE_WIDTH_SGIX          0x8140
  1374 #define GL_PIXEL_TILE_HEIGHT_SGIX         0x8141
  1375 #define GL_PIXEL_TILE_GRID_WIDTH_SGIX     0x8142
  1376 #define GL_PIXEL_TILE_GRID_HEIGHT_SGIX    0x8143
  1377 #define GL_PIXEL_TILE_GRID_DEPTH_SGIX     0x8144
  1378 #define GL_PIXEL_TILE_CACHE_SIZE_SGIX     0x8145
  1379 #endif
  1380 
  1381 #ifndef GL_SGIS_texture_select
  1382 #define GL_DUAL_ALPHA4_SGIS               0x8110
  1383 #define GL_DUAL_ALPHA8_SGIS               0x8111
  1384 #define GL_DUAL_ALPHA12_SGIS              0x8112
  1385 #define GL_DUAL_ALPHA16_SGIS              0x8113
  1386 #define GL_DUAL_LUMINANCE4_SGIS           0x8114
  1387 #define GL_DUAL_LUMINANCE8_SGIS           0x8115
  1388 #define GL_DUAL_LUMINANCE12_SGIS          0x8116
  1389 #define GL_DUAL_LUMINANCE16_SGIS          0x8117
  1390 #define GL_DUAL_INTENSITY4_SGIS           0x8118
  1391 #define GL_DUAL_INTENSITY8_SGIS           0x8119
  1392 #define GL_DUAL_INTENSITY12_SGIS          0x811A
  1393 #define GL_DUAL_INTENSITY16_SGIS          0x811B
  1394 #define GL_DUAL_LUMINANCE_ALPHA4_SGIS     0x811C
  1395 #define GL_DUAL_LUMINANCE_ALPHA8_SGIS     0x811D
  1396 #define GL_QUAD_ALPHA4_SGIS               0x811E
  1397 #define GL_QUAD_ALPHA8_SGIS               0x811F
  1398 #define GL_QUAD_LUMINANCE4_SGIS           0x8120
  1399 #define GL_QUAD_LUMINANCE8_SGIS           0x8121
  1400 #define GL_QUAD_INTENSITY4_SGIS           0x8122
  1401 #define GL_QUAD_INTENSITY8_SGIS           0x8123
  1402 #define GL_DUAL_TEXTURE_SELECT_SGIS       0x8124
  1403 #define GL_QUAD_TEXTURE_SELECT_SGIS       0x8125
  1404 #endif
  1405 
  1406 #ifndef GL_SGIX_sprite
  1407 #define GL_SPRITE_SGIX                    0x8148
  1408 #define GL_SPRITE_MODE_SGIX               0x8149
  1409 #define GL_SPRITE_AXIS_SGIX               0x814A
  1410 #define GL_SPRITE_TRANSLATION_SGIX        0x814B
  1411 #define GL_SPRITE_AXIAL_SGIX              0x814C
  1412 #define GL_SPRITE_OBJECT_ALIGNED_SGIX     0x814D
  1413 #define GL_SPRITE_EYE_ALIGNED_SGIX        0x814E
  1414 #endif
  1415 
  1416 #ifndef GL_SGIX_texture_multi_buffer
  1417 #define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E
  1418 #endif
  1419 
  1420 #ifndef GL_EXT_point_parameters
  1421 #define GL_POINT_SIZE_MIN_EXT             0x8126
  1422 #define GL_POINT_SIZE_MAX_EXT             0x8127
  1423 #define GL_POINT_FADE_THRESHOLD_SIZE_EXT  0x8128
  1424 #define GL_DISTANCE_ATTENUATION_EXT       0x8129
  1425 #endif
  1426 
  1427 #ifndef GL_SGIS_point_parameters
  1428 #define GL_POINT_SIZE_MIN_SGIS            0x8126
  1429 #define GL_POINT_SIZE_MAX_SGIS            0x8127
  1430 #define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128
  1431 #define GL_DISTANCE_ATTENUATION_SGIS      0x8129
  1432 #endif
  1433 
  1434 #ifndef GL_SGIX_instruments
  1435 #define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
  1436 #define GL_INSTRUMENT_MEASUREMENTS_SGIX   0x8181
  1437 #endif
  1438 
  1439 #ifndef GL_SGIX_texture_scale_bias
  1440 #define GL_POST_TEXTURE_FILTER_BIAS_SGIX  0x8179
  1441 #define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A
  1442 #define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B
  1443 #define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C
  1444 #endif
  1445 
  1446 #ifndef GL_SGIX_framezoom
  1447 #define GL_FRAMEZOOM_SGIX                 0x818B
  1448 #define GL_FRAMEZOOM_FACTOR_SGIX          0x818C
  1449 #define GL_MAX_FRAMEZOOM_FACTOR_SGIX      0x818D
  1450 #endif
  1451 
  1452 #ifndef GL_SGIX_tag_sample_buffer
  1453 #endif
  1454 
  1455 #ifndef GL_FfdMaskSGIX
  1456 #define GL_TEXTURE_DEFORMATION_BIT_SGIX   0x00000001
  1457 #define GL_GEOMETRY_DEFORMATION_BIT_SGIX  0x00000002
  1458 #endif
  1459 
  1460 #ifndef GL_SGIX_polynomial_ffd
  1461 #define GL_GEOMETRY_DEFORMATION_SGIX      0x8194
  1462 #define GL_TEXTURE_DEFORMATION_SGIX       0x8195
  1463 #define GL_DEFORMATIONS_MASK_SGIX         0x8196
  1464 #define GL_MAX_DEFORMATION_ORDER_SGIX     0x8197
  1465 #endif
  1466 
  1467 #ifndef GL_SGIX_reference_plane
  1468 #define GL_REFERENCE_PLANE_SGIX           0x817D
  1469 #define GL_REFERENCE_PLANE_EQUATION_SGIX  0x817E
  1470 #endif
  1471 
  1472 #ifndef GL_SGIX_flush_raster
  1473 #endif
  1474 
  1475 #ifndef GL_SGIX_depth_texture
  1476 #define GL_DEPTH_COMPONENT16_SGIX         0x81A5
  1477 #define GL_DEPTH_COMPONENT24_SGIX         0x81A6
  1478 #define GL_DEPTH_COMPONENT32_SGIX         0x81A7
  1479 #endif
  1480 
  1481 #ifndef GL_SGIS_fog_function
  1482 #define GL_FOG_FUNC_SGIS                  0x812A
  1483 #define GL_FOG_FUNC_POINTS_SGIS           0x812B
  1484 #define GL_MAX_FOG_FUNC_POINTS_SGIS       0x812C
  1485 #endif
  1486 
  1487 #ifndef GL_SGIX_fog_offset
  1488 #define GL_FOG_OFFSET_SGIX                0x8198
  1489 #define GL_FOG_OFFSET_VALUE_SGIX          0x8199
  1490 #endif
  1491 
  1492 #ifndef GL_HP_image_transform
  1493 #define GL_IMAGE_SCALE_X_HP               0x8155
  1494 #define GL_IMAGE_SCALE_Y_HP               0x8156
  1495 #define GL_IMAGE_TRANSLATE_X_HP           0x8157
  1496 #define GL_IMAGE_TRANSLATE_Y_HP           0x8158
  1497 #define GL_IMAGE_ROTATE_ANGLE_HP          0x8159
  1498 #define GL_IMAGE_ROTATE_ORIGIN_X_HP       0x815A
  1499 #define GL_IMAGE_ROTATE_ORIGIN_Y_HP       0x815B
  1500 #define GL_IMAGE_MAG_FILTER_HP            0x815C
  1501 #define GL_IMAGE_MIN_FILTER_HP            0x815D
  1502 #define GL_IMAGE_CUBIC_WEIGHT_HP          0x815E
  1503 #define GL_CUBIC_HP                       0x815F
  1504 #define GL_AVERAGE_HP                     0x8160
  1505 #define GL_IMAGE_TRANSFORM_2D_HP          0x8161
  1506 #define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162
  1507 #define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163
  1508 #endif
  1509 
  1510 #ifndef GL_HP_convolution_border_modes
  1511 #define GL_IGNORE_BORDER_HP               0x8150
  1512 #define GL_CONSTANT_BORDER_HP             0x8151
  1513 #define GL_REPLICATE_BORDER_HP            0x8153
  1514 #define GL_CONVOLUTION_BORDER_COLOR_HP    0x8154
  1515 #endif
  1516 
  1517 #ifndef GL_INGR_palette_buffer
  1518 #endif
  1519 
  1520 #ifndef GL_SGIX_texture_add_env
  1521 #define GL_TEXTURE_ENV_BIAS_SGIX          0x80BE
  1522 #endif
  1523 
  1524 #ifndef GL_EXT_color_subtable
  1525 #endif
  1526 
  1527 #ifndef GL_PGI_vertex_hints
  1528 #define GL_VERTEX_DATA_HINT_PGI           0x1A22A
  1529 #define GL_VERTEX_CONSISTENT_HINT_PGI     0x1A22B
  1530 #define GL_MATERIAL_SIDE_HINT_PGI         0x1A22C
  1531 #define GL_MAX_VERTEX_HINT_PGI            0x1A22D
  1532 #define GL_COLOR3_BIT_PGI                 0x00010000
  1533 #define GL_COLOR4_BIT_PGI                 0x00020000
  1534 #define GL_EDGEFLAG_BIT_PGI               0x00040000
  1535 #define GL_INDEX_BIT_PGI                  0x00080000
  1536 #define GL_MAT_AMBIENT_BIT_PGI            0x00100000
  1537 #define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000
  1538 #define GL_MAT_DIFFUSE_BIT_PGI            0x00400000
  1539 #define GL_MAT_EMISSION_BIT_PGI           0x00800000
  1540 #define GL_MAT_COLOR_INDEXES_BIT_PGI      0x01000000
  1541 #define GL_MAT_SHININESS_BIT_PGI          0x02000000
  1542 #define GL_MAT_SPECULAR_BIT_PGI           0x04000000
  1543 #define GL_NORMAL_BIT_PGI                 0x08000000
  1544 #define GL_TEXCOORD1_BIT_PGI              0x10000000
  1545 #define GL_TEXCOORD2_BIT_PGI              0x20000000
  1546 #define GL_TEXCOORD3_BIT_PGI              0x40000000
  1547 #define GL_TEXCOORD4_BIT_PGI              0x80000000
  1548 #define GL_VERTEX23_BIT_PGI               0x00000004
  1549 #define GL_VERTEX4_BIT_PGI                0x00000008
  1550 #endif
  1551 
  1552 #ifndef GL_PGI_misc_hints
  1553 #define GL_PREFER_DOUBLEBUFFER_HINT_PGI   0x1A1F8
  1554 #define GL_CONSERVE_MEMORY_HINT_PGI       0x1A1FD
  1555 #define GL_RECLAIM_MEMORY_HINT_PGI        0x1A1FE
  1556 #define GL_NATIVE_GRAPHICS_HANDLE_PGI     0x1A202
  1557 #define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203
  1558 #define GL_NATIVE_GRAPHICS_END_HINT_PGI   0x1A204
  1559 #define GL_ALWAYS_FAST_HINT_PGI           0x1A20C
  1560 #define GL_ALWAYS_SOFT_HINT_PGI           0x1A20D
  1561 #define GL_ALLOW_DRAW_OBJ_HINT_PGI        0x1A20E
  1562 #define GL_ALLOW_DRAW_WIN_HINT_PGI        0x1A20F
  1563 #define GL_ALLOW_DRAW_FRG_HINT_PGI        0x1A210
  1564 #define GL_ALLOW_DRAW_MEM_HINT_PGI        0x1A211
  1565 #define GL_STRICT_DEPTHFUNC_HINT_PGI      0x1A216
  1566 #define GL_STRICT_LIGHTING_HINT_PGI       0x1A217
  1567 #define GL_STRICT_SCISSOR_HINT_PGI        0x1A218
  1568 #define GL_FULL_STIPPLE_HINT_PGI          0x1A219
  1569 #define GL_CLIP_NEAR_HINT_PGI             0x1A220
  1570 #define GL_CLIP_FAR_HINT_PGI              0x1A221
  1571 #define GL_WIDE_LINE_HINT_PGI             0x1A222
  1572 #define GL_BACK_NORMALS_HINT_PGI          0x1A223
  1573 #endif
  1574 
  1575 #ifndef GL_EXT_paletted_texture
  1576 #define GL_COLOR_INDEX1_EXT               0x80E2
  1577 #define GL_COLOR_INDEX2_EXT               0x80E3
  1578 #define GL_COLOR_INDEX4_EXT               0x80E4
  1579 #define GL_COLOR_INDEX8_EXT               0x80E5
  1580 #define GL_COLOR_INDEX12_EXT              0x80E6
  1581 #define GL_COLOR_INDEX16_EXT              0x80E7
  1582 #define GL_TEXTURE_INDEX_SIZE_EXT         0x80ED
  1583 #endif
  1584 
  1585 #ifndef GL_EXT_clip_volume_hint
  1586 #define GL_CLIP_VOLUME_CLIPPING_HINT_EXT  0x80F0
  1587 #endif
  1588 
  1589 #ifndef GL_SGIX_list_priority
  1590 #define GL_LIST_PRIORITY_SGIX             0x8182
  1591 #endif
  1592 
  1593 #ifndef GL_SGIX_ir_instrument1
  1594 #define GL_IR_INSTRUMENT1_SGIX            0x817F
  1595 #endif
  1596 
  1597 #ifndef GL_SGIX_calligraphic_fragment
  1598 #define GL_CALLIGRAPHIC_FRAGMENT_SGIX     0x8183
  1599 #endif
  1600 
  1601 #ifndef GL_SGIX_texture_lod_bias
  1602 #define GL_TEXTURE_LOD_BIAS_S_SGIX        0x818E
  1603 #define GL_TEXTURE_LOD_BIAS_T_SGIX        0x818F
  1604 #define GL_TEXTURE_LOD_BIAS_R_SGIX        0x8190
  1605 #endif
  1606 
  1607 #ifndef GL_SGIX_shadow_ambient
  1608 #define GL_SHADOW_AMBIENT_SGIX            0x80BF
  1609 #endif
  1610 
  1611 #ifndef GL_EXT_index_texture
  1612 #endif
  1613 
  1614 #ifndef GL_EXT_index_material
  1615 #define GL_INDEX_MATERIAL_EXT             0x81B8
  1616 #define GL_INDEX_MATERIAL_PARAMETER_EXT   0x81B9
  1617 #define GL_INDEX_MATERIAL_FACE_EXT        0x81BA
  1618 #endif
  1619 
  1620 #ifndef GL_EXT_index_func
  1621 #define GL_INDEX_TEST_EXT                 0x81B5
  1622 #define GL_INDEX_TEST_FUNC_EXT            0x81B6
  1623 #define GL_INDEX_TEST_REF_EXT             0x81B7
  1624 #endif
  1625 
  1626 #ifndef GL_EXT_index_array_formats
  1627 #define GL_IUI_V2F_EXT                    0x81AD
  1628 #define GL_IUI_V3F_EXT                    0x81AE
  1629 #define GL_IUI_N3F_V2F_EXT                0x81AF
  1630 #define GL_IUI_N3F_V3F_EXT                0x81B0
  1631 #define GL_T2F_IUI_V2F_EXT                0x81B1
  1632 #define GL_T2F_IUI_V3F_EXT                0x81B2
  1633 #define GL_T2F_IUI_N3F_V2F_EXT            0x81B3
  1634 #define GL_T2F_IUI_N3F_V3F_EXT            0x81B4
  1635 #endif
  1636 
  1637 #ifndef GL_EXT_compiled_vertex_array
  1638 #define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT   0x81A8
  1639 #define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT   0x81A9
  1640 #endif
  1641 
  1642 #ifndef GL_EXT_cull_vertex
  1643 #define GL_CULL_VERTEX_EXT                0x81AA
  1644 #define GL_CULL_VERTEX_EYE_POSITION_EXT   0x81AB
  1645 #define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
  1646 #endif
  1647 
  1648 #ifndef GL_SGIX_ycrcb
  1649 #define GL_YCRCB_422_SGIX                 0x81BB
  1650 #define GL_YCRCB_444_SGIX                 0x81BC
  1651 #endif
  1652 
  1653 #ifndef GL_SGIX_fragment_lighting
  1654 #define GL_FRAGMENT_LIGHTING_SGIX         0x8400
  1655 #define GL_FRAGMENT_COLOR_MATERIAL_SGIX   0x8401
  1656 #define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402
  1657 #define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403
  1658 #define GL_MAX_FRAGMENT_LIGHTS_SGIX       0x8404
  1659 #define GL_MAX_ACTIVE_LIGHTS_SGIX         0x8405
  1660 #define GL_CURRENT_RASTER_NORMAL_SGIX     0x8406
  1661 #define GL_LIGHT_ENV_MODE_SGIX            0x8407
  1662 #define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408
  1663 #define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409
  1664 #define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A
  1665 #define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B
  1666 #define GL_FRAGMENT_LIGHT0_SGIX           0x840C
  1667 #define GL_FRAGMENT_LIGHT1_SGIX           0x840D
  1668 #define GL_FRAGMENT_LIGHT2_SGIX           0x840E
  1669 #define GL_FRAGMENT_LIGHT3_SGIX           0x840F
  1670 #define GL_FRAGMENT_LIGHT4_SGIX           0x8410
  1671 #define GL_FRAGMENT_LIGHT5_SGIX           0x8411
  1672 #define GL_FRAGMENT_LIGHT6_SGIX           0x8412
  1673 #define GL_FRAGMENT_LIGHT7_SGIX           0x8413
  1674 #endif
  1675 
  1676 #ifndef GL_IBM_rasterpos_clip
  1677 #define GL_RASTER_POSITION_UNCLIPPED_IBM  0x19262
  1678 #endif
  1679 
  1680 #ifndef GL_HP_texture_lighting
  1681 #define GL_TEXTURE_LIGHTING_MODE_HP       0x8167
  1682 #define GL_TEXTURE_POST_SPECULAR_HP       0x8168
  1683 #define GL_TEXTURE_PRE_SPECULAR_HP        0x8169
  1684 #endif
  1685 
  1686 #ifndef GL_EXT_draw_range_elements
  1687 #define GL_MAX_ELEMENTS_VERTICES_EXT      0x80E8
  1688 #define GL_MAX_ELEMENTS_INDICES_EXT       0x80E9
  1689 #endif
  1690 
  1691 #ifndef GL_WIN_phong_shading
  1692 #define GL_PHONG_WIN                      0x80EA
  1693 #define GL_PHONG_HINT_WIN                 0x80EB
  1694 #endif
  1695 
  1696 #ifndef GL_WIN_specular_fog
  1697 #define GL_FOG_SPECULAR_TEXTURE_WIN       0x80EC
  1698 #endif
  1699 
  1700 #ifndef GL_EXT_light_texture
  1701 #define GL_FRAGMENT_MATERIAL_EXT          0x8349
  1702 #define GL_FRAGMENT_NORMAL_EXT            0x834A
  1703 #define GL_FRAGMENT_COLOR_EXT             0x834C
  1704 #define GL_ATTENUATION_EXT                0x834D
  1705 #define GL_SHADOW_ATTENUATION_EXT         0x834E
  1706 #define GL_TEXTURE_APPLICATION_MODE_EXT   0x834F
  1707 #define GL_TEXTURE_LIGHT_EXT              0x8350
  1708 #define GL_TEXTURE_MATERIAL_FACE_EXT      0x8351
  1709 #define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352
  1710 /* reuse GL_FRAGMENT_DEPTH_EXT */
  1711 #endif
  1712 
  1713 #ifndef GL_SGIX_blend_alpha_minmax
  1714 #define GL_ALPHA_MIN_SGIX                 0x8320
  1715 #define GL_ALPHA_MAX_SGIX                 0x8321
  1716 #endif
  1717 
  1718 #ifndef GL_SGIX_impact_pixel_texture
  1719 #define GL_PIXEL_TEX_GEN_Q_CEILING_SGIX   0x8184
  1720 #define GL_PIXEL_TEX_GEN_Q_ROUND_SGIX     0x8185
  1721 #define GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX     0x8186
  1722 #define GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX 0x8187
  1723 #define GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX 0x8188
  1724 #define GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX    0x8189
  1725 #define GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX    0x818A
  1726 #endif
  1727 
  1728 #ifndef GL_EXT_bgra
  1729 #define GL_BGR_EXT                        0x80E0
  1730 #define GL_BGRA_EXT                       0x80E1
  1731 #endif
  1732 
  1733 #ifndef GL_SGIX_async
  1734 #define GL_ASYNC_MARKER_SGIX              0x8329
  1735 #endif
  1736 
  1737 #ifndef GL_SGIX_async_pixel
  1738 #define GL_ASYNC_TEX_IMAGE_SGIX           0x835C
  1739 #define GL_ASYNC_DRAW_PIXELS_SGIX         0x835D
  1740 #define GL_ASYNC_READ_PIXELS_SGIX         0x835E
  1741 #define GL_MAX_ASYNC_TEX_IMAGE_SGIX       0x835F
  1742 #define GL_MAX_ASYNC_DRAW_PIXELS_SGIX     0x8360
  1743 #define GL_MAX_ASYNC_READ_PIXELS_SGIX     0x8361
  1744 #endif
  1745 
  1746 #ifndef GL_SGIX_async_histogram
  1747 #define GL_ASYNC_HISTOGRAM_SGIX           0x832C
  1748 #define GL_MAX_ASYNC_HISTOGRAM_SGIX       0x832D
  1749 #endif
  1750 
  1751 #ifndef GL_INTEL_texture_scissor
  1752 #endif
  1753 
  1754 #ifndef GL_INTEL_parallel_arrays
  1755 #define GL_PARALLEL_ARRAYS_INTEL          0x83F4
  1756 #define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5
  1757 #define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6
  1758 #define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7
  1759 #define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8
  1760 #endif
  1761 
  1762 #ifndef GL_HP_occlusion_test
  1763 #define GL_OCCLUSION_TEST_HP              0x8165
  1764 #define GL_OCCLUSION_TEST_RESULT_HP       0x8166
  1765 #endif
  1766 
  1767 #ifndef GL_EXT_pixel_transform
  1768 #define GL_PIXEL_TRANSFORM_2D_EXT         0x8330
  1769 #define GL_PIXEL_MAG_FILTER_EXT           0x8331
  1770 #define GL_PIXEL_MIN_FILTER_EXT           0x8332
  1771 #define GL_PIXEL_CUBIC_WEIGHT_EXT         0x8333
  1772 #define GL_CUBIC_EXT                      0x8334
  1773 #define GL_AVERAGE_EXT                    0x8335
  1774 #define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336
  1775 #define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337
  1776 #define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT  0x8338
  1777 #endif
  1778 
  1779 #ifndef GL_EXT_pixel_transform_color_table
  1780 #endif
  1781 
  1782 #ifndef GL_EXT_shared_texture_palette
  1783 #define GL_SHARED_TEXTURE_PALETTE_EXT     0x81FB
  1784 #endif
  1785 
  1786 #ifndef GL_EXT_separate_specular_color
  1787 #define GL_LIGHT_MODEL_COLOR_CONTROL_EXT  0x81F8
  1788 #define GL_SINGLE_COLOR_EXT               0x81F9
  1789 #define GL_SEPARATE_SPECULAR_COLOR_EXT    0x81FA
  1790 #endif
  1791 
  1792 #ifndef GL_EXT_secondary_color
  1793 #define GL_COLOR_SUM_EXT                  0x8458
  1794 #define GL_CURRENT_SECONDARY_COLOR_EXT    0x8459
  1795 #define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
  1796 #define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
  1797 #define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
  1798 #define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
  1799 #define GL_SECONDARY_COLOR_ARRAY_EXT      0x845E
  1800 #endif
  1801 
  1802 #ifndef GL_EXT_texture_perturb_normal
  1803 #define GL_PERTURB_EXT                    0x85AE
  1804 #define GL_TEXTURE_NORMAL_EXT             0x85AF
  1805 #endif
  1806 
  1807 #ifndef GL_EXT_multi_draw_arrays
  1808 #endif
  1809 
  1810 #ifndef GL_EXT_fog_coord
  1811 #define GL_FOG_COORDINATE_SOURCE_EXT      0x8450
  1812 #define GL_FOG_COORDINATE_EXT             0x8451
  1813 #define GL_FRAGMENT_DEPTH_EXT             0x8452
  1814 #define GL_CURRENT_FOG_COORDINATE_EXT     0x8453
  1815 #define GL_FOG_COORDINATE_ARRAY_TYPE_EXT  0x8454
  1816 #define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
  1817 #define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
  1818 #define GL_FOG_COORDINATE_ARRAY_EXT       0x8457
  1819 #endif
  1820 
  1821 #ifndef GL_REND_screen_coordinates
  1822 #define GL_SCREEN_COORDINATES_REND        0x8490
  1823 #define GL_INVERTED_SCREEN_W_REND         0x8491
  1824 #endif
  1825 
  1826 #ifndef GL_EXT_coordinate_frame
  1827 #define GL_TANGENT_ARRAY_EXT              0x8439
  1828 #define GL_BINORMAL_ARRAY_EXT             0x843A
  1829 #define GL_CURRENT_TANGENT_EXT            0x843B
  1830 #define GL_CURRENT_BINORMAL_EXT           0x843C
  1831 #define GL_TANGENT_ARRAY_TYPE_EXT         0x843E
  1832 #define GL_TANGENT_ARRAY_STRIDE_EXT       0x843F
  1833 #define GL_BINORMAL_ARRAY_TYPE_EXT        0x8440
  1834 #define GL_BINORMAL_ARRAY_STRIDE_EXT      0x8441
  1835 #define GL_TANGENT_ARRAY_POINTER_EXT      0x8442
  1836 #define GL_BINORMAL_ARRAY_POINTER_EXT     0x8443
  1837 #define GL_MAP1_TANGENT_EXT               0x8444
  1838 #define GL_MAP2_TANGENT_EXT               0x8445
  1839 #define GL_MAP1_BINORMAL_EXT              0x8446
  1840 #define GL_MAP2_BINORMAL_EXT              0x8447
  1841 #endif
  1842 
  1843 #ifndef GL_EXT_texture_env_combine
  1844 #define GL_COMBINE_EXT                    0x8570
  1845 #define GL_COMBINE_RGB_EXT                0x8571
  1846 #define GL_COMBINE_ALPHA_EXT              0x8572
  1847 #define GL_RGB_SCALE_EXT                  0x8573
  1848 #define GL_ADD_SIGNED_EXT                 0x8574
  1849 #define GL_INTERPOLATE_EXT                0x8575
  1850 #define GL_CONSTANT_EXT                   0x8576
  1851 #define GL_PRIMARY_COLOR_EXT              0x8577
  1852 #define GL_PREVIOUS_EXT                   0x8578
  1853 #define GL_SOURCE0_RGB_EXT                0x8580
  1854 #define GL_SOURCE1_RGB_EXT                0x8581
  1855 #define GL_SOURCE2_RGB_EXT                0x8582
  1856 #define GL_SOURCE0_ALPHA_EXT              0x8588
  1857 #define GL_SOURCE1_ALPHA_EXT              0x8589
  1858 #define GL_SOURCE2_ALPHA_EXT              0x858A
  1859 #define GL_OPERAND0_RGB_EXT               0x8590
  1860 #define GL_OPERAND1_RGB_EXT               0x8591
  1861 #define GL_OPERAND2_RGB_EXT               0x8592
  1862 #define GL_OPERAND0_ALPHA_EXT             0x8598
  1863 #define GL_OPERAND1_ALPHA_EXT             0x8599
  1864 #define GL_OPERAND2_ALPHA_EXT             0x859A
  1865 #endif
  1866 
  1867 #ifndef GL_APPLE_specular_vector
  1868 #define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
  1869 #endif
  1870 
  1871 #ifndef GL_APPLE_transform_hint
  1872 #define GL_TRANSFORM_HINT_APPLE           0x85B1
  1873 #endif
  1874 
  1875 #ifndef GL_SGIX_fog_scale
  1876 #define GL_FOG_SCALE_SGIX                 0x81FC
  1877 #define GL_FOG_SCALE_VALUE_SGIX           0x81FD
  1878 #endif
  1879 
  1880 #ifndef GL_SUNX_constant_data
  1881 #define GL_UNPACK_CONSTANT_DATA_SUNX      0x81D5
  1882 #define GL_TEXTURE_CONSTANT_DATA_SUNX     0x81D6
  1883 #endif
  1884 
  1885 #ifndef GL_SUN_global_alpha
  1886 #define GL_GLOBAL_ALPHA_SUN               0x81D9
  1887 #define GL_GLOBAL_ALPHA_FACTOR_SUN        0x81DA
  1888 #endif
  1889 
  1890 #ifndef GL_SUN_triangle_list
  1891 #define GL_RESTART_SUN                    0x0001
  1892 #define GL_REPLACE_MIDDLE_SUN             0x0002
  1893 #define GL_REPLACE_OLDEST_SUN             0x0003
  1894 #define GL_TRIANGLE_LIST_SUN              0x81D7
  1895 #define GL_REPLACEMENT_CODE_SUN           0x81D8
  1896 #define GL_REPLACEMENT_CODE_ARRAY_SUN     0x85C0
  1897 #define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
  1898 #define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
  1899 #define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
  1900 #define GL_R1UI_V3F_SUN                   0x85C4
  1901 #define GL_R1UI_C4UB_V3F_SUN              0x85C5
  1902 #define GL_R1UI_C3F_V3F_SUN               0x85C6
  1903 #define GL_R1UI_N3F_V3F_SUN               0x85C7
  1904 #define GL_R1UI_C4F_N3F_V3F_SUN           0x85C8
  1905 #define GL_R1UI_T2F_V3F_SUN               0x85C9
  1906 #define GL_R1UI_T2F_N3F_V3F_SUN           0x85CA
  1907 #define GL_R1UI_T2F_C4F_N3F_V3F_SUN       0x85CB
  1908 #endif
  1909 
  1910 #ifndef GL_SUN_vertex
  1911 #endif
  1912 
  1913 #ifndef GL_EXT_blend_func_separate
  1914 #define GL_BLEND_DST_RGB_EXT              0x80C8
  1915 #define GL_BLEND_SRC_RGB_EXT              0x80C9
  1916 #define GL_BLEND_DST_ALPHA_EXT            0x80CA
  1917 #define GL_BLEND_SRC_ALPHA_EXT            0x80CB
  1918 #endif
  1919 
  1920 #ifndef GL_INGR_color_clamp
  1921 #define GL_RED_MIN_CLAMP_INGR             0x8560
  1922 #define GL_GREEN_MIN_CLAMP_INGR           0x8561
  1923 #define GL_BLUE_MIN_CLAMP_INGR            0x8562
  1924 #define GL_ALPHA_MIN_CLAMP_INGR           0x8563
  1925 #define GL_RED_MAX_CLAMP_INGR             0x8564
  1926 #define GL_GREEN_MAX_CLAMP_INGR           0x8565
  1927 #define GL_BLUE_MAX_CLAMP_INGR            0x8566
  1928 #define GL_ALPHA_MAX_CLAMP_INGR           0x8567
  1929 #endif
  1930 
  1931 #ifndef GL_INGR_interlace_read
  1932 #define GL_INTERLACE_READ_INGR            0x8568
  1933 #endif
  1934 
  1935 #ifndef GL_EXT_stencil_wrap
  1936 #define GL_INCR_WRAP_EXT                  0x8507
  1937 #define GL_DECR_WRAP_EXT                  0x8508
  1938 #endif
  1939 
  1940 #ifndef GL_EXT_422_pixels
  1941 #define GL_422_EXT                        0x80CC
  1942 #define GL_422_REV_EXT                    0x80CD
  1943 #define GL_422_AVERAGE_EXT                0x80CE
  1944 #define GL_422_REV_AVERAGE_EXT            0x80CF
  1945 #endif
  1946 
  1947 #ifndef GL_NV_texgen_reflection
  1948 #define GL_NORMAL_MAP_NV                  0x8511
  1949 #define GL_REFLECTION_MAP_NV              0x8512
  1950 #endif
  1951 
  1952 #ifndef GL_EXT_texture_cube_map
  1953 #define GL_NORMAL_MAP_EXT                 0x8511
  1954 #define GL_REFLECTION_MAP_EXT             0x8512
  1955 #define GL_TEXTURE_CUBE_MAP_EXT           0x8513
  1956 #define GL_TEXTURE_BINDING_CUBE_MAP_EXT   0x8514
  1957 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
  1958 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
  1959 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
  1960 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
  1961 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
  1962 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
  1963 #define GL_PROXY_TEXTURE_CUBE_MAP_EXT     0x851B
  1964 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT  0x851C
  1965 #endif
  1966 
  1967 #ifndef GL_SUN_convolution_border_modes
  1968 #define GL_WRAP_BORDER_SUN                0x81D4
  1969 #endif
  1970 
  1971 #ifndef GL_EXT_texture_env_add
  1972 #endif
  1973 
  1974 #ifndef GL_EXT_texture_lod_bias
  1975 #define GL_MAX_TEXTURE_LOD_BIAS_EXT       0x84FD
  1976 #define GL_TEXTURE_FILTER_CONTROL_EXT     0x8500
  1977 #define GL_TEXTURE_LOD_BIAS_EXT           0x8501
  1978 #endif
  1979 
  1980 #ifndef GL_EXT_texture_filter_anisotropic
  1981 #define GL_TEXTURE_MAX_ANISOTROPY_EXT     0x84FE
  1982 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
  1983 #endif
  1984 
  1985 #ifndef GL_EXT_vertex_weighting
  1986 #define GL_MODELVIEW0_STACK_DEPTH_EXT     GL_MODELVIEW_STACK_DEPTH
  1987 #define GL_MODELVIEW1_STACK_DEPTH_EXT     0x8502
  1988 #define GL_MODELVIEW0_MATRIX_EXT          GL_MODELVIEW_MATRIX
  1989 #define GL_MODELVIEW1_MATRIX_EXT          0x8506
  1990 #define GL_VERTEX_WEIGHTING_EXT           0x8509
  1991 #define GL_MODELVIEW0_EXT                 GL_MODELVIEW
  1992 #define GL_MODELVIEW1_EXT                 0x850A
  1993 #define GL_CURRENT_VERTEX_WEIGHT_EXT      0x850B
  1994 #define GL_VERTEX_WEIGHT_ARRAY_EXT        0x850C
  1995 #define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT   0x850D
  1996 #define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT   0x850E
  1997 #define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F
  1998 #define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
  1999 #endif
  2000 
  2001 #ifndef GL_NV_light_max_exponent
  2002 #define GL_MAX_SHININESS_NV               0x8504
  2003 #define GL_MAX_SPOT_EXPONENT_NV           0x8505
  2004 #endif
  2005 
  2006 #ifndef GL_NV_vertex_array_range
  2007 #define GL_VERTEX_ARRAY_RANGE_NV          0x851D
  2008 #define GL_VERTEX_ARRAY_RANGE_LENGTH_NV   0x851E
  2009 #define GL_VERTEX_ARRAY_RANGE_VALID_NV    0x851F
  2010 #define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
  2011 #define GL_VERTEX_ARRAY_RANGE_POINTER_NV  0x8521
  2012 #endif
  2013 
  2014 #ifndef GL_NV_register_combiners
  2015 #define GL_REGISTER_COMBINERS_NV          0x8522
  2016 #define GL_VARIABLE_A_NV                  0x8523
  2017 #define GL_VARIABLE_B_NV                  0x8524
  2018 #define GL_VARIABLE_C_NV                  0x8525
  2019 #define GL_VARIABLE_D_NV                  0x8526
  2020 #define GL_VARIABLE_E_NV                  0x8527
  2021 #define GL_VARIABLE_F_NV                  0x8528
  2022 #define GL_VARIABLE_G_NV                  0x8529
  2023 #define GL_CONSTANT_COLOR0_NV             0x852A
  2024 #define GL_CONSTANT_COLOR1_NV             0x852B
  2025 #define GL_PRIMARY_COLOR_NV               0x852C
  2026 #define GL_SECONDARY_COLOR_NV             0x852D
  2027 #define GL_SPARE0_NV                      0x852E
  2028 #define GL_SPARE1_NV                      0x852F
  2029 #define GL_DISCARD_NV                     0x8530
  2030 #define GL_E_TIMES_F_NV                   0x8531
  2031 #define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
  2032 #define GL_UNSIGNED_IDENTITY_NV           0x8536
  2033 #define GL_UNSIGNED_INVERT_NV             0x8537
  2034 #define GL_EXPAND_NORMAL_NV               0x8538
  2035 #define GL_EXPAND_NEGATE_NV               0x8539
  2036 #define GL_HALF_BIAS_NORMAL_NV            0x853A
  2037 #define GL_HALF_BIAS_NEGATE_NV            0x853B
  2038 #define GL_SIGNED_IDENTITY_NV             0x853C
  2039 #define GL_SIGNED_NEGATE_NV               0x853D
  2040 #define GL_SCALE_BY_TWO_NV                0x853E
  2041 #define GL_SCALE_BY_FOUR_NV               0x853F
  2042 #define GL_SCALE_BY_ONE_HALF_NV           0x8540
  2043 #define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV   0x8541
  2044 #define GL_COMBINER_INPUT_NV              0x8542
  2045 #define GL_COMBINER_MAPPING_NV            0x8543
  2046 #define GL_COMBINER_COMPONENT_USAGE_NV    0x8544
  2047 #define GL_COMBINER_AB_DOT_PRODUCT_NV     0x8545
  2048 #define GL_COMBINER_CD_DOT_PRODUCT_NV     0x8546
  2049 #define GL_COMBINER_MUX_SUM_NV            0x8547
  2050 #define GL_COMBINER_SCALE_NV              0x8548
  2051 #define GL_COMBINER_BIAS_NV               0x8549
  2052 #define GL_COMBINER_AB_OUTPUT_NV          0x854A
  2053 #define GL_COMBINER_CD_OUTPUT_NV          0x854B
  2054 #define GL_COMBINER_SUM_OUTPUT_NV         0x854C
  2055 #define GL_MAX_GENERAL_COMBINERS_NV       0x854D
  2056 #define GL_NUM_GENERAL_COMBINERS_NV       0x854E
  2057 #define GL_COLOR_SUM_CLAMP_NV             0x854F
  2058 #define GL_COMBINER0_NV                   0x8550
  2059 #define GL_COMBINER1_NV                   0x8551
  2060 #define GL_COMBINER2_NV                   0x8552
  2061 #define GL_COMBINER3_NV                   0x8553
  2062 #define GL_COMBINER4_NV                   0x8554
  2063 #define GL_COMBINER5_NV                   0x8555
  2064 #define GL_COMBINER6_NV                   0x8556
  2065 #define GL_COMBINER7_NV                   0x8557
  2066 /* reuse GL_TEXTURE0_ARB */
  2067 /* reuse GL_TEXTURE1_ARB */
  2068 /* reuse GL_ZERO */
  2069 /* reuse GL_NONE */
  2070 /* reuse GL_FOG */
  2071 #endif
  2072 
  2073 #ifndef GL_NV_fog_distance
  2074 #define GL_FOG_DISTANCE_MODE_NV           0x855A
  2075 #define GL_EYE_RADIAL_NV                  0x855B
  2076 #define GL_EYE_PLANE_ABSOLUTE_NV          0x855C
  2077 /* reuse GL_EYE_PLANE */
  2078 #endif
  2079 
  2080 #ifndef GL_NV_texgen_emboss
  2081 #define GL_EMBOSS_LIGHT_NV                0x855D
  2082 #define GL_EMBOSS_CONSTANT_NV             0x855E
  2083 #define GL_EMBOSS_MAP_NV                  0x855F
  2084 #endif
  2085 
  2086 #ifndef GL_NV_blend_square
  2087 #endif
  2088 
  2089 #ifndef GL_NV_texture_env_combine4
  2090 #define GL_COMBINE4_NV                    0x8503
  2091 #define GL_SOURCE3_RGB_NV                 0x8583
  2092 #define GL_SOURCE3_ALPHA_NV               0x858B
  2093 #define GL_OPERAND3_RGB_NV                0x8593
  2094 #define GL_OPERAND3_ALPHA_NV              0x859B
  2095 #endif
  2096 
  2097 #ifndef GL_MESA_resize_buffers
  2098 #endif
  2099 
  2100 #ifndef GL_MESA_window_pos
  2101 #endif
  2102 
  2103 #ifndef GL_EXT_texture_compression_s3tc
  2104 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0
  2105 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT  0x83F1
  2106 #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT  0x83F2
  2107 #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT  0x83F3
  2108 #endif
  2109 
  2110 #ifndef GL_IBM_cull_vertex
  2111 #define GL_CULL_VERTEX_IBM                103050
  2112 #endif
  2113 
  2114 #ifndef GL_IBM_multimode_draw_arrays
  2115 #endif
  2116 
  2117 #ifndef GL_IBM_vertex_array_lists
  2118 #define GL_VERTEX_ARRAY_LIST_IBM          103070
  2119 #define GL_NORMAL_ARRAY_LIST_IBM          103071
  2120 #define GL_COLOR_ARRAY_LIST_IBM           103072
  2121 #define GL_INDEX_ARRAY_LIST_IBM           103073
  2122 #define GL_TEXTURE_COORD_ARRAY_LIST_IBM   103074
  2123 #define GL_EDGE_FLAG_ARRAY_LIST_IBM       103075
  2124 #define GL_FOG_COORDINATE_ARRAY_LIST_IBM  103076
  2125 #define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077
  2126 #define GL_VERTEX_ARRAY_LIST_STRIDE_IBM   103080
  2127 #define GL_NORMAL_ARRAY_LIST_STRIDE_IBM   103081
  2128 #define GL_COLOR_ARRAY_LIST_STRIDE_IBM    103082
  2129 #define GL_INDEX_ARRAY_LIST_STRIDE_IBM    103083
  2130 #define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084
  2131 #define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085
  2132 #define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086
  2133 #define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087
  2134 #endif
  2135 
  2136 #ifndef GL_SGIX_subsample
  2137 #define GL_PACK_SUBSAMPLE_RATE_SGIX       0x85A0
  2138 #define GL_UNPACK_SUBSAMPLE_RATE_SGIX     0x85A1
  2139 #define GL_PIXEL_SUBSAMPLE_4444_SGIX      0x85A2
  2140 #define GL_PIXEL_SUBSAMPLE_2424_SGIX      0x85A3
  2141 #define GL_PIXEL_SUBSAMPLE_4242_SGIX      0x85A4
  2142 #endif
  2143 
  2144 #ifndef GL_SGIX_ycrcb_subsample
  2145 #endif
  2146 
  2147 #ifndef GL_SGIX_ycrcba
  2148 #define GL_YCRCB_SGIX                     0x8318
  2149 #define GL_YCRCBA_SGIX                    0x8319
  2150 #endif
  2151 
  2152 #ifndef GL_SGI_depth_pass_instrument
  2153 #define GL_DEPTH_PASS_INSTRUMENT_SGIX     0x8310
  2154 #define GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX 0x8311
  2155 #define GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX 0x8312
  2156 #endif
  2157 
  2158 #ifndef GL_3DFX_texture_compression_FXT1
  2159 #define GL_COMPRESSED_RGB_FXT1_3DFX       0x86B0
  2160 #define GL_COMPRESSED_RGBA_FXT1_3DFX      0x86B1
  2161 #endif
  2162 
  2163 #ifndef GL_3DFX_multisample
  2164 #define GL_MULTISAMPLE_3DFX               0x86B2
  2165 #define GL_SAMPLE_BUFFERS_3DFX            0x86B3
  2166 #define GL_SAMPLES_3DFX                   0x86B4
  2167 #define GL_MULTISAMPLE_BIT_3DFX           0x20000000
  2168 #endif
  2169 
  2170 #ifndef GL_3DFX_tbuffer
  2171 #endif
  2172 
  2173 #ifndef GL_EXT_multisample
  2174 #define GL_MULTISAMPLE_EXT                0x809D
  2175 #define GL_SAMPLE_ALPHA_TO_MASK_EXT       0x809E
  2176 #define GL_SAMPLE_ALPHA_TO_ONE_EXT        0x809F
  2177 #define GL_SAMPLE_MASK_EXT                0x80A0
  2178 #define GL_1PASS_EXT                      0x80A1
  2179 #define GL_2PASS_0_EXT                    0x80A2
  2180 #define GL_2PASS_1_EXT                    0x80A3
  2181 #define GL_4PASS_0_EXT                    0x80A4
  2182 #define GL_4PASS_1_EXT                    0x80A5
  2183 #define GL_4PASS_2_EXT                    0x80A6
  2184 #define GL_4PASS_3_EXT                    0x80A7
  2185 #define GL_SAMPLE_BUFFERS_EXT             0x80A8
  2186 #define GL_SAMPLES_EXT                    0x80A9
  2187 #define GL_SAMPLE_MASK_VALUE_EXT          0x80AA
  2188 #define GL_SAMPLE_MASK_INVERT_EXT         0x80AB
  2189 #define GL_SAMPLE_PATTERN_EXT             0x80AC
  2190 #define GL_MULTISAMPLE_BIT_EXT            0x20000000
  2191 #endif
  2192 
  2193 #ifndef GL_SGIX_vertex_preclip
  2194 #define GL_VERTEX_PRECLIP_SGIX            0x83EE
  2195 #define GL_VERTEX_PRECLIP_HINT_SGIX       0x83EF
  2196 #endif
  2197 
  2198 #ifndef GL_SGIX_convolution_accuracy
  2199 #define GL_CONVOLUTION_HINT_SGIX          0x8316
  2200 #endif
  2201 
  2202 #ifndef GL_SGIX_resample
  2203 #define GL_PACK_RESAMPLE_SGIX             0x842C
  2204 #define GL_UNPACK_RESAMPLE_SGIX           0x842D
  2205 #define GL_RESAMPLE_REPLICATE_SGIX        0x842E
  2206 #define GL_RESAMPLE_ZERO_FILL_SGIX        0x842F
  2207 #define GL_RESAMPLE_DECIMATE_SGIX         0x8430
  2208 #endif
  2209 
  2210 #ifndef GL_SGIS_point_line_texgen
  2211 #define GL_EYE_DISTANCE_TO_POINT_SGIS     0x81F0
  2212 #define GL_OBJECT_DISTANCE_TO_POINT_SGIS  0x81F1
  2213 #define GL_EYE_DISTANCE_TO_LINE_SGIS      0x81F2
  2214 #define GL_OBJECT_DISTANCE_TO_LINE_SGIS   0x81F3
  2215 #define GL_EYE_POINT_SGIS                 0x81F4
  2216 #define GL_OBJECT_POINT_SGIS              0x81F5
  2217 #define GL_EYE_LINE_SGIS                  0x81F6
  2218 #define GL_OBJECT_LINE_SGIS               0x81F7
  2219 #endif
  2220 
  2221 #ifndef GL_SGIS_texture_color_mask
  2222 #define GL_TEXTURE_COLOR_WRITEMASK_SGIS   0x81EF
  2223 #endif
  2224 
  2225 #ifndef GL_EXT_texture_env_dot3
  2226 #define GL_DOT3_RGB_EXT                   0x8740
  2227 #define GL_DOT3_RGBA_EXT                  0x8741
  2228 #endif
  2229 
  2230 #ifndef GL_ATI_texture_mirror_once
  2231 #define GL_MIRROR_CLAMP_ATI               0x8742
  2232 #define GL_MIRROR_CLAMP_TO_EDGE_ATI       0x8743
  2233 #endif
  2234 
  2235 #ifndef GL_NV_fence
  2236 #define GL_ALL_COMPLETED_NV               0x84F2
  2237 #define GL_FENCE_STATUS_NV                0x84F3
  2238 #define GL_FENCE_CONDITION_NV             0x84F4
  2239 #endif
  2240 
  2241 #ifndef GL_IBM_texture_mirrored_repeat
  2242 #define GL_MIRRORED_REPEAT_IBM            0x8370
  2243 #endif
  2244 
  2245 #ifndef GL_NV_evaluators
  2246 #define GL_EVAL_2D_NV                     0x86C0
  2247 #define GL_EVAL_TRIANGULAR_2D_NV          0x86C1
  2248 #define GL_MAP_TESSELLATION_NV            0x86C2
  2249 #define GL_MAP_ATTRIB_U_ORDER_NV          0x86C3
  2250 #define GL_MAP_ATTRIB_V_ORDER_NV          0x86C4
  2251 #define GL_EVAL_FRACTIONAL_TESSELLATION_NV 0x86C5
  2252 #define GL_EVAL_VERTEX_ATTRIB0_NV         0x86C6
  2253 #define GL_EVAL_VERTEX_ATTRIB1_NV         0x86C7
  2254 #define GL_EVAL_VERTEX_ATTRIB2_NV         0x86C8
  2255 #define GL_EVAL_VERTEX_ATTRIB3_NV         0x86C9
  2256 #define GL_EVAL_VERTEX_ATTRIB4_NV         0x86CA
  2257 #define GL_EVAL_VERTEX_ATTRIB5_NV         0x86CB
  2258 #define GL_EVAL_VERTEX_ATTRIB6_NV         0x86CC
  2259 #define GL_EVAL_VERTEX_ATTRIB7_NV         0x86CD
  2260 #define GL_EVAL_VERTEX_ATTRIB8_NV         0x86CE
  2261 #define GL_EVAL_VERTEX_ATTRIB9_NV         0x86CF
  2262 #define GL_EVAL_VERTEX_ATTRIB10_NV        0x86D0
  2263 #define GL_EVAL_VERTEX_ATTRIB11_NV        0x86D1
  2264 #define GL_EVAL_VERTEX_ATTRIB12_NV        0x86D2
  2265 #define GL_EVAL_VERTEX_ATTRIB13_NV        0x86D3
  2266 #define GL_EVAL_VERTEX_ATTRIB14_NV        0x86D4
  2267 #define GL_EVAL_VERTEX_ATTRIB15_NV        0x86D5
  2268 #define GL_MAX_MAP_TESSELLATION_NV        0x86D6
  2269 #define GL_MAX_RATIONAL_EVAL_ORDER_NV     0x86D7
  2270 #endif
  2271 
  2272 #ifndef GL_NV_packed_depth_stencil
  2273 #define GL_DEPTH_STENCIL_NV               0x84F9
  2274 #define GL_UNSIGNED_INT_24_8_NV           0x84FA
  2275 #endif
  2276 
  2277 #ifndef GL_NV_register_combiners2
  2278 #define GL_PER_STAGE_CONSTANTS_NV         0x8535
  2279 #endif
  2280 
  2281 #ifndef GL_NV_texture_compression_vtc
  2282 #endif
  2283 
  2284 #ifndef GL_NV_texture_rectangle
  2285 #define GL_TEXTURE_RECTANGLE_NV           0x84F5
  2286 #define GL_TEXTURE_BINDING_RECTANGLE_NV   0x84F6
  2287 #define GL_PROXY_TEXTURE_RECTANGLE_NV     0x84F7
  2288 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV  0x84F8
  2289 #endif
  2290 
  2291 #ifndef GL_NV_texture_shader
  2292 #define GL_OFFSET_TEXTURE_RECTANGLE_NV    0x864C
  2293 #define GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV 0x864D
  2294 #define GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV 0x864E
  2295 #define GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV 0x86D9
  2296 #define GL_UNSIGNED_INT_S8_S8_8_8_NV      0x86DA
  2297 #define GL_UNSIGNED_INT_8_8_S8_S8_REV_NV  0x86DB
  2298 #define GL_DSDT_MAG_INTENSITY_NV          0x86DC
  2299 #define GL_SHADER_CONSISTENT_NV           0x86DD
  2300 #define GL_TEXTURE_SHADER_NV              0x86DE
  2301 #define GL_SHADER_OPERATION_NV            0x86DF
  2302 #define GL_CULL_MODES_NV                  0x86E0
  2303 #define GL_OFFSET_TEXTURE_MATRIX_NV       0x86E1
  2304 #define GL_OFFSET_TEXTURE_SCALE_NV        0x86E2
  2305 #define GL_OFFSET_TEXTURE_BIAS_NV         0x86E3
  2306 #define GL_OFFSET_TEXTURE_2D_MATRIX_NV    GL_OFFSET_TEXTURE_MATRIX_NV
  2307 #define GL_OFFSET_TEXTURE_2D_SCALE_NV     GL_OFFSET_TEXTURE_SCALE_NV
  2308 #define GL_OFFSET_TEXTURE_2D_BIAS_NV      GL_OFFSET_TEXTURE_BIAS_NV
  2309 #define GL_PREVIOUS_TEXTURE_INPUT_NV      0x86E4
  2310 #define GL_CONST_EYE_NV                   0x86E5
  2311 #define GL_PASS_THROUGH_NV                0x86E6
  2312 #define GL_CULL_FRAGMENT_NV               0x86E7
  2313 #define GL_OFFSET_TEXTURE_2D_NV           0x86E8
  2314 #define GL_DEPENDENT_AR_TEXTURE_2D_NV     0x86E9
  2315 #define GL_DEPENDENT_GB_TEXTURE_2D_NV     0x86EA
  2316 #define GL_DOT_PRODUCT_NV                 0x86EC
  2317 #define GL_DOT_PRODUCT_DEPTH_REPLACE_NV   0x86ED
  2318 #define GL_DOT_PRODUCT_TEXTURE_2D_NV      0x86EE
  2319 #define GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV 0x86F0
  2320 #define GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV 0x86F1
  2321 #define GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV 0x86F2
  2322 #define GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV 0x86F3
  2323 #define GL_HILO_NV                        0x86F4
  2324 #define GL_DSDT_NV                        0x86F5
  2325 #define GL_DSDT_MAG_NV                    0x86F6
  2326 #define GL_DSDT_MAG_VIB_NV                0x86F7
  2327 #define GL_HILO16_NV                      0x86F8
  2328 #define GL_SIGNED_HILO_NV                 0x86F9
  2329 #define GL_SIGNED_HILO16_NV               0x86FA
  2330 #define GL_SIGNED_RGBA_NV                 0x86FB
  2331 #define GL_SIGNED_RGBA8_NV                0x86FC
  2332 #define GL_SIGNED_RGB_NV                  0x86FE
  2333 #define GL_SIGNED_RGB8_NV                 0x86FF
  2334 #define GL_SIGNED_LUMINANCE_NV            0x8701
  2335 #define GL_SIGNED_LUMINANCE8_NV           0x8702
  2336 #define GL_SIGNED_LUMINANCE_ALPHA_NV      0x8703
  2337 #define GL_SIGNED_LUMINANCE8_ALPHA8_NV    0x8704
  2338 #define GL_SIGNED_ALPHA_NV                0x8705
  2339 #define GL_SIGNED_ALPHA8_NV               0x8706
  2340 #define GL_SIGNED_INTENSITY_NV            0x8707
  2341 #define GL_SIGNED_INTENSITY8_NV           0x8708
  2342 #define GL_DSDT8_NV                       0x8709
  2343 #define GL_DSDT8_MAG8_NV                  0x870A
  2344 #define GL_DSDT8_MAG8_INTENSITY8_NV       0x870B
  2345 #define GL_SIGNED_RGB_UNSIGNED_ALPHA_NV   0x870C
  2346 #define GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV 0x870D
  2347 #define GL_HI_SCALE_NV                    0x870E
  2348 #define GL_LO_SCALE_NV                    0x870F
  2349 #define GL_DS_SCALE_NV                    0x8710
  2350 #define GL_DT_SCALE_NV                    0x8711
  2351 #define GL_MAGNITUDE_SCALE_NV             0x8712
  2352 #define GL_VIBRANCE_SCALE_NV              0x8713
  2353 #define GL_HI_BIAS_NV                     0x8714
  2354 #define GL_LO_BIAS_NV                     0x8715
  2355 #define GL_DS_BIAS_NV                     0x8716
  2356 #define GL_DT_BIAS_NV                     0x8717
  2357 #define GL_MAGNITUDE_BIAS_NV              0x8718
  2358 #define GL_VIBRANCE_BIAS_NV               0x8719
  2359 #define GL_TEXTURE_BORDER_VALUES_NV       0x871A
  2360 #define GL_TEXTURE_HI_SIZE_NV             0x871B
  2361 #define GL_TEXTURE_LO_SIZE_NV             0x871C
  2362 #define GL_TEXTURE_DS_SIZE_NV             0x871D
  2363 #define GL_TEXTURE_DT_SIZE_NV             0x871E
  2364 #define GL_TEXTURE_MAG_SIZE_NV            0x871F
  2365 #endif
  2366 
  2367 #ifndef GL_NV_texture_shader2
  2368 #define GL_DOT_PRODUCT_TEXTURE_3D_NV      0x86EF
  2369 #endif
  2370 
  2371 #ifndef GL_NV_vertex_array_range2
  2372 #define GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV 0x8533
  2373 #endif
  2374 
  2375 #ifndef GL_NV_vertex_program
  2376 #define GL_VERTEX_PROGRAM_NV              0x8620
  2377 #define GL_VERTEX_STATE_PROGRAM_NV        0x8621
  2378 #define GL_ATTRIB_ARRAY_SIZE_NV           0x8623
  2379 #define GL_ATTRIB_ARRAY_STRIDE_NV         0x8624
  2380 #define GL_ATTRIB_ARRAY_TYPE_NV           0x8625
  2381 #define GL_CURRENT_ATTRIB_NV              0x8626
  2382 #define GL_PROGRAM_LENGTH_NV              0x8627
  2383 #define GL_PROGRAM_STRING_NV              0x8628
  2384 #define GL_MODELVIEW_PROJECTION_NV        0x8629
  2385 #define GL_IDENTITY_NV                    0x862A
  2386 #define GL_INVERSE_NV                     0x862B
  2387 #define GL_TRANSPOSE_NV                   0x862C
  2388 #define GL_INVERSE_TRANSPOSE_NV           0x862D
  2389 #define GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV 0x862E
  2390 #define GL_MAX_TRACK_MATRICES_NV          0x862F
  2391 #define GL_MATRIX0_NV                     0x8630
  2392 #define GL_MATRIX1_NV                     0x8631
  2393 #define GL_MATRIX2_NV                     0x8632
  2394 #define GL_MATRIX3_NV                     0x8633
  2395 #define GL_MATRIX4_NV                     0x8634
  2396 #define GL_MATRIX5_NV                     0x8635
  2397 #define GL_MATRIX6_NV                     0x8636
  2398 #define GL_MATRIX7_NV                     0x8637
  2399 #define GL_CURRENT_MATRIX_STACK_DEPTH_NV  0x8640
  2400 #define GL_CURRENT_MATRIX_NV              0x8641
  2401 #define GL_VERTEX_PROGRAM_POINT_SIZE_NV   0x8642
  2402 #define GL_VERTEX_PROGRAM_TWO_SIDE_NV     0x8643
  2403 #define GL_PROGRAM_PARAMETER_NV           0x8644
  2404 #define GL_ATTRIB_ARRAY_POINTER_NV        0x8645
  2405 #define GL_PROGRAM_TARGET_NV              0x8646
  2406 #define GL_PROGRAM_RESIDENT_NV            0x8647
  2407 #define GL_TRACK_MATRIX_NV                0x8648
  2408 #define GL_TRACK_MATRIX_TRANSFORM_NV      0x8649
  2409 #define GL_VERTEX_PROGRAM_BINDING_NV      0x864A
  2410 #define GL_PROGRAM_ERROR_POSITION_NV      0x864B
  2411 #define GL_VERTEX_ATTRIB_ARRAY0_NV        0x8650
  2412 #define GL_VERTEX_ATTRIB_ARRAY1_NV        0x8651
  2413 #define GL_VERTEX_ATTRIB_ARRAY2_NV        0x8652
  2414 #define GL_VERTEX_ATTRIB_ARRAY3_NV        0x8653
  2415 #define GL_VERTEX_ATTRIB_ARRAY4_NV        0x8654
  2416 #define GL_VERTEX_ATTRIB_ARRAY5_NV        0x8655
  2417 #define GL_VERTEX_ATTRIB_ARRAY6_NV        0x8656
  2418 #define GL_VERTEX_ATTRIB_ARRAY7_NV        0x8657
  2419 #define GL_VERTEX_ATTRIB_ARRAY8_NV        0x8658
  2420 #define GL_VERTEX_ATTRIB_ARRAY9_NV        0x8659
  2421 #define GL_VERTEX_ATTRIB_ARRAY10_NV       0x865A
  2422 #define GL_VERTEX_ATTRIB_ARRAY11_NV       0x865B
  2423 #define GL_VERTEX_ATTRIB_ARRAY12_NV       0x865C
  2424 #define GL_VERTEX_ATTRIB_ARRAY13_NV       0x865D
  2425 #define GL_VERTEX_ATTRIB_ARRAY14_NV       0x865E
  2426 #define GL_VERTEX_ATTRIB_ARRAY15_NV       0x865F
  2427 #define GL_MAP1_VERTEX_ATTRIB0_4_NV       0x8660
  2428 #define GL_MAP1_VERTEX_ATTRIB1_4_NV       0x8661
  2429 #define GL_MAP1_VERTEX_ATTRIB2_4_NV       0x8662
  2430 #define GL_MAP1_VERTEX_ATTRIB3_4_NV       0x8663
  2431 #define GL_MAP1_VERTEX_ATTRIB4_4_NV       0x8664
  2432 #define GL_MAP1_VERTEX_ATTRIB5_4_NV       0x8665
  2433 #define GL_MAP1_VERTEX_ATTRIB6_4_NV       0x8666
  2434 #define GL_MAP1_VERTEX_ATTRIB7_4_NV       0x8667
  2435 #define GL_MAP1_VERTEX_ATTRIB8_4_NV       0x8668
  2436 #define GL_MAP1_VERTEX_ATTRIB9_4_NV       0x8669
  2437 #define GL_MAP1_VERTEX_ATTRIB10_4_NV      0x866A
  2438 #define GL_MAP1_VERTEX_ATTRIB11_4_NV      0x866B
  2439 #define GL_MAP1_VERTEX_ATTRIB12_4_NV      0x866C
  2440 #define GL_MAP1_VERTEX_ATTRIB13_4_NV      0x866D
  2441 #define GL_MAP1_VERTEX_ATTRIB14_4_NV      0x866E
  2442 #define GL_MAP1_VERTEX_ATTRIB15_4_NV      0x866F
  2443 #define GL_MAP2_VERTEX_ATTRIB0_4_NV       0x8670
  2444 #define GL_MAP2_VERTEX_ATTRIB1_4_NV       0x8671
  2445 #define GL_MAP2_VERTEX_ATTRIB2_4_NV       0x8672
  2446 #define GL_MAP2_VERTEX_ATTRIB3_4_NV       0x8673
  2447 #define GL_MAP2_VERTEX_ATTRIB4_4_NV       0x8674
  2448 #define GL_MAP2_VERTEX_ATTRIB5_4_NV       0x8675
  2449 #define GL_MAP2_VERTEX_ATTRIB6_4_NV       0x8676
  2450 #define GL_MAP2_VERTEX_ATTRIB7_4_NV       0x8677
  2451 #define GL_MAP2_VERTEX_ATTRIB8_4_NV       0x8678
  2452 #define GL_MAP2_VERTEX_ATTRIB9_4_NV       0x8679
  2453 #define GL_MAP2_VERTEX_ATTRIB10_4_NV      0x867A
  2454 #define GL_MAP2_VERTEX_ATTRIB11_4_NV      0x867B
  2455 #define GL_MAP2_VERTEX_ATTRIB12_4_NV      0x867C
  2456 #define GL_MAP2_VERTEX_ATTRIB13_4_NV      0x867D
  2457 #define GL_MAP2_VERTEX_ATTRIB14_4_NV      0x867E
  2458 #define GL_MAP2_VERTEX_ATTRIB15_4_NV      0x867F
  2459 #endif
  2460 
  2461 #ifndef GL_SGIX_texture_coordinate_clamp
  2462 #define GL_TEXTURE_MAX_CLAMP_S_SGIX       0x8369
  2463 #define GL_TEXTURE_MAX_CLAMP_T_SGIX       0x836A
  2464 #define GL_TEXTURE_MAX_CLAMP_R_SGIX       0x836B
  2465 #endif
  2466 
  2467 #ifndef GL_SGIX_scalebias_hint
  2468 #define GL_SCALEBIAS_HINT_SGIX            0x8322
  2469 #endif
  2470 
  2471 #ifndef GL_OML_interlace
  2472 #define GL_INTERLACE_OML                  0x8980
  2473 #define GL_INTERLACE_READ_OML             0x8981
  2474 #endif
  2475 
  2476 #ifndef GL_OML_subsample
  2477 #define GL_FORMAT_SUBSAMPLE_24_24_OML     0x8982
  2478 #define GL_FORMAT_SUBSAMPLE_244_244_OML   0x8983
  2479 #endif
  2480 
  2481 #ifndef GL_OML_resample
  2482 #define GL_PACK_RESAMPLE_OML              0x8984
  2483 #define GL_UNPACK_RESAMPLE_OML            0x8985
  2484 #define GL_RESAMPLE_REPLICATE_OML         0x8986
  2485 #define GL_RESAMPLE_ZERO_FILL_OML         0x8987
  2486 #define GL_RESAMPLE_AVERAGE_OML           0x8988
  2487 #define GL_RESAMPLE_DECIMATE_OML          0x8989
  2488 #endif
  2489 
  2490 #ifndef GL_NV_copy_depth_to_color
  2491 #define GL_DEPTH_STENCIL_TO_RGBA_NV       0x886E
  2492 #define GL_DEPTH_STENCIL_TO_BGRA_NV       0x886F
  2493 #endif
  2494 
  2495 #ifndef GL_ATI_envmap_bumpmap
  2496 #define GL_BUMP_ROT_MATRIX_ATI            0x8775
  2497 #define GL_BUMP_ROT_MATRIX_SIZE_ATI       0x8776
  2498 #define GL_BUMP_NUM_TEX_UNITS_ATI         0x8777
  2499 #define GL_BUMP_TEX_UNITS_ATI             0x8778
  2500 #define GL_DUDV_ATI                       0x8779
  2501 #define GL_DU8DV8_ATI                     0x877A
  2502 #define GL_BUMP_ENVMAP_ATI                0x877B
  2503 #define GL_BUMP_TARGET_ATI                0x877C
  2504 #endif
  2505 
  2506 #ifndef GL_ATI_fragment_shader
  2507 #define GL_FRAGMENT_SHADER_ATI            0x8920
  2508 #define GL_REG_0_ATI                      0x8921
  2509 #define GL_REG_1_ATI                      0x8922
  2510 #define GL_REG_2_ATI                      0x8923
  2511 #define GL_REG_3_ATI                      0x8924
  2512 #define GL_REG_4_ATI                      0x8925
  2513 #define GL_REG_5_ATI                      0x8926
  2514 #define GL_REG_6_ATI                      0x8927
  2515 #define GL_REG_7_ATI                      0x8928
  2516 #define GL_REG_8_ATI                      0x8929
  2517 #define GL_REG_9_ATI                      0x892A
  2518 #define GL_REG_10_ATI                     0x892B
  2519 #define GL_REG_11_ATI                     0x892C
  2520 #define GL_REG_12_ATI                     0x892D
  2521 #define GL_REG_13_ATI                     0x892E
  2522 #define GL_REG_14_ATI                     0x892F
  2523 #define GL_REG_15_ATI                     0x8930
  2524 #define GL_REG_16_ATI                     0x8931
  2525 #define GL_REG_17_ATI                     0x8932
  2526 #define GL_REG_18_ATI                     0x8933
  2527 #define GL_REG_19_ATI                     0x8934
  2528 #define GL_REG_20_ATI                     0x8935
  2529 #define GL_REG_21_ATI                     0x8936
  2530 #define GL_REG_22_ATI                     0x8937
  2531 #define GL_REG_23_ATI                     0x8938
  2532 #define GL_REG_24_ATI                     0x8939
  2533 #define GL_REG_25_ATI                     0x893A
  2534 #define GL_REG_26_ATI                     0x893B
  2535 #define GL_REG_27_ATI                     0x893C
  2536 #define GL_REG_28_ATI                     0x893D
  2537 #define GL_REG_29_ATI                     0x893E
  2538 #define GL_REG_30_ATI                     0x893F
  2539 #define GL_REG_31_ATI                     0x8940
  2540 #define GL_CON_0_ATI                      0x8941
  2541 #define GL_CON_1_ATI                      0x8942
  2542 #define GL_CON_2_ATI                      0x8943
  2543 #define GL_CON_3_ATI                      0x8944
  2544 #define GL_CON_4_ATI                      0x8945
  2545 #define GL_CON_5_ATI                      0x8946
  2546 #define GL_CON_6_ATI                      0x8947
  2547 #define GL_CON_7_ATI                      0x8948
  2548 #define GL_CON_8_ATI                      0x8949
  2549 #define GL_CON_9_ATI                      0x894A
  2550 #define GL_CON_10_ATI                     0x894B
  2551 #define GL_CON_11_ATI                     0x894C
  2552 #define GL_CON_12_ATI                     0x894D
  2553 #define GL_CON_13_ATI                     0x894E
  2554 #define GL_CON_14_ATI                     0x894F
  2555 #define GL_CON_15_ATI                     0x8950
  2556 #define GL_CON_16_ATI                     0x8951
  2557 #define GL_CON_17_ATI                     0x8952
  2558 #define GL_CON_18_ATI                     0x8953
  2559 #define GL_CON_19_ATI                     0x8954
  2560 #define GL_CON_20_ATI                     0x8955
  2561 #define GL_CON_21_ATI                     0x8956
  2562 #define GL_CON_22_ATI                     0x8957
  2563 #define GL_CON_23_ATI                     0x8958
  2564 #define GL_CON_24_ATI                     0x8959
  2565 #define GL_CON_25_ATI                     0x895A
  2566 #define GL_CON_26_ATI                     0x895B
  2567 #define GL_CON_27_ATI                     0x895C
  2568 #define GL_CON_28_ATI                     0x895D
  2569 #define GL_CON_29_ATI                     0x895E
  2570 #define GL_CON_30_ATI                     0x895F
  2571 #define GL_CON_31_ATI                     0x8960
  2572 #define GL_MOV_ATI                        0x8961
  2573 #define GL_ADD_ATI                        0x8963
  2574 #define GL_MUL_ATI                        0x8964
  2575 #define GL_SUB_ATI                        0x8965
  2576 #define GL_DOT3_ATI                       0x8966
  2577 #define GL_DOT4_ATI                       0x8967
  2578 #define GL_MAD_ATI                        0x8968
  2579 #define GL_LERP_ATI                       0x8969
  2580 #define GL_CND_ATI                        0x896A
  2581 #define GL_CND0_ATI                       0x896B
  2582 #define GL_DOT2_ADD_ATI                   0x896C
  2583 #define GL_SECONDARY_INTERPOLATOR_ATI     0x896D
  2584 #define GL_NUM_FRAGMENT_REGISTERS_ATI     0x896E
  2585 #define GL_NUM_FRAGMENT_CONSTANTS_ATI     0x896F
  2586 #define GL_NUM_PASSES_ATI                 0x8970
  2587 #define GL_NUM_INSTRUCTIONS_PER_PASS_ATI  0x8971
  2588 #define GL_NUM_INSTRUCTIONS_TOTAL_ATI     0x8972
  2589 #define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973
  2590 #define GL_NUM_LOOPBACK_COMPONENTS_ATI    0x8974
  2591 #define GL_COLOR_ALPHA_PAIRING_ATI        0x8975
  2592 #define GL_SWIZZLE_STR_ATI                0x8976
  2593 #define GL_SWIZZLE_STQ_ATI                0x8977
  2594 #define GL_SWIZZLE_STR_DR_ATI             0x8978
  2595 #define GL_SWIZZLE_STQ_DQ_ATI             0x8979
  2596 #define GL_SWIZZLE_STRQ_ATI               0x897A
  2597 #define GL_SWIZZLE_STRQ_DQ_ATI            0x897B
  2598 #define GL_RED_BIT_ATI                    0x00000001
  2599 #define GL_GREEN_BIT_ATI                  0x00000002
  2600 #define GL_BLUE_BIT_ATI                   0x00000004
  2601 #define GL_2X_BIT_ATI                     0x00000001
  2602 #define GL_4X_BIT_ATI                     0x00000002
  2603 #define GL_8X_BIT_ATI                     0x00000004
  2604 #define GL_HALF_BIT_ATI                   0x00000008
  2605 #define GL_QUARTER_BIT_ATI                0x00000010
  2606 #define GL_EIGHTH_BIT_ATI                 0x00000020
  2607 #define GL_SATURATE_BIT_ATI               0x00000040
  2608 #define GL_COMP_BIT_ATI                   0x00000002
  2609 #define GL_NEGATE_BIT_ATI                 0x00000004
  2610 #define GL_BIAS_BIT_ATI                   0x00000008
  2611 #endif
  2612 
  2613 #ifndef GL_ATI_pn_triangles
  2614 #define GL_PN_TRIANGLES_ATI               0x87F0
  2615 #define GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1
  2616 #define GL_PN_TRIANGLES_POINT_MODE_ATI    0x87F2
  2617 #define GL_PN_TRIANGLES_NORMAL_MODE_ATI   0x87F3
  2618 #define GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F4
  2619 #define GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI 0x87F5
  2620 #define GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI 0x87F6
  2621 #define GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI 0x87F7
  2622 #define GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI 0x87F8
  2623 #endif
  2624 
  2625 #ifndef GL_ATI_vertex_array_object
  2626 #define GL_STATIC_ATI                     0x8760
  2627 #define GL_DYNAMIC_ATI                    0x8761
  2628 #define GL_PRESERVE_ATI                   0x8762
  2629 #define GL_DISCARD_ATI                    0x8763
  2630 #define GL_OBJECT_BUFFER_SIZE_ATI         0x8764
  2631 #define GL_OBJECT_BUFFER_USAGE_ATI        0x8765
  2632 #define GL_ARRAY_OBJECT_BUFFER_ATI        0x8766
  2633 #define GL_ARRAY_OBJECT_OFFSET_ATI        0x8767
  2634 #endif
  2635 
  2636 #ifndef GL_EXT_vertex_shader
  2637 #define GL_VERTEX_SHADER_EXT              0x8780
  2638 #define GL_VERTEX_SHADER_BINDING_EXT      0x8781
  2639 #define GL_OP_INDEX_EXT                   0x8782
  2640 #define GL_OP_NEGATE_EXT                  0x8783
  2641 #define GL_OP_DOT3_EXT                    0x8784
  2642 #define GL_OP_DOT4_EXT                    0x8785
  2643 #define GL_OP_MUL_EXT                     0x8786
  2644 #define GL_OP_ADD_EXT                     0x8787
  2645 #define GL_OP_MADD_EXT                    0x8788
  2646 #define GL_OP_FRAC_EXT                    0x8789
  2647 #define GL_OP_MAX_EXT                     0x878A
  2648 #define GL_OP_MIN_EXT                     0x878B
  2649 #define GL_OP_SET_GE_EXT                  0x878C
  2650 #define GL_OP_SET_LT_EXT                  0x878D
  2651 #define GL_OP_CLAMP_EXT                   0x878E
  2652 #define GL_OP_FLOOR_EXT                   0x878F
  2653 #define GL_OP_ROUND_EXT                   0x8790
  2654 #define GL_OP_EXP_BASE_2_EXT              0x8791
  2655 #define GL_OP_LOG_BASE_2_EXT              0x8792
  2656 #define GL_OP_POWER_EXT                   0x8793
  2657 #define GL_OP_RECIP_EXT                   0x8794
  2658 #define GL_OP_RECIP_SQRT_EXT              0x8795
  2659 #define GL_OP_SUB_EXT                     0x8796
  2660 #define GL_OP_CROSS_PRODUCT_EXT           0x8797
  2661 #define GL_OP_MULTIPLY_MATRIX_EXT         0x8798
  2662 #define GL_OP_MOV_EXT                     0x8799
  2663 #define GL_OUTPUT_VERTEX_EXT              0x879A
  2664 #define GL_OUTPUT_COLOR0_EXT              0x879B
  2665 #define GL_OUTPUT_COLOR1_EXT              0x879C
  2666 #define GL_OUTPUT_TEXTURE_COORD0_EXT      0x879D
  2667 #define GL_OUTPUT_TEXTURE_COORD1_EXT      0x879E
  2668 #define GL_OUTPUT_TEXTURE_COORD2_EXT      0x879F
  2669 #define GL_OUTPUT_TEXTURE_COORD3_EXT      0x87A0
  2670 #define GL_OUTPUT_TEXTURE_COORD4_EXT      0x87A1
  2671 #define GL_OUTPUT_TEXTURE_COORD5_EXT      0x87A2
  2672 #define GL_OUTPUT_TEXTURE_COORD6_EXT      0x87A3
  2673 #define GL_OUTPUT_TEXTURE_COORD7_EXT      0x87A4
  2674 #define GL_OUTPUT_TEXTURE_COORD8_EXT      0x87A5
  2675 #define GL_OUTPUT_TEXTURE_COORD9_EXT      0x87A6
  2676 #define GL_OUTPUT_TEXTURE_COORD10_EXT     0x87A7
  2677 #define GL_OUTPUT_TEXTURE_COORD11_EXT     0x87A8
  2678 #define GL_OUTPUT_TEXTURE_COORD12_EXT     0x87A9
  2679 #define GL_OUTPUT_TEXTURE_COORD13_EXT     0x87AA
  2680 #define GL_OUTPUT_TEXTURE_COORD14_EXT     0x87AB
  2681 #define GL_OUTPUT_TEXTURE_COORD15_EXT     0x87AC
  2682 #define GL_OUTPUT_TEXTURE_COORD16_EXT     0x87AD
  2683 #define GL_OUTPUT_TEXTURE_COORD17_EXT     0x87AE
  2684 #define GL_OUTPUT_TEXTURE_COORD18_EXT     0x87AF
  2685 #define GL_OUTPUT_TEXTURE_COORD19_EXT     0x87B0
  2686 #define GL_OUTPUT_TEXTURE_COORD20_EXT     0x87B1
  2687 #define GL_OUTPUT_TEXTURE_COORD21_EXT     0x87B2
  2688 #define GL_OUTPUT_TEXTURE_COORD22_EXT     0x87B3
  2689 #define GL_OUTPUT_TEXTURE_COORD23_EXT     0x87B4
  2690 #define GL_OUTPUT_TEXTURE_COORD24_EXT     0x87B5
  2691 #define GL_OUTPUT_TEXTURE_COORD25_EXT     0x87B6
  2692 #define GL_OUTPUT_TEXTURE_COORD26_EXT     0x87B7
  2693 #define GL_OUTPUT_TEXTURE_COORD27_EXT     0x87B8
  2694 #define GL_OUTPUT_TEXTURE_COORD28_EXT     0x87B9
  2695 #define GL_OUTPUT_TEXTURE_COORD29_EXT     0x87BA
  2696 #define GL_OUTPUT_TEXTURE_COORD30_EXT     0x87BB
  2697 #define GL_OUTPUT_TEXTURE_COORD31_EXT     0x87BC
  2698 #define GL_OUTPUT_FOG_EXT                 0x87BD
  2699 #define GL_SCALAR_EXT                     0x87BE
  2700 #define GL_VECTOR_EXT                     0x87BF
  2701 #define GL_MATRIX_EXT                     0x87C0
  2702 #define GL_VARIANT_EXT                    0x87C1
  2703 #define GL_INVARIANT_EXT                  0x87C2
  2704 #define GL_LOCAL_CONSTANT_EXT             0x87C3
  2705 #define GL_LOCAL_EXT                      0x87C4
  2706 #define GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87C5
  2707 #define GL_MAX_VERTEX_SHADER_VARIANTS_EXT 0x87C6
  2708 #define GL_MAX_VERTEX_SHADER_INVARIANTS_EXT 0x87C7
  2709 #define GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87C8
  2710 #define GL_MAX_VERTEX_SHADER_LOCALS_EXT   0x87C9
  2711 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CA
  2712 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT 0x87CB
  2713 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87CC
  2714 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT 0x87CD
  2715 #define GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT 0x87CE
  2716 #define GL_VERTEX_SHADER_INSTRUCTIONS_EXT 0x87CF
  2717 #define GL_VERTEX_SHADER_VARIANTS_EXT     0x87D0
  2718 #define GL_VERTEX_SHADER_INVARIANTS_EXT   0x87D1
  2719 #define GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT 0x87D2
  2720 #define GL_VERTEX_SHADER_LOCALS_EXT       0x87D3
  2721 #define GL_VERTEX_SHADER_OPTIMIZED_EXT    0x87D4
  2722 #define GL_X_EXT                          0x87D5
  2723 #define GL_Y_EXT                          0x87D6
  2724 #define GL_Z_EXT                          0x87D7
  2725 #define GL_W_EXT                          0x87D8
  2726 #define GL_NEGATIVE_X_EXT                 0x87D9
  2727 #define GL_NEGATIVE_Y_EXT                 0x87DA
  2728 #define GL_NEGATIVE_Z_EXT                 0x87DB
  2729 #define GL_NEGATIVE_W_EXT                 0x87DC
  2730 #define GL_ZERO_EXT                       0x87DD
  2731 #define GL_ONE_EXT                        0x87DE
  2732 #define GL_NEGATIVE_ONE_EXT               0x87DF
  2733 #define GL_NORMALIZED_RANGE_EXT           0x87E0
  2734 #define GL_FULL_RANGE_EXT                 0x87E1
  2735 #define GL_CURRENT_VERTEX_EXT             0x87E2
  2736 #define GL_MVP_MATRIX_EXT                 0x87E3
  2737 #define GL_VARIANT_VALUE_EXT              0x87E4
  2738 #define GL_VARIANT_DATATYPE_EXT           0x87E5
  2739 #define GL_VARIANT_ARRAY_STRIDE_EXT       0x87E6
  2740 #define GL_VARIANT_ARRAY_TYPE_EXT         0x87E7
  2741 #define GL_VARIANT_ARRAY_EXT              0x87E8
  2742 #define GL_VARIANT_ARRAY_POINTER_EXT      0x87E9
  2743 #define GL_INVARIANT_VALUE_EXT            0x87EA
  2744 #define GL_INVARIANT_DATATYPE_EXT         0x87EB
  2745 #define GL_LOCAL_CONSTANT_VALUE_EXT       0x87EC
  2746 #define GL_LOCAL_CONSTANT_DATATYPE_EXT    0x87ED
  2747 #endif
  2748 
  2749 #ifndef GL_ATI_vertex_streams
  2750 #define GL_MAX_VERTEX_STREAMS_ATI         0x876B
  2751 #define GL_VERTEX_STREAM0_ATI             0x876C
  2752 #define GL_VERTEX_STREAM1_ATI             0x876D
  2753 #define GL_VERTEX_STREAM2_ATI             0x876E
  2754 #define GL_VERTEX_STREAM3_ATI             0x876F
  2755 #define GL_VERTEX_STREAM4_ATI             0x8770
  2756 #define GL_VERTEX_STREAM5_ATI             0x8771
  2757 #define GL_VERTEX_STREAM6_ATI             0x8772
  2758 #define GL_VERTEX_STREAM7_ATI             0x8773
  2759 #define GL_VERTEX_SOURCE_ATI              0x8774
  2760 #endif
  2761 
  2762 #ifndef GL_ATI_element_array
  2763 #define GL_ELEMENT_ARRAY_ATI              0x8768
  2764 #define GL_ELEMENT_ARRAY_TYPE_ATI         0x8769
  2765 #define GL_ELEMENT_ARRAY_POINTER_ATI      0x876A
  2766 #endif
  2767 
  2768 #ifndef GL_SUN_mesh_array
  2769 #define GL_QUAD_MESH_SUN                  0x8614
  2770 #define GL_TRIANGLE_MESH_SUN              0x8615
  2771 #endif
  2772 
  2773 #ifndef GL_SUN_slice_accum
  2774 #define GL_SLICE_ACCUM_SUN                0x85CC
  2775 #endif
  2776 
  2777 #ifndef GL_NV_multisample_filter_hint
  2778 #define GL_MULTISAMPLE_FILTER_HINT_NV     0x8534
  2779 #endif
  2780 
  2781 #ifndef GL_NV_depth_clamp
  2782 #define GL_DEPTH_CLAMP_NV                 0x864F
  2783 #endif
  2784 
  2785 #ifndef GL_NV_occlusion_query
  2786 #define GL_PIXEL_COUNTER_BITS_NV          0x8864
  2787 #define GL_CURRENT_OCCLUSION_QUERY_ID_NV  0x8865
  2788 #define GL_PIXEL_COUNT_NV                 0x8866
  2789 #define GL_PIXEL_COUNT_AVAILABLE_NV       0x8867
  2790 #endif
  2791 
  2792 #ifndef GL_NV_point_sprite
  2793 #define GL_POINT_SPRITE_NV                0x8861
  2794 #define GL_COORD_REPLACE_NV               0x8862
  2795 #define GL_POINT_SPRITE_R_MODE_NV         0x8863
  2796 #endif
  2797 
  2798 #ifndef GL_NV_texture_shader3
  2799 #define GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV 0x8850
  2800 #define GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV 0x8851
  2801 #define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8852
  2802 #define GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV 0x8853
  2803 #define GL_OFFSET_HILO_TEXTURE_2D_NV      0x8854
  2804 #define GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV 0x8855
  2805 #define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV 0x8856
  2806 #define GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV 0x8857
  2807 #define GL_DEPENDENT_HILO_TEXTURE_2D_NV   0x8858
  2808 #define GL_DEPENDENT_RGB_TEXTURE_3D_NV    0x8859
  2809 #define GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV 0x885A
  2810 #define GL_DOT_PRODUCT_PASS_THROUGH_NV    0x885B
  2811 #define GL_DOT_PRODUCT_TEXTURE_1D_NV      0x885C
  2812 #define GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV 0x885D
  2813 #define GL_HILO8_NV                       0x885E
  2814 #define GL_SIGNED_HILO8_NV                0x885F
  2815 #define GL_FORCE_BLUE_TO_ONE_NV           0x8860
  2816 #endif
  2817 
  2818 #ifndef GL_NV_vertex_program1_1
  2819 #endif
  2820 
  2821 #ifndef GL_EXT_shadow_funcs
  2822 #endif
  2823 
  2824 #ifndef GL_EXT_stencil_two_side
  2825 #define GL_STENCIL_TEST_TWO_SIDE_EXT      0x8910
  2826 #define GL_ACTIVE_STENCIL_FACE_EXT        0x8911
  2827 #endif
  2828 
  2829 #ifndef GL_ATI_text_fragment_shader
  2830 #define GL_TEXT_FRAGMENT_SHADER_ATI       0x8200
  2831 #endif
  2832 
  2833 #ifndef GL_APPLE_client_storage
  2834 #define GL_UNPACK_CLIENT_STORAGE_APPLE    0x85B2
  2835 #endif
  2836 
  2837 #ifndef GL_APPLE_element_array
  2838 #define GL_ELEMENT_ARRAY_APPLE            0x8768
  2839 #define GL_ELEMENT_ARRAY_TYPE_APPLE       0x8769
  2840 #define GL_ELEMENT_ARRAY_POINTER_APPLE    0x876A
  2841 #endif
  2842 
  2843 #ifndef GL_APPLE_fence
  2844 #define GL_DRAW_PIXELS_APPLE              0x8A0A
  2845 #define GL_FENCE_APPLE                    0x8A0B
  2846 #endif
  2847 
  2848 #ifndef GL_APPLE_vertex_array_object
  2849 #define GL_VERTEX_ARRAY_BINDING_APPLE     0x85B5
  2850 #endif
  2851 
  2852 #ifndef GL_APPLE_vertex_array_range
  2853 #define GL_VERTEX_ARRAY_RANGE_APPLE       0x851D
  2854 #define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E
  2855 #define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F
  2856 #define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521
  2857 #define GL_STORAGE_CACHED_APPLE           0x85BE
  2858 #define GL_STORAGE_SHARED_APPLE           0x85BF
  2859 #endif
  2860 
  2861 #ifndef GL_APPLE_ycbcr_422
  2862 #define GL_YCBCR_422_APPLE                0x85B9
  2863 #define GL_UNSIGNED_SHORT_8_8_APPLE       0x85BA
  2864 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE   0x85BB
  2865 #endif
  2866 
  2867 #ifndef GL_S3_s3tc
  2868 #define GL_RGB_S3TC                       0x83A0
  2869 #define GL_RGB4_S3TC                      0x83A1
  2870 #define GL_RGBA_S3TC                      0x83A2
  2871 #define GL_RGBA4_S3TC                     0x83A3
  2872 #endif
  2873 
  2874 #ifndef GL_ATI_draw_buffers
  2875 #define GL_MAX_DRAW_BUFFERS_ATI           0x8824
  2876 #define GL_DRAW_BUFFER0_ATI               0x8825
  2877 #define GL_DRAW_BUFFER1_ATI               0x8826
  2878 #define GL_DRAW_BUFFER2_ATI               0x8827
  2879 #define GL_DRAW_BUFFER3_ATI               0x8828
  2880 #define GL_DRAW_BUFFER4_ATI               0x8829
  2881 #define GL_DRAW_BUFFER5_ATI               0x882A
  2882 #define GL_DRAW_BUFFER6_ATI               0x882B
  2883 #define GL_DRAW_BUFFER7_ATI               0x882C
  2884 #define GL_DRAW_BUFFER8_ATI               0x882D
  2885 #define GL_DRAW_BUFFER9_ATI               0x882E
  2886 #define GL_DRAW_BUFFER10_ATI              0x882F
  2887 #define GL_DRAW_BUFFER11_ATI              0x8830
  2888 #define GL_DRAW_BUFFER12_ATI              0x8831
  2889 #define GL_DRAW_BUFFER13_ATI              0x8832
  2890 #define GL_DRAW_BUFFER14_ATI              0x8833
  2891 #define GL_DRAW_BUFFER15_ATI              0x8834
  2892 #endif
  2893 
  2894 #ifndef GL_ATI_pixel_format_float
  2895 #define GL_TYPE_RGBA_FLOAT_ATI            0x8820
  2896 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
  2897 #endif
  2898 
  2899 #ifndef GL_ATI_texture_env_combine3
  2900 #define GL_MODULATE_ADD_ATI               0x8744
  2901 #define GL_MODULATE_SIGNED_ADD_ATI        0x8745
  2902 #define GL_MODULATE_SUBTRACT_ATI          0x8746
  2903 #endif
  2904 
  2905 #ifndef GL_ATI_texture_float
  2906 #define GL_RGBA_FLOAT32_ATI               0x8814
  2907 #define GL_RGB_FLOAT32_ATI                0x8815
  2908 #define GL_ALPHA_FLOAT32_ATI              0x8816
  2909 #define GL_INTENSITY_FLOAT32_ATI          0x8817
  2910 #define GL_LUMINANCE_FLOAT32_ATI          0x8818
  2911 #define GL_LUMINANCE_ALPHA_FLOAT32_ATI    0x8819
  2912 #define GL_RGBA_FLOAT16_ATI               0x881A
  2913 #define GL_RGB_FLOAT16_ATI                0x881B
  2914 #define GL_ALPHA_FLOAT16_ATI              0x881C
  2915 #define GL_INTENSITY_FLOAT16_ATI          0x881D
  2916 #define GL_LUMINANCE_FLOAT16_ATI          0x881E
  2917 #define GL_LUMINANCE_ALPHA_FLOAT16_ATI    0x881F
  2918 #endif
  2919 
  2920 #ifndef GL_NV_float_buffer
  2921 #define GL_FLOAT_R_NV                     0x8880
  2922 #define GL_FLOAT_RG_NV                    0x8881
  2923 #define GL_FLOAT_RGB_NV                   0x8882
  2924 #define GL_FLOAT_RGBA_NV                  0x8883
  2925 #define GL_FLOAT_R16_NV                   0x8884
  2926 #define GL_FLOAT_R32_NV                   0x8885
  2927 #define GL_FLOAT_RG16_NV                  0x8886
  2928 #define GL_FLOAT_RG32_NV                  0x8887
  2929 #define GL_FLOAT_RGB16_NV                 0x8888
  2930 #define GL_FLOAT_RGB32_NV                 0x8889
  2931 #define GL_FLOAT_RGBA16_NV                0x888A
  2932 #define GL_FLOAT_RGBA32_NV                0x888B
  2933 #define GL_TEXTURE_FLOAT_COMPONENTS_NV    0x888C
  2934 #define GL_FLOAT_CLEAR_COLOR_VALUE_NV     0x888D
  2935 #define GL_FLOAT_RGBA_MODE_NV             0x888E
  2936 #endif
  2937 
  2938 #ifndef GL_NV_fragment_program
  2939 #define GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 0x8868
  2940 #define GL_FRAGMENT_PROGRAM_NV            0x8870
  2941 #define GL_MAX_TEXTURE_COORDS_NV          0x8871
  2942 #define GL_MAX_TEXTURE_IMAGE_UNITS_NV     0x8872
  2943 #define GL_FRAGMENT_PROGRAM_BINDING_NV    0x8873
  2944 #define GL_PROGRAM_ERROR_STRING_NV        0x8874
  2945 #endif
  2946 
  2947 #ifndef GL_NV_half_float
  2948 #define GL_HALF_FLOAT_NV                  0x140B
  2949 #endif
  2950 
  2951 #ifndef GL_NV_pixel_data_range
  2952 #define GL_WRITE_PIXEL_DATA_RANGE_NV      0x8878
  2953 #define GL_READ_PIXEL_DATA_RANGE_NV       0x8879
  2954 #define GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV 0x887A
  2955 #define GL_READ_PIXEL_DATA_RANGE_LENGTH_NV 0x887B
  2956 #define GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV 0x887C
  2957 #define GL_READ_PIXEL_DATA_RANGE_POINTER_NV 0x887D
  2958 #endif
  2959 
  2960 #ifndef GL_NV_primitive_restart
  2961 #define GL_PRIMITIVE_RESTART_NV           0x8558
  2962 #define GL_PRIMITIVE_RESTART_INDEX_NV     0x8559
  2963 #endif
  2964 
  2965 #ifndef GL_NV_texture_expand_normal
  2966 #define GL_TEXTURE_UNSIGNED_REMAP_MODE_NV 0x888F
  2967 #endif
  2968 
  2969 #ifndef GL_NV_vertex_program2
  2970 #endif
  2971 
  2972 #ifndef GL_ATI_map_object_buffer
  2973 #endif
  2974 
  2975 #ifndef GL_ATI_separate_stencil
  2976 #define GL_STENCIL_BACK_FUNC_ATI          0x8800
  2977 #define GL_STENCIL_BACK_FAIL_ATI          0x8801
  2978 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802
  2979 #define GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI 0x8803
  2980 #endif
  2981 
  2982 #ifndef GL_ATI_vertex_attrib_array_object
  2983 #endif
  2984 
  2985 #ifndef GL_OES_read_format
  2986 #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
  2987 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
  2988 #endif
  2989 
  2990 #ifndef GL_EXT_depth_bounds_test
  2991 #define GL_DEPTH_BOUNDS_TEST_EXT          0x8890
  2992 #define GL_DEPTH_BOUNDS_EXT               0x8891
  2993 #endif
  2994 
  2995 #ifndef GL_EXT_texture_mirror_clamp
  2996 #define GL_MIRROR_CLAMP_EXT               0x8742
  2997 #define GL_MIRROR_CLAMP_TO_EDGE_EXT       0x8743
  2998 #define GL_MIRROR_CLAMP_TO_BORDER_EXT     0x8912
  2999 #endif
  3000 
  3001 #ifndef GL_EXT_blend_equation_separate
  3002 #define GL_BLEND_EQUATION_RGB_EXT         GL_BLEND_EQUATION
  3003 #define GL_BLEND_EQUATION_ALPHA_EXT       0x883D
  3004 #endif
  3005 
  3006 #ifndef GL_MESA_pack_invert
  3007 #define GL_PACK_INVERT_MESA               0x8758
  3008 #endif
  3009 
  3010 #ifndef GL_MESA_ycbcr_texture
  3011 #define GL_UNSIGNED_SHORT_8_8_MESA        0x85BA
  3012 #define GL_UNSIGNED_SHORT_8_8_REV_MESA    0x85BB
  3013 #define GL_YCBCR_MESA                     0x8757
  3014 #endif
  3015 
  3016 #ifndef GL_EXT_pixel_buffer_object
  3017 #define GL_PIXEL_PACK_BUFFER_EXT          0x88EB
  3018 #define GL_PIXEL_UNPACK_BUFFER_EXT        0x88EC
  3019 #define GL_PIXEL_PACK_BUFFER_BINDING_EXT  0x88ED
  3020 #define GL_PIXEL_UNPACK_BUFFER_BINDING_EXT 0x88EF
  3021 #endif
  3022 
  3023 #ifndef GL_NV_fragment_program_option
  3024 #endif
  3025 
  3026 #ifndef GL_NV_fragment_program2
  3027 #define GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
  3028 #define GL_MAX_PROGRAM_CALL_DEPTH_NV      0x88F5
  3029 #define GL_MAX_PROGRAM_IF_DEPTH_NV        0x88F6
  3030 #define GL_MAX_PROGRAM_LOOP_DEPTH_NV      0x88F7
  3031 #define GL_MAX_PROGRAM_LOOP_COUNT_NV      0x88F8
  3032 #endif
  3033 
  3034 #ifndef GL_NV_vertex_program2_option
  3035 /* reuse GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV */
  3036 /* reuse GL_MAX_PROGRAM_CALL_DEPTH_NV */
  3037 #endif
  3038 
  3039 #ifndef GL_NV_vertex_program3
  3040 /* reuse GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB */
  3041 #endif
  3042 
  3043 #ifndef GL_EXT_framebuffer_object
  3044 #define GL_INVALID_FRAMEBUFFER_OPERATION_EXT 0x0506
  3045 #define GL_MAX_RENDERBUFFER_SIZE_EXT      0x84E8
  3046 #define GL_FRAMEBUFFER_BINDING_EXT        0x8CA6
  3047 #define GL_RENDERBUFFER_BINDING_EXT       0x8CA7
  3048 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT 0x8CD0
  3049 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT 0x8CD1
  3050 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT 0x8CD2
  3051 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT 0x8CD3
  3052 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT 0x8CD4
  3053 #define GL_FRAMEBUFFER_COMPLETE_EXT       0x8CD5
  3054 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT 0x8CD6
  3055 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT 0x8CD7
  3056 #define GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT 0x8CD8
  3057 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT 0x8CD9
  3058 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT 0x8CDA
  3059 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT 0x8CDB
  3060 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT 0x8CDC
  3061 #define GL_FRAMEBUFFER_UNSUPPORTED_EXT    0x8CDD
  3062 #define GL_MAX_COLOR_ATTACHMENTS_EXT      0x8CDF
  3063 #define GL_COLOR_ATTACHMENT0_EXT          0x8CE0
  3064 #define GL_COLOR_ATTACHMENT1_EXT          0x8CE1
  3065 #define GL_COLOR_ATTACHMENT2_EXT          0x8CE2
  3066 #define GL_COLOR_ATTACHMENT3_EXT          0x8CE3
  3067 #define GL_COLOR_ATTACHMENT4_EXT          0x8CE4
  3068 #define GL_COLOR_ATTACHMENT5_EXT          0x8CE5
  3069 #define GL_COLOR_ATTACHMENT6_EXT          0x8CE6
  3070 #define GL_COLOR_ATTACHMENT7_EXT          0x8CE7
  3071 #define GL_COLOR_ATTACHMENT8_EXT          0x8CE8
  3072 #define GL_COLOR_ATTACHMENT9_EXT          0x8CE9
  3073 #define GL_COLOR_ATTACHMENT10_EXT         0x8CEA
  3074 #define GL_COLOR_ATTACHMENT11_EXT         0x8CEB
  3075 #define GL_COLOR_ATTACHMENT12_EXT         0x8CEC
  3076 #define GL_COLOR_ATTACHMENT13_EXT         0x8CED
  3077 #define GL_COLOR_ATTACHMENT14_EXT         0x8CEE
  3078 #define GL_COLOR_ATTACHMENT15_EXT         0x8CEF
  3079 #define GL_DEPTH_ATTACHMENT_EXT           0x8D00
  3080 #define GL_STENCIL_ATTACHMENT_EXT         0x8D20
  3081 #define GL_FRAMEBUFFER_EXT                0x8D40
  3082 #define GL_RENDERBUFFER_EXT               0x8D41
  3083 #define GL_RENDERBUFFER_WIDTH_EXT         0x8D42
  3084 #define GL_RENDERBUFFER_HEIGHT_EXT        0x8D43
  3085 #define GL_RENDERBUFFER_INTERNAL_FORMAT_EXT 0x8D44
  3086 #define GL_STENCIL_INDEX1_EXT             0x8D46
  3087 #define GL_STENCIL_INDEX4_EXT             0x8D47
  3088 #define GL_STENCIL_INDEX8_EXT             0x8D48
  3089 #define GL_STENCIL_INDEX16_EXT            0x8D49
  3090 #define GL_RENDERBUFFER_RED_SIZE_EXT      0x8D50
  3091 #define GL_RENDERBUFFER_GREEN_SIZE_EXT    0x8D51
  3092 #define GL_RENDERBUFFER_BLUE_SIZE_EXT     0x8D52
  3093 #define GL_RENDERBUFFER_ALPHA_SIZE_EXT    0x8D53
  3094 #define GL_RENDERBUFFER_DEPTH_SIZE_EXT    0x8D54
  3095 #define GL_RENDERBUFFER_STENCIL_SIZE_EXT  0x8D55
  3096 #endif
  3097 
  3098 #ifndef GL_GREMEDY_string_marker
  3099 #endif
  3100 
  3101 
  3102 /*************************************************************/
  3103 
  3104 #include <stddef.h>
  3105 #ifndef GL_VERSION_2_0
  3106 /* GL type for program/shader text */
  3107     typedef char GLchar;        /* native character */
  3108 #endif
  3109 
  3110 #ifndef GL_VERSION_1_5
  3111 /* GL types for handling large vertex buffer objects */
  3112     typedef ptrdiff_t GLintptr;
  3113     typedef ptrdiff_t GLsizeiptr;
  3114 #endif
  3115 
  3116 #ifndef GL_ARB_vertex_buffer_object
  3117 /* GL types for handling large vertex buffer objects */
  3118     typedef ptrdiff_t GLintptrARB;
  3119     typedef ptrdiff_t GLsizeiptrARB;
  3120 #endif
  3121 
  3122 #ifndef GL_ARB_shader_objects
  3123 /* GL types for handling shader object handles and program/shader text */
  3124     typedef char GLcharARB;     /* native character */
  3125     typedef unsigned int GLhandleARB;   /* shader object handle */
  3126 #endif
  3127 
  3128 /* GL types for "half" precision (s10e5) float data in host memory */
  3129 #ifndef GL_ARB_half_float_pixel
  3130     typedef unsigned short GLhalfARB;
  3131 #endif
  3132 
  3133 #ifndef GL_NV_half_float
  3134     typedef unsigned short GLhalfNV;
  3135 #endif
  3136 
  3137 #ifndef GL_VERSION_1_2
  3138 #define GL_VERSION_1_2 1
  3139 #ifdef GL_GLEXT_PROTOTYPES
  3140     GLAPI void APIENTRY glBlendColor (GLclampf, GLclampf, GLclampf, GLclampf);
  3141     GLAPI void APIENTRY glBlendEquation (GLenum);
  3142     GLAPI void APIENTRY glDrawRangeElements (GLenum, GLuint, GLuint, GLsizei,
  3143                                              GLenum, const GLvoid *);
  3144     GLAPI void APIENTRY glColorTable (GLenum, GLenum, GLsizei, GLenum, GLenum,
  3145                                       const GLvoid *);
  3146     GLAPI void APIENTRY glColorTableParameterfv (GLenum, GLenum,
  3147                                                  const GLfloat *);
  3148     GLAPI void APIENTRY glColorTableParameteriv (GLenum, GLenum,
  3149                                                  const GLint *);
  3150     GLAPI void APIENTRY glCopyColorTable (GLenum, GLenum, GLint, GLint,
  3151                                           GLsizei);
  3152     GLAPI void APIENTRY glGetColorTable (GLenum, GLenum, GLenum, GLvoid *);
  3153     GLAPI void APIENTRY glGetColorTableParameterfv (GLenum, GLenum,
  3154                                                     GLfloat *);
  3155     GLAPI void APIENTRY glGetColorTableParameteriv (GLenum, GLenum, GLint *);
  3156     GLAPI void APIENTRY glColorSubTable (GLenum, GLsizei, GLsizei, GLenum,
  3157                                          GLenum, const GLvoid *);
  3158     GLAPI void APIENTRY glCopyColorSubTable (GLenum, GLsizei, GLint, GLint,
  3159                                              GLsizei);
  3160     GLAPI void APIENTRY glConvolutionFilter1D (GLenum, GLenum, GLsizei,
  3161                                                GLenum, GLenum,
  3162                                                const GLvoid *);
  3163     GLAPI void APIENTRY glConvolutionFilter2D (GLenum, GLenum, GLsizei,
  3164                                                GLsizei, GLenum, GLenum,
  3165                                                const GLvoid *);
  3166     GLAPI void APIENTRY glConvolutionParameterf (GLenum, GLenum, GLfloat);
  3167     GLAPI void APIENTRY glConvolutionParameterfv (GLenum, GLenum,
  3168                                                   const GLfloat *);
  3169     GLAPI void APIENTRY glConvolutionParameteri (GLenum, GLenum, GLint);
  3170     GLAPI void APIENTRY glConvolutionParameteriv (GLenum, GLenum,
  3171                                                   const GLint *);
  3172     GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum, GLenum, GLint,
  3173                                                    GLint, GLsizei);
  3174     GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum, GLenum, GLint,
  3175                                                    GLint, GLsizei, GLsizei);
  3176     GLAPI void APIENTRY glGetConvolutionFilter (GLenum, GLenum, GLenum,
  3177                                                 GLvoid *);
  3178     GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum, GLenum,
  3179                                                      GLfloat *);
  3180     GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum, GLenum, GLint *);
  3181     GLAPI void APIENTRY glGetSeparableFilter (GLenum, GLenum, GLenum,
  3182                                               GLvoid *, GLvoid *, GLvoid *);
  3183     GLAPI void APIENTRY glSeparableFilter2D (GLenum, GLenum, GLsizei, GLsizei,
  3184                                              GLenum, GLenum, const GLvoid *,
  3185                                              const GLvoid *);
  3186     GLAPI void APIENTRY glGetHistogram (GLenum, GLboolean, GLenum, GLenum,
  3187                                         GLvoid *);
  3188     GLAPI void APIENTRY glGetHistogramParameterfv (GLenum, GLenum, GLfloat *);
  3189     GLAPI void APIENTRY glGetHistogramParameteriv (GLenum, GLenum, GLint *);
  3190     GLAPI void APIENTRY glGetMinmax (GLenum, GLboolean, GLenum, GLenum,
  3191                                      GLvoid *);
  3192     GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum, GLenum, GLfloat *);
  3193     GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum, GLenum, GLint *);
  3194     GLAPI void APIENTRY glHistogram (GLenum, GLsizei, GLenum, GLboolean);
  3195     GLAPI void APIENTRY glMinmax (GLenum, GLenum, GLboolean);
  3196     GLAPI void APIENTRY glResetHistogram (GLenum);
  3197     GLAPI void APIENTRY glResetMinmax (GLenum);
  3198     GLAPI void APIENTRY glTexImage3D (GLenum, GLint, GLint, GLsizei, GLsizei,
  3199                                       GLsizei, GLint, GLenum, GLenum,
  3200                                       const GLvoid *);
  3201     GLAPI void APIENTRY glTexSubImage3D (GLenum, GLint, GLint, GLint, GLint,
  3202                                          GLsizei, GLsizei, GLsizei, GLenum,
  3203                                          GLenum, const GLvoid *);
  3204     GLAPI void APIENTRY glCopyTexSubImage3D (GLenum, GLint, GLint, GLint,
  3205                                              GLint, GLint, GLint, GLsizei,
  3206                                              GLsizei);
  3207 #endif                          /* GL_GLEXT_PROTOTYPES */
  3208     typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red,
  3209                                                   GLclampf green,
  3210                                                   GLclampf blue,
  3211                                                   GLclampf alpha);
  3212     typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
  3213     typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode,
  3214                                                          GLuint start,
  3215                                                          GLuint end,
  3216                                                          GLsizei count,
  3217                                                          GLenum type,
  3218                                                          const GLvoid *
  3219                                                          indices);
  3220     typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target,
  3221                                                   GLenum internalformat,
  3222                                                   GLsizei width,
  3223                                                   GLenum format, GLenum type,
  3224                                                   const GLvoid * table);
  3225     typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target,
  3226                                                              GLenum pname,
  3227                                                              const GLfloat *
  3228                                                              params);
  3229     typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target,
  3230                                                              GLenum pname,
  3231                                                              const GLint *
  3232                                                              params);
  3233     typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target,
  3234                                                       GLenum internalformat,
  3235                                                       GLint x, GLint y,
  3236                                                       GLsizei width);
  3237     typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target,
  3238                                                      GLenum format,
  3239                                                      GLenum type,
  3240                                                      GLvoid * table);
  3241     typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target,
  3242                                                                 GLenum pname,
  3243                                                                 GLfloat *
  3244                                                                 params);
  3245     typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target,
  3246                                                                 GLenum pname,
  3247                                                                 GLint *
  3248                                                                 params);
  3249     typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target,
  3250                                                      GLsizei start,
  3251                                                      GLsizei count,
  3252                                                      GLenum format,
  3253                                                      GLenum type,
  3254                                                      const GLvoid * data);
  3255     typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target,
  3256                                                          GLsizei start,
  3257                                                          GLint x, GLint y,
  3258                                                          GLsizei width);
  3259     typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target,
  3260                                                            GLenum
  3261                                                            internalformat,
  3262                                                            GLsizei width,
  3263                                                            GLenum format,
  3264                                                            GLenum type,
  3265                                                            const GLvoid *
  3266                                                            image);
  3267     typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target,
  3268                                                            GLenum
  3269                                                            internalformat,
  3270                                                            GLsizei width,
  3271                                                            GLsizei height,
  3272                                                            GLenum format,
  3273                                                            GLenum type,
  3274                                                            const GLvoid *
  3275                                                            image);
  3276     typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target,
  3277                                                              GLenum pname,
  3278                                                              GLfloat params);
  3279     typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target,
  3280                                                               GLenum pname,
  3281                                                               const GLfloat *
  3282                                                               params);
  3283     typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target,
  3284                                                              GLenum pname,
  3285                                                              GLint params);
  3286     typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target,
  3287                                                               GLenum pname,
  3288                                                               const GLint *
  3289                                                               params);
  3290     typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target,
  3291                                                                GLenum
  3292                                                                internalformat,
  3293                                                                GLint x,
  3294                                                                GLint y,
  3295                                                                GLsizei width);
  3296     typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target,
  3297                                                                GLenum
  3298                                                                internalformat,
  3299                                                                GLint x,
  3300                                                                GLint y,
  3301                                                                GLsizei width,
  3302                                                                GLsizei
  3303                                                                height);
  3304     typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target,
  3305                                                             GLenum format,
  3306                                                             GLenum type,
  3307                                                             GLvoid * image);
  3308     typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum
  3309                                                                  target,
  3310                                                                  GLenum pname,
  3311                                                                  GLfloat *
  3312                                                                  params);
  3313     typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum
  3314                                                                  target,
  3315                                                                  GLenum pname,
  3316                                                                  GLint *
  3317                                                                  params);
  3318     typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target,
  3319                                                           GLenum format,
  3320                                                           GLenum type,
  3321                                                           GLvoid * row,
  3322                                                           GLvoid * column,
  3323                                                           GLvoid * span);
  3324     typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target,
  3325                                                          GLenum
  3326                                                          internalformat,
  3327                                                          GLsizei width,
  3328                                                          GLsizei height,
  3329                                                          GLenum format,
  3330                                                          GLenum type,
  3331                                                          const GLvoid * row,
  3332                                                          const GLvoid *
  3333                                                          column);
  3334     typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target,
  3335                                                     GLboolean reset,
  3336                                                     GLenum format,
  3337                                                     GLenum type,
  3338                                                     GLvoid * values);
  3339     typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target,
  3340                                                                GLenum pname,
  3341                                                                GLfloat *
  3342                                                                params);
  3343     typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target,
  3344                                                                GLenum pname,
  3345                                                                GLint *
  3346                                                                params);
  3347     typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target,
  3348                                                  GLboolean reset,
  3349                                                  GLenum format, GLenum type,
  3350                                                  GLvoid * values);
  3351     typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target,
  3352                                                             GLenum pname,
  3353                                                             GLfloat * params);
  3354     typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target,
  3355                                                             GLenum pname,
  3356                                                             GLint * params);
  3357     typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width,
  3358                                                  GLenum internalformat,
  3359                                                  GLboolean sink);
  3360     typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target,
  3361                                               GLenum internalformat,
  3362                                               GLboolean sink);
  3363     typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
  3364     typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
  3365     typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level,
  3366                                                   GLint internalformat,
  3367                                                   GLsizei width,
  3368                                                   GLsizei height,
  3369                                                   GLsizei depth, GLint border,
  3370                                                   GLenum format, GLenum type,
  3371                                                   const GLvoid * pixels);
  3372     typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target,
  3373                                                      GLint level,
  3374                                                      GLint xoffset,
  3375                                                      GLint yoffset,
  3376                                                      GLint zoffset,
  3377                                                      GLsizei width,
  3378                                                      GLsizei height,
  3379                                                      GLsizei depth,
  3380                                                      GLenum format,
  3381                                                      GLenum type,
  3382                                                      const GLvoid * pixels);
  3383     typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target,
  3384                                                          GLint level,
  3385                                                          GLint xoffset,
  3386                                                          GLint yoffset,
  3387                                                          GLint zoffset,
  3388                                                          GLint x, GLint y,
  3389                                                          GLsizei width,
  3390                                                          GLsizei height);
  3391 #endif
  3392 
  3393 #ifndef GL_VERSION_1_3
  3394 #define GL_VERSION_1_3 1
  3395 #ifdef GL_GLEXT_PROTOTYPES
  3396     GLAPI void APIENTRY glActiveTexture (GLenum);
  3397     GLAPI void APIENTRY glClientActiveTexture (GLenum);
  3398     GLAPI void APIENTRY glMultiTexCoord1d (GLenum, GLdouble);
  3399     GLAPI void APIENTRY glMultiTexCoord1dv (GLenum, const GLdouble *);
  3400     GLAPI void APIENTRY glMultiTexCoord1f (GLenum, GLfloat);
  3401     GLAPI void APIENTRY glMultiTexCoord1fv (GLenum, const GLfloat *);
  3402     GLAPI void APIENTRY glMultiTexCoord1i (GLenum, GLint);
  3403     GLAPI void APIENTRY glMultiTexCoord1iv (GLenum, const GLint *);
  3404     GLAPI void APIENTRY glMultiTexCoord1s (GLenum, GLshort);
  3405     GLAPI void APIENTRY glMultiTexCoord1sv (GLenum, const GLshort *);
  3406     GLAPI void APIENTRY glMultiTexCoord2d (GLenum, GLdouble, GLdouble);
  3407     GLAPI void APIENTRY glMultiTexCoord2dv (GLenum, const GLdouble *);
  3408     GLAPI void APIENTRY glMultiTexCoord2f (GLenum, GLfloat, GLfloat);
  3409     GLAPI void APIENTRY glMultiTexCoord2fv (GLenum, const GLfloat *);
  3410     GLAPI void APIENTRY glMultiTexCoord2i (GLenum, GLint, GLint);
  3411     GLAPI void APIENTRY glMultiTexCoord2iv (GLenum, const GLint *);
  3412     GLAPI void APIENTRY glMultiTexCoord2s (GLenum, GLshort, GLshort);
  3413     GLAPI void APIENTRY glMultiTexCoord2sv (GLenum, const GLshort *);
  3414     GLAPI void APIENTRY glMultiTexCoord3d (GLenum, GLdouble, GLdouble,
  3415                                            GLdouble);
  3416     GLAPI void APIENTRY glMultiTexCoord3dv (GLenum, const GLdouble *);
  3417     GLAPI void APIENTRY glMultiTexCoord3f (GLenum, GLfloat, GLfloat, GLfloat);
  3418     GLAPI void APIENTRY glMultiTexCoord3fv (GLenum, const GLfloat *);
  3419     GLAPI void APIENTRY glMultiTexCoord3i (GLenum, GLint, GLint, GLint);
  3420     GLAPI void APIENTRY glMultiTexCoord3iv (GLenum, const GLint *);
  3421     GLAPI void APIENTRY glMultiTexCoord3s (GLenum, GLshort, GLshort, GLshort);
  3422     GLAPI void APIENTRY glMultiTexCoord3sv (GLenum, const GLshort *);
  3423     GLAPI void APIENTRY glMultiTexCoord4d (GLenum, GLdouble, GLdouble,
  3424                                            GLdouble, GLdouble);
  3425     GLAPI void APIENTRY glMultiTexCoord4dv (GLenum, const GLdouble *);
  3426     GLAPI void APIENTRY glMultiTexCoord4f (GLenum, GLfloat, GLfloat, GLfloat,
  3427                                            GLfloat);
  3428     GLAPI void APIENTRY glMultiTexCoord4fv (GLenum, const GLfloat *);
  3429     GLAPI void APIENTRY glMultiTexCoord4i (GLenum, GLint, GLint, GLint,
  3430                                            GLint);
  3431     GLAPI void APIENTRY glMultiTexCoord4iv (GLenum, const GLint *);
  3432     GLAPI void APIENTRY glMultiTexCoord4s (GLenum, GLshort, GLshort, GLshort,
  3433                                            GLshort);
  3434     GLAPI void APIENTRY glMultiTexCoord4sv (GLenum, const GLshort *);
  3435     GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *);
  3436     GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *);
  3437     GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *);
  3438     GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *);
  3439     GLAPI void APIENTRY glSampleCoverage (GLclampf, GLboolean);
  3440     GLAPI void APIENTRY glCompressedTexImage3D (GLenum, GLint, GLenum,
  3441                                                 GLsizei, GLsizei, GLsizei,
  3442                                                 GLint, GLsizei,
  3443                                                 const GLvoid *);
  3444     GLAPI void APIENTRY glCompressedTexImage2D (GLenum, GLint, GLenum,
  3445                                                 GLsizei, GLsizei, GLint,
  3446                                                 GLsizei, const GLvoid *);
  3447     GLAPI void APIENTRY glCompressedTexImage1D (GLenum, GLint, GLenum,
  3448                                                 GLsizei, GLint, GLsizei,
  3449                                                 const GLvoid *);
  3450     GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum, GLint, GLint,
  3451                                                    GLint, GLint, GLsizei,
  3452                                                    GLsizei, GLsizei, GLenum,
  3453                                                    GLsizei, const GLvoid *);
  3454     GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum, GLint, GLint,
  3455                                                    GLint, GLsizei, GLsizei,
  3456                                                    GLenum, GLsizei,
  3457                                                    const GLvoid *);
  3458     GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum, GLint, GLint,
  3459                                                    GLsizei, GLenum, GLsizei,
  3460                                                    const GLvoid *);
  3461     GLAPI void APIENTRY glGetCompressedTexImage (GLenum, GLint, GLvoid *);
  3462 #endif                          /* GL_GLEXT_PROTOTYPES */
  3463     typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
  3464     typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
  3465     typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target,
  3466                                                        GLdouble s);
  3467     typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target,
  3468                                                         const GLdouble * v);
  3469     typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target,
  3470                                                        GLfloat s);
  3471     typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target,
  3472                                                         const GLfloat * v);
  3473     typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target,
  3474                                                        GLint s);
  3475     typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target,
  3476                                                         const GLint * v);
  3477     typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target,
  3478                                                        GLshort s);
  3479     typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target,
  3480                                                         const GLshort * v);
  3481     typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target,
  3482                                                        GLdouble s,
  3483                                                        GLdouble t);
  3484     typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target,
  3485                                                         const GLdouble * v);
  3486     typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target,
  3487                                                        GLfloat s, GLfloat t);
  3488     typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target,
  3489                                                         const GLfloat * v);
  3490     typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s,
  3491                                                        GLint t);
  3492     typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target,
  3493                                                         const GLint * v);
  3494     typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target,
  3495                                                        GLshort s, GLshort t);
  3496     typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target,
  3497                                                         const GLshort * v);
  3498     typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target,
  3499                                                        GLdouble s, GLdouble t,
  3500                                                        GLdouble r);
  3501     typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target,
  3502                                                         const GLdouble * v);
  3503     typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target,
  3504                                                        GLfloat s, GLfloat t,
  3505                                                        GLfloat r);
  3506     typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target,
  3507                                                         const GLfloat * v);
  3508     typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s,
  3509                                                        GLint t, GLint r);
  3510     typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target,
  3511                                                         const GLint * v);
  3512     typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target,
  3513                                                        GLshort s, GLshort t,
  3514                                                        GLshort r);
  3515     typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target,
  3516                                                         const GLshort * v);
  3517     typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target,
  3518                                                        GLdouble s, GLdouble t,
  3519                                                        GLdouble r,
  3520                                                        GLdouble q);
  3521     typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target,
  3522                                                         const GLdouble * v);
  3523     typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target,
  3524                                                        GLfloat s, GLfloat t,
  3525                                                        GLfloat r, GLfloat q);
  3526     typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target,
  3527                                                         const GLfloat * v);
  3528     typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s,
  3529                                                        GLint t, GLint r,
  3530                                                        GLint q);
  3531     typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target,
  3532                                                         const GLint * v);
  3533     typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target,
  3534                                                        GLshort s, GLshort t,
  3535                                                        GLshort r, GLshort q);
  3536     typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target,
  3537                                                         const GLshort * v);
  3538     typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *
  3539                                                             m);
  3540     typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *
  3541                                                             m);
  3542     typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *
  3543                                                             m);
  3544     typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *
  3545                                                             m);
  3546     typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value,
  3547                                                       GLboolean invert);
  3548     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target,
  3549                                                             GLint level,
  3550                                                             GLenum
  3551                                                             internalformat,
  3552                                                             GLsizei width,
  3553                                                             GLsizei height,
  3554                                                             GLsizei depth,
  3555                                                             GLint border,
  3556                                                             GLsizei imageSize,
  3557                                                             const GLvoid *
  3558                                                             data);
  3559     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target,
  3560                                                             GLint level,
  3561                                                             GLenum
  3562                                                             internalformat,
  3563                                                             GLsizei width,
  3564                                                             GLsizei height,
  3565                                                             GLint border,
  3566                                                             GLsizei imageSize,
  3567                                                             const GLvoid *
  3568                                                             data);
  3569     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target,
  3570                                                             GLint level,
  3571                                                             GLenum
  3572                                                             internalformat,
  3573                                                             GLsizei width,
  3574                                                             GLint border,
  3575                                                             GLsizei imageSize,
  3576                                                             const GLvoid *
  3577                                                             data);
  3578     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target,
  3579                                                                GLint level,
  3580                                                                GLint xoffset,
  3581                                                                GLint yoffset,
  3582                                                                GLint zoffset,
  3583                                                                GLsizei width,
  3584                                                                GLsizei height,
  3585                                                                GLsizei depth,
  3586                                                                GLenum format,
  3587                                                                GLsizei
  3588                                                                imageSize,
  3589                                                                const GLvoid *
  3590                                                                data);
  3591     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target,
  3592                                                                GLint level,
  3593                                                                GLint xoffset,
  3594                                                                GLint yoffset,
  3595                                                                GLsizei width,
  3596                                                                GLsizei height,
  3597                                                                GLenum format,
  3598                                                                GLsizei
  3599                                                                imageSize,
  3600                                                                const GLvoid *
  3601                                                                data);
  3602     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target,
  3603                                                                GLint level,
  3604                                                                GLint xoffset,
  3605                                                                GLsizei width,
  3606                                                                GLenum format,
  3607                                                                GLsizei
  3608                                                                imageSize,
  3609                                                                const GLvoid *
  3610                                                                data);
  3611     typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target,
  3612                                                              GLint level,
  3613                                                              GLvoid * img);
  3614 #endif
  3615 
  3616 #ifndef GL_VERSION_1_4
  3617 #define GL_VERSION_1_4 1
  3618 #ifdef GL_GLEXT_PROTOTYPES
  3619     GLAPI void APIENTRY glBlendFuncSeparate (GLenum, GLenum, GLenum, GLenum);
  3620     GLAPI void APIENTRY glFogCoordf (GLfloat);
  3621     GLAPI void APIENTRY glFogCoordfv (const GLfloat *);
  3622     GLAPI void APIENTRY glFogCoordd (GLdouble);
  3623     GLAPI void APIENTRY glFogCoorddv (const GLdouble *);
  3624     GLAPI void APIENTRY glFogCoordPointer (GLenum, GLsizei, const GLvoid *);
  3625     GLAPI void APIENTRY glMultiDrawArrays (GLenum, GLint *, GLsizei *,
  3626                                            GLsizei);
  3627     GLAPI void APIENTRY glMultiDrawElements (GLenum, const GLsizei *, GLenum,
  3628                                              const GLvoid * *, GLsizei);
  3629     GLAPI void APIENTRY glPointParameterf (GLenum, GLfloat);
  3630     GLAPI void APIENTRY glPointParameterfv (GLenum, const GLfloat *);
  3631     GLAPI void APIENTRY glPointParameteri (GLenum, GLint);
  3632     GLAPI void APIENTRY glPointParameteriv (GLenum, const GLint *);
  3633     GLAPI void APIENTRY glSecondaryColor3b (GLbyte, GLbyte, GLbyte);
  3634     GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *);
  3635     GLAPI void APIENTRY glSecondaryColor3d (GLdouble, GLdouble, GLdouble);
  3636     GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *);
  3637     GLAPI void APIENTRY glSecondaryColor3f (GLfloat, GLfloat, GLfloat);
  3638     GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *);
  3639     GLAPI void APIENTRY glSecondaryColor3i (GLint, GLint, GLint);
  3640     GLAPI void APIENTRY glSecondaryColor3iv (const GLint *);
  3641     GLAPI void APIENTRY glSecondaryColor3s (GLshort, GLshort, GLshort);
  3642     GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *);
  3643     GLAPI void APIENTRY glSecondaryColor3ub (GLubyte, GLubyte, GLubyte);
  3644     GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *);
  3645     GLAPI void APIENTRY glSecondaryColor3ui (GLuint, GLuint, GLuint);
  3646     GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *);
  3647     GLAPI void APIENTRY glSecondaryColor3us (GLushort, GLushort, GLushort);
  3648     GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *);
  3649     GLAPI void APIENTRY glSecondaryColorPointer (GLint, GLenum, GLsizei,
  3650                                                  const GLvoid *);
  3651     GLAPI void APIENTRY glWindowPos2d (GLdouble, GLdouble);
  3652     GLAPI void APIENTRY glWindowPos2dv (const GLdouble *);
  3653     GLAPI void APIENTRY glWindowPos2f (GLfloat, GLfloat);
  3654     GLAPI void APIENTRY glWindowPos2fv (const GLfloat *);
  3655     GLAPI void APIENTRY glWindowPos2i (GLint, GLint);
  3656     GLAPI void APIENTRY glWindowPos2iv (const GLint *);
  3657     GLAPI void APIENTRY glWindowPos2s (GLshort, GLshort);
  3658     GLAPI void APIENTRY glWindowPos2sv (const GLshort *);
  3659     GLAPI void APIENTRY glWindowPos3d (GLdouble, GLdouble, GLdouble);
  3660     GLAPI void APIENTRY glWindowPos3dv (const GLdouble *);
  3661     GLAPI void APIENTRY glWindowPos3f (GLfloat, GLfloat, GLfloat);
  3662     GLAPI void APIENTRY glWindowPos3fv (const GLfloat *);
  3663     GLAPI void APIENTRY glWindowPos3i (GLint, GLint, GLint);
  3664     GLAPI void APIENTRY glWindowPos3iv (const GLint *);
  3665     GLAPI void APIENTRY glWindowPos3s (GLshort, GLshort, GLshort);
  3666     GLAPI void APIENTRY glWindowPos3sv (const GLshort *);
  3667 #endif                          /* GL_GLEXT_PROTOTYPES */
  3668     typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB,
  3669                                                          GLenum dfactorRGB,
  3670                                                          GLenum sfactorAlpha,
  3671                                                          GLenum dfactorAlpha);
  3672     typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
  3673     typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat * coord);
  3674     typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
  3675     typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble * coord);
  3676     typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type,
  3677                                                        GLsizei stride,
  3678                                                        const GLvoid *
  3679                                                        pointer);
  3680     typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode,
  3681                                                        GLint * first,
  3682                                                        GLsizei * count,
  3683                                                        GLsizei primcount);
  3684     typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode,
  3685                                                          const GLsizei *
  3686                                                          count, GLenum type,
  3687                                                          const GLvoid *
  3688                                                          *indices,
  3689                                                          GLsizei primcount);
  3690     typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname,
  3691                                                        GLfloat param);
  3692     typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname,
  3693                                                         const GLfloat *
  3694                                                         params);
  3695     typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname,
  3696                                                        GLint param);
  3697     typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname,
  3698                                                         const GLint * params);
  3699     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red,
  3700                                                         GLbyte green,
  3701                                                         GLbyte blue);
  3702     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte * v);
  3703     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red,
  3704                                                         GLdouble green,
  3705                                                         GLdouble blue);
  3706     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble * v);
  3707     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red,
  3708                                                         GLfloat green,
  3709                                                         GLfloat blue);
  3710     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat * v);
  3711     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red,
  3712                                                         GLint green,
  3713                                                         GLint blue);
  3714     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint * v);
  3715     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red,
  3716                                                         GLshort green,
  3717                                                         GLshort blue);
  3718     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort * v);
  3719     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red,
  3720                                                          GLubyte green,
  3721                                                          GLubyte blue);
  3722     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte * v);
  3723     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red,
  3724                                                          GLuint green,
  3725                                                          GLuint blue);
  3726     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint * v);
  3727     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red,
  3728                                                          GLushort green,
  3729                                                          GLushort blue);
  3730     typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort * v);
  3731     typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size,
  3732                                                              GLenum type,
  3733                                                              GLsizei stride,
  3734                                                              const GLvoid *
  3735                                                              pointer);
  3736     typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
  3737     typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble * v);
  3738     typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
  3739     typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat * v);
  3740     typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
  3741     typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint * v);
  3742     typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
  3743     typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort * v);
  3744     typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y,
  3745                                                    GLdouble z);
  3746     typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble * v);
  3747     typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y,
  3748                                                    GLfloat z);
  3749     typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat * v);
  3750     typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
  3751     typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint * v);
  3752     typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y,
  3753                                                    GLshort z);
  3754     typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort * v);
  3755 #endif
  3756 
  3757 #ifndef GL_VERSION_1_5
  3758 #define GL_VERSION_1_5 1
  3759 #ifdef GL_GLEXT_PROTOTYPES
  3760     GLAPI void APIENTRY glGenQueries (GLsizei, GLuint *);
  3761     GLAPI void APIENTRY glDeleteQueries (GLsizei, const GLuint *);
  3762     GLAPI GLboolean APIENTRY glIsQuery (GLuint);
  3763     GLAPI void APIENTRY glBeginQuery (GLenum, GLuint);
  3764     GLAPI void APIENTRY glEndQuery (GLenum);
  3765     GLAPI void APIENTRY glGetQueryiv (GLenum, GLenum, GLint *);
  3766     GLAPI void APIENTRY glGetQueryObjectiv (GLuint, GLenum, GLint *);
  3767     GLAPI void APIENTRY glGetQueryObjectuiv (GLuint, GLenum, GLuint *);
  3768     GLAPI void APIENTRY glBindBuffer (GLenum, GLuint);
  3769     GLAPI void APIENTRY glDeleteBuffers (GLsizei, const GLuint *);
  3770     GLAPI void APIENTRY glGenBuffers (GLsizei, GLuint *);
  3771     GLAPI GLboolean APIENTRY glIsBuffer (GLuint);
  3772     GLAPI void APIENTRY glBufferData (GLenum, GLsizeiptr, const GLvoid *,
  3773                                       GLenum);
  3774     GLAPI void APIENTRY glBufferSubData (GLenum, GLintptr, GLsizeiptr,
  3775                                          const GLvoid *);
  3776     GLAPI void APIENTRY glGetBufferSubData (GLenum, GLintptr, GLsizeiptr,
  3777                                             GLvoid *);
  3778     GLAPI GLvoid *APIENTRY glMapBuffer (GLenum, GLenum);
  3779     GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum);
  3780     GLAPI void APIENTRY glGetBufferParameteriv (GLenum, GLenum, GLint *);
  3781     GLAPI void APIENTRY glGetBufferPointerv (GLenum, GLenum, GLvoid * *);
  3782 #endif                          /* GL_GLEXT_PROTOTYPES */
  3783     typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint * ids);
  3784     typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n,
  3785                                                      const GLuint * ids);
  3786     typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
  3787     typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
  3788     typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
  3789     typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname,
  3790                                                   GLint * params);
  3791     typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id,
  3792                                                         GLenum pname,
  3793                                                         GLint * params);
  3794     typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id,
  3795                                                          GLenum pname,
  3796                                                          GLuint * params);
  3797     typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target,
  3798                                                   GLuint buffer);
  3799     typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n,
  3800                                                      const GLuint * buffers);
  3801     typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n,
  3802                                                   GLuint * buffers);
  3803     typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
  3804     typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target,
  3805                                                   GLsizeiptr size,
  3806                                                   const GLvoid * data,
  3807                                                   GLenum usage);
  3808     typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target,
  3809                                                      GLintptr offset,
  3810                                                      GLsizeiptr size,
  3811                                                      const GLvoid * data);
  3812     typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target,
  3813                                                         GLintptr offset,
  3814                                                         GLsizeiptr size,
  3815                                                         GLvoid * data);
  3816     typedef GLvoid *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target,
  3817                                                     GLenum access);
  3818     typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
  3819     typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target,
  3820                                                             GLenum pname,
  3821                                                             GLint * params);
  3822     typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target,
  3823                                                          GLenum pname,
  3824                                                          GLvoid * *params);
  3825 #endif
  3826 
  3827 #ifndef GL_VERSION_2_0
  3828 #define GL_VERSION_2_0 1
  3829 #ifdef GL_GLEXT_PROTOTYPES
  3830     GLAPI void APIENTRY glBlendEquationSeparate (GLenum, GLenum);
  3831     GLAPI void APIENTRY glDrawBuffers (GLsizei, const GLenum *);
  3832     GLAPI void APIENTRY glStencilOpSeparate (GLenum, GLenum, GLenum, GLenum);
  3833     GLAPI void APIENTRY glStencilFuncSeparate (GLenum, GLenum, GLint, GLuint);
  3834     GLAPI void APIENTRY glStencilMaskSeparate (GLenum, GLuint);
  3835     GLAPI void APIENTRY glAttachShader (GLuint, GLuint);
  3836     GLAPI void APIENTRY glBindAttribLocation (GLuint, GLuint, const GLchar *);
  3837     GLAPI void APIENTRY glCompileShader (GLuint);
  3838     GLAPI GLuint APIENTRY glCreateProgram (void);
  3839     GLAPI GLuint APIENTRY glCreateShader (GLenum);
  3840     GLAPI void APIENTRY glDeleteProgram (GLuint);
  3841     GLAPI void APIENTRY glDeleteShader (GLuint);
  3842     GLAPI void APIENTRY glDetachShader (GLuint, GLuint);
  3843     GLAPI void APIENTRY glDisableVertexAttribArray (GLuint);
  3844     GLAPI void APIENTRY glEnableVertexAttribArray (GLuint);
  3845     GLAPI void APIENTRY glGetActiveAttrib (GLuint, GLuint, GLsizei, GLsizei *,
  3846                                            GLint *, GLenum *, GLchar *);
  3847     GLAPI void APIENTRY glGetActiveUniform (GLuint, GLuint, GLsizei,
  3848                                             GLsizei *, GLint *, GLenum *,
  3849                                             GLchar *);
  3850     GLAPI void APIENTRY glGetAttachedShaders (GLuint, GLsizei, GLsizei *,
  3851                                               GLuint *);
  3852     GLAPI GLint APIENTRY glGetAttribLocation (GLuint, const GLchar *);
  3853     GLAPI void APIENTRY glGetProgramiv (GLuint, GLenum, GLint *);
  3854     GLAPI void APIENTRY glGetProgramInfoLog (GLuint, GLsizei, GLsizei *,
  3855                                              GLchar *);
  3856     GLAPI void APIENTRY glGetShaderiv (GLuint, GLenum, GLint *);
  3857     GLAPI void APIENTRY glGetShaderInfoLog (GLuint, GLsizei, GLsizei *,
  3858                                             GLchar *);
  3859     GLAPI void APIENTRY glGetShaderSource (GLuint, GLsizei, GLsizei *,
  3860                                            GLchar *);
  3861     GLAPI GLint APIENTRY glGetUniformLocation (GLuint, const GLchar *);
  3862     GLAPI void APIENTRY glGetUniformfv (GLuint, GLint, GLfloat *);
  3863     GLAPI void APIENTRY glGetUniformiv (GLuint, GLint, GLint *);
  3864     GLAPI void APIENTRY glGetVertexAttribdv (GLuint, GLenum, GLdouble *);
  3865     GLAPI void APIENTRY glGetVertexAttribfv (GLuint, GLenum, GLfloat *);
  3866     GLAPI void APIENTRY glGetVertexAttribiv (GLuint, GLenum, GLint *);
  3867     GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint, GLenum,
  3868                                                    GLvoid * *);
  3869     GLAPI GLboolean APIENTRY glIsProgram (GLuint);
  3870     GLAPI GLboolean APIENTRY glIsShader (GLuint);
  3871     GLAPI void APIENTRY glLinkProgram (GLuint);
  3872     GLAPI void APIENTRY glShaderSource (GLuint, GLsizei, const GLchar * *,
  3873                                         const GLint *);
  3874     GLAPI void APIENTRY glUseProgram (GLuint);
  3875     GLAPI void APIENTRY glUniform1f (GLint, GLfloat);
  3876     GLAPI void APIENTRY glUniform2f (GLint, GLfloat, GLfloat);
  3877     GLAPI void APIENTRY glUniform3f (GLint, GLfloat, GLfloat, GLfloat);
  3878     GLAPI void APIENTRY glUniform4f (GLint, GLfloat, GLfloat, GLfloat,
  3879                                      GLfloat);
  3880     GLAPI void APIENTRY glUniform1i (GLint, GLint);
  3881     GLAPI void APIENTRY glUniform2i (GLint, GLint, GLint);
  3882     GLAPI void APIENTRY glUniform3i (GLint, GLint, GLint, GLint);
  3883     GLAPI void APIENTRY glUniform4i (GLint, GLint, GLint, GLint, GLint);
  3884     GLAPI void APIENTRY glUniform1fv (GLint, GLsizei, const GLfloat *);
  3885     GLAPI void APIENTRY glUniform2fv (GLint, GLsizei, const GLfloat *);
  3886     GLAPI void APIENTRY glUniform3fv (GLint, GLsizei, const GLfloat *);
  3887     GLAPI void APIENTRY glUniform4fv (GLint, GLsizei, const GLfloat *);
  3888     GLAPI void APIENTRY glUniform1iv (GLint, GLsizei, const GLint *);
  3889     GLAPI void APIENTRY glUniform2iv (GLint, GLsizei, const GLint *);
  3890     GLAPI void APIENTRY glUniform3iv (GLint, GLsizei, const GLint *);
  3891     GLAPI void APIENTRY glUniform4iv (GLint, GLsizei, const GLint *);
  3892     GLAPI void APIENTRY glUniformMatrix2fv (GLint, GLsizei, GLboolean,
  3893                                             const GLfloat *);
  3894     GLAPI void APIENTRY glUniformMatrix3fv (GLint, GLsizei, GLboolean,
  3895                                             const GLfloat *);
  3896     GLAPI void APIENTRY glUniformMatrix4fv (GLint, GLsizei, GLboolean,
  3897                                             const GLfloat *);
  3898     GLAPI void APIENTRY glValidateProgram (GLuint);
  3899     GLAPI void APIENTRY glVertexAttrib1d (GLuint, GLdouble);
  3900     GLAPI void APIENTRY glVertexAttrib1dv (GLuint, const GLdouble *);
  3901     GLAPI void APIENTRY glVertexAttrib1f (GLuint, GLfloat);
  3902     GLAPI void APIENTRY glVertexAttrib1fv (GLuint, const GLfloat *);
  3903     GLAPI void APIENTRY glVertexAttrib1s (GLuint, GLshort);
  3904     GLAPI void APIENTRY glVertexAttrib1sv (GLuint, const GLshort *);
  3905     GLAPI void APIENTRY glVertexAttrib2d (GLuint, GLdouble, GLdouble);
  3906     GLAPI void APIENTRY glVertexAttrib2dv (GLuint, const GLdouble *);
  3907     GLAPI void APIENTRY glVertexAttrib2f (GLuint, GLfloat, GLfloat);
  3908     GLAPI void APIENTRY glVertexAttrib2fv (GLuint, const GLfloat *);
  3909     GLAPI void APIENTRY glVertexAttrib2s (GLuint, GLshort, GLshort);
  3910     GLAPI void APIENTRY glVertexAttrib2sv (GLuint, const GLshort *);
  3911     GLAPI void APIENTRY glVertexAttrib3d (GLuint, GLdouble, GLdouble,
  3912                                           GLdouble);
  3913     GLAPI void APIENTRY glVertexAttrib3dv (GLuint, const GLdouble *);
  3914     GLAPI void APIENTRY glVertexAttrib3f (GLuint, GLfloat, GLfloat, GLfloat);
  3915     GLAPI void APIENTRY glVertexAttrib3fv (GLuint, const GLfloat *);
  3916     GLAPI void APIENTRY glVertexAttrib3s (GLuint, GLshort, GLshort, GLshort);
  3917     GLAPI void APIENTRY glVertexAttrib3sv (GLuint, const GLshort *);
  3918     GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint, const GLbyte *);
  3919     GLAPI void APIENTRY glVertexAttrib4Niv (GLuint, const GLint *);
  3920     GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint, const GLshort *);
  3921     GLAPI void APIENTRY glVertexAttrib4Nub (GLuint, GLubyte, GLubyte, GLubyte,
  3922                                             GLubyte);
  3923     GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint, const GLubyte *);
  3924     GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint, const GLuint *);
  3925     GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint, const GLushort *);
  3926     GLAPI void APIENTRY glVertexAttrib4bv (GLuint, const GLbyte *);
  3927     GLAPI void APIENTRY glVertexAttrib4d (GLuint, GLdouble, GLdouble,
  3928                                           GLdouble, GLdouble);
  3929     GLAPI void APIENTRY glVertexAttrib4dv (GLuint, const GLdouble *);
  3930     GLAPI void APIENTRY glVertexAttrib4f (GLuint, GLfloat, GLfloat, GLfloat,
  3931                                           GLfloat);
  3932     GLAPI void APIENTRY glVertexAttrib4fv (GLuint, const GLfloat *);
  3933     GLAPI void APIENTRY glVertexAttrib4iv (GLuint, const GLint *);
  3934     GLAPI void APIENTRY glVertexAttrib4s (GLuint, GLshort, GLshort, GLshort,
  3935                                           GLshort);
  3936     GLAPI void APIENTRY glVertexAttrib4sv (GLuint, const GLshort *);
  3937     GLAPI void APIENTRY glVertexAttrib4ubv (GLuint, const GLubyte *);
  3938     GLAPI void APIENTRY glVertexAttrib4uiv (GLuint, const GLuint *);
  3939     GLAPI void APIENTRY glVertexAttrib4usv (GLuint, const GLushort *);
  3940     GLAPI void APIENTRY glVertexAttribPointer (GLuint, GLint, GLenum,
  3941                                                GLboolean, GLsizei,
  3942                                                const GLvoid *);
  3943 #endif                          /* GL_GLEXT_PROTOTYPES */
  3944     typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB,
  3945                                                              GLenum
  3946                                                              modeAlpha);
  3947     typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n,
  3948                                                    const GLenum * bufs);
  3949     typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face,
  3950                                                          GLenum sfail,
  3951                                                          GLenum dpfail,
  3952                                                          GLenum dppass);
  3953     typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum frontfunc,
  3954                                                            GLenum backfunc,
  3955                                                            GLint ref,
  3956                                                            GLuint mask);
  3957     typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face,
  3958                                                            GLuint mask);
  3959     typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program,
  3960                                                     GLuint shader);
  3961     typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program,
  3962                                                           GLuint index,
  3963                                                           const GLchar *
  3964                                                           name);
  3965     typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
  3966     typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
  3967     typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
  3968     typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
  3969     typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
  3970     typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program,
  3971                                                     GLuint shader);
  3972     typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
  3973     typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
  3974     typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program,
  3975                                                        GLuint index,
  3976                                                        GLsizei bufSize,
  3977                                                        GLsizei * length,
  3978                                                        GLint * size,
  3979                                                        GLenum * type,
  3980                                                        GLchar * name);
  3981     typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program,
  3982                                                         GLuint index,
  3983                                                         GLsizei bufSize,
  3984                                                         GLsizei * length,
  3985                                                         GLint * size,
  3986                                                         GLenum * type,
  3987                                                         GLchar * name);
  3988     typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program,
  3989                                                           GLsizei maxCount,
  3990                                                           GLsizei * count,
  3991                                                           GLuint * obj);
  3992     typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program,
  3993                                                           const GLchar *
  3994                                                           name);
  3995     typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program,
  3996                                                     GLenum pname,
  3997                                                     GLint * params);
  3998     typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program,
  3999                                                          GLsizei bufSize,
  4000                                                          GLsizei * length,
  4001                                                          GLchar * infoLog);
  4002     typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader,
  4003                                                    GLenum pname,
  4004                                                    GLint * params);
  4005     typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader,
  4006                                                         GLsizei bufSize,
  4007                                                         GLsizei * length,
  4008                                                         GLchar * infoLog);
  4009     typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader,
  4010                                                        GLsizei bufSize,
  4011                                                        GLsizei * length,
  4012                                                        GLchar * source);
  4013     typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program,
  4014                                                            const GLchar *
  4015                                                            name);
  4016     typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program,
  4017                                                     GLint location,
  4018                                                     GLfloat * params);
  4019     typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program,
  4020                                                     GLint location,
  4021                                                     GLint * params);
  4022     typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index,
  4023                                                          GLenum pname,
  4024                                                          GLdouble * params);
  4025     typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index,
  4026                                                          GLenum pname,
  4027                                                          GLfloat * params);
  4028     typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index,
  4029                                                          GLenum pname,
  4030                                                          GLint * params);
  4031     typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index,
  4032                                                                GLenum pname,
  4033                                                                GLvoid *
  4034                                                                *pointer);
  4035     typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
  4036     typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
  4037     typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
  4038     typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader,
  4039                                                     GLsizei count,
  4040                                                     const GLchar * *string,
  4041                                                     const GLint * length);
  4042     typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
  4043     typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
  4044     typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0,
  4045                                                  GLfloat v1);
  4046     typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0,
  4047                                                  GLfloat v1, GLfloat v2);
  4048     typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0,
  4049                                                  GLfloat v1, GLfloat v2,
  4050                                                  GLfloat v3);
  4051     typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
  4052     typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0,
  4053                                                  GLint v1);
  4054     typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0,
  4055                                                  GLint v1, GLint v2);
  4056     typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0,
  4057                                                  GLint v1, GLint v2,
  4058                                                  GLint v3);
  4059     typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location,
  4060                                                   GLsizei count,
  4061                                                   const GLfloat * value);
  4062     typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location,
  4063                                                   GLsizei count,
  4064                                                   const GLfloat * value);
  4065     typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location,
  4066                                                   GLsizei count,
  4067                                                   const GLfloat * value);
  4068     typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location,
  4069                                                   GLsizei count,
  4070                                                   const GLfloat * value);
  4071     typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location,
  4072                                                   GLsizei count,
  4073                                                   const GLint * value);
  4074     typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location,
  4075                                                   GLsizei count,
  4076                                                   const GLint * value);
  4077     typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location,
  4078                                                   GLsizei count,
  4079                                                   const GLint * value);
  4080     typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location,
  4081                                                   GLsizei count,
  4082                                                   const GLint * value);
  4083     typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location,
  4084                                                         GLsizei count,
  4085                                                         GLboolean transpose,
  4086                                                         const GLfloat *
  4087                                                         value);
  4088     typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location,
  4089                                                         GLsizei count,
  4090                                                         GLboolean transpose,
  4091                                                         const GLfloat *
  4092                                                         value);
  4093     typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location,
  4094                                                         GLsizei count,
  4095                                                         GLboolean transpose,
  4096                                                         const GLfloat *
  4097                                                         value);
  4098     typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
  4099     typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index,
  4100                                                       GLdouble x);
  4101     typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index,
  4102                                                        const GLdouble * v);
  4103     typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index,
  4104                                                       GLfloat x);
  4105     typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index,
  4106                                                        const GLfloat * v);
  4107     typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index,
  4108                                                       GLshort x);
  4109     typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index,
  4110                                                        const GLshort * v);
  4111     typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index,
  4112                                                       GLdouble x, GLdouble y);
  4113     typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index,
  4114                                                        const GLdouble * v);
  4115     typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x,
  4116                                                       GLfloat y);
  4117     typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index,
  4118                                                        const GLfloat * v);
  4119     typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x,
  4120                                                       GLshort y);
  4121     typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index,
  4122                                                        const GLshort * v);
  4123     typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index,
  4124                                                       GLdouble x, GLdouble y,
  4125                                                       GLdouble z);
  4126     typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index,
  4127                                                        const GLdouble * v);
  4128     typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x,
  4129                                                       GLfloat y, GLfloat z);
  4130     typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index,
  4131                                                        const GLfloat * v);
  4132     typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x,
  4133                                                       GLshort y, GLshort z);
  4134     typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index,
  4135                                                        const GLshort * v);
  4136     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index,
  4137                                                         const GLbyte * v);
  4138     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index,
  4139                                                         const GLint * v);
  4140     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index,
  4141                                                         const GLshort * v);
  4142     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index,
  4143                                                         GLubyte x, GLubyte y,
  4144                                                         GLubyte z, GLubyte w);
  4145     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index,
  4146                                                          const GLubyte * v);
  4147     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index,
  4148                                                          const GLuint * v);
  4149     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index,
  4150                                                          const GLushort * v);
  4151     typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index,
  4152                                                        const GLbyte * v);
  4153     typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index,
  4154                                                       GLdouble x, GLdouble y,
  4155                                                       GLdouble z, GLdouble w);
  4156     typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index,
  4157                                                        const GLdouble * v);
  4158     typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x,
  4159                                                       GLfloat y, GLfloat z,
  4160                                                       GLfloat w);
  4161     typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index,
  4162                                                        const GLfloat * v);
  4163     typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index,
  4164                                                        const GLint * v);
  4165     typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x,
  4166                                                       GLshort y, GLshort z,
  4167                                                       GLshort w);
  4168     typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index,
  4169                                                        const GLshort * v);
  4170     typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index,
  4171                                                         const GLubyte * v);
  4172     typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index,
  4173                                                         const GLuint * v);
  4174     typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index,
  4175                                                         const GLushort * v);
  4176     typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index,
  4177                                                            GLint size,
  4178                                                            GLenum type,
  4179                                                            GLboolean
  4180                                                            normalized,
  4181                                                            GLsizei stride,
  4182                                                            const GLvoid *
  4183                                                            pointer);
  4184 #endif
  4185 
  4186 #ifndef GL_ARB_multitexture
  4187 #define GL_ARB_multitexture 1
  4188 #ifdef GL_GLEXT_PROTOTYPES
  4189     GLAPI void APIENTRY glActiveTextureARB (GLenum);
  4190     GLAPI void APIENTRY glClientActiveTextureARB (GLenum);
  4191     GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum, GLdouble);
  4192     GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum, const GLdouble *);
  4193     GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum, GLfloat);
  4194     GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum, const GLfloat *);
  4195     GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum, GLint);
  4196     GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum, const GLint *);
  4197     GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum, GLshort);
  4198     GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum, const GLshort *);
  4199     GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum, GLdouble, GLdouble);
  4200     GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum, const GLdouble *);
  4201     GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum, GLfloat, GLfloat);
  4202     GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum, const GLfloat *);
  4203     GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum, GLint, GLint);
  4204     GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum, const GLint *);
  4205     GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum, GLshort, GLshort);
  4206     GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum, const GLshort *);
  4207     GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum, GLdouble, GLdouble,
  4208                                               GLdouble);
  4209     GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum, const GLdouble *);
  4210     GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum, GLfloat, GLfloat,
  4211                                               GLfloat);
  4212     GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum, const GLfloat *);
  4213     GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum, GLint, GLint, GLint);
  4214     GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum, const GLint *);
  4215     GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum, GLshort, GLshort,
  4216                                               GLshort);
  4217     GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum, const GLshort *);
  4218     GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum, GLdouble, GLdouble,
  4219                                               GLdouble, GLdouble);
  4220     GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum, const GLdouble *);
  4221     GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum, GLfloat, GLfloat,
  4222                                               GLfloat, GLfloat);
  4223     GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum, const GLfloat *);
  4224     GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum, GLint, GLint, GLint,
  4225                                               GLint);
  4226     GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum, const GLint *);
  4227     GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum, GLshort, GLshort,
  4228                                               GLshort, GLshort);
  4229     GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum, const GLshort *);
  4230 #endif                          /* GL_GLEXT_PROTOTYPES */
  4231     typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
  4232     typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
  4233     typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target,
  4234                                                           GLdouble s);
  4235     typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target,
  4236                                                            const GLdouble *
  4237                                                            v);
  4238     typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target,
  4239                                                           GLfloat s);
  4240     typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target,
  4241                                                            const GLfloat * v);
  4242     typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target,
  4243                                                           GLint s);
  4244     typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target,
  4245                                                            const GLint * v);
  4246     typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target,
  4247                                                           GLshort s);
  4248     typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target,
  4249                                                            const GLshort * v);
  4250     typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target,
  4251                                                           GLdouble s,
  4252                                                           GLdouble t);
  4253     typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target,
  4254                                                            const GLdouble *
  4255                                                            v);
  4256     typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target,
  4257                                                           GLfloat s,
  4258                                                           GLfloat t);
  4259     typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target,
  4260                                                            const GLfloat * v);
  4261     typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target,
  4262                                                           GLint s, GLint t);
  4263     typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target,
  4264                                                            const GLint * v);
  4265     typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target,
  4266                                                           GLshort s,
  4267                                                           GLshort t);
  4268     typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target,
  4269                                                            const GLshort * v);
  4270     typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target,
  4271                                                           GLdouble s,
  4272                                                           GLdouble t,
  4273                                                           GLdouble r);
  4274     typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target,
  4275                                                            const GLdouble *
  4276                                                            v);
  4277     typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target,
  4278                                                           GLfloat s,
  4279                                                           GLfloat t,
  4280                                                           GLfloat r);
  4281     typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target,
  4282                                                            const GLfloat * v);
  4283     typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target,
  4284                                                           GLint s, GLint t,
  4285                                                           GLint r);
  4286     typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target,
  4287                                                            const GLint * v);
  4288     typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target,
  4289                                                           GLshort s,
  4290                                                           GLshort t,
  4291                                                           GLshort r);
  4292     typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target,
  4293                                                            const GLshort * v);
  4294     typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target,
  4295                                                           GLdouble s,
  4296                                                           GLdouble t,
  4297                                                           GLdouble r,
  4298                                                           GLdouble q);
  4299     typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target,
  4300                                                            const GLdouble *
  4301                                                            v);
  4302     typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target,
  4303                                                           GLfloat s,
  4304                                                           GLfloat t,
  4305                                                           GLfloat r,
  4306                                                           GLfloat q);
  4307     typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target,
  4308                                                            const GLfloat * v);
  4309     typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target,
  4310                                                           GLint s, GLint t,
  4311                                                           GLint r, GLint q);
  4312     typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target,
  4313                                                            const GLint * v);
  4314     typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target,
  4315                                                           GLshort s,
  4316                                                           GLshort t,
  4317                                                           GLshort r,
  4318                                                           GLshort q);
  4319     typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target,
  4320                                                            const GLshort * v);
  4321 #endif
  4322 
  4323 #ifndef GL_ARB_transpose_matrix
  4324 #define GL_ARB_transpose_matrix 1
  4325 #ifdef GL_GLEXT_PROTOTYPES
  4326     GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *);
  4327     GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *);
  4328     GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *);
  4329     GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *);
  4330 #endif                          /* GL_GLEXT_PROTOTYPES */
  4331     typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *
  4332                                                                m);
  4333     typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble
  4334                                                                * m);
  4335     typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *
  4336                                                                m);
  4337     typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble
  4338                                                                * m);
  4339 #endif
  4340 
  4341 #ifndef GL_ARB_multisample
  4342 #define GL_ARB_multisample 1
  4343 #ifdef GL_GLEXT_PROTOTYPES
  4344     GLAPI void APIENTRY glSampleCoverageARB (GLclampf, GLboolean);
  4345 #endif                          /* GL_GLEXT_PROTOTYPES */
  4346     typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLclampf value,
  4347                                                          GLboolean invert);
  4348 #endif
  4349 
  4350 #ifndef GL_ARB_texture_env_add
  4351 #define GL_ARB_texture_env_add 1
  4352 #endif
  4353 
  4354 #ifndef GL_ARB_texture_cube_map
  4355 #define GL_ARB_texture_cube_map 1
  4356 #endif
  4357 
  4358 #ifndef GL_ARB_texture_compression
  4359 #define GL_ARB_texture_compression 1
  4360 #ifdef GL_GLEXT_PROTOTYPES
  4361     GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum, GLint, GLenum,
  4362                                                    GLsizei, GLsizei, GLsizei,
  4363                                                    GLint, GLsizei,
  4364                                                    const GLvoid *);
  4365     GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum, GLint, GLenum,
  4366                                                    GLsizei, GLsizei, GLint,
  4367                                                    GLsizei, const GLvoid *);
  4368     GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum, GLint, GLenum,
  4369                                                    GLsizei, GLint, GLsizei,
  4370                                                    const GLvoid *);
  4371     GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum, GLint, GLint,
  4372                                                       GLint, GLint, GLsizei,
  4373                                                       GLsizei, GLsizei,
  4374                                                       GLenum, GLsizei,
  4375                                                       const GLvoid *);
  4376     GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum, GLint, GLint,
  4377                                                       GLint, GLsizei, GLsizei,
  4378                                                       GLenum, GLsizei,
  4379                                                       const GLvoid *);
  4380     GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum, GLint, GLint,
  4381                                                       GLsizei, GLenum,
  4382                                                       GLsizei,
  4383                                                       const GLvoid *);
  4384     GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum, GLint, GLvoid *);
  4385 #endif                          /* GL_GLEXT_PROTOTYPES */
  4386     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target,
  4387                                                                GLint level,
  4388                                                                GLenum
  4389                                                                internalformat,
  4390                                                                GLsizei width,
  4391                                                                GLsizei height,
  4392                                                                GLsizei depth,
  4393                                                                GLint border,
  4394                                                                GLsizei
  4395                                                                imageSize,
  4396                                                                const GLvoid *
  4397                                                                data);
  4398     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target,
  4399                                                                GLint level,
  4400                                                                GLenum
  4401                                                                internalformat,
  4402                                                                GLsizei width,
  4403                                                                GLsizei height,
  4404                                                                GLint border,
  4405                                                                GLsizei
  4406                                                                imageSize,
  4407                                                                const GLvoid *
  4408                                                                data);
  4409     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target,
  4410                                                                GLint level,
  4411                                                                GLenum
  4412                                                                internalformat,
  4413                                                                GLsizei width,
  4414                                                                GLint border,
  4415                                                                GLsizei
  4416                                                                imageSize,
  4417                                                                const GLvoid *
  4418                                                                data);
  4419     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum
  4420                                                                   target,
  4421                                                                   GLint level,
  4422                                                                   GLint
  4423                                                                   xoffset,
  4424                                                                   GLint
  4425                                                                   yoffset,
  4426                                                                   GLint
  4427                                                                   zoffset,
  4428                                                                   GLsizei
  4429                                                                   width,
  4430                                                                   GLsizei
  4431                                                                   height,
  4432                                                                   GLsizei
  4433                                                                   depth,
  4434                                                                   GLenum
  4435                                                                   format,
  4436                                                                   GLsizei
  4437                                                                   imageSize,
  4438                                                                   const GLvoid
  4439                                                                   * data);
  4440     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum
  4441                                                                   target,
  4442                                                                   GLint level,
  4443                                                                   GLint
  4444                                                                   xoffset,
  4445                                                                   GLint
  4446                                                                   yoffset,
  4447                                                                   GLsizei
  4448                                                                   width,
  4449                                                                   GLsizei
  4450                                                                   height,
  4451                                                                   GLenum
  4452                                                                   format,
  4453                                                                   GLsizei
  4454                                                                   imageSize,
  4455                                                                   const GLvoid
  4456                                                                   * data);
  4457     typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum
  4458                                                                   target,
  4459                                                                   GLint level,
  4460                                                                   GLint
  4461                                                                   xoffset,
  4462                                                                   GLsizei
  4463                                                                   width,
  4464                                                                   GLenum
  4465                                                                   format,
  4466                                                                   GLsizei
  4467                                                                   imageSize,
  4468                                                                   const GLvoid
  4469                                                                   * data);
  4470     typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target,
  4471                                                                 GLint level,
  4472                                                                 GLvoid * img);
  4473 #endif
  4474 
  4475 #ifndef GL_ARB_texture_border_clamp
  4476 #define GL_ARB_texture_border_clamp 1
  4477 #endif
  4478 
  4479 #ifndef GL_ARB_point_parameters
  4480 #define GL_ARB_point_parameters 1
  4481 #ifdef GL_GLEXT_PROTOTYPES
  4482     GLAPI void APIENTRY glPointParameterfARB (GLenum, GLfloat);
  4483     GLAPI void APIENTRY glPointParameterfvARB (GLenum, const GLfloat *);
  4484 #endif                          /* GL_GLEXT_PROTOTYPES */
  4485     typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname,
  4486                                                           GLfloat param);
  4487     typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname,
  4488                                                            const GLfloat *
  4489                                                            params);
  4490 #endif
  4491 
  4492 #ifndef GL_ARB_vertex_blend
  4493 #define GL_ARB_vertex_blend 1
  4494 #ifdef GL_GLEXT_PROTOTYPES
  4495     GLAPI void APIENTRY glWeightbvARB (GLint, const GLbyte *);
  4496     GLAPI void APIENTRY glWeightsvARB (GLint, const GLshort *);
  4497     GLAPI void APIENTRY glWeightivARB (GLint, const GLint *);
  4498     GLAPI void APIENTRY glWeightfvARB (GLint, const GLfloat *);
  4499     GLAPI void APIENTRY glWeightdvARB (GLint, const GLdouble *);
  4500     GLAPI void APIENTRY glWeightubvARB (GLint, const GLubyte *);
  4501     GLAPI void APIENTRY glWeightusvARB (GLint, const GLushort *);
  4502     GLAPI void APIENTRY glWeightuivARB (GLint, const GLuint *);
  4503     GLAPI void APIENTRY glWeightPointerARB (GLint, GLenum, GLsizei,
  4504                                             const GLvoid *);
  4505     GLAPI void APIENTRY glVertexBlendARB (GLint);
  4506 #endif                          /* GL_GLEXT_PROTOTYPES */
  4507     typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size,
  4508                                                    const GLbyte * weights);
  4509     typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size,
  4510                                                    const GLshort * weights);
  4511     typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size,
  4512                                                    const GLint * weights);
  4513     typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size,
  4514                                                    const GLfloat * weights);
  4515     typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size,
  4516                                                    const GLdouble * weights);
  4517     typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size,
  4518                                                     const GLubyte * weights);
  4519     typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size,
  4520                                                     const GLushort * weights);
  4521     typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size,
  4522                                                     const GLuint * weights);
  4523     typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size,
  4524                                                         GLenum type,
  4525                                                         GLsizei stride,
  4526                                                         const GLvoid *
  4527                                                         pointer);
  4528     typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count);
  4529 #endif
  4530 
  4531 #ifndef GL_ARB_matrix_palette
  4532 #define GL_ARB_matrix_palette 1
  4533 #ifdef GL_GLEXT_PROTOTYPES
  4534     GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint);
  4535     GLAPI void APIENTRY glMatrixIndexubvARB (GLint, const GLubyte *);
  4536     GLAPI void APIENTRY glMatrixIndexusvARB (GLint, const GLushort *);
  4537     GLAPI void APIENTRY glMatrixIndexuivARB (GLint, const GLuint *);
  4538     GLAPI void APIENTRY glMatrixIndexPointerARB (GLint, GLenum, GLsizei,
  4539                                                  const GLvoid *);
  4540 #endif                          /* GL_GLEXT_PROTOTYPES */
  4541     typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
  4542     typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size,
  4543                                                          const GLubyte *
  4544                                                          indices);
  4545     typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size,
  4546                                                          const GLushort *
  4547                                                          indices);
  4548     typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size,
  4549                                                          const GLuint *
  4550                                                          indices);
  4551     typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size,
  4552                                                              GLenum type,
  4553                                                              GLsizei stride,
  4554                                                              const GLvoid *
  4555                                                              pointer);
  4556 #endif
  4557 
  4558 #ifndef GL_ARB_texture_env_combine
  4559 #define GL_ARB_texture_env_combine 1
  4560 #endif
  4561 
  4562 #ifndef GL_ARB_texture_env_crossbar
  4563 #define GL_ARB_texture_env_crossbar 1
  4564 #endif
  4565 
  4566 #ifndef GL_ARB_texture_env_dot3
  4567 #define GL_ARB_texture_env_dot3 1
  4568 #endif
  4569 
  4570 #ifndef GL_ARB_texture_mirrored_repeat
  4571 #define GL_ARB_texture_mirrored_repeat 1
  4572 #endif
  4573 
  4574 #ifndef GL_ARB_depth_texture
  4575 #define GL_ARB_depth_texture 1
  4576 #endif
  4577 
  4578 #ifndef GL_ARB_shadow
  4579 #define GL_ARB_shadow 1
  4580 #endif
  4581 
  4582 #ifndef GL_ARB_shadow_ambient
  4583 #define GL_ARB_shadow_ambient 1
  4584 #endif
  4585 
  4586 #ifndef GL_ARB_window_pos
  4587 #define GL_ARB_window_pos 1
  4588 #ifdef GL_GLEXT_PROTOTYPES
  4589     GLAPI void APIENTRY glWindowPos2dARB (GLdouble, GLdouble);
  4590     GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *);
  4591     GLAPI void APIENTRY glWindowPos2fARB (GLfloat, GLfloat);
  4592     GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *);
  4593     GLAPI void APIENTRY glWindowPos2iARB (GLint, GLint);
  4594     GLAPI void APIENTRY glWindowPos2ivARB (const GLint *);
  4595     GLAPI void APIENTRY glWindowPos2sARB (GLshort, GLshort);
  4596     GLAPI void APIENTRY glWindowPos2svARB (const GLshort *);
  4597     GLAPI void APIENTRY glWindowPos3dARB (GLdouble, GLdouble, GLdouble);
  4598     GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *);
  4599     GLAPI void APIENTRY glWindowPos3fARB (GLfloat, GLfloat, GLfloat);
  4600     GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *);
  4601     GLAPI void APIENTRY glWindowPos3iARB (GLint, GLint, GLint);
  4602     GLAPI void APIENTRY glWindowPos3ivARB (const GLint *);
  4603     GLAPI void APIENTRY glWindowPos3sARB (GLshort, GLshort, GLshort);
  4604     GLAPI void APIENTRY glWindowPos3svARB (const GLshort *);
  4605 #endif                          /* GL_GLEXT_PROTOTYPES */
  4606     typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y);
  4607     typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble * v);
  4608     typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y);
  4609     typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat * v);
  4610     typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y);
  4611     typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint * v);
  4612     typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y);
  4613     typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort * v);
  4614     typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y,
  4615                                                       GLdouble z);
  4616     typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble * v);
  4617     typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y,
  4618                                                       GLfloat z);
  4619     typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat * v);
  4620     typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y,
  4621                                                       GLint z);
  4622     typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint * v);
  4623     typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y,
  4624                                                       GLshort z);
  4625     typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort * v);
  4626 #endif
  4627 
  4628 #ifndef GL_ARB_vertex_program
  4629 #define GL_ARB_vertex_program 1
  4630 #ifdef GL_GLEXT_PROTOTYPES
  4631     GLAPI void APIENTRY glVertexAttrib1dARB (GLuint, GLdouble);
  4632     GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint, const GLdouble *);
  4633     GLAPI void APIENTRY glVertexAttrib1fARB (GLuint, GLfloat);
  4634     GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint, const GLfloat *);
  4635     GLAPI void APIENTRY glVertexAttrib1sARB (GLuint, GLshort);
  4636     GLAPI void APIENTRY glVertexAttrib1svARB (GLuint, const GLshort *);
  4637     GLAPI void APIENTRY glVertexAttrib2dARB (GLuint, GLdouble, GLdouble);
  4638     GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint, const GLdouble *);
  4639     GLAPI void APIENTRY glVertexAttrib2fARB (GLuint, GLfloat, GLfloat);
  4640     GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint, const GLfloat *);
  4641     GLAPI void APIENTRY glVertexAttrib2sARB (GLuint, GLshort, GLshort);
  4642     GLAPI void APIENTRY glVertexAttrib2svARB (GLuint, const GLshort *);
  4643     GLAPI void APIENTRY glVertexAttrib3dARB (GLuint, GLdouble, GLdouble,
  4644                                              GLdouble);
  4645     GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint, const GLdouble *);
  4646     GLAPI void APIENTRY glVertexAttrib3fARB (GLuint, GLfloat, GLfloat,
  4647                                              GLfloat);
  4648     GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint, const GLfloat *);
  4649     GLAPI void APIENTRY glVertexAttrib3sARB (GLuint, GLshort, GLshort,
  4650                                              GLshort);
  4651     GLAPI void APIENTRY glVertexAttrib3svARB (GLuint, const GLshort *);
  4652     GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint, const GLbyte *);
  4653     GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint, const GLint *);
  4654     GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint, const GLshort *);
  4655     GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint, GLubyte, GLubyte,
  4656                                                GLubyte, GLubyte);
  4657     GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint, const GLubyte *);
  4658     GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint, const GLuint *);
  4659     GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint, const GLushort *);
  4660     GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint, const GLbyte *);
  4661     GLAPI void APIENTRY glVertexAttrib4dARB (GLuint, GLdouble, GLdouble,
  4662                                              GLdouble, GLdouble);
  4663     GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint, const GLdouble *);
  4664     GLAPI void APIENTRY glVertexAttrib4fARB (GLuint, GLfloat, GLfloat,
  4665                                              GLfloat, GLfloat);
  4666     GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint, const GLfloat *);
  4667     GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint, const GLint *);
  4668     GLAPI void APIENTRY glVertexAttrib4sARB (GLuint, GLshort, GLshort,
  4669                                              GLshort, GLshort);
  4670     GLAPI void APIENTRY glVertexAttrib4svARB (GLuint, const GLshort *);
  4671     GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint, const GLubyte *);
  4672     GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint, const GLuint *);
  4673     GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint, const GLushort *);
  4674     GLAPI void APIENTRY glVertexAttribPointerARB (GLuint, GLint, GLenum,
  4675                                                   GLboolean, GLsizei,
  4676                                                   const GLvoid *);
  4677     GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint);
  4678     GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint);
  4679     GLAPI void APIENTRY glProgramStringARB (GLenum, GLenum, GLsizei,
  4680                                             const GLvoid *);
  4681     GLAPI void APIENTRY glBindProgramARB (GLenum, GLuint);
  4682     GLAPI void APIENTRY glDeleteProgramsARB (GLsizei, const GLuint *);
  4683     GLAPI void APIENTRY glGenProgramsARB (GLsizei, GLuint *);
  4684     GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum, GLuint, GLdouble,
  4685                                                     GLdouble, GLdouble,
  4686                                                     GLdouble);
  4687     GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum, GLuint,
  4688                                                      const GLdouble *);
  4689     GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum, GLuint, GLfloat,
  4690                                                     GLfloat, GLfloat,
  4691                                                     GLfloat);
  4692     GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum, GLuint,
  4693                                                      const GLfloat *);
  4694     GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum, GLuint,
  4695                                                       GLdouble, GLdouble,
  4696                                                       GLdouble, GLdouble);
  4697     GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum, GLuint,
  4698                                                        const GLdouble *);
  4699     GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum, GLuint, GLfloat,
  4700                                                       GLfloat, GLfloat,
  4701                                                       GLfloat);
  4702     GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum, GLuint,
  4703                                                        const GLfloat *);
  4704     GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum, GLuint,
  4705                                                        GLdouble *);
  4706     GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum, GLuint,
  4707                                                        GLfloat *);
  4708     GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum, GLuint,
  4709                                                          GLdouble *);
  4710     GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum, GLuint,
  4711                                                          GLfloat *);
  4712     GLAPI void APIENTRY glGetProgramivARB (GLenum, GLenum, GLint *);
  4713     GLAPI void APIENTRY glGetProgramStringARB (GLenum, GLenum, GLvoid *);
  4714     GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint, GLenum, GLdouble *);
  4715     GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint, GLenum, GLfloat *);
  4716     GLAPI void APIENTRY glGetVertexAttribivARB (GLuint, GLenum, GLint *);
  4717     GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint, GLenum,
  4718                                                       GLvoid * *);
  4719     GLAPI GLboolean APIENTRY glIsProgramARB (GLuint);
  4720 #endif                          /* GL_GLEXT_PROTOTYPES */
  4721     typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index,
  4722                                                          GLdouble x);
  4723     typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index,
  4724                                                           const GLdouble * v);
  4725     typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index,
  4726                                                          GLfloat x);
  4727     typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index,
  4728                                                           const GLfloat * v);
  4729     typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index,
  4730                                                          GLshort x);
  4731     typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index,
  4732                                                           const GLshort * v);
  4733     typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index,
  4734                                                          GLdouble x,
  4735                                                          GLdouble y);
  4736     typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index,
  4737                                                           const GLdouble * v);
  4738     typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index,
  4739                                                          GLfloat x,
  4740                                                          GLfloat y);
  4741     typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index,
  4742                                                           const GLfloat * v);
  4743     typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index,
  4744                                                          GLshort x,
  4745                                                          GLshort y);
  4746     typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index,
  4747                                                           const GLshort * v);
  4748     typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index,
  4749                                                          GLdouble x,
  4750                                                          GLdouble y,
  4751                                                          GLdouble z);
  4752     typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index,
  4753                                                           const GLdouble * v);
  4754     typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index,
  4755                                                          GLfloat x, GLfloat y,
  4756                                                          GLfloat z);
  4757     typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index,
  4758                                                           const GLfloat * v);
  4759     typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index,
  4760                                                          GLshort x, GLshort y,
  4761                                                          GLshort z);
  4762     typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index,
  4763                                                           const GLshort * v);
  4764     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index,
  4765                                                            const GLbyte * v);
  4766     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index,
  4767                                                            const GLint * v);
  4768     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index,
  4769                                                            const GLshort * v);
  4770     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index,
  4771                                                            GLubyte x,
  4772                                                            GLubyte y,
  4773                                                            GLubyte z,
  4774                                                            GLubyte w);
  4775     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index,
  4776                                                             const GLubyte *
  4777                                                             v);
  4778     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index,
  4779                                                             const GLuint * v);
  4780     typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index,
  4781                                                             const GLushort *
  4782                                                             v);
  4783     typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index,
  4784                                                           const GLbyte * v);
  4785     typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index,
  4786                                                          GLdouble x,
  4787                                                          GLdouble y,
  4788                                                          GLdouble z,
  4789                                                          GLdouble w);
  4790     typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index,
  4791                                                           const GLdouble * v);
  4792     typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index,
  4793                                                          GLfloat x, GLfloat y,
  4794                                                          GLfloat z,
  4795                                                          GLfloat w);
  4796     typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index,
  4797                                                           const GLfloat * v);
  4798     typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index,
  4799                                                           const GLint * v);
  4800     typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index,
  4801                                                          GLshort x, GLshort y,
  4802                                                          GLshort z,
  4803                                                          GLshort w);
  4804     typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index,
  4805                                                           const GLshort * v);
  4806     typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index,
  4807                                                            const GLubyte * v);
  4808     typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index,
  4809                                                            const GLuint * v);
  4810     typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index,
  4811                                                            const GLushort *
  4812                                                            v);
  4813     typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index,
  4814                                                               GLint size,
  4815                                                               GLenum type,
  4816                                                               GLboolean
  4817                                                               normalized,
  4818                                                               GLsizei stride,
  4819                                                               const GLvoid *
  4820                                                               pointer);
  4821     typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint
  4822                                                                   index);
  4823     typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint
  4824                                                                    index);
  4825     typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target,
  4826                                                         GLenum format,
  4827                                                         GLsizei len,
  4828                                                         const GLvoid *
  4829                                                         string);
  4830     typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target,
  4831                                                       GLuint program);
  4832     typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n,
  4833                                                          const GLuint *
  4834                                                          programs);
  4835     typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n,
  4836                                                       GLuint * programs);
  4837     typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target,
  4838                                                                 GLuint index,
  4839                                                                 GLdouble x,
  4840                                                                 GLdouble y,
  4841                                                                 GLdouble z,
  4842                                                                 GLdouble w);
  4843     typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum
  4844                                                                  target,
  4845                                                                  GLuint index,
  4846                                                                  const
  4847                                                                  GLdouble *
  4848                                                                  params);
  4849     typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target,
  4850                                                                 GLuint index,
  4851                                                                 GLfloat x,
  4852                                                                 GLfloat y,
  4853                                                                 GLfloat z,
  4854                                                                 GLfloat w);
  4855     typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum
  4856                                                                  target,
  4857                                                                  GLuint index,
  4858                                                                  const GLfloat
  4859                                                                  * params);
  4860     typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum
  4861                                                                   target,
  4862                                                                   GLuint
  4863                                                                   index,
  4864                                                                   GLdouble x,
  4865                                                                   GLdouble y,
  4866                                                                   GLdouble z,
  4867                                                                   GLdouble w);
  4868     typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum
  4869                                                                    target,
  4870                                                                    GLuint
  4871                                                                    index,
  4872                                                                    const
  4873                                                                    GLdouble *
  4874                                                                    params);
  4875     typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum
  4876                                                                   target,
  4877                                                                   GLuint
  4878                                                                   index,
  4879                                                                   GLfloat x,
  4880                                                                   GLfloat y,
  4881                                                                   GLfloat z,
  4882                                                                   GLfloat w);
  4883     typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum
  4884                                                                    target,
  4885                                                                    GLuint
  4886                                                                    index,
  4887                                                                    const
  4888                                                                    GLfloat *
  4889                                                                    params);
  4890     typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum
  4891                                                                    target,
  4892                                                                    GLuint
  4893                                                                    index,
  4894                                                                    GLdouble *
  4895                                                                    params);
  4896     typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum
  4897                                                                    target,
  4898                                                                    GLuint
  4899                                                                    index,
  4900                                                                    GLfloat *
  4901                                                                    params);
  4902     typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum
  4903                                                                      target,
  4904                                                                      GLuint
  4905                                                                      index,
  4906                                                                      GLdouble
  4907                                                                      *
  4908                                                                      params);
  4909     typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum
  4910                                                                      target,
  4911                                                                      GLuint
  4912                                                                      index,
  4913                                                                      GLfloat *
  4914                                                                      params);
  4915     typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target,
  4916                                                        GLenum pname,
  4917                                                        GLint * params);
  4918     typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target,
  4919                                                            GLenum pname,
  4920                                                            GLvoid * string);
  4921     typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index,
  4922                                                             GLenum pname,
  4923                                                             GLdouble *
  4924                                                             params);
  4925     typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index,
  4926                                                             GLenum pname,
  4927                                                             GLfloat * params);
  4928     typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index,
  4929                                                             GLenum pname,
  4930                                                             GLint * params);
  4931     typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint
  4932                                                                   index,
  4933                                                                   GLenum
  4934                                                                   pname,
  4935                                                                   GLvoid *
  4936                                                                   *pointer);
  4937     typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program);
  4938 #endif
  4939 
  4940 #ifndef GL_ARB_fragment_program
  4941 #define GL_ARB_fragment_program 1
  4942 /* All ARB_fragment_program entry points are shared with ARB_vertex_program. */
  4943 #endif
  4944 
  4945 #ifndef GL_ARB_vertex_buffer_object
  4946 #define GL_ARB_vertex_buffer_object 1
  4947 #ifdef GL_GLEXT_PROTOTYPES
  4948     GLAPI void APIENTRY glBindBufferARB (GLenum, GLuint);
  4949     GLAPI void APIENTRY glDeleteBuffersARB (GLsizei, const GLuint *);
  4950     GLAPI void APIENTRY glGenBuffersARB (GLsizei, GLuint *);
  4951     GLAPI GLboolean APIENTRY glIsBufferARB (GLuint);
  4952     GLAPI void APIENTRY glBufferDataARB (GLenum, GLsizeiptrARB,
  4953                                          const GLvoid *, GLenum);
  4954     GLAPI void APIENTRY glBufferSubDataARB (GLenum, GLintptrARB,
  4955                                             GLsizeiptrARB, const GLvoid *);
  4956     GLAPI void APIENTRY glGetBufferSubDataARB (GLenum, GLintptrARB,
  4957                                                GLsizeiptrARB, GLvoid *);
  4958     GLAPI GLvoid *APIENTRY glMapBufferARB (GLenum, GLenum);
  4959     GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum);
  4960     GLAPI void APIENTRY glGetBufferParameterivARB (GLenum, GLenum, GLint *);
  4961     GLAPI void APIENTRY glGetBufferPointervARB (GLenum, GLenum, GLvoid * *);
  4962 #endif                          /* GL_GLEXT_PROTOTYPES */
  4963     typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target,
  4964                                                      GLuint buffer);
  4965     typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n,
  4966                                                         const GLuint *
  4967                                                         buffers);
  4968     typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n,
  4969                                                      GLuint * buffers);
  4970     typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer);
  4971     typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target,
  4972                                                      GLsizeiptrARB size,
  4973                                                      const GLvoid * data,
  4974                                                      GLenum usage);
  4975     typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target,
  4976                                                         GLintptrARB offset,
  4977                                                         GLsizeiptrARB size,
  4978                                                         const GLvoid * data);
  4979     typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target,
  4980                                                            GLintptrARB offset,
  4981                                                            GLsizeiptrARB size,
  4982                                                            GLvoid * data);
  4983     typedef GLvoid *(APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target,
  4984                                                        GLenum access);
  4985     typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target);
  4986     typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target,
  4987                                                                GLenum pname,
  4988                                                                GLint *
  4989                                                                params);
  4990     typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target,
  4991                                                             GLenum pname,
  4992                                                             GLvoid * *params);
  4993 #endif
  4994 
  4995 #ifndef GL_ARB_occlusion_query
  4996 #define GL_ARB_occlusion_query 1
  4997 #ifdef GL_GLEXT_PROTOTYPES
  4998     GLAPI void APIENTRY glGenQueriesARB (GLsizei, GLuint *);
  4999     GLAPI void APIENTRY glDeleteQueriesARB (GLsizei, const GLuint *);
  5000     GLAPI GLboolean APIENTRY glIsQueryARB (GLuint);
  5001     GLAPI void APIENTRY glBeginQueryARB (GLenum, GLuint);
  5002     GLAPI void APIENTRY glEndQueryARB (GLenum);
  5003     GLAPI void APIENTRY glGetQueryivARB (GLenum, GLenum, GLint *);
  5004     GLAPI void APIENTRY glGetQueryObjectivARB (GLuint, GLenum, GLint *);
  5005     GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint, GLenum, GLuint *);
  5006 #endif                          /* GL_GLEXT_PROTOTYPES */
  5007     typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint * ids);
  5008     typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n,
  5009                                                         const GLuint * ids);
  5010     typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id);
  5011     typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target,
  5012                                                      GLuint id);
  5013     typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target);
  5014     typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target,
  5015                                                      GLenum pname,
  5016                                                      GLint * params);
  5017     typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id,
  5018                                                            GLenum pname,
  5019                                                            GLint * params);
  5020     typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id,
  5021                                                             GLenum pname,
  5022                                                             GLuint * params);
  5023 #endif
  5024 
  5025 #ifndef GL_ARB_shader_objects
  5026 #define GL_ARB_shader_objects 1
  5027 #ifdef GL_GLEXT_PROTOTYPES
  5028     GLAPI void APIENTRY glDeleteObjectARB (GLhandleARB);
  5029     GLAPI GLhandleARB APIENTRY glGetHandleARB (GLenum);
  5030     GLAPI void APIENTRY glDetachObjectARB (GLhandleARB, GLhandleARB);
  5031     GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB (GLenum);
  5032     GLAPI void APIENTRY glShaderSourceARB (GLhandleARB, GLsizei,
  5033                                            const GLcharARB * *,
  5034                                            const GLint *);
  5035     GLAPI void APIENTRY glCompileShaderARB (GLhandleARB);
  5036     GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB (void);
  5037     GLAPI void APIENTRY glAttachObjectARB (GLhandleARB, GLhandleARB);
  5038     GLAPI void APIENTRY glLinkProgramARB (GLhandleARB);
  5039     GLAPI void APIENTRY glUseProgramObjectARB (GLhandleARB);
  5040     GLAPI void APIENTRY glValidateProgramARB (GLhandleARB);
  5041     GLAPI void APIENTRY glUniform1fARB (GLint, GLfloat);
  5042     GLAPI void APIENTRY glUniform2fARB (GLint, GLfloat, GLfloat);
  5043     GLAPI void APIENTRY glUniform3fARB (GLint, GLfloat, GLfloat, GLfloat);
  5044     GLAPI void APIENTRY glUniform4fARB (GLint, GLfloat, GLfloat, GLfloat,
  5045                                         GLfloat);
  5046     GLAPI void APIENTRY glUniform1iARB (GLint, GLint);
  5047     GLAPI void APIENTRY glUniform2iARB (GLint, GLint, GLint);
  5048     GLAPI void APIENTRY glUniform3iARB (GLint, GLint, GLint, GLint);
  5049     GLAPI void APIENTRY glUniform4iARB (GLint, GLint, GLint, GLint, GLint);
  5050     GLAPI void APIENTRY glUniform1fvARB (GLint, GLsizei, const GLfloat *);
  5051     GLAPI void APIENTRY glUniform2fvARB (GLint, GLsizei, const GLfloat *);
  5052     GLAPI void APIENTRY glUniform3fvARB (GLint, GLsizei, const GLfloat *);
  5053     GLAPI void APIENTRY glUniform4fvARB (GLint, GLsizei, const GLfloat *);
  5054     GLAPI void APIENTRY glUniform1ivARB (GLint, GLsizei, const GLint *);
  5055     GLAPI void APIENTRY glUniform2ivARB (GLint, GLsizei, const GLint *);
  5056     GLAPI void APIENTRY glUniform3ivARB (GLint, GLsizei, const GLint *);
  5057     GLAPI void APIENTRY glUniform4ivARB (GLint, GLsizei, const GLint *);
  5058     GLAPI void APIENTRY glUniformMatrix2fvARB (GLint, GLsizei, GLboolean,
  5059                                                const GLfloat *);
  5060     GLAPI void APIENTRY glUniformMatrix3fvARB (GLint, GLsizei, GLboolean,
  5061                                                const GLfloat *);
  5062     GLAPI void APIENTRY glUniformMatrix4fvARB (GLint, GLsizei, GLboolean,
  5063                                                const GLfloat *);
  5064     GLAPI void APIENTRY glGetObjectParameterfvARB (GLhandleARB, GLenum,
  5065                                                    GLfloat *);
  5066     GLAPI void APIENTRY glGetObjectParameterivARB (GLhandleARB, GLenum,
  5067                                                    GLint *);
  5068     GLAPI void APIENTRY glGetInfoLogARB (GLhandleARB, GLsizei, GLsizei *,
  5069                                          GLcharARB *);
  5070     GLAPI void APIENTRY glGetAttachedObjectsARB (GLhandleARB, GLsizei,
  5071                                                  GLsizei *, GLhandleARB *);
  5072     GLAPI GLint APIENTRY glGetUniformLocationARB (GLhandleARB,
  5073                                                   const GLcharARB *);
  5074     GLAPI void APIENTRY glGetActiveUniformARB (GLhandleARB, GLuint, GLsizei,
  5075                                                GLsizei *, GLint *, GLenum *,
  5076                                                GLcharARB *);
  5077     GLAPI void APIENTRY glGetUniformfvARB (GLhandleARB, GLint, GLfloat *);
  5078     GLAPI void APIENTRY glGetUniformivARB (GLhandleARB, GLint, GLint *);
  5079     GLAPI void APIENTRY glGetShaderSourceARB (GLhandleARB, GLsizei, GLsizei *,
  5080                                               GLcharARB *);
  5081 #endif                          /* GL_GLEXT_PROTOTYPES */
  5082     typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj);
  5083     typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname);
  5084     typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB
  5085                                                        containerObj,
  5086                                                        GLhandleARB
  5087                                                        attachedObj);
  5088     typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum
  5089                                                                     shaderType);
  5090     typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj,
  5091                                                        GLsizei count,
  5092                                                        const GLcharARB *
  5093                                                        *string,
  5094                                                        const GLint * length);
  5095     typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB
  5096                                                         shaderObj);
  5097     typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void);
  5098     typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB
  5099                                                        containerObj,
  5100                                                        GLhandleARB obj);
  5101     typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj);
  5102     typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB
  5103                                                            programObj);
  5104     typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB
  5105                                                           programObj);
  5106     typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location,
  5107                                                     GLfloat v0);
  5108     typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location,
  5109                                                     GLfloat v0, GLfloat v1);
  5110     typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location,
  5111                                                     GLfloat v0, GLfloat v1,
  5112                                                     GLfloat v2);
  5113     typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location,
  5114                                                     GLfloat v0, GLfloat v1,
  5115                                                     GLfloat v2, GLfloat v3);
  5116     typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0);
  5117     typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0,
  5118                                                     GLint v1);
  5119     typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0,
  5120                                                     GLint v1, GLint v2);
  5121     typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0,
  5122                                                     GLint v1, GLint v2,
  5123                                                     GLint v3);
  5124     typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location,
  5125                                                      GLsizei count,
  5126                                                      const GLfloat * value);
  5127     typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location,
  5128                                                      GLsizei count,
  5129                                                      const GLfloat * value);
  5130     typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location,
  5131                                                      GLsizei count,
  5132                                                      const GLfloat * value);
  5133     typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location,
  5134                                                      GLsizei count,
  5135                                                      const GLfloat * value);
  5136     typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location,
  5137                                                      GLsizei count,
  5138                                                      const GLint * value);
  5139     typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location,
  5140                                                      GLsizei count,
  5141                                                      const GLint * value);
  5142     typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location,
  5143                                                      GLsizei count,
  5144                                                      const GLint * value);
  5145     typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location,
  5146                                                      GLsizei count,
  5147                                                      const GLint * value);
  5148     typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location,
  5149                                                            GLsizei count,
  5150                                                            GLboolean
  5151                                                            transpose,
  5152                                                            const GLfloat *
  5153                                                            value);
  5154     typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location,
  5155                                                            GLsizei count,
  5156                                                            GLboolean
  5157                                                            transpose,
  5158                                                            const GLfloat *
  5159                                                            value);
  5160     typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location,
  5161                                                            GLsizei count,
  5162                                                            GLboolean
  5163                                                            transpose,
  5164                                                            const GLfloat *
  5165                                                            value);
  5166     typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB
  5167                                                                obj,
  5168                                                                GLenum pname,
  5169                                                                GLfloat *
  5170                                                                params);
  5171     typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB
  5172                                                                obj,
  5173                                                                GLenum pname,
  5174                                                                GLint *
  5175                                                                params);
  5176     typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj,
  5177                                                      GLsizei maxLength,
  5178                                                      GLsizei * length,
  5179                                                      GLcharARB * infoLog);
  5180     typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB
  5181                                                              containerObj,
  5182                                                              GLsizei maxCount,
  5183                                                              GLsizei * count,
  5184                                                              GLhandleARB *
  5185                                                              obj);
  5186     typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB
  5187                                                               programObj,
  5188                                                               const GLcharARB
  5189                                                               * name);
  5190     typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB
  5191                                                            programObj,
  5192                                                            GLuint index,
  5193                                                            GLsizei maxLength,
  5194                                                            GLsizei * length,
  5195                                                            GLint * size,
  5196                                                            GLenum * type,
  5197                                                            GLcharARB * name);
  5198     typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj,
  5199                                                        GLint location,
  5200                                                        GLfloat * params);
  5201     typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj,
  5202                                                        GLint location,
  5203                                                        GLint * params);
  5204     typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj,
  5205                                                           GLsizei maxLength,
  5206                                                           GLsizei * length,
  5207                                                           GLcharARB * source);
  5208 #endif
  5209 
  5210 #ifndef GL_ARB_vertex_shader
  5211 #define GL_ARB_vertex_shader 1
  5212 #ifdef GL_GLEXT_PROTOTYPES
  5213     GLAPI void APIENTRY glBindAttribLocationARB (GLhandleARB, GLuint,
  5214                                                  const GLcharARB *);
  5215     GLAPI void APIENTRY glGetActiveAttribARB (GLhandleARB, GLuint, GLsizei,
  5216                                               GLsizei *, GLint *, GLenum *,
  5217                                               GLcharARB *);
  5218     GLAPI GLint APIENTRY glGetAttribLocationARB (GLhandleARB,
  5219                                                  const GLcharARB *);
  5220 #endif                          /* GL_GLEXT_PROTOTYPES */
  5221     typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB
  5222                                                              programObj,
  5223                                                              GLuint index,
  5224                                                              const GLcharARB *
  5225                                                              name);
  5226     typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB
  5227                                                           programObj,
  5228                                                           GLuint index,
  5229                                                           GLsizei maxLength,
  5230                                                           GLsizei * length,
  5231                                                           GLint * size,
  5232                                                           GLenum * type,
  5233                                                           GLcharARB * name);
  5234     typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB
  5235                                                              programObj,
  5236                                                              const GLcharARB *
  5237                                                              name);
  5238 #endif
  5239 
  5240 #ifndef GL_ARB_fragment_shader
  5241 #define GL_ARB_fragment_shader 1
  5242 #endif
  5243 
  5244 #ifndef GL_ARB_shading_language_100
  5245 #define GL_ARB_shading_language_100 1
  5246 #endif
  5247 
  5248 #ifndef GL_ARB_texture_non_power_of_two
  5249 #define GL_ARB_texture_non_power_of_two 1
  5250 #endif
  5251 
  5252 #ifndef GL_ARB_point_sprite
  5253 #define GL_ARB_point_sprite 1
  5254 #endif
  5255 
  5256 #ifndef GL_ARB_fragment_program_shadow
  5257 #define GL_ARB_fragment_program_shadow 1
  5258 #endif
  5259 
  5260 #ifndef GL_ARB_draw_buffers
  5261 #define GL_ARB_draw_buffers 1
  5262 #ifdef GL_GLEXT_PROTOTYPES
  5263     GLAPI void APIENTRY glDrawBuffersARB (GLsizei, const GLenum *);
  5264 #endif                          /* GL_GLEXT_PROTOTYPES */
  5265     typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n,
  5266                                                       const GLenum * bufs);
  5267 #endif
  5268 
  5269 #ifndef GL_ARB_texture_rectangle
  5270 #define GL_ARB_texture_rectangle 1
  5271 #endif
  5272 
  5273 #ifndef GL_ARB_color_buffer_float
  5274 #define GL_ARB_color_buffer_float 1
  5275 #ifdef GL_GLEXT_PROTOTYPES
  5276     GLAPI void APIENTRY glClampColorARB (GLenum, GLenum);
  5277 #endif                          /* GL_GLEXT_PROTOTYPES */
  5278     typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target,
  5279                                                      GLenum clamp);
  5280 #endif
  5281 
  5282 #ifndef GL_ARB_half_float_pixel
  5283 #define GL_ARB_half_float_pixel 1
  5284 #endif
  5285 
  5286 #ifndef GL_ARB_texture_float
  5287 #define GL_ARB_texture_float 1
  5288 #endif
  5289 
  5290 #ifndef GL_ARB_pixel_buffer_object
  5291 #define GL_ARB_pixel_buffer_object 1
  5292 #endif
  5293 
  5294 #ifndef GL_EXT_abgr
  5295 #define GL_EXT_abgr 1
  5296 #endif
  5297 
  5298 #ifndef GL_EXT_blend_color
  5299 #define GL_EXT_blend_color 1
  5300 #ifdef GL_GLEXT_PROTOTYPES
  5301     GLAPI void APIENTRY glBlendColorEXT (GLclampf, GLclampf, GLclampf,
  5302                                          GLclampf);
  5303 #endif                          /* GL_GLEXT_PROTOTYPES */
  5304     typedef void (APIENTRYP PFNGLBLENDCOLOREXTPROC) (GLclampf red,
  5305                                                      GLclampf green,
  5306                                                      GLclampf blue,
  5307                                                      GLclampf alpha);
  5308 #endif
  5309 
  5310 #ifndef GL_EXT_polygon_offset
  5311 #define GL_EXT_polygon_offset 1
  5312 #ifdef GL_GLEXT_PROTOTYPES
  5313     GLAPI void APIENTRY glPolygonOffsetEXT (GLfloat, GLfloat);
  5314 #endif                          /* GL_GLEXT_PROTOTYPES */
  5315     typedef void (APIENTRYP PFNGLPOLYGONOFFSETEXTPROC) (GLfloat factor,
  5316                                                         GLfloat bias);
  5317 #endif
  5318 
  5319 #ifndef GL_EXT_texture
  5320 #define GL_EXT_texture 1
  5321 #endif
  5322 
  5323 #ifndef GL_EXT_texture3D
  5324 #define GL_EXT_texture3D 1
  5325 #ifdef GL_GLEXT_PROTOTYPES
  5326     GLAPI void APIENTRY glTexImage3DEXT (GLenum, GLint, GLenum, GLsizei,
  5327                                          GLsizei, GLsizei, GLint, GLenum,
  5328                                          GLenum, const GLvoid *);
  5329     GLAPI void APIENTRY glTexSubImage3DEXT (GLenum, GLint, GLint, GLint,
  5330                                             GLint, GLsizei, GLsizei, GLsizei,
  5331                                             GLenum, GLenum, const GLvoid *);
  5332 #endif                          /* GL_GLEXT_PROTOTYPES */
  5333     typedef void (APIENTRYP PFNGLTEXIMAGE3DEXTPROC) (GLenum target,
  5334                                                      GLint level,
  5335                                                      GLenum internalformat,
  5336                                                      GLsizei width,
  5337                                                      GLsizei height,
  5338                                                      GLsizei depth,
  5339                                                      GLint border,
  5340                                                      GLenum format,
  5341                                                      GLenum type,
  5342                                                      const GLvoid * pixels);
  5343     typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DEXTPROC) (GLenum target,
  5344                                                         GLint level,
  5345                                                         GLint xoffset,
  5346                                                         GLint yoffset,
  5347                                                         GLint zoffset,
  5348                                                         GLsizei width,
  5349                                                         GLsizei height,
  5350                                                         GLsizei depth,
  5351                                                         GLenum format,
  5352                                                         GLenum type,
  5353                                                         const GLvoid *
  5354                                                         pixels);
  5355 #endif
  5356 
  5357 #ifndef GL_SGIS_texture_filter4
  5358 #define GL_SGIS_texture_filter4 1
  5359 #ifdef GL_GLEXT_PROTOTYPES
  5360     GLAPI void APIENTRY glGetTexFilterFuncSGIS (GLenum, GLenum, GLfloat *);
  5361     GLAPI void APIENTRY glTexFilterFuncSGIS (GLenum, GLenum, GLsizei,
  5362                                              const GLfloat *);
  5363 #endif                          /* GL_GLEXT_PROTOTYPES */
  5364     typedef void (APIENTRYP PFNGLGETTEXFILTERFUNCSGISPROC) (GLenum target,
  5365                                                             GLenum filter,
  5366                                                             GLfloat *
  5367                                                             weights);
  5368     typedef void (APIENTRYP PFNGLTEXFILTERFUNCSGISPROC) (GLenum target,
  5369                                                          GLenum filter,
  5370                                                          GLsizei n,
  5371                                                          const GLfloat *
  5372                                                          weights);
  5373 #endif
  5374 
  5375 #ifndef GL_EXT_subtexture
  5376 #define GL_EXT_subtexture 1
  5377 #ifdef GL_GLEXT_PROTOTYPES
  5378     GLAPI void APIENTRY glTexSubImage1DEXT (GLenum, GLint, GLint, GLsizei,
  5379                                             GLenum, GLenum, const GLvoid *);
  5380     GLAPI void APIENTRY glTexSubImage2DEXT (GLenum, GLint, GLint, GLint,
  5381                                             GLsizei, GLsizei, GLenum, GLenum,
  5382                                             const GLvoid *);
  5383 #endif                          /* GL_GLEXT_PROTOTYPES */
  5384     typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DEXTPROC) (GLenum target,
  5385                                                         GLint level,
  5386                                                         GLint xoffset,
  5387                                                         GLsizei width,
  5388                                                         GLenum format,
  5389                                                         GLenum type,
  5390                                                         const GLvoid *
  5391                                                         pixels);
  5392     typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DEXTPROC) (GLenum target,
  5393                                                         GLint level,
  5394                                                         GLint xoffset,
  5395                                                         GLint yoffset,
  5396                                                         GLsizei width,
  5397                                                         GLsizei height,
  5398                                                         GLenum format,
  5399                                                         GLenum type,
  5400                                                         const GLvoid *
  5401                                                         pixels);
  5402 #endif
  5403 
  5404 #ifndef GL_EXT_copy_texture
  5405 #define GL_EXT_copy_texture 1
  5406 #ifdef GL_GLEXT_PROTOTYPES
  5407     GLAPI void APIENTRY glCopyTexImage1DEXT (GLenum, GLint, GLenum, GLint,
  5408                                              GLint, GLsizei, GLint);
  5409     GLAPI void APIENTRY glCopyTexImage2DEXT (GLenum, GLint, GLenum, GLint,
  5410                                              GLint, GLsizei, GLsizei, GLint);
  5411     GLAPI void APIENTRY glCopyTexSubImage1DEXT (GLenum, GLint, GLint, GLint,
  5412                                                 GLint, GLsizei);
  5413     GLAPI void APIENTRY glCopyTexSubImage2DEXT (GLenum, GLint, GLint, GLint,
  5414                                                 GLint, GLint, GLsizei,
  5415                                                 GLsizei);
  5416     GLAPI void APIENTRY glCopyTexSubImage3DEXT (GLenum, GLint, GLint, GLint,
  5417                                                 GLint, GLint, GLint, GLsizei,
  5418                                                 GLsizei);
  5419 #endif                          /* GL_GLEXT_PROTOTYPES */
  5420     typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DEXTPROC) (GLenum target,
  5421                                                          GLint level,
  5422                                                          GLenum
  5423                                                          internalformat,
  5424                                                          GLint x, GLint y,
  5425                                                          GLsizei width,
  5426                                                          GLint border);
  5427     typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DEXTPROC) (GLenum target,
  5428                                                          GLint level,
  5429                                                          GLenum
  5430                                                          internalformat,
  5431                                                          GLint x, GLint y,
  5432                                                          GLsizei width,
  5433                                                          GLsizei height,
  5434                                                          GLint border);
  5435     typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DEXTPROC) (GLenum target,
  5436                                                             GLint level,
  5437                                                             GLint xoffset,
  5438                                                             GLint x, GLint y,
  5439                                                             GLsizei width);
  5440     typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DEXTPROC) (GLenum target,
  5441                                                             GLint level,
  5442                                                             GLint xoffset,
  5443                                                             GLint yoffset,
  5444                                                             GLint x, GLint y,
  5445                                                             GLsizei width,
  5446                                                             GLsizei height);
  5447     typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DEXTPROC) (GLenum target,
  5448                                                             GLint level,
  5449                                                             GLint xoffset,
  5450                                                             GLint yoffset,
  5451                                                             GLint zoffset,
  5452                                                             GLint x, GLint y,
  5453                                                             GLsizei width,
  5454                                                             GLsizei height);
  5455 #endif
  5456 
  5457 #ifndef GL_EXT_histogram
  5458 #define GL_EXT_histogram 1
  5459 #ifdef GL_GLEXT_PROTOTYPES
  5460     GLAPI void APIENTRY glGetHistogramEXT (GLenum, GLboolean, GLenum, GLenum,
  5461                                            GLvoid *);
  5462     GLAPI void APIENTRY glGetHistogramParameterfvEXT (GLenum, GLenum,
  5463                                                       GLfloat *);
  5464     GLAPI void APIENTRY glGetHistogramParameterivEXT (GLenum, GLenum,
  5465                                                       GLint *);
  5466     GLAPI void APIENTRY glGetMinmaxEXT (GLenum, GLboolean, GLenum, GLenum,
  5467                                         GLvoid *);
  5468     GLAPI void APIENTRY glGetMinmaxParameterfvEXT (GLenum, GLenum, GLfloat *);
  5469     GLAPI void APIENTRY glGetMinmaxParameterivEXT (GLenum, GLenum, GLint *);
  5470     GLAPI void APIENTRY glHistogramEXT (GLenum, GLsizei, GLenum, GLboolean);
  5471     GLAPI void APIENTRY glMinmaxEXT (GLenum, GLenum, GLboolean);
  5472     GLAPI void APIENTRY glResetHistogramEXT (GLenum);
  5473     GLAPI void APIENTRY glResetMinmaxEXT (GLenum);
  5474 #endif                          /* GL_GLEXT_PROTOTYPES */
  5475     typedef void (APIENTRYP PFNGLGETHISTOGRAMEXTPROC) (GLenum target,
  5476                                                        GLboolean reset,
  5477                                                        GLenum format,
  5478                                                        GLenum type,
  5479                                                        GLvoid * values);
  5480     typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVEXTPROC) (GLenum
  5481                                                                   target,
  5482                                                                   GLenum
  5483                                                                   pname,
  5484                                                                   GLfloat *
  5485                                                                   params);
  5486     typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVEXTPROC) (GLenum
  5487                                                                   target,
  5488                                                                   GLenum
  5489                                                                   pname,
  5490                                                                   GLint *
  5491                                                                   params);
  5492     typedef void (APIENTRYP PFNGLGETMINMAXEXTPROC) (GLenum target,
  5493                                                     GLboolean reset,
  5494                                                     GLenum format,
  5495                                                     GLenum type,
  5496                                                     GLvoid * values);
  5497     typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVEXTPROC) (GLenum target,
  5498                                                                GLenum pname,
  5499                                                                GLfloat *
  5500                                                                params);
  5501     typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVEXTPROC) (GLenum target,
  5502                                                                GLenum pname,
  5503                                                                GLint *
  5504                                                                params);
  5505     typedef void (APIENTRYP PFNGLHISTOGRAMEXTPROC) (GLenum target,
  5506                                                     GLsizei width,
  5507                                                     GLenum internalformat,
  5508                                                     GLboolean sink);
  5509     typedef void (APIENTRYP PFNGLMINMAXEXTPROC) (GLenum target,
  5510                                                  GLenum internalformat,
  5511                                                  GLboolean sink);
  5512     typedef void (APIENTRYP PFNGLRESETHISTOGRAMEXTPROC) (GLenum target);
  5513     typedef void (APIENTRYP PFNGLRESETMINMAXEXTPROC) (GLenum target);
  5514 #endif
  5515 
  5516 #ifndef GL_EXT_convolution
  5517 #define GL_EXT_convolution 1
  5518 #ifdef GL_GLEXT_PROTOTYPES
  5519     GLAPI void APIENTRY glConvolutionFilter1DEXT (GLenum, GLenum, GLsizei,
  5520                                                   GLenum, GLenum,
  5521                                                   const GLvoid *);
  5522     GLAPI void APIENTRY glConvolutionFilter2DEXT (GLenum, GLenum, GLsizei,
  5523                                                   GLsizei, GLenum, GLenum,
  5524                                                   const GLvoid *);
  5525     GLAPI void APIENTRY glConvolutionParameterfEXT (GLenum, GLenum, GLfloat);
  5526     GLAPI void APIENTRY glConvolutionParameterfvEXT (GLenum, GLenum,
  5527                                                      const GLfloat *);
  5528     GLAPI void APIENTRY glConvolutionParameteriEXT (GLenum, GLenum, GLint);
  5529     GLAPI void APIENTRY glConvolutionParameterivEXT (GLenum, GLenum,
  5530                                                      const GLint *);
  5531     GLAPI void APIENTRY glCopyConvolutionFilter1DEXT (GLenum, GLenum, GLint,
  5532                                                       GLint, GLsizei);
  5533     GLAPI void APIENTRY glCopyConvolutionFilter2DEXT (GLenum, GLenum, GLint,
  5534                                                       GLint, GLsizei,
  5535                                                       GLsizei);
  5536     GLAPI void APIENTRY glGetConvolutionFilterEXT (GLenum, GLenum, GLenum,
  5537                                                    GLvoid *);
  5538     GLAPI void APIENTRY glGetConvolutionParameterfvEXT (GLenum, GLenum,
  5539                                                         GLfloat *);
  5540     GLAPI void APIENTRY glGetConvolutionParameterivEXT (GLenum, GLenum,
  5541                                                         GLint *);
  5542     GLAPI void APIENTRY glGetSeparableFilterEXT (GLenum, GLenum, GLenum,
  5543                                                  GLvoid *, GLvoid *,
  5544                                                  GLvoid *);
  5545     GLAPI void APIENTRY glSeparableFilter2DEXT (GLenum, GLenum, GLsizei,
  5546                                                 GLsizei, GLenum, GLenum,
  5547                                                 const GLvoid *,
  5548                                                 const GLvoid *);
  5549 #endif                          /* GL_GLEXT_PROTOTYPES */
  5550     typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DEXTPROC) (GLenum target,
  5551                                                               GLenum
  5552                                                               internalformat,
  5553                                                               GLsizei width,
  5554                                                               GLenum format,
  5555                                                               GLenum type,
  5556                                                               const GLvoid *
  5557                                                               image);
  5558     typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DEXTPROC) (GLenum target,
  5559                                                               GLenum
  5560                                                               internalformat,
  5561                                                               GLsizei width,
  5562                                                               GLsizei height,
  5563                                                               GLenum format,
  5564                                                               GLenum type,
  5565                                                               const GLvoid *
  5566                                                               image);
  5567     typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFEXTPROC) (GLenum target,
  5568                                                                 GLenum pname,
  5569                                                                 GLfloat
  5570                                                                 params);
  5571     typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVEXTPROC) (GLenum
  5572                                                                  target,
  5573                                                                  GLenum pname,
  5574                                                                  const GLfloat
  5575                                                                  * params);
  5576     typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIEXTPROC) (GLenum target,
  5577                                                                 GLenum pname,
  5578                                                                 GLint params);
  5579     typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVEXTPROC) (GLenum
  5580                                                                  target,
  5581                                                                  GLenum pname,
  5582                                                                  const GLint *
  5583                                                                  params);
  5584     typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC) (GLenum
  5585                                                                   target,
  5586                                                                   GLenum
  5587                                                                   internalformat,
  5588                                                                   GLint x,
  5589                                                                   GLint y,
  5590                                                                   GLsizei
  5591                                                                   width);
  5592     typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC) (GLenum
  5593                                                                   target,
  5594                                                                   GLenum
  5595                                                                   internalformat,
  5596                                                                   GLint x,
  5597                                                                   GLint y,
  5598                                                                   GLsizei
  5599                                                                   width,
  5600                                                                   GLsizei
  5601                                                                   height);
  5602     typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTEREXTPROC) (GLenum target,
  5603                                                                GLenum format,
  5604                                                                GLenum type,
  5605                                                                GLvoid *
  5606                                                                image);
  5607     typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC) (GLenum
  5608                                                                     target,
  5609                                                                     GLenum
  5610                                                                     pname,
  5611                                                                     GLfloat *
  5612                                                                     params);
  5613     typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC) (GLenum
  5614                                                                     target,
  5615                                                                     GLenum
  5616                                                                     pname,
  5617                                                                     GLint *
  5618                                                                     params);
  5619     typedef void (APIENTRYP PFNGLGETSEPARABLEFILTEREXTPROC) (GLenum target,
  5620                                                              GLenum format,
  5621                                                              GLenum type,
  5622                                                              GLvoid * row,
  5623                                                              GLvoid * column,
  5624                                                              GLvoid * span);
  5625     typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DEXTPROC) (GLenum target,
  5626                                                             GLenum
  5627                                                             internalformat,
  5628                                                             GLsizei width,
  5629                                                             GLsizei height,
  5630                                                             GLenum format,
  5631                                                             GLenum type,
  5632                                                             const GLvoid *
  5633                                                             row,
  5634                                                             const GLvoid *
  5635                                                             column);
  5636 #endif
  5637 
  5638 #ifndef GL_EXT_color_matrix
  5639 #define GL_EXT_color_matrix 1
  5640 #endif
  5641 
  5642 #ifndef GL_SGI_color_table
  5643 #define GL_SGI_color_table 1
  5644 #ifdef GL_GLEXT_PROTOTYPES
  5645     GLAPI void APIENTRY glColorTableSGI (GLenum, GLenum, GLsizei, GLenum,
  5646                                          GLenum, const GLvoid *);
  5647     GLAPI void APIENTRY glColorTableParameterfvSGI (GLenum, GLenum,
  5648                                                     const GLfloat *);
  5649     GLAPI void APIENTRY glColorTableParameterivSGI (GLenum, GLenum,
  5650                                                     const GLint *);
  5651     GLAPI void APIENTRY glCopyColorTableSGI (GLenum, GLenum, GLint, GLint,
  5652                                              GLsizei);
  5653     GLAPI void APIENTRY glGetColorTableSGI (GLenum, GLenum, GLenum, GLvoid *);
  5654     GLAPI void APIENTRY glGetColorTableParameterfvSGI (GLenum, GLenum,
  5655                                                        GLfloat *);
  5656     GLAPI void APIENTRY glGetColorTableParameterivSGI (GLenum, GLenum,
  5657                                                        GLint *);
  5658 #endif                          /* GL_GLEXT_PROTOTYPES */
  5659     typedef void (APIENTRYP PFNGLCOLORTABLESGIPROC) (GLenum target,
  5660                                                      GLenum internalformat,
  5661                                                      GLsizei width,
  5662                                                      GLenum format,
  5663                                                      GLenum type,
  5664                                                      const GLvoid * table);
  5665     typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVSGIPROC) (GLenum target,
  5666                                                                 GLenum pname,
  5667                                                                 const GLfloat
  5668                                                                 * params);
  5669     typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVSGIPROC) (GLenum target,
  5670                                                                 GLenum pname,
  5671                                                                 const GLint *
  5672                                                                 params);
  5673     typedef void (APIENTRYP PFNGLCOPYCOLORTABLESGIPROC) (GLenum target,
  5674                                                          GLenum
  5675                                                          internalformat,
  5676                                                          GLint x, GLint y,
  5677                                                          GLsizei width);
  5678     typedef void (APIENTRYP PFNGLGETCOLORTABLESGIPROC) (GLenum target,
  5679                                                         GLenum format,
  5680                                                         GLenum type,
  5681                                                         GLvoid * table);
  5682     typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVSGIPROC) (GLenum
  5683                                                                    target,
  5684                                                                    GLenum
  5685                                                                    pname,
  5686                                                                    GLfloat *
  5687                                                                    params);
  5688     typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVSGIPROC) (GLenum
  5689                                                                    target,
  5690                                                                    GLenum
  5691                                                                    pname,
  5692                                                                    GLint *
  5693                                                                    params);
  5694 #endif
  5695 
  5696 #ifndef GL_SGIX_pixel_texture
  5697 #define GL_SGIX_pixel_texture 1
  5698 #ifdef GL_GLEXT_PROTOTYPES
  5699     GLAPI void APIENTRY glPixelTexGenSGIX (GLenum);
  5700 #endif                          /* GL_GLEXT_PROTOTYPES */
  5701     typedef void (APIENTRYP PFNGLPIXELTEXGENSGIXPROC) (GLenum mode);
  5702 #endif
  5703 
  5704 #ifndef GL_SGIS_pixel_texture
  5705 #define GL_SGIS_pixel_texture 1
  5706 #ifdef GL_GLEXT_PROTOTYPES
  5707     GLAPI void APIENTRY glPixelTexGenParameteriSGIS (GLenum, GLint);
  5708     GLAPI void APIENTRY glPixelTexGenParameterivSGIS (GLenum, const GLint *);
  5709     GLAPI void APIENTRY glPixelTexGenParameterfSGIS (GLenum, GLfloat);
  5710     GLAPI void APIENTRY glPixelTexGenParameterfvSGIS (GLenum,
  5711                                                       const GLfloat *);
  5712     GLAPI void APIENTRY glGetPixelTexGenParameterivSGIS (GLenum, GLint *);
  5713     GLAPI void APIENTRY glGetPixelTexGenParameterfvSGIS (GLenum, GLfloat *);
  5714 #endif                          /* GL_GLEXT_PROTOTYPES */
  5715     typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERISGISPROC) (GLenum pname,
  5716                                                                  GLint param);
  5717     typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERIVSGISPROC) (GLenum
  5718                                                                   pname,
  5719                                                                   const GLint
  5720                                                                   * params);
  5721     typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFSGISPROC) (GLenum pname,
  5722                                                                  GLfloat
  5723                                                                  param);
  5724     typedef void (APIENTRYP PFNGLPIXELTEXGENPARAMETERFVSGISPROC) (GLenum
  5725                                                                   pname,
  5726                                                                   const
  5727                                                                   GLfloat *
  5728                                                                   params);
  5729     typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC) (GLenum
  5730                                                                      pname,
  5731                                                                      GLint *
  5732                                                                      params);
  5733     typedef void (APIENTRYP PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC) (GLenum
  5734                                                                      pname,
  5735                                                                      GLfloat *
  5736                                                                      params);
  5737 #endif
  5738 
  5739 #ifndef GL_SGIS_texture4D
  5740 #define GL_SGIS_texture4D 1
  5741 #ifdef GL_GLEXT_PROTOTYPES
  5742     GLAPI void APIENTRY glTexImage4DSGIS (GLenum, GLint, GLenum, GLsizei,
  5743                                           GLsizei, GLsizei, GLsizei, GLint,
  5744                                           GLenum, GLenum, const GLvoid *);
  5745     GLAPI void APIENTRY glTexSubImage4DSGIS (GLenum, GLint, GLint, GLint,
  5746                                              GLint, GLint, GLsizei, GLsizei,
  5747                                              GLsizei, GLsizei, GLenum, GLenum,
  5748                                              const GLvoid *);
  5749 #endif                          /* GL_GLEXT_PROTOTYPES */
  5750     typedef void (APIENTRYP PFNGLTEXIMAGE4DSGISPROC) (GLenum target,
  5751                                                       GLint level,
  5752                                                       GLenum internalformat,
  5753                                                       GLsizei width,
  5754                                                       GLsizei height,
  5755                                                       GLsizei depth,
  5756                                                       GLsizei size4d,
  5757                                                       GLint border,
  5758                                                       GLenum format,
  5759                                                       GLenum type,
  5760                                                       const GLvoid * pixels);
  5761     typedef void (APIENTRYP PFNGLTEXSUBIMAGE4DSGISPROC) (GLenum target,
  5762                                                          GLint level,
  5763                                                          GLint xoffset,
  5764                                                          GLint yoffset,
  5765                                                          GLint zoffset,
  5766                                                          GLint woffset,
  5767                                                          GLsizei width,
  5768                                                          GLsizei height,
  5769                                                          GLsizei depth,
  5770                                                          GLsizei size4d,
  5771                                                          GLenum format,
  5772                                                          GLenum type,
  5773                                                          const GLvoid *
  5774                                                          pixels);
  5775 #endif
  5776 
  5777 #ifndef GL_SGI_texture_color_table
  5778 #define GL_SGI_texture_color_table 1
  5779 #endif
  5780 
  5781 #ifndef GL_EXT_cmyka
  5782 #define GL_EXT_cmyka 1
  5783 #endif
  5784 
  5785 #ifndef GL_EXT_texture_object
  5786 #define GL_EXT_texture_object 1
  5787 #ifdef GL_GLEXT_PROTOTYPES
  5788     GLAPI GLboolean APIENTRY glAreTexturesResidentEXT (GLsizei,
  5789                                                        const GLuint *,
  5790                                                        GLboolean *);
  5791     GLAPI void APIENTRY glBindTextureEXT (GLenum, GLuint);
  5792     GLAPI void APIENTRY glDeleteTexturesEXT (GLsizei, const GLuint *);
  5793     GLAPI void APIENTRY glGenTexturesEXT (GLsizei, GLuint *);
  5794     GLAPI GLboolean APIENTRY glIsTextureEXT (GLuint);
  5795     GLAPI void APIENTRY glPrioritizeTexturesEXT (GLsizei, const GLuint *,
  5796                                                  const GLclampf *);
  5797 #endif                          /* GL_GLEXT_PROTOTYPES */
  5798     typedef GLboolean (APIENTRYP PFNGLARETEXTURESRESIDENTEXTPROC) (GLsizei n,
  5799                                                                    const
  5800                                                                    GLuint *
  5801                                                                    textures,
  5802                                                                    GLboolean *
  5803                                                                    residences);
  5804     typedef void (APIENTRYP PFNGLBINDTEXTUREEXTPROC) (GLenum target,
  5805                                                       GLuint texture);
  5806     typedef void (APIENTRYP PFNGLDELETETEXTURESEXTPROC) (GLsizei n,
  5807                                                          const GLuint *
  5808                                                          textures);
  5809     typedef void (APIENTRYP PFNGLGENTEXTURESEXTPROC) (GLsizei n,
  5810                                                       GLuint * textures);
  5811     typedef GLboolean (APIENTRYP PFNGLISTEXTUREEXTPROC) (GLuint texture);
  5812     typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESEXTPROC) (GLsizei n,
  5813                                                              const GLuint *
  5814                                                              textures,
  5815                                                              const GLclampf *
  5816                                                              priorities);
  5817 #endif
  5818 
  5819 #ifndef GL_SGIS_detail_texture
  5820 #define GL_SGIS_detail_texture 1
  5821 #ifdef GL_GLEXT_PROTOTYPES
  5822     GLAPI void APIENTRY glDetailTexFuncSGIS (GLenum, GLsizei,
  5823                                              const GLfloat *);
  5824     GLAPI void APIENTRY glGetDetailTexFuncSGIS (GLenum, GLfloat *);
  5825 #endif                          /* GL_GLEXT_PROTOTYPES */
  5826     typedef void (APIENTRYP PFNGLDETAILTEXFUNCSGISPROC) (GLenum target,
  5827                                                          GLsizei n,
  5828                                                          const GLfloat *
  5829                                                          points);
  5830     typedef void (APIENTRYP PFNGLGETDETAILTEXFUNCSGISPROC) (GLenum target,
  5831                                                             GLfloat * points);
  5832 #endif
  5833 
  5834 #ifndef GL_SGIS_sharpen_texture
  5835 #define GL_SGIS_sharpen_texture 1
  5836 #ifdef GL_GLEXT_PROTOTYPES
  5837     GLAPI void APIENTRY glSharpenTexFuncSGIS (GLenum, GLsizei,
  5838                                               const GLfloat *);
  5839     GLAPI void APIENTRY glGetSharpenTexFuncSGIS (GLenum, GLfloat *);
  5840 #endif                          /* GL_GLEXT_PROTOTYPES */
  5841     typedef void (APIENTRYP PFNGLSHARPENTEXFUNCSGISPROC) (GLenum target,
  5842                                                           GLsizei n,
  5843                                                           const GLfloat *
  5844                                                           points);
  5845     typedef void (APIENTRYP PFNGLGETSHARPENTEXFUNCSGISPROC) (GLenum target,
  5846                                                              GLfloat *
  5847                                                              points);
  5848 #endif
  5849 
  5850 #ifndef GL_EXT_packed_pixels
  5851 #define GL_EXT_packed_pixels 1
  5852 #endif
  5853 
  5854 #ifndef GL_SGIS_texture_lod
  5855 #define GL_SGIS_texture_lod 1
  5856 #endif
  5857 
  5858 #ifndef GL_SGIS_multisample
  5859 #define GL_SGIS_multisample 1
  5860 #ifdef GL_GLEXT_PROTOTYPES
  5861     GLAPI void APIENTRY glSampleMaskSGIS (GLclampf, GLboolean);
  5862     GLAPI void APIENTRY glSamplePatternSGIS (GLenum);
  5863 #endif                          /* GL_GLEXT_PROTOTYPES */
  5864     typedef void (APIENTRYP PFNGLSAMPLEMASKSGISPROC) (GLclampf value,
  5865                                                       GLboolean invert);
  5866     typedef void (APIENTRYP PFNGLSAMPLEPATTERNSGISPROC) (GLenum pattern);
  5867 #endif
  5868 
  5869 #ifndef GL_EXT_rescale_normal
  5870 #define GL_EXT_rescale_normal 1
  5871 #endif
  5872 
  5873 #ifndef GL_EXT_vertex_array
  5874 #define GL_EXT_vertex_array 1
  5875 #ifdef GL_GLEXT_PROTOTYPES
  5876     GLAPI void APIENTRY glArrayElementEXT (GLint);
  5877     GLAPI void APIENTRY glColorPointerEXT (GLint, GLenum, GLsizei, GLsizei,
  5878                                            const GLvoid *);
  5879     GLAPI void APIENTRY glDrawArraysEXT (GLenum, GLint, GLsizei);
  5880     GLAPI void APIENTRY glEdgeFlagPointerEXT (GLsizei, GLsizei,
  5881                                               const GLboolean *);
  5882     GLAPI void APIENTRY glGetPointervEXT (GLenum, GLvoid * *);
  5883     GLAPI void APIENTRY glIndexPointerEXT (GLenum, GLsizei, GLsizei,
  5884                                            const GLvoid *);
  5885     GLAPI void APIENTRY glNormalPointerEXT (GLenum, GLsizei, GLsizei,
  5886                                             const GLvoid *);
  5887     GLAPI void APIENTRY glTexCoordPointerEXT (GLint, GLenum, GLsizei, GLsizei,
  5888                                               const GLvoid *);
  5889     GLAPI void APIENTRY glVertexPointerEXT (GLint, GLenum, GLsizei, GLsizei,
  5890                                             const GLvoid *);
  5891 #endif                          /* GL_GLEXT_PROTOTYPES */
  5892     typedef void (APIENTRYP PFNGLARRAYELEMENTEXTPROC) (GLint i);
  5893     typedef void (APIENTRYP PFNGLCOLORPOINTEREXTPROC) (GLint size,
  5894                                                        GLenum type,
  5895                                                        GLsizei stride,
  5896                                                        GLsizei count,
  5897                                                        const GLvoid *
  5898                                                        pointer);
  5899     typedef void (APIENTRYP PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first,
  5900                                                      GLsizei count);
  5901     typedef void (APIENTRYP PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride,
  5902                                                           GLsizei count,
  5903                                                           const GLboolean *
  5904                                                           pointer);
  5905     typedef void (APIENTRYP PFNGLGETPOINTERVEXTPROC) (GLenum pname,
  5906                                                       GLvoid * *params);
  5907     typedef void (APIENTRYP PFNGLINDEXPOINTEREXTPROC) (GLenum type,
  5908                                                        GLsizei stride,
  5909                                                        GLsizei count,
  5910                                                        const GLvoid *
  5911                                                        pointer);
  5912     typedef void (APIENTRYP PFNGLNORMALPOINTEREXTPROC) (GLenum type,
  5913                                                         GLsizei stride,
  5914                                                         GLsizei count,
  5915                                                         const GLvoid *
  5916                                                         pointer);
  5917     typedef void (APIENTRYP PFNGLTEXCOORDPOINTEREXTPROC) (GLint size,
  5918                                                           GLenum type,
  5919                                                           GLsizei stride,
  5920                                                           GLsizei count,
  5921                                                           const GLvoid *
  5922                                                           pointer);
  5923     typedef void (APIENTRYP PFNGLVERTEXPOINTEREXTPROC) (GLint size,