include/SDL_opengl_glext.h
author Ryan C. Gordon <icculus@icculus.org>
Tue, 15 Oct 2019 22:36:08 -0400
changeset 13130 502bb7d04f0a
parent 13074 2ede888544ac
permissions -rw-r--r--
x11: On macOS, look for X11 install in /opt/X11 instead of /usr/X11R6.

This is where Apple installs XQuartz now (and apparently, the compatibility
symlink at /usr/X11R6 can be missing).

Fixes Bugzilla #4706.
     1 #ifndef __glext_h_
     2 #define __glext_h_ 1
     3 
     4 #ifdef __cplusplus
     5 extern "C" {
     6 #endif
     7 
     8 /*
     9 ** Copyright (c) 2013-2014 The Khronos Group Inc.
    10 **
    11 ** Permission is hereby granted, free of charge, to any person obtaining a
    12 ** copy of this software and/or associated documentation files (the
    13 ** "Materials"), to deal in the Materials without restriction, including
    14 ** without limitation the rights to use, copy, modify, merge, publish,
    15 ** distribute, sublicense, and/or sell copies of the Materials, and to
    16 ** permit persons to whom the Materials are furnished to do so, subject to
    17 ** the following conditions:
    18 **
    19 ** The above copyright notice and this permission notice shall be included
    20 ** in all copies or substantial portions of the Materials.
    21 **
    22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    26 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    29 */
    30 /*
    31 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
    32 ** API Registry. The current version of the Registry, generator scripts
    33 ** used to make the header, and the header can be found at
    34 **   http://www.opengl.org/registry/
    35 **
    36 ** Khronos $Revision: 26745 $ on $Date: 2014-05-21 03:12:26 -0700 (Wed, 21 May 2014) $
    37 */
    38 
    39 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
    40 #ifndef WIN32_LEAN_AND_MEAN
    41 #define WIN32_LEAN_AND_MEAN 1
    42 #endif
    43 #ifndef NOMINMAX   /* don't define min() and max(). */
    44 #define NOMINMAX
    45 #endif
    46 #include <windows.h>
    47 #endif
    48 
    49 #ifndef APIENTRY
    50 #define APIENTRY
    51 #endif
    52 #ifndef APIENTRYP
    53 #define APIENTRYP APIENTRY *
    54 #endif
    55 #ifndef GLAPI
    56 #define GLAPI extern
    57 #endif
    58 
    59 #define GL_GLEXT_VERSION 20140521
    60 
    61 /* Generated C header for:
    62  * API: gl
    63  * Profile: compatibility
    64  * Versions considered: .*
    65  * Versions emitted: 1\.[2-9]|[234]\.[0-9]
    66  * Default extensions included: gl
    67  * Additional extensions included: _nomatch_^
    68  * Extensions removed: _nomatch_^
    69  */
    70 
    71 #ifndef GL_VERSION_1_2
    72 #define GL_VERSION_1_2 1
    73 #define GL_UNSIGNED_BYTE_3_3_2            0x8032
    74 #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
    75 #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
    76 #define GL_UNSIGNED_INT_8_8_8_8           0x8035
    77 #define GL_UNSIGNED_INT_10_10_10_2        0x8036
    78 #define GL_TEXTURE_BINDING_3D             0x806A
    79 #define GL_PACK_SKIP_IMAGES               0x806B
    80 #define GL_PACK_IMAGE_HEIGHT              0x806C
    81 #define GL_UNPACK_SKIP_IMAGES             0x806D
    82 #define GL_UNPACK_IMAGE_HEIGHT            0x806E
    83 #define GL_TEXTURE_3D                     0x806F
    84 #define GL_PROXY_TEXTURE_3D               0x8070
    85 #define GL_TEXTURE_DEPTH                  0x8071
    86 #define GL_TEXTURE_WRAP_R                 0x8072
    87 #define GL_MAX_3D_TEXTURE_SIZE            0x8073
    88 #define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
    89 #define GL_UNSIGNED_SHORT_5_6_5           0x8363
    90 #define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
    91 #define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
    92 #define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
    93 #define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
    94 #define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
    95 #define GL_BGR                            0x80E0
    96 #define GL_BGRA                           0x80E1
    97 #define GL_MAX_ELEMENTS_VERTICES          0x80E8
    98 #define GL_MAX_ELEMENTS_INDICES           0x80E9
    99 #define GL_CLAMP_TO_EDGE                  0x812F
   100 #define GL_TEXTURE_MIN_LOD                0x813A
   101 #define GL_TEXTURE_MAX_LOD                0x813B
   102 #define GL_TEXTURE_BASE_LEVEL             0x813C
   103 #define GL_TEXTURE_MAX_LEVEL              0x813D
   104 #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
   105 #define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
   106 #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
   107 #define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
   108 #define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
   109 #define GL_RESCALE_NORMAL                 0x803A
   110 #define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
   111 #define GL_SINGLE_COLOR                   0x81F9
   112 #define GL_SEPARATE_SPECULAR_COLOR        0x81FA
   113 #define GL_ALIASED_POINT_SIZE_RANGE       0x846D
   114 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
   115 typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
   116 typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
   117 typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   118 #ifdef GL_GLEXT_PROTOTYPES
   119 GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices);
   120 GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
   121 GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
   122 GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   123 #endif
   124 #endif /* GL_VERSION_1_2 */
   125 
   126 #ifndef GL_VERSION_1_3
   127 #define GL_VERSION_1_3 1
   128 #define GL_TEXTURE0                       0x84C0
   129 #define GL_TEXTURE1                       0x84C1
   130 #define GL_TEXTURE2                       0x84C2
   131 #define GL_TEXTURE3                       0x84C3
   132 #define GL_TEXTURE4                       0x84C4
   133 #define GL_TEXTURE5                       0x84C5
   134 #define GL_TEXTURE6                       0x84C6
   135 #define GL_TEXTURE7                       0x84C7
   136 #define GL_TEXTURE8                       0x84C8
   137 #define GL_TEXTURE9                       0x84C9
   138 #define GL_TEXTURE10                      0x84CA
   139 #define GL_TEXTURE11                      0x84CB
   140 #define GL_TEXTURE12                      0x84CC
   141 #define GL_TEXTURE13                      0x84CD
   142 #define GL_TEXTURE14                      0x84CE
   143 #define GL_TEXTURE15                      0x84CF
   144 #define GL_TEXTURE16                      0x84D0
   145 #define GL_TEXTURE17                      0x84D1
   146 #define GL_TEXTURE18                      0x84D2
   147 #define GL_TEXTURE19                      0x84D3
   148 #define GL_TEXTURE20                      0x84D4
   149 #define GL_TEXTURE21                      0x84D5
   150 #define GL_TEXTURE22                      0x84D6
   151 #define GL_TEXTURE23                      0x84D7
   152 #define GL_TEXTURE24                      0x84D8
   153 #define GL_TEXTURE25                      0x84D9
   154 #define GL_TEXTURE26                      0x84DA
   155 #define GL_TEXTURE27                      0x84DB
   156 #define GL_TEXTURE28                      0x84DC
   157 #define GL_TEXTURE29                      0x84DD
   158 #define GL_TEXTURE30                      0x84DE
   159 #define GL_TEXTURE31                      0x84DF
   160 #define GL_ACTIVE_TEXTURE                 0x84E0
   161 #define GL_MULTISAMPLE                    0x809D
   162 #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
   163 #define GL_SAMPLE_ALPHA_TO_ONE            0x809F
   164 #define GL_SAMPLE_COVERAGE                0x80A0
   165 #define GL_SAMPLE_BUFFERS                 0x80A8
   166 #define GL_SAMPLES                        0x80A9
   167 #define GL_SAMPLE_COVERAGE_VALUE          0x80AA
   168 #define GL_SAMPLE_COVERAGE_INVERT         0x80AB
   169 #define GL_TEXTURE_CUBE_MAP               0x8513
   170 #define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
   171 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
   172 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
   173 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
   174 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
   175 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
   176 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
   177 #define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
   178 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
   179 #define GL_COMPRESSED_RGB                 0x84ED
   180 #define GL_COMPRESSED_RGBA                0x84EE
   181 #define GL_TEXTURE_COMPRESSION_HINT       0x84EF
   182 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
   183 #define GL_TEXTURE_COMPRESSED             0x86A1
   184 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
   185 #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
   186 #define GL_CLAMP_TO_BORDER                0x812D
   187 #define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
   188 #define GL_MAX_TEXTURE_UNITS              0x84E2
   189 #define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
   190 #define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
   191 #define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
   192 #define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
   193 #define GL_MULTISAMPLE_BIT                0x20000000
   194 #define GL_NORMAL_MAP                     0x8511
   195 #define GL_REFLECTION_MAP                 0x8512
   196 #define GL_COMPRESSED_ALPHA               0x84E9
   197 #define GL_COMPRESSED_LUMINANCE           0x84EA
   198 #define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
   199 #define GL_COMPRESSED_INTENSITY           0x84EC
   200 #define GL_COMBINE                        0x8570
   201 #define GL_COMBINE_RGB                    0x8571
   202 #define GL_COMBINE_ALPHA                  0x8572
   203 #define GL_SOURCE0_RGB                    0x8580
   204 #define GL_SOURCE1_RGB                    0x8581
   205 #define GL_SOURCE2_RGB                    0x8582
   206 #define GL_SOURCE0_ALPHA                  0x8588
   207 #define GL_SOURCE1_ALPHA                  0x8589
   208 #define GL_SOURCE2_ALPHA                  0x858A
   209 #define GL_OPERAND0_RGB                   0x8590
   210 #define GL_OPERAND1_RGB                   0x8591
   211 #define GL_OPERAND2_RGB                   0x8592
   212 #define GL_OPERAND0_ALPHA                 0x8598
   213 #define GL_OPERAND1_ALPHA                 0x8599
   214 #define GL_OPERAND2_ALPHA                 0x859A
   215 #define GL_RGB_SCALE                      0x8573
   216 #define GL_ADD_SIGNED                     0x8574
   217 #define GL_INTERPOLATE                    0x8575
   218 #define GL_SUBTRACT                       0x84E7
   219 #define GL_CONSTANT                       0x8576
   220 #define GL_PRIMARY_COLOR                  0x8577
   221 #define GL_PREVIOUS                       0x8578
   222 #define GL_DOT3_RGB                       0x86AE
   223 #define GL_DOT3_RGBA                      0x86AF
   224 typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
   225 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
   226 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
   227 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
   228 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
   229 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
   230 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
   231 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
   232 typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, void *img);
   233 typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
   234 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
   235 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
   236 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
   237 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
   238 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
   239 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
   240 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
   241 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
   242 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
   243 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
   244 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
   245 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
   246 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
   247 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
   248 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
   249 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
   250 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
   251 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
   252 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
   253 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
   254 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
   255 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
   256 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
   257 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
   258 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
   259 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
   260 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
   261 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
   262 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
   263 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
   264 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
   265 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
   266 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
   267 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
   268 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
   269 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
   270 #ifdef GL_GLEXT_PROTOTYPES
   271 GLAPI void APIENTRY glActiveTexture (GLenum texture);
   272 GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
   273 GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
   274 GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
   275 GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
   276 GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
   277 GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
   278 GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
   279 GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, void *img);
   280 GLAPI void APIENTRY glClientActiveTexture (GLenum texture);
   281 GLAPI void APIENTRY glMultiTexCoord1d (GLenum target, GLdouble s);
   282 GLAPI void APIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
   283 GLAPI void APIENTRY glMultiTexCoord1f (GLenum target, GLfloat s);
   284 GLAPI void APIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
   285 GLAPI void APIENTRY glMultiTexCoord1i (GLenum target, GLint s);
   286 GLAPI void APIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
   287 GLAPI void APIENTRY glMultiTexCoord1s (GLenum target, GLshort s);
   288 GLAPI void APIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
   289 GLAPI void APIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
   290 GLAPI void APIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
   291 GLAPI void APIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
   292 GLAPI void APIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
   293 GLAPI void APIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
   294 GLAPI void APIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
   295 GLAPI void APIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
   296 GLAPI void APIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
   297 GLAPI void APIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
   298 GLAPI void APIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
   299 GLAPI void APIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
   300 GLAPI void APIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
   301 GLAPI void APIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
   302 GLAPI void APIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
   303 GLAPI void APIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
   304 GLAPI void APIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
   305 GLAPI void APIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
   306 GLAPI void APIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
   307 GLAPI void APIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
   308 GLAPI void APIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
   309 GLAPI void APIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
   310 GLAPI void APIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
   311 GLAPI void APIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
   312 GLAPI void APIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
   313 GLAPI void APIENTRY glLoadTransposeMatrixf (const GLfloat *m);
   314 GLAPI void APIENTRY glLoadTransposeMatrixd (const GLdouble *m);
   315 GLAPI void APIENTRY glMultTransposeMatrixf (const GLfloat *m);
   316 GLAPI void APIENTRY glMultTransposeMatrixd (const GLdouble *m);
   317 #endif
   318 #endif /* GL_VERSION_1_3 */
   319 
   320 #ifndef GL_VERSION_1_4
   321 #define GL_VERSION_1_4 1
   322 #define GL_BLEND_DST_RGB                  0x80C8
   323 #define GL_BLEND_SRC_RGB                  0x80C9
   324 #define GL_BLEND_DST_ALPHA                0x80CA
   325 #define GL_BLEND_SRC_ALPHA                0x80CB
   326 #define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
   327 #define GL_DEPTH_COMPONENT16              0x81A5
   328 #define GL_DEPTH_COMPONENT24              0x81A6
   329 #define GL_DEPTH_COMPONENT32              0x81A7
   330 #define GL_MIRRORED_REPEAT                0x8370
   331 #define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
   332 #define GL_TEXTURE_LOD_BIAS               0x8501
   333 #define GL_INCR_WRAP                      0x8507
   334 #define GL_DECR_WRAP                      0x8508
   335 #define GL_TEXTURE_DEPTH_SIZE             0x884A
   336 #define GL_TEXTURE_COMPARE_MODE           0x884C
   337 #define GL_TEXTURE_COMPARE_FUNC           0x884D
   338 #define GL_POINT_SIZE_MIN                 0x8126
   339 #define GL_POINT_SIZE_MAX                 0x8127
   340 #define GL_POINT_DISTANCE_ATTENUATION     0x8129
   341 #define GL_GENERATE_MIPMAP                0x8191
   342 #define GL_GENERATE_MIPMAP_HINT           0x8192
   343 #define GL_FOG_COORDINATE_SOURCE          0x8450
   344 #define GL_FOG_COORDINATE                 0x8451
   345 #define GL_FRAGMENT_DEPTH                 0x8452
   346 #define GL_CURRENT_FOG_COORDINATE         0x8453
   347 #define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
   348 #define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
   349 #define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
   350 #define GL_FOG_COORDINATE_ARRAY           0x8457
   351 #define GL_COLOR_SUM                      0x8458
   352 #define GL_CURRENT_SECONDARY_COLOR        0x8459
   353 #define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
   354 #define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
   355 #define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
   356 #define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
   357 #define GL_SECONDARY_COLOR_ARRAY          0x845E
   358 #define GL_TEXTURE_FILTER_CONTROL         0x8500
   359 #define GL_DEPTH_TEXTURE_MODE             0x884B
   360 #define GL_COMPARE_R_TO_TEXTURE           0x884E
   361 #define GL_FUNC_ADD                       0x8006
   362 #define GL_FUNC_SUBTRACT                  0x800A
   363 #define GL_FUNC_REVERSE_SUBTRACT          0x800B
   364 #define GL_MIN                            0x8007
   365 #define GL_MAX                            0x8008
   366 #define GL_CONSTANT_COLOR                 0x8001
   367 #define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
   368 #define GL_CONSTANT_ALPHA                 0x8003
   369 #define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
   370 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
   371 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
   372 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
   373 typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
   374 typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
   375 typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
   376 typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
   377 typedef void (APIENTRYP PFNGLFOGCOORDFPROC) (GLfloat coord);
   378 typedef void (APIENTRYP PFNGLFOGCOORDFVPROC) (const GLfloat *coord);
   379 typedef void (APIENTRYP PFNGLFOGCOORDDPROC) (GLdouble coord);
   380 typedef void (APIENTRYP PFNGLFOGCOORDDVPROC) (const GLdouble *coord);
   381 typedef void (APIENTRYP PFNGLFOGCOORDPOINTERPROC) (GLenum type, GLsizei stride, const void *pointer);
   382 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue);
   383 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3BVPROC) (const GLbyte *v);
   384 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue);
   385 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3DVPROC) (const GLdouble *v);
   386 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue);
   387 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3FVPROC) (const GLfloat *v);
   388 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IPROC) (GLint red, GLint green, GLint blue);
   389 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3IVPROC) (const GLint *v);
   390 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue);
   391 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3SVPROC) (const GLshort *v);
   392 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue);
   393 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UBVPROC) (const GLubyte *v);
   394 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue);
   395 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3UIVPROC) (const GLuint *v);
   396 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue);
   397 typedef void (APIENTRYP PFNGLSECONDARYCOLOR3USVPROC) (const GLushort *v);
   398 typedef void (APIENTRYP PFNGLSECONDARYCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
   399 typedef void (APIENTRYP PFNGLWINDOWPOS2DPROC) (GLdouble x, GLdouble y);
   400 typedef void (APIENTRYP PFNGLWINDOWPOS2DVPROC) (const GLdouble *v);
   401 typedef void (APIENTRYP PFNGLWINDOWPOS2FPROC) (GLfloat x, GLfloat y);
   402 typedef void (APIENTRYP PFNGLWINDOWPOS2FVPROC) (const GLfloat *v);
   403 typedef void (APIENTRYP PFNGLWINDOWPOS2IPROC) (GLint x, GLint y);
   404 typedef void (APIENTRYP PFNGLWINDOWPOS2IVPROC) (const GLint *v);
   405 typedef void (APIENTRYP PFNGLWINDOWPOS2SPROC) (GLshort x, GLshort y);
   406 typedef void (APIENTRYP PFNGLWINDOWPOS2SVPROC) (const GLshort *v);
   407 typedef void (APIENTRYP PFNGLWINDOWPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z);
   408 typedef void (APIENTRYP PFNGLWINDOWPOS3DVPROC) (const GLdouble *v);
   409 typedef void (APIENTRYP PFNGLWINDOWPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z);
   410 typedef void (APIENTRYP PFNGLWINDOWPOS3FVPROC) (const GLfloat *v);
   411 typedef void (APIENTRYP PFNGLWINDOWPOS3IPROC) (GLint x, GLint y, GLint z);
   412 typedef void (APIENTRYP PFNGLWINDOWPOS3IVPROC) (const GLint *v);
   413 typedef void (APIENTRYP PFNGLWINDOWPOS3SPROC) (GLshort x, GLshort y, GLshort z);
   414 typedef void (APIENTRYP PFNGLWINDOWPOS3SVPROC) (const GLshort *v);
   415 typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
   416 typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
   417 #ifdef GL_GLEXT_PROTOTYPES
   418 GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
   419 GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
   420 GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount);
   421 GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
   422 GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
   423 GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
   424 GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
   425 GLAPI void APIENTRY glFogCoordf (GLfloat coord);
   426 GLAPI void APIENTRY glFogCoordfv (const GLfloat *coord);
   427 GLAPI void APIENTRY glFogCoordd (GLdouble coord);
   428 GLAPI void APIENTRY glFogCoorddv (const GLdouble *coord);
   429 GLAPI void APIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const void *pointer);
   430 GLAPI void APIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
   431 GLAPI void APIENTRY glSecondaryColor3bv (const GLbyte *v);
   432 GLAPI void APIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
   433 GLAPI void APIENTRY glSecondaryColor3dv (const GLdouble *v);
   434 GLAPI void APIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
   435 GLAPI void APIENTRY glSecondaryColor3fv (const GLfloat *v);
   436 GLAPI void APIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue);
   437 GLAPI void APIENTRY glSecondaryColor3iv (const GLint *v);
   438 GLAPI void APIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
   439 GLAPI void APIENTRY glSecondaryColor3sv (const GLshort *v);
   440 GLAPI void APIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
   441 GLAPI void APIENTRY glSecondaryColor3ubv (const GLubyte *v);
   442 GLAPI void APIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
   443 GLAPI void APIENTRY glSecondaryColor3uiv (const GLuint *v);
   444 GLAPI void APIENTRY glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
   445 GLAPI void APIENTRY glSecondaryColor3usv (const GLushort *v);
   446 GLAPI void APIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const void *pointer);
   447 GLAPI void APIENTRY glWindowPos2d (GLdouble x, GLdouble y);
   448 GLAPI void APIENTRY glWindowPos2dv (const GLdouble *v);
   449 GLAPI void APIENTRY glWindowPos2f (GLfloat x, GLfloat y);
   450 GLAPI void APIENTRY glWindowPos2fv (const GLfloat *v);
   451 GLAPI void APIENTRY glWindowPos2i (GLint x, GLint y);
   452 GLAPI void APIENTRY glWindowPos2iv (const GLint *v);
   453 GLAPI void APIENTRY glWindowPos2s (GLshort x, GLshort y);
   454 GLAPI void APIENTRY glWindowPos2sv (const GLshort *v);
   455 GLAPI void APIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
   456 GLAPI void APIENTRY glWindowPos3dv (const GLdouble *v);
   457 GLAPI void APIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
   458 GLAPI void APIENTRY glWindowPos3fv (const GLfloat *v);
   459 GLAPI void APIENTRY glWindowPos3i (GLint x, GLint y, GLint z);
   460 GLAPI void APIENTRY glWindowPos3iv (const GLint *v);
   461 GLAPI void APIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z);
   462 GLAPI void APIENTRY glWindowPos3sv (const GLshort *v);
   463 GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
   464 GLAPI void APIENTRY glBlendEquation (GLenum mode);
   465 #endif
   466 #endif /* GL_VERSION_1_4 */
   467 
   468 #ifndef GL_VERSION_1_5
   469 #define GL_VERSION_1_5 1
   470 #include <stddef.h>
   471 #ifdef __MACOSX__
   472 typedef long GLsizeiptr;
   473 typedef long GLintptr;
   474 #else
   475 typedef ptrdiff_t GLsizeiptr;
   476 typedef ptrdiff_t GLintptr;
   477 #endif
   478 #define GL_BUFFER_SIZE                    0x8764
   479 #define GL_BUFFER_USAGE                   0x8765
   480 #define GL_QUERY_COUNTER_BITS             0x8864
   481 #define GL_CURRENT_QUERY                  0x8865
   482 #define GL_QUERY_RESULT                   0x8866
   483 #define GL_QUERY_RESULT_AVAILABLE         0x8867
   484 #define GL_ARRAY_BUFFER                   0x8892
   485 #define GL_ELEMENT_ARRAY_BUFFER           0x8893
   486 #define GL_ARRAY_BUFFER_BINDING           0x8894
   487 #define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
   488 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
   489 #define GL_READ_ONLY                      0x88B8
   490 #define GL_WRITE_ONLY                     0x88B9
   491 #define GL_READ_WRITE                     0x88BA
   492 #define GL_BUFFER_ACCESS                  0x88BB
   493 #define GL_BUFFER_MAPPED                  0x88BC
   494 #define GL_BUFFER_MAP_POINTER             0x88BD
   495 #define GL_STREAM_DRAW                    0x88E0
   496 #define GL_STREAM_READ                    0x88E1
   497 #define GL_STREAM_COPY                    0x88E2
   498 #define GL_STATIC_DRAW                    0x88E4
   499 #define GL_STATIC_READ                    0x88E5
   500 #define GL_STATIC_COPY                    0x88E6
   501 #define GL_DYNAMIC_DRAW                   0x88E8
   502 #define GL_DYNAMIC_READ                   0x88E9
   503 #define GL_DYNAMIC_COPY                   0x88EA
   504 #define GL_SAMPLES_PASSED                 0x8914
   505 #define GL_SRC1_ALPHA                     0x8589
   506 #define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
   507 #define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
   508 #define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
   509 #define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
   510 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
   511 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
   512 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
   513 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
   514 #define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
   515 #define GL_FOG_COORD_SRC                  0x8450
   516 #define GL_FOG_COORD                      0x8451
   517 #define GL_CURRENT_FOG_COORD              0x8453
   518 #define GL_FOG_COORD_ARRAY_TYPE           0x8454
   519 #define GL_FOG_COORD_ARRAY_STRIDE         0x8455
   520 #define GL_FOG_COORD_ARRAY_POINTER        0x8456
   521 #define GL_FOG_COORD_ARRAY                0x8457
   522 #define GL_FOG_COORD_ARRAY_BUFFER_BINDING 0x889D
   523 #define GL_SRC0_RGB                       0x8580
   524 #define GL_SRC1_RGB                       0x8581
   525 #define GL_SRC2_RGB                       0x8582
   526 #define GL_SRC0_ALPHA                     0x8588
   527 #define GL_SRC2_ALPHA                     0x858A
   528 typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
   529 typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
   530 typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
   531 typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
   532 typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
   533 typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
   534 typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
   535 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
   536 typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
   537 typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
   538 typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
   539 typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
   540 typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
   541 typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
   542 typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
   543 typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
   544 typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
   545 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
   546 typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, void **params);
   547 #ifdef GL_GLEXT_PROTOTYPES
   548 GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
   549 GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
   550 GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
   551 GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
   552 GLAPI void APIENTRY glEndQuery (GLenum target);
   553 GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
   554 GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
   555 GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
   556 GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
   557 GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
   558 GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
   559 GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
   560 GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
   561 GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
   562 GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data);
   563 GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access);
   564 GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
   565 GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
   566 GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, void **params);
   567 #endif
   568 #endif /* GL_VERSION_1_5 */
   569 
   570 #ifndef GL_VERSION_2_0
   571 #define GL_VERSION_2_0 1
   572 typedef char GLchar;
   573 #define GL_BLEND_EQUATION_RGB             0x8009
   574 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
   575 #define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
   576 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
   577 #define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
   578 #define GL_CURRENT_VERTEX_ATTRIB          0x8626
   579 #define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
   580 #define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
   581 #define GL_STENCIL_BACK_FUNC              0x8800
   582 #define GL_STENCIL_BACK_FAIL              0x8801
   583 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
   584 #define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
   585 #define GL_MAX_DRAW_BUFFERS               0x8824
   586 #define GL_DRAW_BUFFER0                   0x8825
   587 #define GL_DRAW_BUFFER1                   0x8826
   588 #define GL_DRAW_BUFFER2                   0x8827
   589 #define GL_DRAW_BUFFER3                   0x8828
   590 #define GL_DRAW_BUFFER4                   0x8829
   591 #define GL_DRAW_BUFFER5                   0x882A
   592 #define GL_DRAW_BUFFER6                   0x882B
   593 #define GL_DRAW_BUFFER7                   0x882C
   594 #define GL_DRAW_BUFFER8                   0x882D
   595 #define GL_DRAW_BUFFER9                   0x882E
   596 #define GL_DRAW_BUFFER10                  0x882F
   597 #define GL_DRAW_BUFFER11                  0x8830
   598 #define GL_DRAW_BUFFER12                  0x8831
   599 #define GL_DRAW_BUFFER13                  0x8832
   600 #define GL_DRAW_BUFFER14                  0x8833
   601 #define GL_DRAW_BUFFER15                  0x8834
   602 #define GL_BLEND_EQUATION_ALPHA           0x883D
   603 #define GL_MAX_VERTEX_ATTRIBS             0x8869
   604 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
   605 #define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
   606 #define GL_FRAGMENT_SHADER                0x8B30
   607 #define GL_VERTEX_SHADER                  0x8B31
   608 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
   609 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
   610 #define GL_MAX_VARYING_FLOATS             0x8B4B
   611 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
   612 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
   613 #define GL_SHADER_TYPE                    0x8B4F
   614 #define GL_FLOAT_VEC2                     0x8B50
   615 #define GL_FLOAT_VEC3                     0x8B51
   616 #define GL_FLOAT_VEC4                     0x8B52
   617 #define GL_INT_VEC2                       0x8B53
   618 #define GL_INT_VEC3                       0x8B54
   619 #define GL_INT_VEC4                       0x8B55
   620 #define GL_BOOL                           0x8B56
   621 #define GL_BOOL_VEC2                      0x8B57
   622 #define GL_BOOL_VEC3                      0x8B58
   623 #define GL_BOOL_VEC4                      0x8B59
   624 #define GL_FLOAT_MAT2                     0x8B5A
   625 #define GL_FLOAT_MAT3                     0x8B5B
   626 #define GL_FLOAT_MAT4                     0x8B5C
   627 #define GL_SAMPLER_1D                     0x8B5D
   628 #define GL_SAMPLER_2D                     0x8B5E
   629 #define GL_SAMPLER_3D                     0x8B5F
   630 #define GL_SAMPLER_CUBE                   0x8B60
   631 #define GL_SAMPLER_1D_SHADOW              0x8B61
   632 #define GL_SAMPLER_2D_SHADOW              0x8B62
   633 #define GL_DELETE_STATUS                  0x8B80
   634 #define GL_COMPILE_STATUS                 0x8B81
   635 #define GL_LINK_STATUS                    0x8B82
   636 #define GL_VALIDATE_STATUS                0x8B83
   637 #define GL_INFO_LOG_LENGTH                0x8B84
   638 #define GL_ATTACHED_SHADERS               0x8B85
   639 #define GL_ACTIVE_UNIFORMS                0x8B86
   640 #define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
   641 #define GL_SHADER_SOURCE_LENGTH           0x8B88
   642 #define GL_ACTIVE_ATTRIBUTES              0x8B89
   643 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
   644 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
   645 #define GL_SHADING_LANGUAGE_VERSION       0x8B8C
   646 #define GL_CURRENT_PROGRAM                0x8B8D
   647 #define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
   648 #define GL_LOWER_LEFT                     0x8CA1
   649 #define GL_UPPER_LEFT                     0x8CA2
   650 #define GL_STENCIL_BACK_REF               0x8CA3
   651 #define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
   652 #define GL_STENCIL_BACK_WRITEMASK         0x8CA5
   653 #define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
   654 #define GL_POINT_SPRITE                   0x8861
   655 #define GL_COORD_REPLACE                  0x8862
   656 #define GL_MAX_TEXTURE_COORDS             0x8871
   657 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
   658 typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
   659 typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
   660 typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
   661 typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
   662 typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
   663 typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
   664 typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
   665 typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
   666 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
   667 typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
   668 typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
   669 typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
   670 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
   671 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
   672 typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   673 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   674 typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
   675 typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
   676 typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
   677 typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   678 typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
   679 typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   680 typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
   681 typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
   682 typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
   683 typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
   684 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
   685 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
   686 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
   687 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
   688 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
   689 typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
   690 typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
   691 typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
   692 typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
   693 typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
   694 typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
   695 typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
   696 typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
   697 typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
   698 typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
   699 typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
   700 typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
   701 typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
   702 typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
   703 typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
   704 typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
   705 typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
   706 typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
   707 typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
   708 typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
   709 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   710 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   711 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   712 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
   713 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
   714 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
   715 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
   716 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
   717 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
   718 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
   719 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
   720 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
   721 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
   722 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
   723 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
   724 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
   725 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
   726 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
   727 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
   728 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
   729 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
   730 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
   731 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
   732 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
   733 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
   734 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
   735 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
   736 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
   737 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
   738 typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
   739 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
   740 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
   741 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
   742 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
   743 typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
   744 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
   745 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
   746 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
   747 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
   748 typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
   749 typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
   750 #ifdef GL_GLEXT_PROTOTYPES
   751 GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
   752 GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
   753 GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
   754 GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
   755 GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
   756 GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
   757 GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
   758 GLAPI void APIENTRY glCompileShader (GLuint shader);
   759 GLAPI GLuint APIENTRY glCreateProgram (void);
   760 GLAPI GLuint APIENTRY glCreateShader (GLenum type);
   761 GLAPI void APIENTRY glDeleteProgram (GLuint program);
   762 GLAPI void APIENTRY glDeleteShader (GLuint shader);
   763 GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
   764 GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
   765 GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
   766 GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   767 GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   768 GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
   769 GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
   770 GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
   771 GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   772 GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
   773 GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   774 GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
   775 GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
   776 GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
   777 GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
   778 GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
   779 GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
   780 GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
   781 GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
   782 GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
   783 GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
   784 GLAPI void APIENTRY glLinkProgram (GLuint program);
   785 GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
   786 GLAPI void APIENTRY glUseProgram (GLuint program);
   787 GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
   788 GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
   789 GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
   790 GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
   791 GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
   792 GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
   793 GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
   794 GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
   795 GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
   796 GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
   797 GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
   798 GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
   799 GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
   800 GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
   801 GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
   802 GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
   803 GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   804 GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   805 GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   806 GLAPI void APIENTRY glValidateProgram (GLuint program);
   807 GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
   808 GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
   809 GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
   810 GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
   811 GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
   812 GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
   813 GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
   814 GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
   815 GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
   816 GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
   817 GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
   818 GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
   819 GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
   820 GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
   821 GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
   822 GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
   823 GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
   824 GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
   825 GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
   826 GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
   827 GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
   828 GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
   829 GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
   830 GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
   831 GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
   832 GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
   833 GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
   834 GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
   835 GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
   836 GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
   837 GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
   838 GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
   839 GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
   840 GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
   841 GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
   842 GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
   843 GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
   844 #endif
   845 #endif /* GL_VERSION_2_0 */
   846 
   847 #ifndef GL_VERSION_2_1
   848 #define GL_VERSION_2_1 1
   849 #define GL_PIXEL_PACK_BUFFER              0x88EB
   850 #define GL_PIXEL_UNPACK_BUFFER            0x88EC
   851 #define GL_PIXEL_PACK_BUFFER_BINDING      0x88ED
   852 #define GL_PIXEL_UNPACK_BUFFER_BINDING    0x88EF
   853 #define GL_FLOAT_MAT2x3                   0x8B65
   854 #define GL_FLOAT_MAT2x4                   0x8B66
   855 #define GL_FLOAT_MAT3x2                   0x8B67
   856 #define GL_FLOAT_MAT3x4                   0x8B68
   857 #define GL_FLOAT_MAT4x2                   0x8B69
   858 #define GL_FLOAT_MAT4x3                   0x8B6A
   859 #define GL_SRGB                           0x8C40
   860 #define GL_SRGB8                          0x8C41
   861 #define GL_SRGB_ALPHA                     0x8C42
   862 #define GL_SRGB8_ALPHA8                   0x8C43
   863 #define GL_COMPRESSED_SRGB                0x8C48
   864 #define GL_COMPRESSED_SRGB_ALPHA          0x8C49
   865 #define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
   866 #define GL_SLUMINANCE_ALPHA               0x8C44
   867 #define GL_SLUMINANCE8_ALPHA8             0x8C45
   868 #define GL_SLUMINANCE                     0x8C46
   869 #define GL_SLUMINANCE8                    0x8C47
   870 #define GL_COMPRESSED_SLUMINANCE          0x8C4A
   871 #define GL_COMPRESSED_SLUMINANCE_ALPHA    0x8C4B
   872 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   873 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   874 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   875 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   876 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   877 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   878 #ifdef GL_GLEXT_PROTOTYPES
   879 GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   880 GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   881 GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   882 GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   883 GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   884 GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   885 #endif
   886 #endif /* GL_VERSION_2_1 */
   887 
   888 #ifndef GL_VERSION_3_0
   889 #define GL_VERSION_3_0 1
   890 typedef unsigned short GLhalf;
   891 #define GL_COMPARE_REF_TO_TEXTURE         0x884E
   892 #define GL_CLIP_DISTANCE0                 0x3000
   893 #define GL_CLIP_DISTANCE1                 0x3001
   894 #define GL_CLIP_DISTANCE2                 0x3002
   895 #define GL_CLIP_DISTANCE3                 0x3003
   896 #define GL_CLIP_DISTANCE4                 0x3004
   897 #define GL_CLIP_DISTANCE5                 0x3005
   898 #define GL_CLIP_DISTANCE6                 0x3006
   899 #define GL_CLIP_DISTANCE7                 0x3007
   900 #define GL_MAX_CLIP_DISTANCES             0x0D32
   901 #define GL_MAJOR_VERSION                  0x821B
   902 #define GL_MINOR_VERSION                  0x821C
   903 #define GL_NUM_EXTENSIONS                 0x821D
   904 #define GL_CONTEXT_FLAGS                  0x821E
   905 #define GL_COMPRESSED_RED                 0x8225
   906 #define GL_COMPRESSED_RG                  0x8226
   907 #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x00000001
   908 #define GL_RGBA32F                        0x8814
   909 #define GL_RGB32F                         0x8815
   910 #define GL_RGBA16F                        0x881A
   911 #define GL_RGB16F                         0x881B
   912 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER    0x88FD
   913 #define GL_MAX_ARRAY_TEXTURE_LAYERS       0x88FF
   914 #define GL_MIN_PROGRAM_TEXEL_OFFSET       0x8904
   915 #define GL_MAX_PROGRAM_TEXEL_OFFSET       0x8905
   916 #define GL_CLAMP_READ_COLOR               0x891C
   917 #define GL_FIXED_ONLY                     0x891D
   918 #define GL_MAX_VARYING_COMPONENTS         0x8B4B
   919 #define GL_TEXTURE_1D_ARRAY               0x8C18
   920 #define GL_PROXY_TEXTURE_1D_ARRAY         0x8C19
   921 #define GL_TEXTURE_2D_ARRAY               0x8C1A
   922 #define GL_PROXY_TEXTURE_2D_ARRAY         0x8C1B
   923 #define GL_TEXTURE_BINDING_1D_ARRAY       0x8C1C
   924 #define GL_TEXTURE_BINDING_2D_ARRAY       0x8C1D
   925 #define GL_R11F_G11F_B10F                 0x8C3A
   926 #define GL_UNSIGNED_INT_10F_11F_11F_REV   0x8C3B
   927 #define GL_RGB9_E5                        0x8C3D
   928 #define GL_UNSIGNED_INT_5_9_9_9_REV       0x8C3E
   929 #define GL_TEXTURE_SHARED_SIZE            0x8C3F
   930 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
   931 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
   932 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
   933 #define GL_TRANSFORM_FEEDBACK_VARYINGS    0x8C83
   934 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
   935 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
   936 #define GL_PRIMITIVES_GENERATED           0x8C87
   937 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
   938 #define GL_RASTERIZER_DISCARD             0x8C89
   939 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
   940 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
   941 #define GL_INTERLEAVED_ATTRIBS            0x8C8C
   942 #define GL_SEPARATE_ATTRIBS               0x8C8D
   943 #define GL_TRANSFORM_FEEDBACK_BUFFER      0x8C8E
   944 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
   945 #define GL_RGBA32UI                       0x8D70
   946 #define GL_RGB32UI                        0x8D71
   947 #define GL_RGBA16UI                       0x8D76
   948 #define GL_RGB16UI                        0x8D77
   949 #define GL_RGBA8UI                        0x8D7C
   950 #define GL_RGB8UI                         0x8D7D
   951 #define GL_RGBA32I                        0x8D82
   952 #define GL_RGB32I                         0x8D83
   953 #define GL_RGBA16I                        0x8D88
   954 #define GL_RGB16I                         0x8D89
   955 #define GL_RGBA8I                         0x8D8E
   956 #define GL_RGB8I                          0x8D8F
   957 #define GL_RED_INTEGER                    0x8D94
   958 #define GL_GREEN_INTEGER                  0x8D95
   959 #define GL_BLUE_INTEGER                   0x8D96
   960 #define GL_RGB_INTEGER                    0x8D98
   961 #define GL_RGBA_INTEGER                   0x8D99
   962 #define GL_BGR_INTEGER                    0x8D9A
   963 #define GL_BGRA_INTEGER                   0x8D9B
   964 #define GL_SAMPLER_1D_ARRAY               0x8DC0
   965 #define GL_SAMPLER_2D_ARRAY               0x8DC1
   966 #define GL_SAMPLER_1D_ARRAY_SHADOW        0x8DC3
   967 #define GL_SAMPLER_2D_ARRAY_SHADOW        0x8DC4
   968 #define GL_SAMPLER_CUBE_SHADOW            0x8DC5
   969 #define GL_UNSIGNED_INT_VEC2              0x8DC6
   970 #define GL_UNSIGNED_INT_VEC3              0x8DC7
   971 #define GL_UNSIGNED_INT_VEC4              0x8DC8
   972 #define GL_INT_SAMPLER_1D                 0x8DC9
   973 #define GL_INT_SAMPLER_2D                 0x8DCA
   974 #define GL_INT_SAMPLER_3D                 0x8DCB
   975 #define GL_INT_SAMPLER_CUBE               0x8DCC
   976 #define GL_INT_SAMPLER_1D_ARRAY           0x8DCE
   977 #define GL_INT_SAMPLER_2D_ARRAY           0x8DCF
   978 #define GL_UNSIGNED_INT_SAMPLER_1D        0x8DD1
   979 #define GL_UNSIGNED_INT_SAMPLER_2D        0x8DD2
   980 #define GL_UNSIGNED_INT_SAMPLER_3D        0x8DD3
   981 #define GL_UNSIGNED_INT_SAMPLER_CUBE      0x8DD4
   982 #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY  0x8DD6
   983 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY  0x8DD7
   984 #define GL_QUERY_WAIT                     0x8E13
   985 #define GL_QUERY_NO_WAIT                  0x8E14
   986 #define GL_QUERY_BY_REGION_WAIT           0x8E15
   987 #define GL_QUERY_BY_REGION_NO_WAIT        0x8E16
   988 #define GL_BUFFER_ACCESS_FLAGS            0x911F
   989 #define GL_BUFFER_MAP_LENGTH              0x9120
   990 #define GL_BUFFER_MAP_OFFSET              0x9121
   991 #define GL_DEPTH_COMPONENT32F             0x8CAC
   992 #define GL_DEPTH32F_STENCIL8              0x8CAD
   993 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
   994 #define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
   995 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
   996 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
   997 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
   998 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
   999 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
  1000 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
  1001 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
  1002 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
  1003 #define GL_FRAMEBUFFER_DEFAULT            0x8218
  1004 #define GL_FRAMEBUFFER_UNDEFINED          0x8219
  1005 #define GL_DEPTH_STENCIL_ATTACHMENT       0x821A
  1006 #define GL_MAX_RENDERBUFFER_SIZE          0x84E8
  1007 #define GL_DEPTH_STENCIL                  0x84F9
  1008 #define GL_UNSIGNED_INT_24_8              0x84FA
  1009 #define GL_DEPTH24_STENCIL8               0x88F0
  1010 #define GL_TEXTURE_STENCIL_SIZE           0x88F1
  1011 #define GL_TEXTURE_RED_TYPE               0x8C10
  1012 #define GL_TEXTURE_GREEN_TYPE             0x8C11
  1013 #define GL_TEXTURE_BLUE_TYPE              0x8C12
  1014 #define GL_TEXTURE_ALPHA_TYPE             0x8C13
  1015 #define GL_TEXTURE_DEPTH_TYPE             0x8C16
  1016 #define GL_UNSIGNED_NORMALIZED            0x8C17
  1017 #define GL_FRAMEBUFFER_BINDING            0x8CA6
  1018 #define GL_DRAW_FRAMEBUFFER_BINDING       0x8CA6
  1019 #define GL_RENDERBUFFER_BINDING           0x8CA7
  1020 #define GL_READ_FRAMEBUFFER               0x8CA8
  1021 #define GL_DRAW_FRAMEBUFFER               0x8CA9
  1022 #define GL_READ_FRAMEBUFFER_BINDING       0x8CAA
  1023 #define GL_RENDERBUFFER_SAMPLES           0x8CAB
  1024 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
  1025 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
  1026 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
  1027 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
  1028 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
  1029 #define GL_FRAMEBUFFER_COMPLETE           0x8CD5
  1030 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
  1031 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
  1032 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
  1033 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
  1034 #define GL_FRAMEBUFFER_UNSUPPORTED        0x8CDD
  1035 #define GL_MAX_COLOR_ATTACHMENTS          0x8CDF
  1036 #define GL_COLOR_ATTACHMENT0              0x8CE0
  1037 #define GL_COLOR_ATTACHMENT1              0x8CE1
  1038 #define GL_COLOR_ATTACHMENT2              0x8CE2
  1039 #define GL_COLOR_ATTACHMENT3              0x8CE3
  1040 #define GL_COLOR_ATTACHMENT4              0x8CE4
  1041 #define GL_COLOR_ATTACHMENT5              0x8CE5
  1042 #define GL_COLOR_ATTACHMENT6              0x8CE6
  1043 #define GL_COLOR_ATTACHMENT7              0x8CE7
  1044 #define GL_COLOR_ATTACHMENT8              0x8CE8
  1045 #define GL_COLOR_ATTACHMENT9              0x8CE9
  1046 #define GL_COLOR_ATTACHMENT10             0x8CEA
  1047 #define GL_COLOR_ATTACHMENT11             0x8CEB
  1048 #define GL_COLOR_ATTACHMENT12             0x8CEC
  1049 #define GL_COLOR_ATTACHMENT13             0x8CED
  1050 #define GL_COLOR_ATTACHMENT14             0x8CEE
  1051 #define GL_COLOR_ATTACHMENT15             0x8CEF
  1052 #define GL_DEPTH_ATTACHMENT               0x8D00
  1053 #define GL_STENCIL_ATTACHMENT             0x8D20
  1054 #define GL_FRAMEBUFFER                    0x8D40
  1055 #define GL_RENDERBUFFER                   0x8D41
  1056 #define GL_RENDERBUFFER_WIDTH             0x8D42
  1057 #define GL_RENDERBUFFER_HEIGHT            0x8D43
  1058 #define GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
  1059 #define GL_STENCIL_INDEX1                 0x8D46
  1060 #define GL_STENCIL_INDEX4                 0x8D47
  1061 #define GL_STENCIL_INDEX8                 0x8D48
  1062 #define GL_STENCIL_INDEX16                0x8D49
  1063 #define GL_RENDERBUFFER_RED_SIZE          0x8D50
  1064 #define GL_RENDERBUFFER_GREEN_SIZE        0x8D51
  1065 #define GL_RENDERBUFFER_BLUE_SIZE         0x8D52
  1066 #define GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
  1067 #define GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
  1068 #define GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
  1069 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
  1070 #define GL_MAX_SAMPLES                    0x8D57
  1071 #define GL_INDEX                          0x8222
  1072 #define GL_TEXTURE_LUMINANCE_TYPE         0x8C14
  1073 #define GL_TEXTURE_INTENSITY_TYPE         0x8C15
  1074 #define GL_FRAMEBUFFER_SRGB               0x8DB9
  1075 #define GL_HALF_FLOAT                     0x140B
  1076 #define GL_MAP_READ_BIT                   0x0001
  1077 #define GL_MAP_WRITE_BIT                  0x0002
  1078 #define GL_MAP_INVALIDATE_RANGE_BIT       0x0004
  1079 #define GL_MAP_INVALIDATE_BUFFER_BIT      0x0008
  1080 #define GL_MAP_FLUSH_EXPLICIT_BIT         0x0010
  1081 #define GL_MAP_UNSYNCHRONIZED_BIT         0x0020
  1082 #define GL_COMPRESSED_RED_RGTC1           0x8DBB
  1083 #define GL_COMPRESSED_SIGNED_RED_RGTC1    0x8DBC
  1084 #define GL_COMPRESSED_RG_RGTC2            0x8DBD
  1085 #define GL_COMPRESSED_SIGNED_RG_RGTC2     0x8DBE
  1086 #define GL_RG                             0x8227
  1087 #define GL_RG_INTEGER                     0x8228
  1088 #define GL_R8                             0x8229
  1089 #define GL_R16                            0x822A
  1090 #define GL_RG8                            0x822B
  1091 #define GL_RG16                           0x822C
  1092 #define GL_R16F                           0x822D
  1093 #define GL_R32F                           0x822E
  1094 #define GL_RG16F                          0x822F
  1095 #define GL_RG32F                          0x8230
  1096 #define GL_R8I                            0x8231
  1097 #define GL_R8UI                           0x8232
  1098 #define GL_R16I                           0x8233
  1099 #define GL_R16UI                          0x8234
  1100 #define GL_R32I                           0x8235
  1101 #define GL_R32UI                          0x8236
  1102 #define GL_RG8I                           0x8237
  1103 #define GL_RG8UI                          0x8238
  1104 #define GL_RG16I                          0x8239
  1105 #define GL_RG16UI                         0x823A
  1106 #define GL_RG32I                          0x823B
  1107 #define GL_RG32UI                         0x823C
  1108 #define GL_VERTEX_ARRAY_BINDING           0x85B5
  1109 #define GL_CLAMP_VERTEX_COLOR             0x891A
  1110 #define GL_CLAMP_FRAGMENT_COLOR           0x891B
  1111 #define GL_ALPHA_INTEGER                  0x8D97
  1112 typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  1113 typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
  1114 typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
  1115 typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
  1116 typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
  1117 typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
  1118 typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
  1119 typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
  1120 typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  1121 typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
  1122 typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
  1123 typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  1124 typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
  1125 typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
  1126 typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
  1127 typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
  1128 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
  1129 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
  1130 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
  1131 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
  1132 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
  1133 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
  1134 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
  1135 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
  1136 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
  1137 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  1138 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
  1139 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
  1140 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
  1141 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
  1142 typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
  1143 typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
  1144 typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
  1145 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
  1146 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
  1147 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
  1148 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
  1149 typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
  1150 typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
  1151 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
  1152 typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
  1153 typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
  1154 typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
  1155 typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
  1156 typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  1157 typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  1158 typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  1159 typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  1160 typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  1161 typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
  1162 typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
  1163 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
  1164 typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
  1165 typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
  1166 typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
  1167 typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
  1168 typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  1169 typedef const GLubyte *(APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
  1170 typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
  1171 typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
  1172 typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
  1173 typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
  1174 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  1175 typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  1176 typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
  1177 typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
  1178 typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
  1179 typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
  1180 typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
  1181 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  1182 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  1183 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  1184 typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  1185 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
  1186 typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
  1187 typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  1188 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1189 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  1190 typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  1191 typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  1192 typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
  1193 typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
  1194 typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
  1195 typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
  1196 #ifdef GL_GLEXT_PROTOTYPES
  1197 GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  1198 GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
  1199 GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
  1200 GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
  1201 GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
  1202 GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
  1203 GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
  1204 GLAPI void APIENTRY glEndTransformFeedback (void);
  1205 GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  1206 GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
  1207 GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const*varyings, GLenum bufferMode);
  1208 GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  1209 GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
  1210 GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
  1211 GLAPI void APIENTRY glEndConditionalRender (void);
  1212 GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
  1213 GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
  1214 GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
  1215 GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
  1216 GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
  1217 GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
  1218 GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
  1219 GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
  1220 GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
  1221 GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
  1222 GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  1223 GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
  1224 GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
  1225 GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
  1226 GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
  1227 GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
  1228 GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
  1229 GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
  1230 GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
  1231 GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
  1232 GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
  1233 GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
  1234 GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
  1235 GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
  1236 GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
  1237 GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
  1238 GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
  1239 GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
  1240 GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
  1241 GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  1242 GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
  1243 GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
  1244 GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
  1245 GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
  1246 GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
  1247 GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
  1248 GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
  1249 GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
  1250 GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
  1251 GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
  1252 GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
  1253 GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  1254 GLAPI const GLubyte *APIENTRY glGetStringi (GLenum name, GLuint index);
  1255 GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer);
  1256 GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
  1257 GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
  1258 GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
  1259 GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  1260 GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
  1261 GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer);
  1262 GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
  1263 GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
  1264 GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
  1265 GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target);
  1266 GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  1267 GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  1268 GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  1269 GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  1270 GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
  1271 GLAPI void APIENTRY glGenerateMipmap (GLenum target);
  1272 GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  1273 GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1274 GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  1275 GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  1276 GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
  1277 GLAPI void APIENTRY glBindVertexArray (GLuint array);
  1278 GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
  1279 GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
  1280 GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array);
  1281 #endif
  1282 #endif /* GL_VERSION_3_0 */
  1283 
  1284 #ifndef GL_VERSION_3_1
  1285 #define GL_VERSION_3_1 1
  1286 #define GL_SAMPLER_2D_RECT                0x8B63
  1287 #define GL_SAMPLER_2D_RECT_SHADOW         0x8B64
  1288 #define GL_SAMPLER_BUFFER                 0x8DC2
  1289 #define GL_INT_SAMPLER_2D_RECT            0x8DCD
  1290 #define GL_INT_SAMPLER_BUFFER             0x8DD0
  1291 #define GL_UNSIGNED_INT_SAMPLER_2D_RECT   0x8DD5
  1292 #define GL_UNSIGNED_INT_SAMPLER_BUFFER    0x8DD8
  1293 #define GL_TEXTURE_BUFFER                 0x8C2A
  1294 #define GL_MAX_TEXTURE_BUFFER_SIZE        0x8C2B
  1295 #define GL_TEXTURE_BINDING_BUFFER         0x8C2C
  1296 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
  1297 #define GL_TEXTURE_RECTANGLE              0x84F5
  1298 #define GL_TEXTURE_BINDING_RECTANGLE      0x84F6
  1299 #define GL_PROXY_TEXTURE_RECTANGLE        0x84F7
  1300 #define GL_MAX_RECTANGLE_TEXTURE_SIZE     0x84F8
  1301 #define GL_R8_SNORM                       0x8F94
  1302 #define GL_RG8_SNORM                      0x8F95
  1303 #define GL_RGB8_SNORM                     0x8F96
  1304 #define GL_RGBA8_SNORM                    0x8F97
  1305 #define GL_R16_SNORM                      0x8F98
  1306 #define GL_RG16_SNORM                     0x8F99
  1307 #define GL_RGB16_SNORM                    0x8F9A
  1308 #define GL_RGBA16_SNORM                   0x8F9B
  1309 #define GL_SIGNED_NORMALIZED              0x8F9C
  1310 #define GL_PRIMITIVE_RESTART              0x8F9D
  1311 #define GL_PRIMITIVE_RESTART_INDEX        0x8F9E
  1312 #define GL_COPY_READ_BUFFER               0x8F36
  1313 #define GL_COPY_WRITE_BUFFER              0x8F37
  1314 #define GL_UNIFORM_BUFFER                 0x8A11
  1315 #define GL_UNIFORM_BUFFER_BINDING         0x8A28
  1316 #define GL_UNIFORM_BUFFER_START           0x8A29
  1317 #define GL_UNIFORM_BUFFER_SIZE            0x8A2A
  1318 #define GL_MAX_VERTEX_UNIFORM_BLOCKS      0x8A2B
  1319 #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS    0x8A2D
  1320 #define GL_MAX_COMBINED_UNIFORM_BLOCKS    0x8A2E
  1321 #define GL_MAX_UNIFORM_BUFFER_BINDINGS    0x8A2F
  1322 #define GL_MAX_UNIFORM_BLOCK_SIZE         0x8A30
  1323 #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
  1324 #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
  1325 #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
  1326 #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
  1327 #define GL_ACTIVE_UNIFORM_BLOCKS          0x8A36
  1328 #define GL_UNIFORM_TYPE                   0x8A37
  1329 #define GL_UNIFORM_SIZE                   0x8A38
  1330 #define GL_UNIFORM_NAME_LENGTH            0x8A39
  1331 #define GL_UNIFORM_BLOCK_INDEX            0x8A3A
  1332 #define GL_UNIFORM_OFFSET                 0x8A3B
  1333 #define GL_UNIFORM_ARRAY_STRIDE           0x8A3C
  1334 #define GL_UNIFORM_MATRIX_STRIDE          0x8A3D
  1335 #define GL_UNIFORM_IS_ROW_MAJOR           0x8A3E
  1336 #define GL_UNIFORM_BLOCK_BINDING          0x8A3F
  1337 #define GL_UNIFORM_BLOCK_DATA_SIZE        0x8A40
  1338 #define GL_UNIFORM_BLOCK_NAME_LENGTH      0x8A41
  1339 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS  0x8A42
  1340 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
  1341 #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
  1342 #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
  1343 #define GL_INVALID_INDEX                  0xFFFFFFFFu
  1344 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
  1345 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
  1346 typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
  1347 typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
  1348 typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  1349 typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
  1350 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
  1351 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
  1352 typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
  1353 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
  1354 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
  1355 typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
  1356 #ifdef GL_GLEXT_PROTOTYPES
  1357 GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
  1358 GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount);
  1359 GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
  1360 GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
  1361 GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  1362 GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar *const*uniformNames, GLuint *uniformIndices);
  1363 GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
  1364 GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
  1365 GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
  1366 GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
  1367 GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
  1368 GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
  1369 #endif
  1370 #endif /* GL_VERSION_3_1 */
  1371 
  1372 #ifndef GL_VERSION_3_2
  1373 #define GL_VERSION_3_2 1
  1374 typedef struct __GLsync *GLsync;
  1375 #ifndef GLEXT_64_TYPES_DEFINED
  1376 /* This code block is duplicated in glxext.h, so must be protected */
  1377 #define GLEXT_64_TYPES_DEFINED
  1378 /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
  1379 /* (as used in the GL_EXT_timer_query extension). */
  1380 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  1381 #include <inttypes.h>
  1382 #elif defined(__sun__) || defined(__digital__)
  1383 #include <inttypes.h>
  1384 #if defined(__STDC__)
  1385 #if defined(__arch64__) || defined(_LP64)
  1386 typedef long int int64_t;
  1387 typedef unsigned long int uint64_t;
  1388 #else
  1389 typedef long long int int64_t;
  1390 typedef unsigned long long int uint64_t;
  1391 #endif /* __arch64__ */
  1392 #endif /* __STDC__ */
  1393 #elif defined( __VMS ) || defined(__sgi)
  1394 #include <inttypes.h>
  1395 #elif defined(__SCO__) || defined(__USLC__)
  1396 #include <stdint.h>
  1397 #elif defined(__UNIXOS2__) || defined(__SOL64__)
  1398 typedef long int int32_t;
  1399 typedef long long int int64_t;
  1400 typedef unsigned long long int uint64_t;
  1401 #elif defined(_WIN32) && defined(__GNUC__)
  1402 #include <stdint.h>
  1403 #elif defined(_WIN32)
  1404 typedef __int32 int32_t;
  1405 typedef __int64 int64_t;
  1406 typedef unsigned __int64 uint64_t;
  1407 #else
  1408 /* Fallback if nothing above works */
  1409 #include <inttypes.h>
  1410 #endif
  1411 #endif
  1412 typedef uint64_t GLuint64;
  1413 typedef int64_t GLint64;
  1414 #define GL_CONTEXT_CORE_PROFILE_BIT       0x00000001
  1415 #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
  1416 #define GL_LINES_ADJACENCY                0x000A
  1417 #define GL_LINE_STRIP_ADJACENCY           0x000B
  1418 #define GL_TRIANGLES_ADJACENCY            0x000C
  1419 #define GL_TRIANGLE_STRIP_ADJACENCY       0x000D
  1420 #define GL_PROGRAM_POINT_SIZE             0x8642
  1421 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
  1422 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
  1423 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
  1424 #define GL_GEOMETRY_SHADER                0x8DD9
  1425 #define GL_GEOMETRY_VERTICES_OUT          0x8916
  1426 #define GL_GEOMETRY_INPUT_TYPE            0x8917
  1427 #define GL_GEOMETRY_OUTPUT_TYPE           0x8918
  1428 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
  1429 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES   0x8DE0
  1430 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
  1431 #define GL_MAX_VERTEX_OUTPUT_COMPONENTS   0x9122
  1432 #define GL_MAX_GEOMETRY_INPUT_COMPONENTS  0x9123
  1433 #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
  1434 #define GL_MAX_FRAGMENT_INPUT_COMPONENTS  0x9125
  1435 #define GL_CONTEXT_PROFILE_MASK           0x9126
  1436 #define GL_DEPTH_CLAMP                    0x864F
  1437 #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
  1438 #define GL_FIRST_VERTEX_CONVENTION        0x8E4D
  1439 #define GL_LAST_VERTEX_CONVENTION         0x8E4E
  1440 #define GL_PROVOKING_VERTEX               0x8E4F
  1441 #define GL_TEXTURE_CUBE_MAP_SEAMLESS      0x884F
  1442 #define GL_MAX_SERVER_WAIT_TIMEOUT        0x9111
  1443 #define GL_OBJECT_TYPE                    0x9112
  1444 #define GL_SYNC_CONDITION                 0x9113
  1445 #define GL_SYNC_STATUS                    0x9114
  1446 #define GL_SYNC_FLAGS                     0x9115
  1447 #define GL_SYNC_FENCE                     0x9116
  1448 #define GL_SYNC_GPU_COMMANDS_COMPLETE     0x9117
  1449 #define GL_UNSIGNALED                     0x9118
  1450 #define GL_SIGNALED                       0x9119
  1451 #define GL_ALREADY_SIGNALED               0x911A
  1452 #define GL_TIMEOUT_EXPIRED                0x911B
  1453 #define GL_CONDITION_SATISFIED            0x911C
  1454 #define GL_WAIT_FAILED                    0x911D
  1455 #define GL_TIMEOUT_IGNORED                0xFFFFFFFFFFFFFFFFull
  1456 #define GL_SYNC_FLUSH_COMMANDS_BIT        0x00000001
  1457 #define GL_SAMPLE_POSITION                0x8E50
  1458 #define GL_SAMPLE_MASK                    0x8E51
  1459 #define GL_SAMPLE_MASK_VALUE              0x8E52
  1460 #define GL_MAX_SAMPLE_MASK_WORDS          0x8E59
  1461 #define GL_TEXTURE_2D_MULTISAMPLE         0x9100
  1462 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE   0x9101
  1463 #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY   0x9102
  1464 #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
  1465 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
  1466 #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
  1467 #define GL_TEXTURE_SAMPLES                0x9106
  1468 #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
  1469 #define GL_SAMPLER_2D_MULTISAMPLE         0x9108
  1470 #define GL_INT_SAMPLER_2D_MULTISAMPLE     0x9109
  1471 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
  1472 #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY   0x910B
  1473 #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
  1474 #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
  1475 #define GL_MAX_COLOR_TEXTURE_SAMPLES      0x910E
  1476 #define GL_MAX_DEPTH_TEXTURE_SAMPLES      0x910F
  1477 #define GL_MAX_INTEGER_SAMPLES            0x9110
  1478 typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
  1479 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
  1480 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
  1481 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
  1482 typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
  1483 typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
  1484 typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
  1485 typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
  1486 typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1487 typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1488 typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *data);
  1489 typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  1490 typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
  1491 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
  1492 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
  1493 typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  1494 typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  1495 typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
  1496 typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint maskNumber, GLbitfield mask);
  1497 #ifdef GL_GLEXT_PROTOTYPES
  1498 GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
  1499 GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
  1500 GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
  1501 GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei drawcount, const GLint *basevertex);
  1502 GLAPI void APIENTRY glProvokingVertex (GLenum mode);
  1503 GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
  1504 GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
  1505 GLAPI void APIENTRY glDeleteSync (GLsync sync);
  1506 GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1507 GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1508 GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *data);
  1509 GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  1510 GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
  1511 GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
  1512 GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
  1513 GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  1514 GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  1515 GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
  1516 GLAPI void APIENTRY glSampleMaski (GLuint maskNumber, GLbitfield mask);
  1517 #endif
  1518 #endif /* GL_VERSION_3_2 */
  1519 
  1520 #ifndef GL_VERSION_3_3
  1521 #define GL_VERSION_3_3 1
  1522 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR    0x88FE
  1523 #define GL_SRC1_COLOR                     0x88F9
  1524 #define GL_ONE_MINUS_SRC1_COLOR           0x88FA
  1525 #define GL_ONE_MINUS_SRC1_ALPHA           0x88FB
  1526 #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS   0x88FC
  1527 #define GL_ANY_SAMPLES_PASSED             0x8C2F
  1528 #define GL_SAMPLER_BINDING                0x8919
  1529 #define GL_RGB10_A2UI                     0x906F
  1530 #define GL_TEXTURE_SWIZZLE_R              0x8E42
  1531 #define GL_TEXTURE_SWIZZLE_G              0x8E43
  1532 #define GL_TEXTURE_SWIZZLE_B              0x8E44
  1533 #define GL_TEXTURE_SWIZZLE_A              0x8E45
  1534 #define GL_TEXTURE_SWIZZLE_RGBA           0x8E46
  1535 #define GL_TIME_ELAPSED                   0x88BF
  1536 #define GL_TIMESTAMP                      0x8E28
  1537 #define GL_INT_2_10_10_10_REV             0x8D9F
  1538 typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
  1539 typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
  1540 typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
  1541 typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
  1542 typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
  1543 typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
  1544 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
  1545 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
  1546 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
  1547 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
  1548 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
  1549 typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
  1550 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
  1551 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
  1552 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
  1553 typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
  1554 typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
  1555 typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
  1556 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
  1557 typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
  1558 typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  1559 typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  1560 typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  1561 typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  1562 typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  1563 typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  1564 typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  1565 typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  1566 typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
  1567 typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
  1568 typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
  1569 typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
  1570 typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
  1571 typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
  1572 typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
  1573 typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
  1574 typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
  1575 typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
  1576 typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
  1577 typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
  1578 typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
  1579 typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
  1580 typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
  1581 typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
  1582 typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
  1583 typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
  1584 typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
  1585 typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
  1586 typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
  1587 typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
  1588 typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
  1589 typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
  1590 typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
  1591 typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
  1592 typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
  1593 typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
  1594 typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
  1595 typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
  1596 #ifdef GL_GLEXT_PROTOTYPES
  1597 GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
  1598 GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
  1599 GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
  1600 GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
  1601 GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
  1602 GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
  1603 GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
  1604 GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
  1605 GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
  1606 GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
  1607 GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
  1608 GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
  1609 GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
  1610 GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
  1611 GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
  1612 GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
  1613 GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
  1614 GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
  1615 GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
  1616 GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
  1617 GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  1618 GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  1619 GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  1620 GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  1621 GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  1622 GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  1623 GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  1624 GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  1625 GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value);
  1626 GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value);
  1627 GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value);
  1628 GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value);
  1629 GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value);
  1630 GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value);
  1631 GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords);
  1632 GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords);
  1633 GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords);
  1634 GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords);
  1635 GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords);
  1636 GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords);
  1637 GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords);
  1638 GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords);
  1639 GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords);
  1640 GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords);
  1641 GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords);
  1642 GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords);
  1643 GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords);
  1644 GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords);
  1645 GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords);
  1646 GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords);
  1647 GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords);
  1648 GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords);
  1649 GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color);
  1650 GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color);
  1651 GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color);
  1652 GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color);
  1653 GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color);
  1654 GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color);
  1655 #endif
  1656 #endif /* GL_VERSION_3_3 */
  1657 
  1658 #ifndef GL_VERSION_4_0
  1659 #define GL_VERSION_4_0 1
  1660 #define GL_SAMPLE_SHADING                 0x8C36
  1661 #define GL_MIN_SAMPLE_SHADING_VALUE       0x8C37
  1662 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
  1663 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
  1664 #define GL_TEXTURE_CUBE_MAP_ARRAY         0x9009
  1665 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
  1666 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY   0x900B
  1667 #define GL_SAMPLER_CUBE_MAP_ARRAY         0x900C
  1668 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW  0x900D
  1669 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY     0x900E
  1670 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
  1671 #define GL_DRAW_INDIRECT_BUFFER           0x8F3F
  1672 #define GL_DRAW_INDIRECT_BUFFER_BINDING   0x8F43
  1673 #define GL_GEOMETRY_SHADER_INVOCATIONS    0x887F
  1674 #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
  1675 #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
  1676 #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
  1677 #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
  1678 #define GL_MAX_VERTEX_STREAMS             0x8E71
  1679 #define GL_DOUBLE_VEC2                    0x8FFC
  1680 #define GL_DOUBLE_VEC3                    0x8FFD
  1681 #define GL_DOUBLE_VEC4                    0x8FFE
  1682 #define GL_DOUBLE_MAT2                    0x8F46
  1683 #define GL_DOUBLE_MAT3                    0x8F47
  1684 #define GL_DOUBLE_MAT4                    0x8F48
  1685 #define GL_DOUBLE_MAT2x3                  0x8F49
  1686 #define GL_DOUBLE_MAT2x4                  0x8F4A
  1687 #define GL_DOUBLE_MAT3x2                  0x8F4B
  1688 #define GL_DOUBLE_MAT3x4                  0x8F4C
  1689 #define GL_DOUBLE_MAT4x2                  0x8F4D
  1690 #define GL_DOUBLE_MAT4x3                  0x8F4E
  1691 #define GL_ACTIVE_SUBROUTINES             0x8DE5
  1692 #define GL_ACTIVE_SUBROUTINE_UNIFORMS     0x8DE6
  1693 #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
  1694 #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH   0x8E48
  1695 #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
  1696 #define GL_MAX_SUBROUTINES                0x8DE7
  1697 #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
  1698 #define GL_NUM_COMPATIBLE_SUBROUTINES     0x8E4A
  1699 #define GL_COMPATIBLE_SUBROUTINES         0x8E4B
  1700 #define GL_PATCHES                        0x000E
  1701 #define GL_PATCH_VERTICES                 0x8E72
  1702 #define GL_PATCH_DEFAULT_INNER_LEVEL      0x8E73
  1703 #define GL_PATCH_DEFAULT_OUTER_LEVEL      0x8E74
  1704 #define GL_TESS_CONTROL_OUTPUT_VERTICES   0x8E75
  1705 #define GL_TESS_GEN_MODE                  0x8E76
  1706 #define GL_TESS_GEN_SPACING               0x8E77
  1707 #define GL_TESS_GEN_VERTEX_ORDER          0x8E78
  1708 #define GL_TESS_GEN_POINT_MODE            0x8E79
  1709 #define GL_ISOLINES                       0x8E7A
  1710 #define GL_FRACTIONAL_ODD                 0x8E7B
  1711 #define GL_FRACTIONAL_EVEN                0x8E7C
  1712 #define GL_MAX_PATCH_VERTICES             0x8E7D
  1713 #define GL_MAX_TESS_GEN_LEVEL             0x8E7E
  1714 #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
  1715 #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
  1716 #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
  1717 #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
  1718 #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
  1719 #define GL_MAX_TESS_PATCH_COMPONENTS      0x8E84
  1720 #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
  1721 #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
  1722 #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
  1723 #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
  1724 #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
  1725 #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
  1726 #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
  1727 #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
  1728 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
  1729 #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
  1730 #define GL_TESS_EVALUATION_SHADER         0x8E87
  1731 #define GL_TESS_CONTROL_SHADER            0x8E88
  1732 #define GL_TRANSFORM_FEEDBACK             0x8E22
  1733 #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8E23
  1734 #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8E24
  1735 #define GL_TRANSFORM_FEEDBACK_BINDING     0x8E25
  1736 #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
  1737 typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
  1738 typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
  1739 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  1740 typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
  1741 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  1742 typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect);
  1743 typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect);
  1744 typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
  1745 typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
  1746 typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
  1747 typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  1748 typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
  1749 typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
  1750 typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
  1751 typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
  1752 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1753 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1754 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1755 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1756 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1757 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1758 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1759 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1760 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1761 typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
  1762 typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
  1763 typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
  1764 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
  1765 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
  1766 typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
  1767 typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
  1768 typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
  1769 typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
  1770 typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
  1771 typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
  1772 typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
  1773 typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
  1774 typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
  1775 typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
  1776 typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
  1777 typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
  1778 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
  1779 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
  1780 typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
  1781 typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
  1782 typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
  1783 #ifdef GL_GLEXT_PROTOTYPES
  1784 GLAPI void APIENTRY glMinSampleShading (GLfloat value);
  1785 GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
  1786 GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  1787 GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
  1788 GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  1789 GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const void *indirect);
  1790 GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect);
  1791 GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
  1792 GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
  1793 GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
  1794 GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  1795 GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
  1796 GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
  1797 GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
  1798 GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
  1799 GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1800 GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1801 GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1802 GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1803 GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1804 GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1805 GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1806 GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1807 GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1808 GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
  1809 GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
  1810 GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
  1811 GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
  1812 GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
  1813 GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
  1814 GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
  1815 GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
  1816 GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
  1817 GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
  1818 GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
  1819 GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
  1820 GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
  1821 GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
  1822 GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
  1823 GLAPI void APIENTRY glPauseTransformFeedback (void);
  1824 GLAPI void APIENTRY glResumeTransformFeedback (void);
  1825 GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
  1826 GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
  1827 GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
  1828 GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
  1829 GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
  1830 #endif
  1831 #endif /* GL_VERSION_4_0 */
  1832 
  1833 #ifndef GL_VERSION_4_1
  1834 #define GL_VERSION_4_1 1
  1835 #define GL_FIXED                          0x140C
  1836 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
  1837 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
  1838 #define GL_LOW_FLOAT                      0x8DF0
  1839 #define GL_MEDIUM_FLOAT                   0x8DF1
  1840 #define GL_HIGH_FLOAT                     0x8DF2
  1841 #define GL_LOW_INT                        0x8DF3
  1842 #define GL_MEDIUM_INT                     0x8DF4
  1843 #define GL_HIGH_INT                       0x8DF5
  1844 #define GL_SHADER_COMPILER                0x8DFA
  1845 #define GL_SHADER_BINARY_FORMATS          0x8DF8
  1846 #define GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
  1847 #define GL_MAX_VERTEX_UNIFORM_VECTORS     0x8DFB
  1848 #define GL_MAX_VARYING_VECTORS            0x8DFC
  1849 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS   0x8DFD
  1850 #define GL_RGB565                         0x8D62
  1851 #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
  1852 #define GL_PROGRAM_BINARY_LENGTH          0x8741
  1853 #define GL_NUM_PROGRAM_BINARY_FORMATS     0x87FE
  1854 #define GL_PROGRAM_BINARY_FORMATS         0x87FF
  1855 #define GL_VERTEX_SHADER_BIT              0x00000001
  1856 #define GL_FRAGMENT_SHADER_BIT            0x00000002
  1857 #define GL_GEOMETRY_SHADER_BIT            0x00000004
  1858 #define GL_TESS_CONTROL_SHADER_BIT        0x00000008
  1859 #define GL_TESS_EVALUATION_SHADER_BIT     0x00000010
  1860 #define GL_ALL_SHADER_BITS                0xFFFFFFFF
  1861 #define GL_PROGRAM_SEPARABLE              0x8258
  1862 #define GL_ACTIVE_PROGRAM                 0x8259
  1863 #define GL_PROGRAM_PIPELINE_BINDING       0x825A
  1864 #define GL_MAX_VIEWPORTS                  0x825B
  1865 #define GL_VIEWPORT_SUBPIXEL_BITS         0x825C
  1866 #define GL_VIEWPORT_BOUNDS_RANGE          0x825D
  1867 #define GL_LAYER_PROVOKING_VERTEX         0x825E
  1868 #define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
  1869 #define GL_UNDEFINED_VERTEX               0x8260
  1870 typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
  1871 typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
  1872 typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
  1873 typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
  1874 typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
  1875 typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
  1876 typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
  1877 typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
  1878 typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
  1879 typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
  1880 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar *const*strings);
  1881 typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
  1882 typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
  1883 typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
  1884 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
  1885 typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
  1886 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
  1887 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1888 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
  1889 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1890 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
  1891 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  1892 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
  1893 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1894 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
  1895 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1896 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
  1897 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1898 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
  1899 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  1900 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
  1901 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1902 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
  1903 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1904 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  1905 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1906 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
  1907 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  1908 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
  1909 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1910 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  1911 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1912 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  1913 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1914 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
  1915 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  1916 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  1917 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1918 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1919 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1920 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1921 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1922 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1923 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1924 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1925 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1926 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1927 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1928 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1929 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1930 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1931 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1932 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1933 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1934 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1935 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  1936 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
  1937 typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  1938 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
  1939 typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
  1940 typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  1941 typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  1942 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
  1943 typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
  1944 typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
  1945 typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
  1946 typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
  1947 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
  1948 typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
  1949 typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
  1950 typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
  1951 typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
  1952 typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
  1953 typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
  1954 typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
  1955 typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
  1956 typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
  1957 typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
  1958 #ifdef GL_GLEXT_PROTOTYPES
  1959 GLAPI void APIENTRY glReleaseShaderCompiler (void);
  1960 GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
  1961 GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
  1962 GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
  1963 GLAPI void APIENTRY glClearDepthf (GLfloat d);
  1964 GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
  1965 GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length);
  1966 GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
  1967 GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
  1968 GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
  1969 GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings);
  1970 GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
  1971 GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
  1972 GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
  1973 GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
  1974 GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
  1975 GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
  1976 GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
  1977 GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
  1978 GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1979 GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
  1980 GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  1981 GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
  1982 GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1983 GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
  1984 GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
  1985 GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
  1986 GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1987 GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
  1988 GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  1989 GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
  1990 GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1991 GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
  1992 GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
  1993 GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  1994 GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1995 GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
  1996 GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  1997 GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
  1998 GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
  1999 GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  2000 GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
  2001 GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  2002 GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  2003 GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
  2004 GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  2005 GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  2006 GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
  2007 GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2008 GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2009 GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2010 GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2011 GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2012 GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2013 GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2014 GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2015 GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2016 GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2017 GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2018 GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2019 GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2020 GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2021 GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2022 GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2023 GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2024 GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  2025 GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline);
  2026 GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  2027 GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x);
  2028 GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
  2029 GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  2030 GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  2031 GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v);
  2032 GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v);
  2033 GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v);
  2034 GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v);
  2035 GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void *pointer);
  2036 GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
  2037 GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
  2038 GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
  2039 GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v);
  2040 GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
  2041 GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
  2042 GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v);
  2043 GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v);
  2044 GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f);
  2045 GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
  2046 GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
  2047 #endif
  2048 #endif /* GL_VERSION_4_1 */
  2049 
  2050 #ifndef GL_VERSION_4_2
  2051 #define GL_VERSION_4_2 1
  2052 #define GL_UNPACK_COMPRESSED_BLOCK_WIDTH  0x9127
  2053 #define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
  2054 #define GL_UNPACK_COMPRESSED_BLOCK_DEPTH  0x9129
  2055 #define GL_UNPACK_COMPRESSED_BLOCK_SIZE   0x912A
  2056 #define GL_PACK_COMPRESSED_BLOCK_WIDTH    0x912B
  2057 #define GL_PACK_COMPRESSED_BLOCK_HEIGHT   0x912C
  2058 #define GL_PACK_COMPRESSED_BLOCK_DEPTH    0x912D
  2059 #define GL_PACK_COMPRESSED_BLOCK_SIZE     0x912E
  2060 #define GL_NUM_SAMPLE_COUNTS              0x9380
  2061 #define GL_MIN_MAP_BUFFER_ALIGNMENT       0x90BC
  2062 #define GL_ATOMIC_COUNTER_BUFFER          0x92C0
  2063 #define GL_ATOMIC_COUNTER_BUFFER_BINDING  0x92C1
  2064 #define GL_ATOMIC_COUNTER_BUFFER_START    0x92C2
  2065 #define GL_ATOMIC_COUNTER_BUFFER_SIZE     0x92C3
  2066 #define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
  2067 #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
  2068 #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
  2069 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
  2070 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
  2071 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
  2072 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
  2073 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
  2074 #define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
  2075 #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
  2076 #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
  2077 #define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
  2078 #define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
  2079 #define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
  2080 #define GL_MAX_VERTEX_ATOMIC_COUNTERS     0x92D2
  2081 #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
  2082 #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
  2083 #define GL_MAX_GEOMETRY_ATOMIC_COUNTERS   0x92D5
  2084 #define GL_MAX_FRAGMENT_ATOMIC_COUNTERS   0x92D6
  2085 #define GL_MAX_COMBINED_ATOMIC_COUNTERS   0x92D7
  2086 #define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
  2087 #define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
  2088 #define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS  0x92D9
  2089 #define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
  2090 #define GL_UNSIGNED_INT_ATOMIC_COUNTER    0x92DB
  2091 #define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
  2092 #define GL_ELEMENT_ARRAY_BARRIER_BIT      0x00000002
  2093 #define GL_UNIFORM_BARRIER_BIT            0x00000004
  2094 #define GL_TEXTURE_FETCH_BARRIER_BIT      0x00000008
  2095 #define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
  2096 #define GL_COMMAND_BARRIER_BIT            0x00000040
  2097 #define GL_PIXEL_BUFFER_BARRIER_BIT       0x00000080
  2098 #define GL_TEXTURE_UPDATE_BARRIER_BIT     0x00000100
  2099 #define GL_BUFFER_UPDATE_BARRIER_BIT      0x00000200
  2100 #define GL_FRAMEBUFFER_BARRIER_BIT        0x00000400
  2101 #define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
  2102 #define GL_ATOMIC_COUNTER_BARRIER_BIT     0x00001000
  2103 #define GL_ALL_BARRIER_BITS               0xFFFFFFFF
  2104 #define GL_MAX_IMAGE_UNITS                0x8F38
  2105 #define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
  2106 #define GL_IMAGE_BINDING_NAME             0x8F3A
  2107 #define GL_IMAGE_BINDING_LEVEL            0x8F3B
  2108 #define GL_IMAGE_BINDING_LAYERED          0x8F3C
  2109 #define GL_IMAGE_BINDING_LAYER            0x8F3D
  2110 #define GL_IMAGE_BINDING_ACCESS           0x8F3E
  2111 #define GL_IMAGE_1D                       0x904C
  2112 #define GL_IMAGE_2D                       0x904D
  2113 #define GL_IMAGE_3D                       0x904E
  2114 #define GL_IMAGE_2D_RECT                  0x904F
  2115 #define GL_IMAGE_CUBE                     0x9050
  2116 #define GL_IMAGE_BUFFER                   0x9051
  2117 #define GL_IMAGE_1D_ARRAY                 0x9052
  2118 #define GL_IMAGE_2D_ARRAY                 0x9053
  2119 #define GL_IMAGE_CUBE_MAP_ARRAY           0x9054
  2120 #define GL_IMAGE_2D_MULTISAMPLE           0x9055
  2121 #define GL_IMAGE_2D_MULTISAMPLE_ARRAY     0x9056
  2122 #define GL_INT_IMAGE_1D                   0x9057
  2123 #define GL_INT_IMAGE_2D                   0x9058
  2124 #define GL_INT_IMAGE_3D                   0x9059
  2125 #define GL_INT_IMAGE_2D_RECT              0x905A
  2126 #define GL_INT_IMAGE_CUBE                 0x905B
  2127 #define GL_INT_IMAGE_BUFFER               0x905C
  2128 #define GL_INT_IMAGE_1D_ARRAY             0x905D
  2129 #define GL_INT_IMAGE_2D_ARRAY             0x905E
  2130 #define GL_INT_IMAGE_CUBE_MAP_ARRAY       0x905F
  2131 #define GL_INT_IMAGE_2D_MULTISAMPLE       0x9060
  2132 #define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
  2133 #define GL_UNSIGNED_INT_IMAGE_1D          0x9062
  2134 #define GL_UNSIGNED_INT_IMAGE_2D          0x9063
  2135 #define GL_UNSIGNED_INT_IMAGE_3D          0x9064
  2136 #define GL_UNSIGNED_INT_IMAGE_2D_RECT     0x9065
  2137 #define GL_UNSIGNED_INT_IMAGE_CUBE        0x9066
  2138 #define GL_UNSIGNED_INT_IMAGE_BUFFER      0x9067
  2139 #define GL_UNSIGNED_INT_IMAGE_1D_ARRAY    0x9068
  2140 #define GL_UNSIGNED_INT_IMAGE_2D_ARRAY    0x9069
  2141 #define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
  2142 #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
  2143 #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
  2144 #define GL_MAX_IMAGE_SAMPLES              0x906D
  2145 #define GL_IMAGE_BINDING_FORMAT           0x906E
  2146 #define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
  2147 #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
  2148 #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
  2149 #define GL_MAX_VERTEX_IMAGE_UNIFORMS      0x90CA
  2150 #define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
  2151 #define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
  2152 #define GL_MAX_GEOMETRY_IMAGE_UNIFORMS    0x90CD
  2153 #define GL_MAX_FRAGMENT_IMAGE_UNIFORMS    0x90CE
  2154 #define GL_MAX_COMBINED_IMAGE_UNIFORMS    0x90CF
  2155 #define GL_COMPRESSED_RGBA_BPTC_UNORM     0x8E8C
  2156 #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D
  2157 #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8E8E
  2158 #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8E8F
  2159 #define GL_TEXTURE_IMMUTABLE_FORMAT       0x912F
  2160 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
  2161 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
  2162 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
  2163 typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
  2164 typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
  2165 typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
  2166 typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
  2167 typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  2168 typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  2169 typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  2170 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
  2171 typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
  2172 #ifdef GL_GLEXT_PROTOTYPES
  2173 GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
  2174 GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
  2175 GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
  2176 GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
  2177 GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
  2178 GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
  2179 GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers);
  2180 GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  2181 GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  2182 GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  2183 GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount);
  2184 GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
  2185 #endif
  2186 #endif /* GL_VERSION_4_2 */
  2187 
  2188 #ifndef GL_VERSION_4_3
  2189 #define GL_VERSION_4_3 1
  2190 typedef void (APIENTRY  *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
  2191 #define GL_NUM_SHADING_LANGUAGE_VERSIONS  0x82E9
  2192 #define GL_VERTEX_ATTRIB_ARRAY_LONG       0x874E
  2193 #define GL_COMPRESSED_RGB8_ETC2           0x9274
  2194 #define GL_COMPRESSED_SRGB8_ETC2          0x9275
  2195 #define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
  2196 #define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
  2197 #define GL_COMPRESSED_RGBA8_ETC2_EAC      0x9278
  2198 #define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
  2199 #define GL_COMPRESSED_R11_EAC             0x9270
  2200 #define GL_COMPRESSED_SIGNED_R11_EAC      0x9271
  2201 #define GL_COMPRESSED_RG11_EAC            0x9272
  2202 #define GL_COMPRESSED_SIGNED_RG11_EAC     0x9273
  2203 #define GL_PRIMITIVE_RESTART_FIXED_INDEX  0x8D69
  2204 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
  2205 #define GL_MAX_ELEMENT_INDEX              0x8D6B
  2206 #define GL_COMPUTE_SHADER                 0x91B9
  2207 #define GL_MAX_COMPUTE_UNIFORM_BLOCKS     0x91BB
  2208 #define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
  2209 #define GL_MAX_COMPUTE_IMAGE_UNIFORMS     0x91BD
  2210 #define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
  2211 #define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
  2212 #define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
  2213 #define GL_MAX_COMPUTE_ATOMIC_COUNTERS    0x8265
  2214 #define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
  2215 #define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90EB
  2216 #define GL_MAX_COMPUTE_WORK_GROUP_COUNT   0x91BE
  2217 #define GL_MAX_COMPUTE_WORK_GROUP_SIZE    0x91BF
  2218 #define GL_COMPUTE_WORK_GROUP_SIZE        0x8267
  2219 #define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
  2220 #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
  2221 #define GL_DISPATCH_INDIRECT_BUFFER       0x90EE
  2222 #define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
  2223 #define GL_DEBUG_OUTPUT_SYNCHRONOUS       0x8242
  2224 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
  2225 #define GL_DEBUG_CALLBACK_FUNCTION        0x8244
  2226 #define GL_DEBUG_CALLBACK_USER_PARAM      0x8245
  2227 #define GL_DEBUG_SOURCE_API               0x8246
  2228 #define GL_DEBUG_SOURCE_WINDOW_SYSTEM     0x8247
  2229 #define GL_DEBUG_SOURCE_SHADER_COMPILER   0x8248
  2230 #define GL_DEBUG_SOURCE_THIRD_PARTY       0x8249
  2231 #define GL_DEBUG_SOURCE_APPLICATION       0x824A
  2232 #define GL_DEBUG_SOURCE_OTHER             0x824B
  2233 #define GL_DEBUG_TYPE_ERROR               0x824C
  2234 #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
  2235 #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR  0x824E
  2236 #define GL_DEBUG_TYPE_PORTABILITY         0x824F
  2237 #define GL_DEBUG_TYPE_PERFORMANCE         0x8250
  2238 #define GL_DEBUG_TYPE_OTHER               0x8251
  2239 #define GL_MAX_DEBUG_MESSAGE_LENGTH       0x9143
  2240 #define GL_MAX_DEBUG_LOGGED_MESSAGES      0x9144
  2241 #define GL_DEBUG_LOGGED_MESSAGES          0x9145
  2242 #define GL_DEBUG_SEVERITY_HIGH            0x9146
  2243 #define GL_DEBUG_SEVERITY_MEDIUM          0x9147
  2244 #define GL_DEBUG_SEVERITY_LOW             0x9148
  2245 #define GL_DEBUG_TYPE_MARKER              0x8268
  2246 #define GL_DEBUG_TYPE_PUSH_GROUP          0x8269
  2247 #define GL_DEBUG_TYPE_POP_GROUP           0x826A
  2248 #define GL_DEBUG_SEVERITY_NOTIFICATION    0x826B
  2249 #define GL_MAX_DEBUG_GROUP_STACK_DEPTH    0x826C
  2250 #define GL_DEBUG_GROUP_STACK_DEPTH        0x826D
  2251 #define GL_BUFFER                         0x82E0
  2252 #define GL_SHADER                         0x82E1
  2253 #define GL_PROGRAM                        0x82E2
  2254 #define GL_QUERY                          0x82E3
  2255 #define GL_PROGRAM_PIPELINE               0x82E4
  2256 #define GL_SAMPLER                        0x82E6
  2257 #define GL_MAX_LABEL_LENGTH               0x82E8
  2258 #define GL_DEBUG_OUTPUT                   0x92E0
  2259 #define GL_CONTEXT_FLAG_DEBUG_BIT         0x00000002
  2260 #define GL_MAX_UNIFORM_LOCATIONS          0x826E
  2261 #define GL_FRAMEBUFFER_DEFAULT_WIDTH      0x9310
  2262 #define GL_FRAMEBUFFER_DEFAULT_HEIGHT     0x9311
  2263 #define GL_FRAMEBUFFER_DEFAULT_LAYERS     0x9312
  2264 #define GL_FRAMEBUFFER_DEFAULT_SAMPLES    0x9313
  2265 #define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
  2266 #define GL_MAX_FRAMEBUFFER_WIDTH          0x9315
  2267 #define GL_MAX_FRAMEBUFFER_HEIGHT         0x9316
  2268 #define GL_MAX_FRAMEBUFFER_LAYERS         0x9317
  2269 #define GL_MAX_FRAMEBUFFER_SAMPLES        0x9318
  2270 #define GL_INTERNALFORMAT_SUPPORTED       0x826F
  2271 #define GL_INTERNALFORMAT_PREFERRED       0x8270
  2272 #define GL_INTERNALFORMAT_RED_SIZE        0x8271
  2273 #define GL_INTERNALFORMAT_GREEN_SIZE      0x8272
  2274 #define GL_INTERNALFORMAT_BLUE_SIZE       0x8273
  2275 #define GL_INTERNALFORMAT_ALPHA_SIZE      0x8274
  2276 #define GL_INTERNALFORMAT_DEPTH_SIZE      0x8275
  2277 #define GL_INTERNALFORMAT_STENCIL_SIZE    0x8276
  2278 #define GL_INTERNALFORMAT_SHARED_SIZE     0x8277
  2279 #define GL_INTERNALFORMAT_RED_TYPE        0x8278
  2280 #define GL_INTERNALFORMAT_GREEN_TYPE      0x8279
  2281 #define GL_INTERNALFORMAT_BLUE_TYPE       0x827A
  2282 #define GL_INTERNALFORMAT_ALPHA_TYPE      0x827B
  2283 #define GL_INTERNALFORMAT_DEPTH_TYPE      0x827C
  2284 #define GL_INTERNALFORMAT_STENCIL_TYPE    0x827D
  2285 #define GL_MAX_WIDTH                      0x827E
  2286 #define GL_MAX_HEIGHT                     0x827F
  2287 #define GL_MAX_DEPTH                      0x8280
  2288 #define GL_MAX_LAYERS                     0x8281
  2289 #define GL_MAX_COMBINED_DIMENSIONS        0x8282
  2290 #define GL_COLOR_COMPONENTS               0x8283
  2291 #define GL_DEPTH_COMPONENTS               0x8284
  2292 #define GL_STENCIL_COMPONENTS             0x8285
  2293 #define GL_COLOR_RENDERABLE               0x8286
  2294 #define GL_DEPTH_RENDERABLE               0x8287
  2295 #define GL_STENCIL_RENDERABLE             0x8288
  2296 #define GL_FRAMEBUFFER_RENDERABLE         0x8289
  2297 #define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
  2298 #define GL_FRAMEBUFFER_BLEND              0x828B
  2299 #define GL_READ_PIXELS                    0x828C
  2300 #define GL_READ_PIXELS_FORMAT             0x828D
  2301 #define GL_READ_PIXELS_TYPE               0x828E
  2302 #define GL_TEXTURE_IMAGE_FORMAT           0x828F
  2303 #define GL_TEXTURE_IMAGE_TYPE             0x8290
  2304 #define GL_GET_TEXTURE_IMAGE_FORMAT       0x8291
  2305 #define GL_GET_TEXTURE_IMAGE_TYPE         0x8292
  2306 #define GL_MIPMAP                         0x8293
  2307 #define GL_MANUAL_GENERATE_MIPMAP         0x8294
  2308 #define GL_AUTO_GENERATE_MIPMAP           0x8295
  2309 #define GL_COLOR_ENCODING                 0x8296
  2310 #define GL_SRGB_READ                      0x8297
  2311 #define GL_SRGB_WRITE                     0x8298
  2312 #define GL_FILTER                         0x829A
  2313 #define GL_VERTEX_TEXTURE                 0x829B
  2314 #define GL_TESS_CONTROL_TEXTURE           0x829C
  2315 #define GL_TESS_EVALUATION_TEXTURE        0x829D
  2316 #define GL_GEOMETRY_TEXTURE               0x829E
  2317 #define GL_FRAGMENT_TEXTURE               0x829F
  2318 #define GL_COMPUTE_TEXTURE                0x82A0
  2319 #define GL_TEXTURE_SHADOW                 0x82A1
  2320 #define GL_TEXTURE_GATHER                 0x82A2
  2321 #define GL_TEXTURE_GATHER_SHADOW          0x82A3
  2322 #define GL_SHADER_IMAGE_LOAD              0x82A4
  2323 #define GL_SHADER_IMAGE_STORE             0x82A5
  2324 #define GL_SHADER_IMAGE_ATOMIC            0x82A6
  2325 #define GL_IMAGE_TEXEL_SIZE               0x82A7
  2326 #define GL_IMAGE_COMPATIBILITY_CLASS      0x82A8
  2327 #define GL_IMAGE_PIXEL_FORMAT             0x82A9
  2328 #define GL_IMAGE_PIXEL_TYPE               0x82AA
  2329 #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
  2330 #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
  2331 #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
  2332 #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
  2333 #define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
  2334 #define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
  2335 #define GL_TEXTURE_COMPRESSED_BLOCK_SIZE  0x82B3
  2336 #define GL_CLEAR_BUFFER                   0x82B4
  2337 #define GL_TEXTURE_VIEW                   0x82B5
  2338 #define GL_VIEW_COMPATIBILITY_CLASS       0x82B6
  2339 #define GL_FULL_SUPPORT                   0x82B7
  2340 #define GL_CAVEAT_SUPPORT                 0x82B8
  2341 #define GL_IMAGE_CLASS_4_X_32             0x82B9
  2342 #define GL_IMAGE_CLASS_2_X_32             0x82BA
  2343 #define GL_IMAGE_CLASS_1_X_32             0x82BB
  2344 #define GL_IMAGE_CLASS_4_X_16             0x82BC
  2345 #define GL_IMAGE_CLASS_2_X_16             0x82BD
  2346 #define GL_IMAGE_CLASS_1_X_16             0x82BE
  2347 #define GL_IMAGE_CLASS_4_X_8              0x82BF
  2348 #define GL_IMAGE_CLASS_2_X_8              0x82C0
  2349 #define GL_IMAGE_CLASS_1_X_8              0x82C1
  2350 #define GL_IMAGE_CLASS_11_11_10           0x82C2
  2351 #define GL_IMAGE_CLASS_10_10_10_2         0x82C3
  2352 #define GL_VIEW_CLASS_128_BITS            0x82C4
  2353 #define GL_VIEW_CLASS_96_BITS             0x82C5
  2354 #define GL_VIEW_CLASS_64_BITS             0x82C6
  2355 #define GL_VIEW_CLASS_48_BITS             0x82C7
  2356 #define GL_VIEW_CLASS_32_BITS             0x82C8
  2357 #define GL_VIEW_CLASS_24_BITS             0x82C9
  2358 #define GL_VIEW_CLASS_16_BITS             0x82CA
  2359 #define GL_VIEW_CLASS_8_BITS              0x82CB
  2360 #define GL_VIEW_CLASS_S3TC_DXT1_RGB       0x82CC
  2361 #define GL_VIEW_CLASS_S3TC_DXT1_RGBA      0x82CD
  2362 #define GL_VIEW_CLASS_S3TC_DXT3_RGBA      0x82CE
  2363 #define GL_VIEW_CLASS_S3TC_DXT5_RGBA      0x82CF
  2364 #define GL_VIEW_CLASS_RGTC1_RED           0x82D0
  2365 #define GL_VIEW_CLASS_RGTC2_RG            0x82D1
  2366 #define GL_VIEW_CLASS_BPTC_UNORM          0x82D2
  2367 #define GL_VIEW_CLASS_BPTC_FLOAT          0x82D3
  2368 #define GL_UNIFORM                        0x92E1
  2369 #define GL_UNIFORM_BLOCK                  0x92E2
  2370 #define GL_PROGRAM_INPUT                  0x92E3
  2371 #define GL_PROGRAM_OUTPUT                 0x92E4
  2372 #define GL_BUFFER_VARIABLE                0x92E5
  2373 #define GL_SHADER_STORAGE_BLOCK           0x92E6
  2374 #define GL_VERTEX_SUBROUTINE              0x92E8
  2375 #define GL_TESS_CONTROL_SUBROUTINE        0x92E9
  2376 #define GL_TESS_EVALUATION_SUBROUTINE     0x92EA
  2377 #define GL_GEOMETRY_SUBROUTINE            0x92EB
  2378 #define GL_FRAGMENT_SUBROUTINE            0x92EC
  2379 #define GL_COMPUTE_SUBROUTINE             0x92ED
  2380 #define GL_VERTEX_SUBROUTINE_UNIFORM      0x92EE
  2381 #define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
  2382 #define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
  2383 #define GL_GEOMETRY_SUBROUTINE_UNIFORM    0x92F1
  2384 #define GL_FRAGMENT_SUBROUTINE_UNIFORM    0x92F2
  2385 #define GL_COMPUTE_SUBROUTINE_UNIFORM     0x92F3
  2386 #define GL_TRANSFORM_FEEDBACK_VARYING     0x92F4
  2387 #define GL_ACTIVE_RESOURCES               0x92F5
  2388 #define GL_MAX_NAME_LENGTH                0x92F6
  2389 #define GL_MAX_NUM_ACTIVE_VARIABLES       0x92F7
  2390 #define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
  2391 #define GL_NAME_LENGTH                    0x92F9
  2392 #define GL_TYPE                           0x92FA
  2393 #define GL_ARRAY_SIZE                     0x92FB
  2394 #define GL_OFFSET                         0x92FC
  2395 #define GL_BLOCK_INDEX                    0x92FD
  2396 #define GL_ARRAY_STRIDE                   0x92FE
  2397 #define GL_MATRIX_STRIDE                  0x92FF
  2398 #define GL_IS_ROW_MAJOR                   0x9300
  2399 #define GL_ATOMIC_COUNTER_BUFFER_INDEX    0x9301
  2400 #define GL_BUFFER_BINDING                 0x9302
  2401 #define GL_BUFFER_DATA_SIZE               0x9303
  2402 #define GL_NUM_ACTIVE_VARIABLES           0x9304
  2403 #define GL_ACTIVE_VARIABLES               0x9305
  2404 #define GL_REFERENCED_BY_VERTEX_SHADER    0x9306
  2405 #define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
  2406 #define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
  2407 #define GL_REFERENCED_BY_GEOMETRY_SHADER  0x9309
  2408 #define GL_REFERENCED_BY_FRAGMENT_SHADER  0x930A
  2409 #define GL_REFERENCED_BY_COMPUTE_SHADER   0x930B
  2410 #define GL_TOP_LEVEL_ARRAY_SIZE           0x930C
  2411 #define GL_TOP_LEVEL_ARRAY_STRIDE         0x930D
  2412 #define GL_LOCATION                       0x930E
  2413 #define GL_LOCATION_INDEX                 0x930F
  2414 #define GL_IS_PER_PATCH                   0x92E7
  2415 #define GL_SHADER_STORAGE_BUFFER          0x90D2
  2416 #define GL_SHADER_STORAGE_BUFFER_BINDING  0x90D3
  2417 #define GL_SHADER_STORAGE_BUFFER_START    0x90D4
  2418 #define GL_SHADER_STORAGE_BUFFER_SIZE     0x90D5
  2419 #define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
  2420 #define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
  2421 #define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
  2422 #define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
  2423 #define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
  2424 #define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
  2425 #define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
  2426 #define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
  2427 #define GL_MAX_SHADER_STORAGE_BLOCK_SIZE  0x90DE
  2428 #define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
  2429 #define GL_SHADER_STORAGE_BARRIER_BIT     0x00002000
  2430 #define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8F39
  2431 #define GL_DEPTH_STENCIL_TEXTURE_MODE     0x90EA
  2432 #define GL_TEXTURE_BUFFER_OFFSET          0x919D
  2433 #define GL_TEXTURE_BUFFER_SIZE            0x919E
  2434 #define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
  2435 #define GL_TEXTURE_VIEW_MIN_LEVEL         0x82DB
  2436 #define GL_TEXTURE_VIEW_NUM_LEVELS        0x82DC
  2437 #define GL_TEXTURE_VIEW_MIN_LAYER         0x82DD
  2438 #define GL_TEXTURE_VIEW_NUM_LAYERS        0x82DE
  2439 #define GL_TEXTURE_IMMUTABLE_LEVELS       0x82DF
  2440 #define GL_VERTEX_ATTRIB_BINDING          0x82D4
  2441 #define GL_VERTEX_ATTRIB_RELATIVE_OFFSET  0x82D5
  2442 #define GL_VERTEX_BINDING_DIVISOR         0x82D6
  2443 #define GL_VERTEX_BINDING_OFFSET          0x82D7
  2444 #define GL_VERTEX_BINDING_STRIDE          0x82D8
  2445 #define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
  2446 #define GL_MAX_VERTEX_ATTRIB_BINDINGS     0x82DA
  2447 #define GL_VERTEX_BINDING_BUFFER          0x8F4F
  2448 #define GL_DISPLAY_LIST                   0x82E7
  2449 typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
  2450 typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
  2451 typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
  2452 typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
  2453 typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
  2454 typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
  2455 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  2456 typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
  2457 typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
  2458 typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
  2459 typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
  2460 typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
  2461 typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  2462 typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
  2463 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
  2464 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
  2465 typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
  2466 typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
  2467 typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
  2468 typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
  2469 typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
  2470 typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
  2471 typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
  2472 typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  2473 typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  2474 typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  2475 typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
  2476 typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
  2477 typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
  2478 typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  2479 typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  2480 typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
  2481 typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
  2482 typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  2483 typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  2484 typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
  2485 typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  2486 typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
  2487 typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
  2488 typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
  2489 typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
  2490 typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
  2491 typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
  2492 #ifdef GL_GLEXT_PROTOTYPES
  2493 GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
  2494 GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
  2495 GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
  2496 GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect);
  2497 GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
  2498 GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param);
  2499 GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params);
  2500 GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
  2501 GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
  2502 GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level);
  2503 GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length);
  2504 GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer);
  2505 GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  2506 GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
  2507 GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
  2508 GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
  2509 GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
  2510 GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name);
  2511 GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
  2512 GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
  2513 GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name);
  2514 GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name);
  2515 GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
  2516 GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  2517 GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  2518 GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  2519 GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
  2520 GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
  2521 GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
  2522 GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  2523 GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  2524 GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex);
  2525 GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor);
  2526 GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  2527 GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  2528 GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
  2529 GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  2530 GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
  2531 GLAPI void APIENTRY glPopDebugGroup (void);
  2532 GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
  2533 GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
  2534 GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
  2535 GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
  2536 #endif
  2537 #endif /* GL_VERSION_4_3 */
  2538 
  2539 #ifndef GL_VERSION_4_4
  2540 #define GL_VERSION_4_4 1
  2541 #define GL_MAX_VERTEX_ATTRIB_STRIDE       0x82E5
  2542 #define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
  2543 #define GL_TEXTURE_BUFFER_BINDING         0x8C2A
  2544 #define GL_MAP_PERSISTENT_BIT             0x0040
  2545 #define GL_MAP_COHERENT_BIT               0x0080
  2546 #define GL_DYNAMIC_STORAGE_BIT            0x0100
  2547 #define GL_CLIENT_STORAGE_BIT             0x0200
  2548 #define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x00004000
  2549 #define GL_BUFFER_IMMUTABLE_STORAGE       0x821F
  2550 #define GL_BUFFER_STORAGE_FLAGS           0x8220
  2551 #define GL_CLEAR_TEXTURE                  0x9365
  2552 #define GL_LOCATION_COMPONENT             0x934A
  2553 #define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934B
  2554 #define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934C
  2555 #define GL_QUERY_BUFFER                   0x9192
  2556 #define GL_QUERY_BUFFER_BARRIER_BIT       0x00008000
  2557 #define GL_QUERY_BUFFER_BINDING           0x9193
  2558 #define GL_QUERY_RESULT_NO_WAIT           0x9194
  2559 #define GL_MIRROR_CLAMP_TO_EDGE           0x8743
  2560 typedef void (APIENTRYP PFNGLBUFFERSTORAGEPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
  2561 typedef void (APIENTRYP PFNGLCLEARTEXIMAGEPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
  2562 typedef void (APIENTRYP PFNGLCLEARTEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
  2563 typedef void (APIENTRYP PFNGLBINDBUFFERSBASEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
  2564 typedef void (APIENTRYP PFNGLBINDBUFFERSRANGEPROC) (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
  2565 typedef void (APIENTRYP PFNGLBINDTEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
  2566 typedef void (APIENTRYP PFNGLBINDSAMPLERSPROC) (GLuint first, GLsizei count, const GLuint *samplers);
  2567 typedef void (APIENTRYP PFNGLBINDIMAGETEXTURESPROC) (GLuint first, GLsizei count, const GLuint *textures);
  2568 typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERSPROC) (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
  2569 #ifdef GL_GLEXT_PROTOTYPES
  2570 GLAPI void APIENTRY glBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
  2571 GLAPI void APIENTRY glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
  2572 GLAPI void APIENTRY glClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
  2573 GLAPI void APIENTRY glBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers);
  2574 GLAPI void APIENTRY glBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes);
  2575 GLAPI void APIENTRY glBindTextures (GLuint first, GLsizei count, const GLuint *textures);
  2576 GLAPI void APIENTRY glBindSamplers (GLuint first, GLsizei count, const GLuint *samplers);
  2577 GLAPI void APIENTRY glBindImageTextures (GLuint first, GLsizei count, const GLuint *textures);
  2578 GLAPI void APIENTRY glBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides);
  2579 #endif
  2580 #endif /* GL_VERSION_4_4 */
  2581 
  2582 #ifndef GL_ARB_ES2_compatibility
  2583 #define GL_ARB_ES2_compatibility 1
  2584 #endif /* GL_ARB_ES2_compatibility */
  2585 
  2586 #ifndef GL_ARB_ES3_compatibility
  2587 #define GL_ARB_ES3_compatibility 1
  2588 #endif /* GL_ARB_ES3_compatibility */
  2589 
  2590 #ifndef GL_ARB_arrays_of_arrays
  2591 #define GL_ARB_arrays_of_arrays 1
  2592 #endif /* GL_ARB_arrays_of_arrays */
  2593 
  2594 #ifndef GL_ARB_base_instance
  2595 #define GL_ARB_base_instance 1
  2596 #endif /* GL_ARB_base_instance */
  2597 
  2598 #ifndef GL_ARB_bindless_texture
  2599 #define GL_ARB_bindless_texture 1
  2600 typedef uint64_t GLuint64EXT;
  2601 #define GL_UNSIGNED_INT64_ARB             0x140F
  2602 typedef GLuint64 (APIENTRYP PFNGLGETTEXTUREHANDLEARBPROC) (GLuint texture);
  2603 typedef GLuint64 (APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEARBPROC) (GLuint texture, GLuint sampler);
  2604 typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
  2605 typedef void (APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC) (GLuint64 handle);
  2606 typedef GLuint64 (APIENTRYP PFNGLGETIMAGEHANDLEARBPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
  2607 typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access);
  2608 typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC) (GLuint64 handle);
  2609 typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64ARBPROC) (GLint location, GLuint64 value);
  2610 typedef void (APIENTRYP PFNGLUNIFORMHANDLEUI64VARBPROC) (GLint location, GLsizei count, const GLuint64 *value);
  2611 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC) (GLuint program, GLint location, GLuint64 value);
  2612 typedef void (APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
  2613 typedef GLboolean (APIENTRYP PFNGLISTEXTUREHANDLERESIDENTARBPROC) (GLuint64 handle);
  2614 typedef GLboolean (APIENTRYP PFNGLISIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle);
  2615 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64ARBPROC) (GLuint index, GLuint64EXT x);
  2616 typedef void (APIENTRYP PFNGLVERTEXATTRIBL1UI64VARBPROC) (GLuint index, const GLuint64EXT *v);
  2617 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLUI64VARBPROC) (GLuint index, GLenum pname, GLuint64EXT *params);
  2618 #ifdef GL_GLEXT_PROTOTYPES
  2619 GLAPI GLuint64 APIENTRY glGetTextureHandleARB (GLuint texture);
  2620 GLAPI GLuint64 APIENTRY glGetTextureSamplerHandleARB (GLuint texture, GLuint sampler);
  2621 GLAPI void APIENTRY glMakeTextureHandleResidentARB (GLuint64 handle);
  2622 GLAPI void APIENTRY glMakeTextureHandleNonResidentARB (GLuint64 handle);
  2623 GLAPI GLuint64 APIENTRY glGetImageHandleARB (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
  2624 GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access);
  2625 GLAPI void APIENTRY glMakeImageHandleNonResidentARB (GLuint64 handle);
  2626 GLAPI void APIENTRY glUniformHandleui64ARB (GLint location, GLuint64 value);
  2627 GLAPI void APIENTRY glUniformHandleui64vARB (GLint location, GLsizei count, const GLuint64 *value);
  2628 GLAPI void APIENTRY glProgramUniformHandleui64ARB (GLuint program, GLint location, GLuint64 value);
  2629 GLAPI void APIENTRY glProgramUniformHandleui64vARB (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
  2630 GLAPI GLboolean APIENTRY glIsTextureHandleResidentARB (GLuint64 handle);
  2631 GLAPI GLboolean APIENTRY glIsImageHandleResidentARB (GLuint64 handle);
  2632 GLAPI void APIENTRY glVertexAttribL1ui64ARB (GLuint index, GLuint64EXT x);
  2633 GLAPI void APIENTRY glVertexAttribL1ui64vARB (GLuint index, const GLuint64EXT *v);
  2634 GLAPI void APIENTRY glGetVertexAttribLui64vARB (GLuint index, GLenum pname, GLuint64EXT *params);
  2635 #endif
  2636 #endif /* GL_ARB_bindless_texture */
  2637 
  2638 #ifndef GL_ARB_blend_func_extended
  2639 #define GL_ARB_blend_func_extended 1
  2640 #endif /* GL_ARB_blend_func_extended */
  2641 
  2642 #ifndef GL_ARB_buffer_storage
  2643 #define GL_ARB_buffer_storage 1
  2644 #endif /* GL_ARB_buffer_storage */
  2645 
  2646 #ifndef GL_ARB_cl_event
  2647 #define GL_ARB_cl_event 1
  2648 struct _cl_context;
  2649 struct _cl_event;
  2650 #define GL_SYNC_CL_EVENT_ARB              0x8240
  2651 #define GL_SYNC_CL_EVENT_COMPLETE_ARB     0x8241
  2652 typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
  2653 #ifdef GL_GLEXT_PROTOTYPES
  2654 GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context *context, struct _cl_event *event, GLbitfield flags);
  2655 #endif
  2656 #endif /* GL_ARB_cl_event */
  2657 
  2658 #ifndef GL_ARB_clear_buffer_object
  2659 #define GL_ARB_clear_buffer_object 1
  2660 #endif /* GL_ARB_clear_buffer_object */
  2661 
  2662 #ifndef GL_ARB_clear_texture
  2663 #define GL_ARB_clear_texture 1
  2664 #endif /* GL_ARB_clear_texture */
  2665 
  2666 #ifndef GL_ARB_color_buffer_float
  2667 #define GL_ARB_color_buffer_float 1
  2668 #define GL_RGBA_FLOAT_MODE_ARB            0x8820
  2669 #define GL_CLAMP_VERTEX_COLOR_ARB         0x891A
  2670 #define GL_CLAMP_FRAGMENT_COLOR_ARB       0x891B
  2671 #define GL_CLAMP_READ_COLOR_ARB           0x891C
  2672 #define GL_FIXED_ONLY_ARB                 0x891D
  2673 typedef void (APIENTRYP PFNGLCLAMPCOLORARBPROC) (GLenum target, GLenum clamp);
  2674 #ifdef GL_GLEXT_PROTOTYPES
  2675 GLAPI void APIENTRY glClampColorARB (GLenum target, GLenum clamp);
  2676 #endif
  2677 #endif /* GL_ARB_color_buffer_float */
  2678 
  2679 #ifndef GL_ARB_compatibility
  2680 #define GL_ARB_compatibility 1
  2681 #endif /* GL_ARB_compatibility */
  2682 
  2683 #ifndef GL_ARB_compressed_texture_pixel_storage
  2684 #define GL_ARB_compressed_texture_pixel_storage 1
  2685 #endif /* GL_ARB_compressed_texture_pixel_storage */
  2686 
  2687 #ifndef GL_ARB_compute_shader
  2688 #define GL_ARB_compute_shader 1
  2689 #define GL_COMPUTE_SHADER_BIT             0x00000020
  2690 #endif /* GL_ARB_compute_shader */
  2691 
  2692 #ifndef GL_ARB_compute_variable_group_size
  2693 #define GL_ARB_compute_variable_group_size 1
  2694 #define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344
  2695 #define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90EB
  2696 #define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345
  2697 #define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91BF
  2698 typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
  2699 #ifdef GL_GLEXT_PROTOTYPES
  2700 GLAPI void APIENTRY glDispatchComputeGroupSizeARB (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z, GLuint group_size_x, GLuint group_size_y, GLuint group_size_z);
  2701 #endif
  2702 #endif /* GL_ARB_compute_variable_group_size */
  2703 
  2704 #ifndef GL_ARB_conservative_depth
  2705 #define GL_ARB_conservative_depth 1
  2706 #endif /* GL_ARB_conservative_depth */
  2707 
  2708 #ifndef GL_ARB_copy_buffer
  2709 #define GL_ARB_copy_buffer 1
  2710 #define GL_COPY_READ_BUFFER_BINDING       0x8F36
  2711 #define GL_COPY_WRITE_BUFFER_BINDING      0x8F37
  2712 #endif /* GL_ARB_copy_buffer */
  2713 
  2714 #ifndef GL_ARB_copy_image
  2715 #define GL_ARB_copy_image 1
  2716 #endif /* GL_ARB_copy_image */
  2717 
  2718 #ifndef GL_ARB_debug_output
  2719 #define GL_ARB_debug_output 1
  2720 typedef void (APIENTRY  *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
  2721 #define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB   0x8242
  2722 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
  2723 #define GL_DEBUG_CALLBACK_FUNCTION_ARB    0x8244
  2724 #define GL_DEBUG_CALLBACK_USER_PARAM_ARB  0x8245
  2725 #define GL_DEBUG_SOURCE_API_ARB           0x8246
  2726 #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
  2727 #define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
  2728 #define GL_DEBUG_SOURCE_THIRD_PARTY_ARB   0x8249
  2729 #define GL_DEBUG_SOURCE_APPLICATION_ARB   0x824A
  2730 #define GL_DEBUG_SOURCE_OTHER_ARB         0x824B
  2731 #define GL_DEBUG_TYPE_ERROR_ARB           0x824C
  2732 #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
  2733 #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
  2734 #define GL_DEBUG_TYPE_PORTABILITY_ARB     0x824F
  2735 #define GL_DEBUG_TYPE_PERFORMANCE_ARB     0x8250
  2736 #define GL_DEBUG_TYPE_OTHER_ARB           0x8251
  2737 #define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB   0x9143
  2738 #define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB  0x9144
  2739 #define GL_DEBUG_LOGGED_MESSAGES_ARB      0x9145
  2740 #define GL_DEBUG_SEVERITY_HIGH_ARB        0x9146
  2741 #define GL_DEBUG_SEVERITY_MEDIUM_ARB      0x9147
  2742 #define GL_DEBUG_SEVERITY_LOW_ARB         0x9148
  2743 typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  2744 typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  2745 typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam);
  2746 typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  2747 #ifdef GL_GLEXT_PROTOTYPES
  2748 GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  2749 GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  2750 GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const void *userParam);
  2751 GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  2752 #endif
  2753 #endif /* GL_ARB_debug_output */
  2754 
  2755 #ifndef GL_ARB_depth_buffer_float
  2756 #define GL_ARB_depth_buffer_float 1
  2757 #endif /* GL_ARB_depth_buffer_float */
  2758 
  2759 #ifndef GL_ARB_depth_clamp
  2760 #define GL_ARB_depth_clamp 1
  2761 #endif /* GL_ARB_depth_clamp */
  2762 
  2763 #ifndef GL_ARB_depth_texture
  2764 #define GL_ARB_depth_texture 1
  2765 #define GL_DEPTH_COMPONENT16_ARB          0x81A5
  2766 #define GL_DEPTH_COMPONENT24_ARB          0x81A6
  2767 #define GL_DEPTH_COMPONENT32_ARB          0x81A7
  2768 #define GL_TEXTURE_DEPTH_SIZE_ARB         0x884A
  2769 #define GL_DEPTH_TEXTURE_MODE_ARB         0x884B
  2770 #endif /* GL_ARB_depth_texture */
  2771 
  2772 #ifndef GL_ARB_draw_buffers
  2773 #define GL_ARB_draw_buffers 1
  2774 #define GL_MAX_DRAW_BUFFERS_ARB           0x8824
  2775 #define GL_DRAW_BUFFER0_ARB               0x8825
  2776 #define GL_DRAW_BUFFER1_ARB               0x8826
  2777 #define GL_DRAW_BUFFER2_ARB               0x8827
  2778 #define GL_DRAW_BUFFER3_ARB               0x8828
  2779 #define GL_DRAW_BUFFER4_ARB               0x8829
  2780 #define GL_DRAW_BUFFER5_ARB               0x882A
  2781 #define GL_DRAW_BUFFER6_ARB               0x882B
  2782 #define GL_DRAW_BUFFER7_ARB               0x882C
  2783 #define GL_DRAW_BUFFER8_ARB               0x882D
  2784 #define GL_DRAW_BUFFER9_ARB               0x882E
  2785 #define GL_DRAW_BUFFER10_ARB              0x882F
  2786 #define GL_DRAW_BUFFER11_ARB              0x8830
  2787 #define GL_DRAW_BUFFER12_ARB              0x8831
  2788 #define GL_DRAW_BUFFER13_ARB              0x8832
  2789 #define GL_DRAW_BUFFER14_ARB              0x8833
  2790 #define GL_DRAW_BUFFER15_ARB              0x8834
  2791 typedef void (APIENTRYP PFNGLDRAWBUFFERSARBPROC) (GLsizei n, const GLenum *bufs);
  2792 #ifdef GL_GLEXT_PROTOTYPES
  2793 GLAPI void APIENTRY glDrawBuffersARB (GLsizei n, const GLenum *bufs);
  2794 #endif
  2795 #endif /* GL_ARB_draw_buffers */
  2796 
  2797 #ifndef GL_ARB_draw_buffers_blend
  2798 #define GL_ARB_draw_buffers_blend 1
  2799 typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
  2800 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  2801 typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
  2802 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  2803 #ifdef GL_GLEXT_PROTOTYPES
  2804 GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode);
  2805 GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  2806 GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst);
  2807 GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  2808 #endif
  2809 #endif /* GL_ARB_draw_buffers_blend */
  2810 
  2811 #ifndef GL_ARB_draw_elements_base_vertex
  2812 #define GL_ARB_draw_elements_base_vertex 1
  2813 #endif /* GL_ARB_draw_elements_base_vertex */
  2814 
  2815 #ifndef GL_ARB_draw_indirect
  2816 #define GL_ARB_draw_indirect 1
  2817 #endif /* GL_ARB_draw_indirect */
  2818 
  2819 #ifndef GL_ARB_draw_instanced
  2820 #define GL_ARB_draw_instanced 1
  2821 typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDARBPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  2822 typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDARBPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  2823 #ifdef GL_GLEXT_PROTOTYPES
  2824 GLAPI void APIENTRY glDrawArraysInstancedARB (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  2825 GLAPI void APIENTRY glDrawElementsInstancedARB (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  2826 #endif
  2827 #endif /* GL_ARB_draw_instanced */
  2828 
  2829 #ifndef GL_ARB_enhanced_layouts
  2830 #define GL_ARB_enhanced_layouts 1
  2831 #endif /* GL_ARB_enhanced_layouts */
  2832 
  2833 #ifndef GL_ARB_explicit_attrib_location
  2834 #define GL_ARB_explicit_attrib_location 1
  2835 #endif /* GL_ARB_explicit_attrib_location */
  2836 
  2837 #ifndef GL_ARB_explicit_uniform_location
  2838 #define GL_ARB_explicit_uniform_location 1
  2839 #endif /* GL_ARB_explicit_uniform_location */
  2840 
  2841 #ifndef GL_ARB_fragment_coord_conventions
  2842 #define GL_ARB_fragment_coord_conventions 1
  2843 #endif /* GL_ARB_fragment_coord_conventions */
  2844 
  2845 #ifndef GL_ARB_fragment_layer_viewport
  2846 #define GL_ARB_fragment_layer_viewport 1
  2847 #endif /* GL_ARB_fragment_layer_viewport */
  2848 
  2849 #ifndef GL_ARB_fragment_program
  2850 #define GL_ARB_fragment_program 1
  2851 #define GL_FRAGMENT_PROGRAM_ARB           0x8804
  2852 #define GL_PROGRAM_FORMAT_ASCII_ARB       0x8875
  2853 #define GL_PROGRAM_LENGTH_ARB             0x8627
  2854 #define GL_PROGRAM_FORMAT_ARB             0x8876
  2855 #define GL_PROGRAM_BINDING_ARB            0x8677
  2856 #define GL_PROGRAM_INSTRUCTIONS_ARB       0x88A0
  2857 #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB   0x88A1
  2858 #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
  2859 #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
  2860 #define GL_PROGRAM_TEMPORARIES_ARB        0x88A4
  2861 #define GL_MAX_PROGRAM_TEMPORARIES_ARB    0x88A5
  2862 #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
  2863 #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
  2864 #define GL_PROGRAM_PARAMETERS_ARB         0x88A8
  2865 #define GL_MAX_PROGRAM_PARAMETERS_ARB     0x88A9
  2866 #define GL_PROGRAM_NATIVE_PARAMETERS_ARB  0x88AA
  2867 #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
  2868 #define GL_PROGRAM_ATTRIBS_ARB            0x88AC
  2869 #define GL_MAX_PROGRAM_ATTRIBS_ARB        0x88AD
  2870 #define GL_PROGRAM_NATIVE_ATTRIBS_ARB     0x88AE
  2871 #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
  2872 #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
  2873 #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
  2874 #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
  2875 #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB   0x8805
  2876 #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB   0x8806
  2877 #define GL_PROGRAM_TEX_INDIRECTIONS_ARB   0x8807
  2878 #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
  2879 #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
  2880 #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
  2881 #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
  2882 #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
  2883 #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
  2884 #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
  2885 #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
  2886 #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
  2887 #define GL_PROGRAM_STRING_ARB             0x8628
  2888 #define GL_PROGRAM_ERROR_POSITION_ARB     0x864B
  2889 #define GL_CURRENT_MATRIX_ARB             0x8641
  2890 #define GL_TRANSPOSE_CURRENT_MATRIX_ARB   0x88B7
  2891 #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
  2892 #define GL_MAX_PROGRAM_MATRICES_ARB       0x862F
  2893 #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
  2894 #define GL_MAX_TEXTURE_COORDS_ARB         0x8871
  2895 #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB    0x8872
  2896 #define GL_PROGRAM_ERROR_STRING_ARB       0x8874
  2897 #define GL_MATRIX0_ARB                    0x88C0
  2898 #define GL_MATRIX1_ARB                    0x88C1
  2899 #define GL_MATRIX2_ARB                    0x88C2
  2900 #define GL_MATRIX3_ARB                    0x88C3
  2901 #define GL_MATRIX4_ARB                    0x88C4
  2902 #define GL_MATRIX5_ARB                    0x88C5
  2903 #define GL_MATRIX6_ARB                    0x88C6
  2904 #define GL_MATRIX7_ARB                    0x88C7
  2905 #define GL_MATRIX8_ARB                    0x88C8
  2906 #define GL_MATRIX9_ARB                    0x88C9
  2907 #define GL_MATRIX10_ARB                   0x88CA
  2908 #define GL_MATRIX11_ARB                   0x88CB
  2909 #define GL_MATRIX12_ARB                   0x88CC
  2910 #define GL_MATRIX13_ARB                   0x88CD
  2911 #define GL_MATRIX14_ARB                   0x88CE
  2912 #define GL_MATRIX15_ARB                   0x88CF
  2913 #define GL_MATRIX16_ARB                   0x88D0
  2914 #define GL_MATRIX17_ARB                   0x88D1
  2915 #define GL_MATRIX18_ARB                   0x88D2
  2916 #define GL_MATRIX19_ARB                   0x88D3
  2917 #define GL_MATRIX20_ARB                   0x88D4
  2918 #define GL_MATRIX21_ARB                   0x88D5
  2919 #define GL_MATRIX22_ARB                   0x88D6
  2920 #define GL_MATRIX23_ARB                   0x88D7
  2921 #define GL_MATRIX24_ARB                   0x88D8
  2922 #define GL_MATRIX25_ARB                   0x88D9
  2923 #define GL_MATRIX26_ARB                   0x88DA
  2924 #define GL_MATRIX27_ARB                   0x88DB
  2925 #define GL_MATRIX28_ARB                   0x88DC
  2926 #define GL_MATRIX29_ARB                   0x88DD
  2927 #define GL_MATRIX30_ARB                   0x88DE
  2928 #define GL_MATRIX31_ARB                   0x88DF
  2929 typedef void (APIENTRYP PFNGLPROGRAMSTRINGARBPROC) (GLenum target, GLenum format, GLsizei len, const void *string);
  2930 typedef void (APIENTRYP PFNGLBINDPROGRAMARBPROC) (GLenum target, GLuint program);
  2931 typedef void (APIENTRYP PFNGLDELETEPROGRAMSARBPROC) (GLsizei n, const GLuint *programs);
  2932 typedef void (APIENTRYP PFNGLGENPROGRAMSARBPROC) (GLsizei n, GLuint *programs);
  2933 typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  2934 typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
  2935 typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  2936 typedef void (APIENTRYP PFNGLPROGRAMENVPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
  2937 typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DARBPROC) (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  2938 typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4DVARBPROC) (GLenum target, GLuint index, const GLdouble *params);
  2939 typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  2940 typedef void (APIENTRYP PFNGLPROGRAMLOCALPARAMETER4FVARBPROC) (GLenum target, GLuint index, const GLfloat *params);
  2941 typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
  2942 typedef void (APIENTRYP PFNGLGETPROGRAMENVPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
  2943 typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC) (GLenum target, GLuint index, GLdouble *params);
  2944 typedef void (APIENTRYP PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC) (GLenum target, GLuint index, GLfloat *params);
  2945 typedef void (APIENTRYP PFNGLGETPROGRAMIVARBPROC) (GLenum target, GLenum pname, GLint *params);
  2946 typedef void (APIENTRYP PFNGLGETPROGRAMSTRINGARBPROC) (GLenum target, GLenum pname, void *string);
  2947 typedef GLboolean (APIENTRYP PFNGLISPROGRAMARBPROC) (GLuint program);
  2948 #ifdef GL_GLEXT_PROTOTYPES
  2949 GLAPI void APIENTRY glProgramStringARB (GLenum target, GLenum format, GLsizei len, const void *string);
  2950 GLAPI void APIENTRY glBindProgramARB (GLenum target, GLuint program);
  2951 GLAPI void APIENTRY glDeleteProgramsARB (GLsizei n, const GLuint *programs);
  2952 GLAPI void APIENTRY glGenProgramsARB (GLsizei n, GLuint *programs);
  2953 GLAPI void APIENTRY glProgramEnvParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  2954 GLAPI void APIENTRY glProgramEnvParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
  2955 GLAPI void APIENTRY glProgramEnvParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  2956 GLAPI void APIENTRY glProgramEnvParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
  2957 GLAPI void APIENTRY glProgramLocalParameter4dARB (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  2958 GLAPI void APIENTRY glProgramLocalParameter4dvARB (GLenum target, GLuint index, const GLdouble *params);
  2959 GLAPI void APIENTRY glProgramLocalParameter4fARB (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  2960 GLAPI void APIENTRY glProgramLocalParameter4fvARB (GLenum target, GLuint index, const GLfloat *params);
  2961 GLAPI void APIENTRY glGetProgramEnvParameterdvARB (GLenum target, GLuint index, GLdouble *params);
  2962 GLAPI void APIENTRY glGetProgramEnvParameterfvARB (GLenum target, GLuint index, GLfloat *params);
  2963 GLAPI void APIENTRY glGetProgramLocalParameterdvARB (GLenum target, GLuint index, GLdouble *params);
  2964 GLAPI void APIENTRY glGetProgramLocalParameterfvARB (GLenum target, GLuint index, GLfloat *params);
  2965 GLAPI void APIENTRY glGetProgramivARB (GLenum target, GLenum pname, GLint *params);
  2966 GLAPI void APIENTRY glGetProgramStringARB (GLenum target, GLenum pname, void *string);
  2967 GLAPI GLboolean APIENTRY glIsProgramARB (GLuint program);
  2968 #endif
  2969 #endif /* GL_ARB_fragment_program */
  2970 
  2971 #ifndef GL_ARB_fragment_program_shadow
  2972 #define GL_ARB_fragment_program_shadow 1
  2973 #endif /* GL_ARB_fragment_program_shadow */
  2974 
  2975 #ifndef GL_ARB_fragment_shader
  2976 #define GL_ARB_fragment_shader 1
  2977 #define GL_FRAGMENT_SHADER_ARB            0x8B30
  2978 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
  2979 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
  2980 #endif /* GL_ARB_fragment_shader */
  2981 
  2982 #ifndef GL_ARB_framebuffer_no_attachments
  2983 #define GL_ARB_framebuffer_no_attachments 1
  2984 #endif /* GL_ARB_framebuffer_no_attachments */
  2985 
  2986 #ifndef GL_ARB_framebuffer_object
  2987 #define GL_ARB_framebuffer_object 1
  2988 #endif /* GL_ARB_framebuffer_object */
  2989 
  2990 #ifndef GL_ARB_framebuffer_sRGB
  2991 #define GL_ARB_framebuffer_sRGB 1
  2992 #endif /* GL_ARB_framebuffer_sRGB */
  2993 
  2994 #ifndef GL_KHR_context_flush_control
  2995 #define GL_CONTEXT_RELEASE_BEHAVIOR       0x82FB
  2996 #define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82FC
  2997 #endif /* GL_KHR_context_flush_control */
  2998 
  2999 #ifndef GL_ARB_geometry_shader4
  3000 #define GL_ARB_geometry_shader4 1
  3001 #define GL_LINES_ADJACENCY_ARB            0x000A
  3002 #define GL_LINE_STRIP_ADJACENCY_ARB       0x000B
  3003 #define GL_TRIANGLES_ADJACENCY_ARB        0x000C
  3004 #define GL_TRIANGLE_STRIP_ADJACENCY_ARB   0x000D
  3005 #define GL_PROGRAM_POINT_SIZE_ARB         0x8642
  3006 #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB 0x8C29
  3007 #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_ARB 0x8DA7
  3008 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB 0x8DA8
  3009 #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB 0x8DA9
  3010 #define GL_GEOMETRY_SHADER_ARB            0x8DD9
  3011 #define GL_GEOMETRY_VERTICES_OUT_ARB      0x8DDA
  3012 #define GL_GEOMETRY_INPUT_TYPE_ARB        0x8DDB
  3013 #define GL_GEOMETRY_OUTPUT_TYPE_ARB       0x8DDC
  3014 #define GL_MAX_GEOMETRY_VARYING_COMPONENTS_ARB 0x8DDD
  3015 #define GL_MAX_VERTEX_VARYING_COMPONENTS_ARB 0x8DDE
  3016 #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB 0x8DDF
  3017 #define GL_MAX_GEOMETRY_OUTPUT_VERTICES_ARB 0x8DE0
  3018 #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB 0x8DE1
  3019 typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIARBPROC) (GLuint program, GLenum pname, GLint value);
  3020 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
  3021 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  3022 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREFACEARBPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
  3023 #ifdef GL_GLEXT_PROTOTYPES
  3024 GLAPI void APIENTRY glProgramParameteriARB (GLuint program, GLenum pname, GLint value);
  3025 GLAPI void APIENTRY glFramebufferTextureARB (GLenum target, GLenum attachment, GLuint texture, GLint level);
  3026 GLAPI void APIENTRY glFramebufferTextureLayerARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  3027 GLAPI void APIENTRY glFramebufferTextureFaceARB (GLenum target, GLenum attachment, GLuint texture, GLint level, GLenum face);
  3028 #endif
  3029 #endif /* GL_ARB_geometry_shader4 */
  3030 
  3031 #ifndef GL_ARB_get_program_binary
  3032 #define GL_ARB_get_program_binary 1
  3033 #endif /* GL_ARB_get_program_binary */
  3034 
  3035 #ifndef GL_ARB_gpu_shader5
  3036 #define GL_ARB_gpu_shader5 1
  3037 #endif /* GL_ARB_gpu_shader5 */
  3038 
  3039 #ifndef GL_ARB_gpu_shader_fp64
  3040 #define GL_ARB_gpu_shader_fp64 1
  3041 #endif /* GL_ARB_gpu_shader_fp64 */
  3042 
  3043 #ifndef GL_ARB_half_float_pixel
  3044 #define GL_ARB_half_float_pixel 1
  3045 typedef unsigned short GLhalfARB;
  3046 #define GL_HALF_FLOAT_ARB                 0x140B
  3047 #endif /* GL_ARB_half_float_pixel */
  3048 
  3049 #ifndef GL_ARB_half_float_vertex
  3050 #define GL_ARB_half_float_vertex 1
  3051 #endif /* GL_ARB_half_float_vertex */
  3052 
  3053 #ifndef GL_ARB_imaging
  3054 #define GL_ARB_imaging 1
  3055 #define GL_BLEND_COLOR                    0x8005
  3056 #define GL_BLEND_EQUATION                 0x8009
  3057 #define GL_CONVOLUTION_1D                 0x8010
  3058 #define GL_CONVOLUTION_2D                 0x8011
  3059 #define GL_SEPARABLE_2D                   0x8012
  3060 #define GL_CONVOLUTION_BORDER_MODE        0x8013
  3061 #define GL_CONVOLUTION_FILTER_SCALE       0x8014
  3062 #define GL_CONVOLUTION_FILTER_BIAS        0x8015
  3063 #define GL_REDUCE                         0x8016
  3064 #define GL_CONVOLUTION_FORMAT             0x8017
  3065 #define GL_CONVOLUTION_WIDTH              0x8018
  3066 #define GL_CONVOLUTION_HEIGHT             0x8019
  3067 #define GL_MAX_CONVOLUTION_WIDTH          0x801A
  3068 #define GL_MAX_CONVOLUTION_HEIGHT         0x801B
  3069 #define GL_POST_CONVOLUTION_RED_SCALE     0x801C
  3070 #define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
  3071 #define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
  3072 #define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
  3073 #define GL_POST_CONVOLUTION_RED_BIAS      0x8020
  3074 #define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
  3075 #define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
  3076 #define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
  3077 #define GL_HISTOGRAM                      0x8024
  3078 #define GL_PROXY_HISTOGRAM                0x8025
  3079 #define GL_HISTOGRAM_WIDTH                0x8026
  3080 #define GL_HISTOGRAM_FORMAT               0x8027
  3081 #define GL_HISTOGRAM_RED_SIZE             0x8028
  3082 #define GL_HISTOGRAM_GREEN_SIZE           0x8029
  3083 #define GL_HISTOGRAM_BLUE_SIZE            0x802A
  3084 #define GL_HISTOGRAM_ALPHA_SIZE           0x802B
  3085 #define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
  3086 #define GL_HISTOGRAM_SINK                 0x802D
  3087 #define GL_MINMAX                         0x802E
  3088 #define GL_MINMAX_FORMAT                  0x802F
  3089 #define GL_MINMAX_SINK                    0x8030
  3090 #define GL_TABLE_TOO_LARGE                0x8031
  3091 #define GL_COLOR_MATRIX                   0x80B1
  3092 #define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
  3093 #define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
  3094 #define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
  3095 #define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
  3096 #define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
  3097 #define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
  3098 #define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
  3099 #define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
  3100 #define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
  3101 #define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
  3102 #define GL_COLOR_TABLE                    0x80D0
  3103 #define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
  3104 #define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
  3105 #define GL_PROXY_COLOR_TABLE              0x80D3
  3106 #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
  3107 #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
  3108 #define GL_COLOR_TABLE_SCALE              0x80D6
  3109 #define GL_COLOR_TABLE_BIAS               0x80D7
  3110 #define GL_COLOR_TABLE_FORMAT             0x80D8
  3111 #define GL_COLOR_TABLE_WIDTH              0x80D9
  3112 #define GL_COLOR_TABLE_RED_SIZE           0x80DA
  3113 #define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
  3114 #define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
  3115 #define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
  3116 #define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
  3117 #define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
  3118 #define GL_CONSTANT_BORDER                0x8151
  3119 #define GL_REPLICATE_BORDER               0x8153
  3120 #define GL_CONVOLUTION_BORDER_COLOR       0x8154
  3121 typedef void (APIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
  3122 typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
  3123 typedef void (APIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
  3124 typedef void (APIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  3125 typedef void (APIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, void *table);
  3126 typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  3127 typedef void (APIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  3128 typedef void (APIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
  3129 typedef void (APIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
  3130 typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
  3131 typedef void (APIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
  3132 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
  3133 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
  3134 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
  3135 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
  3136 typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  3137 typedef void (APIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
  3138 typedef void (APIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, void *image);
  3139 typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  3140 typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  3141 typedef void (APIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
  3142 typedef void (APIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
  3143 typedef void (APIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
  3144 typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  3145 typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  3146 typedef void (APIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
  3147 typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  3148 typedef void (APIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  3149 typedef void (APIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
  3150 typedef void (APIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
  3151 typedef void (APIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
  3152 typedef void (APIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
  3153 #ifdef GL_GLEXT_PROTOTYPES
  3154 GLAPI void APIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *table);
  3155 GLAPI void APIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
  3156 GLAPI void APIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
  3157 GLAPI void APIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  3158 GLAPI void APIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, void *table);
  3159 GLAPI void APIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
  3160 GLAPI void APIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
  3161 GLAPI void APIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const void *data);
  3162 GLAPI void APIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
  3163 GLAPI void APIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const void *image);
  3164 GLAPI void APIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *image);
  3165 GLAPI void APIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
  3166 GLAPI void APIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
  3167 GLAPI void APIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
  3168 GLAPI void APIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
  3169 GLAPI void APIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  3170 GLAPI void APIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
  3171 GLAPI void APIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, void *image);
  3172 GLAPI void APIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
  3173 GLAPI void APIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
  3174 GLAPI void APIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, void *row, void *column, void *span);
  3175 GLAPI void APIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *row, const void *column);
  3176 GLAPI void APIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
  3177 GLAPI void APIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
  3178 GLAPI void APIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
  3179 GLAPI void APIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, void *values);
  3180 GLAPI void APIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
  3181 GLAPI void APIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
  3182 GLAPI void APIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
  3183 GLAPI void APIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
  3184 GLAPI void APIENTRY glResetHistogram (GLenum target);
  3185 GLAPI void APIENTRY glResetMinmax (GLenum target);
  3186 #endif
  3187 #endif /* GL_ARB_imaging */
  3188 
  3189 #ifndef GL_ARB_indirect_parameters
  3190 #define GL_ARB_indirect_parameters 1
  3191 #define GL_PARAMETER_BUFFER_ARB           0x80EE
  3192 #define GL_PARAMETER_BUFFER_BINDING_ARB   0x80EF
  3193 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC) (GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
  3194 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC) (GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
  3195 #ifdef GL_GLEXT_PROTOTYPES
  3196 GLAPI void APIENTRY glMultiDrawArraysIndirectCountARB (GLenum mode, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
  3197 GLAPI void APIENTRY glMultiDrawElementsIndirectCountARB (GLenum mode, GLenum type, GLintptr indirect, GLintptr drawcount, GLsizei maxdrawcount, GLsizei stride);
  3198 #endif
  3199 #endif /* GL_ARB_indirect_parameters */
  3200 
  3201 #ifndef GL_ARB_instanced_arrays
  3202 #define GL_ARB_instanced_arrays 1
  3203 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE
  3204 typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORARBPROC) (GLuint index, GLuint divisor);
  3205 #ifdef GL_GLEXT_PROTOTYPES
  3206 GLAPI void APIENTRY glVertexAttribDivisorARB (GLuint index, GLuint divisor);
  3207 #endif
  3208 #endif /* GL_ARB_instanced_arrays */
  3209 
  3210 #ifndef GL_ARB_internalformat_query
  3211 #define GL_ARB_internalformat_query 1
  3212 #endif /* GL_ARB_internalformat_query */
  3213 
  3214 #ifndef GL_ARB_internalformat_query2
  3215 #define GL_ARB_internalformat_query2 1
  3216 #define GL_SRGB_DECODE_ARB                0x8299
  3217 #endif /* GL_ARB_internalformat_query2 */
  3218 
  3219 #ifndef GL_ARB_invalidate_subdata
  3220 #define GL_ARB_invalidate_subdata 1
  3221 #endif /* GL_ARB_invalidate_subdata */
  3222 
  3223 #ifndef GL_ARB_map_buffer_alignment
  3224 #define GL_ARB_map_buffer_alignment 1
  3225 #endif /* GL_ARB_map_buffer_alignment */
  3226 
  3227 #ifndef GL_ARB_map_buffer_range
  3228 #define GL_ARB_map_buffer_range 1
  3229 #endif /* GL_ARB_map_buffer_range */
  3230 
  3231 #ifndef GL_ARB_matrix_palette
  3232 #define GL_ARB_matrix_palette 1
  3233 #define GL_MATRIX_PALETTE_ARB             0x8840
  3234 #define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
  3235 #define GL_MAX_PALETTE_MATRICES_ARB       0x8842
  3236 #define GL_CURRENT_PALETTE_MATRIX_ARB     0x8843
  3237 #define GL_MATRIX_INDEX_ARRAY_ARB         0x8844
  3238 #define GL_CURRENT_MATRIX_INDEX_ARB       0x8845
  3239 #define GL_MATRIX_INDEX_ARRAY_SIZE_ARB    0x8846
  3240 #define GL_MATRIX_INDEX_ARRAY_TYPE_ARB    0x8847
  3241 #define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB  0x8848
  3242 #define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
  3243 typedef void (APIENTRYP PFNGLCURRENTPALETTEMATRIXARBPROC) (GLint index);
  3244 typedef void (APIENTRYP PFNGLMATRIXINDEXUBVARBPROC) (GLint size, const GLubyte *indices);
  3245 typedef void (APIENTRYP PFNGLMATRIXINDEXUSVARBPROC) (GLint size, const GLushort *indices);
  3246 typedef void (APIENTRYP PFNGLMATRIXINDEXUIVARBPROC) (GLint size, const GLuint *indices);
  3247 typedef void (APIENTRYP PFNGLMATRIXINDEXPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
  3248 #ifdef GL_GLEXT_PROTOTYPES
  3249 GLAPI void APIENTRY glCurrentPaletteMatrixARB (GLint index);
  3250 GLAPI void APIENTRY glMatrixIndexubvARB (GLint size, const GLubyte *indices);
  3251 GLAPI void APIENTRY glMatrixIndexusvARB (GLint size, const GLushort *indices);
  3252 GLAPI void APIENTRY glMatrixIndexuivARB (GLint size, const GLuint *indices);
  3253 GLAPI void APIENTRY glMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, const void *pointer);
  3254 #endif
  3255 #endif /* GL_ARB_matrix_palette */
  3256 
  3257 #ifndef GL_ARB_multi_bind
  3258 #define GL_ARB_multi_bind 1
  3259 #endif /* GL_ARB_multi_bind */
  3260 
  3261 #ifndef GL_ARB_multi_draw_indirect
  3262 #define GL_ARB_multi_draw_indirect 1
  3263 #endif /* GL_ARB_multi_draw_indirect */
  3264 
  3265 #ifndef GL_ARB_multisample
  3266 #define GL_ARB_multisample 1
  3267 #define GL_MULTISAMPLE_ARB                0x809D
  3268 #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
  3269 #define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
  3270 #define GL_SAMPLE_COVERAGE_ARB            0x80A0
  3271 #define GL_SAMPLE_BUFFERS_ARB             0x80A8
  3272 #define GL_SAMPLES_ARB                    0x80A9
  3273 #define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
  3274 #define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
  3275 #define GL_MULTISAMPLE_BIT_ARB            0x20000000
  3276 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEARBPROC) (GLfloat value, GLboolean invert);
  3277 #ifdef GL_GLEXT_PROTOTYPES
  3278 GLAPI void APIENTRY glSampleCoverageARB (GLfloat value, GLboolean invert);
  3279 #endif
  3280 #endif /* GL_ARB_multisample */
  3281 
  3282 #ifndef GL_ARB_multitexture
  3283 #define GL_ARB_multitexture 1
  3284 #define GL_TEXTURE0_ARB                   0x84C0
  3285 #define GL_TEXTURE1_ARB                   0x84C1
  3286 #define GL_TEXTURE2_ARB                   0x84C2
  3287 #define GL_TEXTURE3_ARB                   0x84C3
  3288 #define GL_TEXTURE4_ARB                   0x84C4
  3289 #define GL_TEXTURE5_ARB                   0x84C5
  3290 #define GL_TEXTURE6_ARB                   0x84C6
  3291 #define GL_TEXTURE7_ARB                   0x84C7
  3292 #define GL_TEXTURE8_ARB                   0x84C8
  3293 #define GL_TEXTURE9_ARB                   0x84C9
  3294 #define GL_TEXTURE10_ARB                  0x84CA
  3295 #define GL_TEXTURE11_ARB                  0x84CB
  3296 #define GL_TEXTURE12_ARB                  0x84CC
  3297 #define GL_TEXTURE13_ARB                  0x84CD
  3298 #define GL_TEXTURE14_ARB                  0x84CE
  3299 #define GL_TEXTURE15_ARB                  0x84CF
  3300 #define GL_TEXTURE16_ARB                  0x84D0
  3301 #define GL_TEXTURE17_ARB                  0x84D1
  3302 #define GL_TEXTURE18_ARB                  0x84D2
  3303 #define GL_TEXTURE19_ARB                  0x84D3
  3304 #define GL_TEXTURE20_ARB                  0x84D4
  3305 #define GL_TEXTURE21_ARB                  0x84D5
  3306 #define GL_TEXTURE22_ARB                  0x84D6
  3307 #define GL_TEXTURE23_ARB                  0x84D7
  3308 #define GL_TEXTURE24_ARB                  0x84D8
  3309 #define GL_TEXTURE25_ARB                  0x84D9
  3310 #define GL_TEXTURE26_ARB                  0x84DA
  3311 #define GL_TEXTURE27_ARB                  0x84DB
  3312 #define GL_TEXTURE28_ARB                  0x84DC
  3313 #define GL_TEXTURE29_ARB                  0x84DD
  3314 #define GL_TEXTURE30_ARB                  0x84DE
  3315 #define GL_TEXTURE31_ARB                  0x84DF
  3316 #define GL_ACTIVE_TEXTURE_ARB             0x84E0
  3317 #define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
  3318 #define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
  3319 typedef void (APIENTRYP PFNGLACTIVETEXTUREARBPROC) (GLenum texture);
  3320 typedef void (APIENTRYP PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum texture);
  3321 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
  3322 typedef void (APIENTRYP PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
  3323 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
  3324 typedef void (APIENTRYP PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
  3325 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
  3326 typedef void (APIENTRYP PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
  3327 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
  3328 typedef void (APIENTRYP PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
  3329 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
  3330 typedef void (APIENTRYP PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
  3331 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
  3332 typedef void (APIENTRYP PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
  3333 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
  3334 typedef void (APIENTRYP PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
  3335 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
  3336 typedef void (APIENTRYP PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
  3337 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
  3338 typedef void (APIENTRYP PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
  3339 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
  3340 typedef void (APIENTRYP PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
  3341 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
  3342 typedef void (APIENTRYP PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
  3343 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
  3344 typedef void (APIENTRYP PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
  3345 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  3346 typedef void (APIENTRYP PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
  3347 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  3348 typedef void (APIENTRYP PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
  3349 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
  3350 typedef void (APIENTRYP PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
  3351 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  3352 typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
  3353 #ifdef GL_GLEXT_PROTOTYPES
  3354 GLAPI void APIENTRY glActiveTextureARB (GLenum texture);
  3355 GLAPI void APIENTRY glClientActiveTextureARB (GLenum texture);
  3356 GLAPI void APIENTRY glMultiTexCoord1dARB (GLenum target, GLdouble s);
  3357 GLAPI void APIENTRY glMultiTexCoord1dvARB (GLenum target, const GLdouble *v);
  3358 GLAPI void APIENTRY glMultiTexCoord1fARB (GLenum target, GLfloat s);
  3359 GLAPI void APIENTRY glMultiTexCoord1fvARB (GLenum target, const GLfloat *v);
  3360 GLAPI void APIENTRY glMultiTexCoord1iARB (GLenum target, GLint s);
  3361 GLAPI void APIENTRY glMultiTexCoord1ivARB (GLenum target, const GLint *v);
  3362 GLAPI void APIENTRY glMultiTexCoord1sARB (GLenum target, GLshort s);
  3363 GLAPI void APIENTRY glMultiTexCoord1svARB (GLenum target, const GLshort *v);
  3364 GLAPI void APIENTRY glMultiTexCoord2dARB (GLenum target, GLdouble s, GLdouble t);
  3365 GLAPI void APIENTRY glMultiTexCoord2dvARB (GLenum target, const GLdouble *v);
  3366 GLAPI void APIENTRY glMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t);
  3367 GLAPI void APIENTRY glMultiTexCoord2fvARB (GLenum target, const GLfloat *v);
  3368 GLAPI void APIENTRY glMultiTexCoord2iARB (GLenum target, GLint s, GLint t);
  3369 GLAPI void APIENTRY glMultiTexCoord2ivARB (GLenum target, const GLint *v);
  3370 GLAPI void APIENTRY glMultiTexCoord2sARB (GLenum target, GLshort s, GLshort t);
  3371 GLAPI void APIENTRY glMultiTexCoord2svARB (GLenum target, const GLshort *v);
  3372 GLAPI void APIENTRY glMultiTexCoord3dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r);
  3373 GLAPI void APIENTRY glMultiTexCoord3dvARB (GLenum target, const GLdouble *v);
  3374 GLAPI void APIENTRY glMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r);
  3375 GLAPI void APIENTRY glMultiTexCoord3fvARB (GLenum target, const GLfloat *v);
  3376 GLAPI void APIENTRY glMultiTexCoord3iARB (GLenum target, GLint s, GLint t, GLint r);
  3377 GLAPI void APIENTRY glMultiTexCoord3ivARB (GLenum target, const GLint *v);
  3378 GLAPI void APIENTRY glMultiTexCoord3sARB (GLenum target, GLshort s, GLshort t, GLshort r);
  3379 GLAPI void APIENTRY glMultiTexCoord3svARB (GLenum target, const GLshort *v);
  3380 GLAPI void APIENTRY glMultiTexCoord4dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  3381 GLAPI void APIENTRY glMultiTexCoord4dvARB (GLenum target, const GLdouble *v);
  3382 GLAPI void APIENTRY glMultiTexCoord4fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  3383 GLAPI void APIENTRY glMultiTexCoord4fvARB (GLenum target, const GLfloat *v);
  3384 GLAPI void APIENTRY glMultiTexCoord4iARB (GLenum target, GLint s, GLint t, GLint r, GLint q);
  3385 GLAPI void APIENTRY glMultiTexCoord4ivARB (GLenum target, const GLint *v);
  3386 GLAPI void APIENTRY glMultiTexCoord4sARB (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  3387 GLAPI void APIENTRY glMultiTexCoord4svARB (GLenum target, const GLshort *v);
  3388 #endif
  3389 #endif /* GL_ARB_multitexture */
  3390 
  3391 #ifndef GL_ARB_occlusion_query
  3392 #define GL_ARB_occlusion_query 1
  3393 #define GL_QUERY_COUNTER_BITS_ARB         0x8864
  3394 #define GL_CURRENT_QUERY_ARB              0x8865
  3395 #define GL_QUERY_RESULT_ARB               0x8866
  3396 #define GL_QUERY_RESULT_AVAILABLE_ARB     0x8867
  3397 #define GL_SAMPLES_PASSED_ARB             0x8914
  3398 typedef void (APIENTRYP PFNGLGENQUERIESARBPROC) (GLsizei n, GLuint *ids);
  3399 typedef void (APIENTRYP PFNGLDELETEQUERIESARBPROC) (GLsizei n, const GLuint *ids);
  3400 typedef GLboolean (APIENTRYP PFNGLISQUERYARBPROC) (GLuint id);
  3401 typedef void (APIENTRYP PFNGLBEGINQUERYARBPROC) (GLenum target, GLuint id);
  3402 typedef void (APIENTRYP PFNGLENDQUERYARBPROC) (GLenum target);
  3403 typedef void (APIENTRYP PFNGLGETQUERYIVARBPROC) (GLenum target, GLenum pname, GLint *params);
  3404 typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVARBPROC) (GLuint id, GLenum pname, GLint *params);
  3405 typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVARBPROC) (GLuint id, GLenum pname, GLuint *params);
  3406 #ifdef GL_GLEXT_PROTOTYPES
  3407 GLAPI void APIENTRY glGenQueriesARB (GLsizei n, GLuint *ids);
  3408 GLAPI void APIENTRY glDeleteQueriesARB (GLsizei n, const GLuint *ids);
  3409 GLAPI GLboolean APIENTRY glIsQueryARB (GLuint id);
  3410 GLAPI void APIENTRY glBeginQueryARB (GLenum target, GLuint id);
  3411 GLAPI void APIENTRY glEndQueryARB (GLenum target);
  3412 GLAPI void APIENTRY glGetQueryivARB (GLenum target, GLenum pname, GLint *params);
  3413 GLAPI void APIENTRY glGetQueryObjectivARB (GLuint id, GLenum pname, GLint *params);
  3414 GLAPI void APIENTRY glGetQueryObjectuivARB (GLuint id, GLenum pname, GLuint *params);
  3415 #endif
  3416 #endif /* GL_ARB_occlusion_query */
  3417 
  3418 #ifndef GL_ARB_occlusion_query2
  3419 #define GL_ARB_occlusion_query2 1
  3420 #endif /* GL_ARB_occlusion_query2 */
  3421 
  3422 #ifndef GL_ARB_pixel_buffer_object
  3423 #define GL_ARB_pixel_buffer_object 1
  3424 #define GL_PIXEL_PACK_BUFFER_ARB          0x88EB
  3425 #define GL_PIXEL_UNPACK_BUFFER_ARB        0x88EC
  3426 #define GL_PIXEL_PACK_BUFFER_BINDING_ARB  0x88ED
  3427 #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
  3428 #endif /* GL_ARB_pixel_buffer_object */
  3429 
  3430 #ifndef GL_ARB_point_parameters
  3431 #define GL_ARB_point_parameters 1
  3432 #define GL_POINT_SIZE_MIN_ARB             0x8126
  3433 #define GL_POINT_SIZE_MAX_ARB             0x8127
  3434 #define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
  3435 #define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
  3436 typedef void (APIENTRYP PFNGLPOINTPARAMETERFARBPROC) (GLenum pname, GLfloat param);
  3437 typedef void (APIENTRYP PFNGLPOINTPARAMETERFVARBPROC) (GLenum pname, const GLfloat *params);
  3438 #ifdef GL_GLEXT_PROTOTYPES
  3439 GLAPI void APIENTRY glPointParameterfARB (GLenum pname, GLfloat param);
  3440 GLAPI void APIENTRY glPointParameterfvARB (GLenum pname, const GLfloat *params);
  3441 #endif
  3442 #endif /* GL_ARB_point_parameters */
  3443 
  3444 #ifndef GL_ARB_point_sprite
  3445 #define GL_ARB_point_sprite 1
  3446 #define GL_POINT_SPRITE_ARB               0x8861
  3447 #define GL_COORD_REPLACE_ARB              0x8862
  3448 #endif /* GL_ARB_point_sprite */
  3449 
  3450 #ifndef GL_ARB_program_interface_query
  3451 #define GL_ARB_program_interface_query 1
  3452 #endif /* GL_ARB_program_interface_query */
  3453 
  3454 #ifndef GL_ARB_provoking_vertex
  3455 #define GL_ARB_provoking_vertex 1
  3456 #endif /* GL_ARB_provoking_vertex */
  3457 
  3458 #ifndef GL_ARB_query_buffer_object
  3459 #define GL_ARB_query_buffer_object 1
  3460 #endif /* GL_ARB_query_buffer_object */
  3461 
  3462 #ifndef GL_ARB_robust_buffer_access_behavior
  3463 #define GL_ARB_robust_buffer_access_behavior 1
  3464 #endif /* GL_ARB_robust_buffer_access_behavior */
  3465 
  3466 #ifndef GL_ARB_robustness
  3467 #define GL_ARB_robustness 1
  3468 #define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
  3469 #define GL_LOSE_CONTEXT_ON_RESET_ARB      0x8252
  3470 #define GL_GUILTY_CONTEXT_RESET_ARB       0x8253
  3471 #define GL_INNOCENT_CONTEXT_RESET_ARB     0x8254
  3472 #define GL_UNKNOWN_CONTEXT_RESET_ARB      0x8255
  3473 #define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
  3474 #define GL_NO_RESET_NOTIFICATION_ARB      0x8261
  3475 typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void);
  3476 typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img);
  3477 typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  3478 typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, void *img);
  3479 typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
  3480 typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  3481 typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
  3482 typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
  3483 typedef void (APIENTRYP PFNGLGETNMAPDVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
  3484 typedef void (APIENTRYP PFNGLGETNMAPFVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
  3485 typedef void (APIENTRYP PFNGLGETNMAPIVARBPROC) (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
  3486 typedef void (APIENTRYP PFNGLGETNPIXELMAPFVARBPROC) (GLenum map, GLsizei bufSize, GLfloat *values);
  3487 typedef void (APIENTRYP PFNGLGETNPIXELMAPUIVARBPROC) (GLenum map, GLsizei bufSize, GLuint *values);
  3488 typedef void (APIENTRYP PFNGLGETNPIXELMAPUSVARBPROC) (GLenum map, GLsizei bufSize, GLushort *values);
  3489 typedef void (APIENTRYP PFNGLGETNPOLYGONSTIPPLEARBPROC) (GLsizei bufSize, GLubyte *pattern);
  3490 typedef void (APIENTRYP PFNGLGETNCOLORTABLEARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
  3491 typedef void (APIENTRYP PFNGLGETNCONVOLUTIONFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
  3492 typedef void (APIENTRYP PFNGLGETNSEPARABLEFILTERARBPROC) (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
  3493 typedef void (APIENTRYP PFNGLGETNHISTOGRAMARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
  3494 typedef void (APIENTRYP PFNGLGETNMINMAXARBPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
  3495 #ifdef GL_GLEXT_PROTOTYPES
  3496 GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void);
  3497 GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, void *img);
  3498 GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  3499 GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, void *img);
  3500 GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
  3501 GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  3502 GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
  3503 GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
  3504 GLAPI void APIENTRY glGetnMapdvARB (GLenum target, GLenum query, GLsizei bufSize, GLdouble *v);
  3505 GLAPI void APIENTRY glGetnMapfvARB (GLenum target, GLenum query, GLsizei bufSize, GLfloat *v);
  3506 GLAPI void APIENTRY glGetnMapivARB (GLenum target, GLenum query, GLsizei bufSize, GLint *v);
  3507 GLAPI void APIENTRY glGetnPixelMapfvARB (GLenum map, GLsizei bufSize, GLfloat *values);
  3508 GLAPI void APIENTRY glGetnPixelMapuivARB (GLenum map, GLsizei bufSize, GLuint *values);
  3509 GLAPI void APIENTRY glGetnPixelMapusvARB (GLenum map, GLsizei bufSize, GLushort *values);
  3510 GLAPI void APIENTRY glGetnPolygonStippleARB (GLsizei bufSize, GLubyte *pattern);
  3511 GLAPI void APIENTRY glGetnColorTableARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *table);
  3512 GLAPI void APIENTRY glGetnConvolutionFilterARB (GLenum target, GLenum format, GLenum type, GLsizei bufSize, void *image);
  3513 GLAPI void APIENTRY glGetnSeparableFilterARB (GLenum target, GLenum format, GLenum type, GLsizei rowBufSize, void *row, GLsizei columnBufSize, void *column, void *span);
  3514 GLAPI void APIENTRY glGetnHistogramARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
  3515 GLAPI void APIENTRY glGetnMinmaxARB (GLenum target, GLboolean reset, GLenum format, GLenum type, GLsizei bufSize, void *values);
  3516 #endif
  3517 #endif /* GL_ARB_robustness */
  3518 
  3519 #ifndef GL_ARB_robustness_isolation
  3520 #define GL_ARB_robustness_isolation 1
  3521 #endif /* GL_ARB_robustness_isolation */
  3522 
  3523 #ifndef GL_ARB_sample_shading
  3524 #define GL_ARB_sample_shading 1
  3525 #define GL_SAMPLE_SHADING_ARB             0x8C36
  3526 #define GL_MIN_SAMPLE_SHADING_VALUE_ARB   0x8C37
  3527 typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value);
  3528 #ifdef GL_GLEXT_PROTOTYPES
  3529 GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value);
  3530 #endif
  3531 #endif /* GL_ARB_sample_shading */
  3532 
  3533 #ifndef GL_ARB_sampler_objects
  3534 #define GL_ARB_sampler_objects 1
  3535 #endif /* GL_ARB_sampler_objects */
  3536 
  3537 #ifndef GL_ARB_seamless_cube_map
  3538 #define GL_ARB_seamless_cube_map 1
  3539 #endif /* GL_ARB_seamless_cube_map */
  3540 
  3541 #ifndef GL_ARB_seamless_cubemap_per_texture
  3542 #define GL_ARB_seamless_cubemap_per_texture 1
  3543 #endif /* GL_ARB_seamless_cubemap_per_texture */
  3544 
  3545 #ifndef GL_ARB_separate_shader_objects
  3546 #define GL_ARB_separate_shader_objects 1
  3547 #endif /* GL_ARB_separate_shader_objects */
  3548 
  3549 #ifndef GL_ARB_shader_atomic_counters
  3550 #define GL_ARB_shader_atomic_counters 1
  3551 #endif /* GL_ARB_shader_atomic_counters */
  3552 
  3553 #ifndef GL_ARB_shader_bit_encoding
  3554 #define GL_ARB_shader_bit_encoding 1
  3555 #endif /* GL_ARB_shader_bit_encoding */
  3556 
  3557 #ifndef GL_ARB_shader_draw_parameters
  3558 #define GL_ARB_shader_draw_parameters 1
  3559 #endif /* GL_ARB_shader_draw_parameters */
  3560 
  3561 #ifndef GL_ARB_shader_group_vote
  3562 #define GL_ARB_shader_group_vote 1
  3563 #endif /* GL_ARB_shader_group_vote */
  3564 
  3565 #ifndef GL_ARB_shader_image_load_store
  3566 #define GL_ARB_shader_image_load_store 1
  3567 #endif /* GL_ARB_shader_image_load_store */
  3568 
  3569 #ifndef GL_ARB_shader_image_size
  3570 #define GL_ARB_shader_image_size 1
  3571 #endif /* GL_ARB_shader_image_size */
  3572 
  3573 #ifndef GL_ARB_shader_objects
  3574 #define GL_ARB_shader_objects 1
  3575 #ifdef __APPLE__
  3576 typedef void *GLhandleARB;
  3577 #else
  3578 typedef unsigned int GLhandleARB;
  3579 #endif
  3580 typedef char GLcharARB;
  3581 #define GL_PROGRAM_OBJECT_ARB             0x8B40
  3582 #define GL_SHADER_OBJECT_ARB              0x8B48
  3583 #define GL_OBJECT_TYPE_ARB                0x8B4E
  3584 #define GL_OBJECT_SUBTYPE_ARB             0x8B4F
  3585 #define GL_FLOAT_VEC2_ARB                 0x8B50
  3586 #define GL_FLOAT_VEC3_ARB                 0x8B51
  3587 #define GL_FLOAT_VEC4_ARB                 0x8B52
  3588 #define GL_INT_VEC2_ARB                   0x8B53
  3589 #define GL_INT_VEC3_ARB                   0x8B54
  3590 #define GL_INT_VEC4_ARB                   0x8B55
  3591 #define GL_BOOL_ARB                       0x8B56
  3592 #define GL_BOOL_VEC2_ARB                  0x8B57
  3593 #define GL_BOOL_VEC3_ARB                  0x8B58
  3594 #define GL_BOOL_VEC4_ARB                  0x8B59
  3595 #define GL_FLOAT_MAT2_ARB                 0x8B5A
  3596 #define GL_FLOAT_MAT3_ARB                 0x8B5B
  3597 #define GL_FLOAT_MAT4_ARB                 0x8B5C
  3598 #define GL_SAMPLER_1D_ARB                 0x8B5D
  3599 #define GL_SAMPLER_2D_ARB                 0x8B5E
  3600 #define GL_SAMPLER_3D_ARB                 0x8B5F
  3601 #define GL_SAMPLER_CUBE_ARB               0x8B60
  3602 #define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
  3603 #define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
  3604 #define GL_SAMPLER_2D_RECT_ARB            0x8B63
  3605 #define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
  3606 #define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
  3607 #define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
  3608 #define GL_OBJECT_LINK_STATUS_ARB         0x8B82
  3609 #define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
  3610 #define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
  3611 #define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
  3612 #define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
  3613 #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
  3614 #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
  3615 typedef void (APIENTRYP PFNGLDELETEOBJECTARBPROC) (GLhandleARB obj);
  3616 typedef GLhandleARB (APIENTRYP PFNGLGETHANDLEARBPROC) (GLenum pname);
  3617 typedef void (APIENTRYP PFNGLDETACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB attachedObj);
  3618 typedef GLhandleARB (APIENTRYP PFNGLCREATESHADEROBJECTARBPROC) (GLenum shaderType);
  3619 typedef void (APIENTRYP PFNGLSHADERSOURCEARBPROC) (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length);
  3620 typedef void (APIENTRYP PFNGLCOMPILESHADERARBPROC) (GLhandleARB shaderObj);
  3621 typedef GLhandleARB (APIENTRYP PFNGLCREATEPROGRAMOBJECTARBPROC) (void);
  3622 typedef void (APIENTRYP PFNGLATTACHOBJECTARBPROC) (GLhandleARB containerObj, GLhandleARB obj);
  3623 typedef void (APIENTRYP PFNGLLINKPROGRAMARBPROC) (GLhandleARB programObj);
  3624 typedef void (APIENTRYP PFNGLUSEPROGRAMOBJECTARBPROC) (GLhandleARB programObj);
  3625 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMARBPROC) (GLhandleARB programObj);
  3626 typedef void (APIENTRYP PFNGLUNIFORM1FARBPROC) (GLint location, GLfloat v0);
  3627 typedef void (APIENTRYP PFNGLUNIFORM2FARBPROC) (GLint location, GLfloat v0, GLfloat v1);
  3628 typedef void (APIENTRYP PFNGLUNIFORM3FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  3629 typedef void (APIENTRYP PFNGLUNIFORM4FARBPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  3630 typedef void (APIENTRYP PFNGLUNIFORM1IARBPROC) (GLint location, GLint v0);
  3631 typedef void (APIENTRYP PFNGLUNIFORM2IARBPROC) (GLint location, GLint v0, GLint v1);
  3632 typedef void (APIENTRYP PFNGLUNIFORM3IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2);
  3633 typedef void (APIENTRYP PFNGLUNIFORM4IARBPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  3634 typedef void (APIENTRYP PFNGLUNIFORM1FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
  3635 typedef void (APIENTRYP PFNGLUNIFORM2FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
  3636 typedef void (APIENTRYP PFNGLUNIFORM3FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
  3637 typedef void (APIENTRYP PFNGLUNIFORM4FVARBPROC) (GLint location, GLsizei count, const GLfloat *value);
  3638 typedef void (APIENTRYP PFNGLUNIFORM1IVARBPROC) (GLint location, GLsizei count, const GLint *value);
  3639 typedef void (APIENTRYP PFNGLUNIFORM2IVARBPROC) (GLint location, GLsizei count, const GLint *value);
  3640 typedef void (APIENTRYP PFNGLUNIFORM3IVARBPROC) (GLint location, GLsizei count, const GLint *value);
  3641 typedef void (APIENTRYP PFNGLUNIFORM4IVARBPROC) (GLint location, GLsizei count, const GLint *value);
  3642 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3643 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3644 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVARBPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3645 typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERFVARBPROC) (GLhandleARB obj, GLenum pname, GLfloat *params);
  3646 typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVARBPROC) (GLhandleARB obj, GLenum pname, GLint *params);
  3647 typedef void (APIENTRYP PFNGLGETINFOLOGARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
  3648 typedef void (APIENTRYP PFNGLGETATTACHEDOBJECTSARBPROC) (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
  3649 typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
  3650 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
  3651 typedef void (APIENTRYP PFNGLGETUNIFORMFVARBPROC) (GLhandleARB programObj, GLint location, GLfloat *params);
  3652 typedef void (APIENTRYP PFNGLGETUNIFORMIVARBPROC) (GLhandleARB programObj, GLint location, GLint *params);
  3653 typedef void (APIENTRYP PFNGLGETSHADERSOURCEARBPROC) (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
  3654 #ifdef GL_GLEXT_PROTOTYPES
  3655 GLAPI void APIENTRY glDeleteObjectARB (GLhandleARB obj);
  3656 GLAPI GLhandleARB APIENTRY glGetHandleARB (GLenum pname);
  3657 GLAPI void APIENTRY glDetachObjectARB (GLhandleARB containerObj, GLhandleARB attachedObj);
  3658 GLAPI GLhandleARB APIENTRY glCreateShaderObjectARB (GLenum shaderType);
  3659 GLAPI void APIENTRY glShaderSourceARB (GLhandleARB shaderObj, GLsizei count, const GLcharARB **string, const GLint *length);
  3660 GLAPI void APIENTRY glCompileShaderARB (GLhandleARB shaderObj);
  3661 GLAPI GLhandleARB APIENTRY glCreateProgramObjectARB (void);
  3662 GLAPI void APIENTRY glAttachObjectARB (GLhandleARB containerObj, GLhandleARB obj);
  3663 GLAPI void APIENTRY glLinkProgramARB (GLhandleARB programObj);
  3664 GLAPI void APIENTRY glUseProgramObjectARB (GLhandleARB programObj);
  3665 GLAPI void APIENTRY glValidateProgramARB (GLhandleARB programObj);
  3666 GLAPI void APIENTRY glUniform1fARB (GLint location, GLfloat v0);
  3667 GLAPI void APIENTRY glUniform2fARB (GLint location, GLfloat v0, GLfloat v1);
  3668 GLAPI void APIENTRY glUniform3fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  3669 GLAPI void APIENTRY glUniform4fARB (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  3670 GLAPI void APIENTRY glUniform1iARB (GLint location, GLint v0);
  3671 GLAPI void APIENTRY glUniform2iARB (GLint location, GLint v0, GLint v1);
  3672 GLAPI void APIENTRY glUniform3iARB (GLint location, GLint v0, GLint v1, GLint v2);
  3673 GLAPI void APIENTRY glUniform4iARB (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  3674 GLAPI void APIENTRY glUniform1fvARB (GLint location, GLsizei count, const GLfloat *value);
  3675 GLAPI void APIENTRY glUniform2fvARB (GLint location, GLsizei count, const GLfloat *value);
  3676 GLAPI void APIENTRY glUniform3fvARB (GLint location, GLsizei count, const GLfloat *value);
  3677 GLAPI void APIENTRY glUniform4fvARB (GLint location, GLsizei count, const GLfloat *value);
  3678 GLAPI void APIENTRY glUniform1ivARB (GLint location, GLsizei count, const GLint *value);
  3679 GLAPI void APIENTRY glUniform2ivARB (GLint location, GLsizei count, const GLint *value);
  3680 GLAPI void APIENTRY glUniform3ivARB (GLint location, GLsizei count, const GLint *value);
  3681 GLAPI void APIENTRY glUniform4ivARB (GLint location, GLsizei count, const GLint *value);
  3682 GLAPI void APIENTRY glUniformMatrix2fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3683 GLAPI void APIENTRY glUniformMatrix3fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3684 GLAPI void APIENTRY glUniformMatrix4fvARB (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3685 GLAPI void APIENTRY glGetObjectParameterfvARB (GLhandleARB obj, GLenum pname, GLfloat *params);
  3686 GLAPI void APIENTRY glGetObjectParameterivARB (GLhandleARB obj, GLenum pname, GLint *params);
  3687 GLAPI void APIENTRY glGetInfoLogARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *infoLog);
  3688 GLAPI void APIENTRY glGetAttachedObjectsARB (GLhandleARB containerObj, GLsizei maxCount, GLsizei *count, GLhandleARB *obj);
  3689 GLAPI GLint APIENTRY glGetUniformLocationARB (GLhandleARB programObj, const GLcharARB *name);
  3690 GLAPI void APIENTRY glGetActiveUniformARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
  3691 GLAPI void APIENTRY glGetUniformfvARB (GLhandleARB programObj, GLint location, GLfloat *params);
  3692 GLAPI void APIENTRY glGetUniformivARB (GLhandleARB programObj, GLint location, GLint *params);
  3693 GLAPI void APIENTRY glGetShaderSourceARB (GLhandleARB obj, GLsizei maxLength, GLsizei *length, GLcharARB *source);
  3694 #endif
  3695 #endif /* GL_ARB_shader_objects */
  3696 
  3697 #ifndef GL_ARB_shader_precision
  3698 #define GL_ARB_shader_precision 1
  3699 #endif /* GL_ARB_shader_precision */
  3700 
  3701 #ifndef GL_ARB_shader_stencil_export
  3702 #define GL_ARB_shader_stencil_export 1
  3703 #endif /* GL_ARB_shader_stencil_export */
  3704 
  3705 #ifndef GL_ARB_shader_storage_buffer_object
  3706 #define GL_ARB_shader_storage_buffer_object 1
  3707 #endif /* GL_ARB_shader_storage_buffer_object */
  3708 
  3709 #ifndef GL_ARB_shader_subroutine
  3710 #define GL_ARB_shader_subroutine 1
  3711 #endif /* GL_ARB_shader_subroutine */
  3712 
  3713 #ifndef GL_ARB_shader_texture_lod
  3714 #define GL_ARB_shader_texture_lod 1
  3715 #endif /* GL_ARB_shader_texture_lod */
  3716 
  3717 #ifndef GL_ARB_shading_language_100
  3718 #define GL_ARB_shading_language_100 1
  3719 #define GL_SHADING_LANGUAGE_VERSION_ARB   0x8B8C
  3720 #endif /* GL_ARB_shading_language_100 */
  3721 
  3722 #ifndef GL_ARB_shading_language_420pack
  3723 #define GL_ARB_shading_language_420pack 1
  3724 #endif /* GL_ARB_shading_language_420pack */
  3725 
  3726 #ifndef GL_ARB_shading_language_include
  3727 #define GL_ARB_shading_language_include 1
  3728 #define GL_SHADER_INCLUDE_ARB             0x8DAE
  3729 #define GL_NAMED_STRING_LENGTH_ARB        0x8DE9
  3730 #define GL_NAMED_STRING_TYPE_ARB          0x8DEA
  3731 typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
  3732 typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
  3733 typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length);
  3734 typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
  3735 typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
  3736 typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
  3737 #ifdef GL_GLEXT_PROTOTYPES
  3738 GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
  3739 GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name);
  3740 GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar *const*path, const GLint *length);
  3741 GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name);
  3742 GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
  3743 GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
  3744 #endif
  3745 #endif /* GL_ARB_shading_language_include */
  3746 
  3747 #ifndef GL_ARB_shading_language_packing
  3748 #define GL_ARB_shading_language_packing 1
  3749 #endif /* GL_ARB_shading_language_packing */
  3750 
  3751 #ifndef GL_ARB_shadow
  3752 #define GL_ARB_shadow 1
  3753 #define GL_TEXTURE_COMPARE_MODE_ARB       0x884C
  3754 #define GL_TEXTURE_COMPARE_FUNC_ARB       0x884D
  3755 #define GL_COMPARE_R_TO_TEXTURE_ARB       0x884E
  3756 #endif /* GL_ARB_shadow */
  3757 
  3758 #ifndef GL_ARB_shadow_ambient
  3759 #define GL_ARB_shadow_ambient 1
  3760 #define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
  3761 #endif /* GL_ARB_shadow_ambient */
  3762 
  3763 #ifndef GL_ARB_sparse_texture
  3764 #define GL_ARB_sparse_texture 1
  3765 #define GL_TEXTURE_SPARSE_ARB             0x91A6
  3766 #define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB    0x91A7
  3767 #define GL_MIN_SPARSE_LEVEL_ARB           0x919B
  3768 #define GL_NUM_VIRTUAL_PAGE_SIZES_ARB     0x91A8
  3769 #define GL_VIRTUAL_PAGE_SIZE_X_ARB        0x9195
  3770 #define GL_VIRTUAL_PAGE_SIZE_Y_ARB        0x9196
  3771 #define GL_VIRTUAL_PAGE_SIZE_Z_ARB        0x9197
  3772 #define GL_MAX_SPARSE_TEXTURE_SIZE_ARB    0x9198
  3773 #define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199
  3774 #define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919A
  3775 #define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91A9
  3776 typedef void (APIENTRYP PFNGLTEXPAGECOMMITMENTARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident);
  3777 #ifdef GL_GLEXT_PROTOTYPES
  3778 GLAPI void APIENTRY glTexPageCommitmentARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean resident);
  3779 #endif
  3780 #endif /* GL_ARB_sparse_texture */
  3781 
  3782 #ifndef GL_ARB_stencil_texturing
  3783 #define GL_ARB_stencil_texturing 1
  3784 #endif /* GL_ARB_stencil_texturing */
  3785 
  3786 #ifndef GL_ARB_sync
  3787 #define GL_ARB_sync 1
  3788 #endif /* GL_ARB_sync */
  3789 
  3790 #ifndef GL_ARB_tessellation_shader
  3791 #define GL_ARB_tessellation_shader 1
  3792 #endif /* GL_ARB_tessellation_shader */
  3793 
  3794 #ifndef GL_ARB_texture_border_clamp
  3795 #define GL_ARB_texture_border_clamp 1
  3796 #define GL_CLAMP_TO_BORDER_ARB            0x812D
  3797 #endif /* GL_ARB_texture_border_clamp */
  3798 
  3799 #ifndef GL_ARB_texture_buffer_object
  3800 #define GL_ARB_texture_buffer_object 1
  3801 #define GL_TEXTURE_BUFFER_ARB             0x8C2A
  3802 #define GL_MAX_TEXTURE_BUFFER_SIZE_ARB    0x8C2B
  3803 #define GL_TEXTURE_BINDING_BUFFER_ARB     0x8C2C
  3804 #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_ARB 0x8C2D
  3805 #define GL_TEXTURE_BUFFER_FORMAT_ARB      0x8C2E
  3806 typedef void (APIENTRYP PFNGLTEXBUFFERARBPROC) (GLenum target, GLenum internalformat, GLuint buffer);
  3807 #ifdef GL_GLEXT_PROTOTYPES
  3808 GLAPI void APIENTRY glTexBufferARB (GLenum target, GLenum internalformat, GLuint buffer);
  3809 #endif
  3810 #endif /* GL_ARB_texture_buffer_object */
  3811 
  3812 #ifndef GL_ARB_texture_buffer_object_rgb32
  3813 #define GL_ARB_texture_buffer_object_rgb32 1
  3814 #endif /* GL_ARB_texture_buffer_object_rgb32 */
  3815 
  3816 #ifndef GL_ARB_texture_buffer_range
  3817 #define GL_ARB_texture_buffer_range 1
  3818 #endif /* GL_ARB_texture_buffer_range */
  3819 
  3820 #ifndef GL_ARB_texture_compression
  3821 #define GL_ARB_texture_compression 1
  3822 #define GL_COMPRESSED_ALPHA_ARB           0x84E9
  3823 #define GL_COMPRESSED_LUMINANCE_ARB       0x84EA
  3824 #define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
  3825 #define GL_COMPRESSED_INTENSITY_ARB       0x84EC
  3826 #define GL_COMPRESSED_RGB_ARB             0x84ED
  3827 #define GL_COMPRESSED_RGBA_ARB            0x84EE
  3828 #define GL_TEXTURE_COMPRESSION_HINT_ARB   0x84EF
  3829 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
  3830 #define GL_TEXTURE_COMPRESSED_ARB         0x86A1
  3831 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
  3832 #define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
  3833 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
  3834 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
  3835 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DARBPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
  3836 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
  3837 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
  3838 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
  3839 typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint level, void *img);
  3840 #ifdef GL_GLEXT_PROTOTYPES
  3841 GLAPI void APIENTRY glCompressedTexImage3DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
  3842 GLAPI void APIENTRY glCompressedTexImage2DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
  3843 GLAPI void APIENTRY glCompressedTexImage1DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data);
  3844 GLAPI void APIENTRY glCompressedTexSubImage3DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
  3845 GLAPI void APIENTRY glCompressedTexSubImage2DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
  3846 GLAPI void APIENTRY glCompressedTexSubImage1DARB (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data);
  3847 GLAPI void APIENTRY glGetCompressedTexImageARB (GLenum target, GLint level, void *img);
  3848 #endif
  3849 #endif /* GL_ARB_texture_compression */
  3850 
  3851 #ifndef GL_ARB_texture_compression_bptc
  3852 #define GL_ARB_texture_compression_bptc 1
  3853 #define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
  3854 #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
  3855 #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
  3856 #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
  3857 #endif /* GL_ARB_texture_compression_bptc */
  3858 
  3859 #ifndef GL_ARB_texture_compression_rgtc
  3860 #define GL_ARB_texture_compression_rgtc 1
  3861 #endif /* GL_ARB_texture_compression_rgtc */
  3862 
  3863 #ifndef GL_ARB_texture_cube_map
  3864 #define GL_ARB_texture_cube_map 1
  3865 #define GL_NORMAL_MAP_ARB                 0x8511
  3866 #define GL_REFLECTION_MAP_ARB             0x8512
  3867 #define GL_TEXTURE_CUBE_MAP_ARB           0x8513
  3868 #define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
  3869 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
  3870 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
  3871 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
  3872 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
  3873 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
  3874 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
  3875 #define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
  3876 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
  3877 #endif /* GL_ARB_texture_cube_map */
  3878 
  3879 #ifndef GL_ARB_texture_cube_map_array
  3880 #define GL_ARB_texture_cube_map_array 1
  3881 #define GL_TEXTURE_CUBE_MAP_ARRAY_ARB     0x9009
  3882 #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
  3883 #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
  3884 #define GL_SAMPLER_CUBE_MAP_ARRAY_ARB     0x900C
  3885 #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
  3886 #define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
  3887 #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
  3888 #endif /* GL_ARB_texture_cube_map_array */
  3889 
  3890 #ifndef GL_ARB_texture_env_add
  3891 #define GL_ARB_texture_env_add 1
  3892 #endif /* GL_ARB_texture_env_add */
  3893 
  3894 #ifndef GL_ARB_texture_env_combine
  3895 #define GL_ARB_texture_env_combine 1
  3896 #define GL_COMBINE_ARB                    0x8570
  3897 #define GL_COMBINE_RGB_ARB                0x8571
  3898 #define GL_COMBINE_ALPHA_ARB              0x8572
  3899 #define GL_SOURCE0_RGB_ARB                0x8580
  3900 #define GL_SOURCE1_RGB_ARB                0x8581
  3901 #define GL_SOURCE2_RGB_ARB                0x8582
  3902 #define GL_SOURCE0_ALPHA_ARB              0x8588
  3903 #define GL_SOURCE1_ALPHA_ARB              0x8589
  3904 #define GL_SOURCE2_ALPHA_ARB              0x858A
  3905 #define GL_OPERAND0_RGB_ARB               0x8590
  3906 #define GL_OPERAND1_RGB_ARB               0x8591
  3907 #define GL_OPERAND2_RGB_ARB               0x8592
  3908 #define GL_OPERAND0_ALPHA_ARB             0x8598
  3909 #define GL_OPERAND1_ALPHA_ARB             0x8599
  3910 #define GL_OPERAND2_ALPHA_ARB             0x859A
  3911 #define GL_RGB_SCALE_ARB                  0x8573
  3912 #define GL_ADD_SIGNED_ARB                 0x8574
  3913 #define GL_INTERPOLATE_ARB                0x8575
  3914 #define GL_SUBTRACT_ARB                   0x84E7
  3915 #define GL_CONSTANT_ARB                   0x8576
  3916 #define GL_PRIMARY_COLOR_ARB              0x8577
  3917 #define GL_PREVIOUS_ARB                   0x8578
  3918 #endif /* GL_ARB_texture_env_combine */
  3919 
  3920 #ifndef GL_ARB_texture_env_crossbar
  3921 #define GL_ARB_texture_env_crossbar 1
  3922 #endif /* GL_ARB_texture_env_crossbar */
  3923 
  3924 #ifndef GL_ARB_texture_env_dot3
  3925 #define GL_ARB_texture_env_dot3 1
  3926 #define GL_DOT3_RGB_ARB                   0x86AE
  3927 #define GL_DOT3_RGBA_ARB                  0x86AF
  3928 #endif /* GL_ARB_texture_env_dot3 */
  3929 
  3930 #ifndef GL_ARB_texture_float
  3931 #define GL_ARB_texture_float 1
  3932 #define GL_TEXTURE_RED_TYPE_ARB           0x8C10
  3933 #define GL_TEXTURE_GREEN_TYPE_ARB         0x8C11
  3934 #define GL_TEXTURE_BLUE_TYPE_ARB          0x8C12
  3935 #define GL_TEXTURE_ALPHA_TYPE_ARB         0x8C13
  3936 #define GL_TEXTURE_LUMINANCE_TYPE_ARB     0x8C14
  3937 #define GL_TEXTURE_INTENSITY_TYPE_ARB     0x8C15
  3938 #define GL_TEXTURE_DEPTH_TYPE_ARB         0x8C16
  3939 #define GL_UNSIGNED_NORMALIZED_ARB        0x8C17
  3940 #define GL_RGBA32F_ARB                    0x8814
  3941 #define GL_RGB32F_ARB                     0x8815
  3942 #define GL_ALPHA32F_ARB                   0x8816
  3943 #define GL_INTENSITY32F_ARB               0x8817
  3944 #define GL_LUMINANCE32F_ARB               0x8818
  3945 #define GL_LUMINANCE_ALPHA32F_ARB         0x8819
  3946 #define GL_RGBA16F_ARB                    0x881A
  3947 #define GL_RGB16F_ARB                     0x881B
  3948 #define GL_ALPHA16F_ARB                   0x881C
  3949 #define GL_INTENSITY16F_ARB               0x881D
  3950 #define GL_LUMINANCE16F_ARB               0x881E
  3951 #define GL_LUMINANCE_ALPHA16F_ARB         0x881F
  3952 #endif /* GL_ARB_texture_float */
  3953 
  3954 #ifndef GL_ARB_texture_gather
  3955 #define GL_ARB_texture_gather 1
  3956 #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
  3957 #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
  3958 #define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
  3959 #endif /* GL_ARB_texture_gather */
  3960 
  3961 #ifndef GL_ARB_texture_mirror_clamp_to_edge
  3962 #define GL_ARB_texture_mirror_clamp_to_edge 1
  3963 #endif /* GL_ARB_texture_mirror_clamp_to_edge */
  3964 
  3965 #ifndef GL_ARB_texture_mirrored_repeat
  3966 #define GL_ARB_texture_mirrored_repeat 1
  3967 #define GL_MIRRORED_REPEAT_ARB            0x8370
  3968 #endif /* GL_ARB_texture_mirrored_repeat */
  3969 
  3970 #ifndef GL_ARB_texture_multisample
  3971 #define GL_ARB_texture_multisample 1
  3972 #endif /* GL_ARB_texture_multisample */
  3973 
  3974 #ifndef GL_ARB_texture_non_power_of_two
  3975 #define GL_ARB_texture_non_power_of_two 1
  3976 #endif /* GL_ARB_texture_non_power_of_two */
  3977 
  3978 #ifndef GL_ARB_texture_query_levels
  3979 #define GL_ARB_texture_query_levels 1
  3980 #endif /* GL_ARB_texture_query_levels */
  3981 
  3982 #ifndef GL_ARB_texture_query_lod
  3983 #define GL_ARB_texture_query_lod 1
  3984 #endif /* GL_ARB_texture_query_lod */
  3985 
  3986 #ifndef GL_ARB_texture_rectangle
  3987 #define GL_ARB_texture_rectangle 1
  3988 #define GL_TEXTURE_RECTANGLE_ARB          0x84F5
  3989 #define GL_TEXTURE_BINDING_RECTANGLE_ARB  0x84F6
  3990 #define GL_PROXY_TEXTURE_RECTANGLE_ARB    0x84F7
  3991 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
  3992 #endif /* GL_ARB_texture_rectangle */
  3993 
  3994 #ifndef GL_ARB_texture_rg
  3995 #define GL_ARB_texture_rg 1
  3996 #endif /* GL_ARB_texture_rg */
  3997 
  3998 #ifndef GL_ARB_texture_rgb10_a2ui
  3999 #define GL_ARB_texture_rgb10_a2ui 1
  4000 #endif /* GL_ARB_texture_rgb10_a2ui */
  4001 
  4002 #ifndef GL_ARB_texture_stencil8
  4003 #define GL_ARB_texture_stencil8 1
  4004 #endif /* GL_ARB_texture_stencil8 */
  4005 
  4006 #ifndef GL_ARB_texture_storage
  4007 #define GL_ARB_texture_storage 1
  4008 #endif /* GL_ARB_texture_storage */
  4009 
  4010 #ifndef GL_ARB_texture_storage_multisample
  4011 #define GL_ARB_texture_storage_multisample 1
  4012 #endif /* GL_ARB_texture_storage_multisample */
  4013 
  4014 #ifndef GL_ARB_texture_swizzle
  4015 #define GL_ARB_texture_swizzle 1
  4016 #endif /* GL_ARB_texture_swizzle */
  4017 
  4018 #ifndef GL_ARB_texture_view
  4019 #define GL_ARB_texture_view 1
  4020 #endif /* GL_ARB_texture_view */
  4021 
  4022 #ifndef GL_ARB_timer_query
  4023 #define GL_ARB_timer_query 1
  4024 #endif /* GL_ARB_timer_query */
  4025 
  4026 #ifndef GL_ARB_transform_feedback2
  4027 #define GL_ARB_transform_feedback2 1
  4028 #define GL_TRANSFORM_FEEDBACK_PAUSED      0x8E23
  4029 #define GL_TRANSFORM_FEEDBACK_ACTIVE      0x8E24
  4030 #endif /* GL_ARB_transform_feedback2 */
  4031 
  4032 #ifndef GL_ARB_transform_feedback3
  4033 #define GL_ARB_transform_feedback3 1
  4034 #endif /* GL_ARB_transform_feedback3 */
  4035 
  4036 #ifndef GL_ARB_transform_feedback_instanced
  4037 #define GL_ARB_transform_feedback_instanced 1
  4038 #endif /* GL_ARB_transform_feedback_instanced */
  4039 
  4040 #ifndef GL_ARB_transpose_matrix
  4041 #define GL_ARB_transpose_matrix 1
  4042 #define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
  4043 #define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
  4044 #define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
  4045 #define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
  4046 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
  4047 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
  4048 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXFARBPROC) (const GLfloat *m);
  4049 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXDARBPROC) (const GLdouble *m);
  4050 #ifdef GL_GLEXT_PROTOTYPES
  4051 GLAPI void APIENTRY glLoadTransposeMatrixfARB (const GLfloat *m);
  4052 GLAPI void APIENTRY glLoadTransposeMatrixdARB (const GLdouble *m);
  4053 GLAPI void APIENTRY glMultTransposeMatrixfARB (const GLfloat *m);
  4054 GLAPI void APIENTRY glMultTransposeMatrixdARB (const GLdouble *m);
  4055 #endif
  4056 #endif /* GL_ARB_transpose_matrix */
  4057 
  4058 #ifndef GL_ARB_uniform_buffer_object
  4059 #define GL_ARB_uniform_buffer_object 1
  4060 #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS    0x8A2C
  4061 #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
  4062 #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
  4063 #endif /* GL_ARB_uniform_buffer_object */
  4064 
  4065 #ifndef GL_ARB_vertex_array_bgra
  4066 #define GL_ARB_vertex_array_bgra 1
  4067 #endif /* GL_ARB_vertex_array_bgra */
  4068 
  4069 #ifndef GL_ARB_vertex_array_object
  4070 #define GL_ARB_vertex_array_object 1
  4071 #endif /* GL_ARB_vertex_array_object */
  4072 
  4073 #ifndef GL_ARB_vertex_attrib_64bit
  4074 #define GL_ARB_vertex_attrib_64bit 1
  4075 #endif /* GL_ARB_vertex_attrib_64bit */
  4076 
  4077 #ifndef GL_ARB_vertex_attrib_binding
  4078 #define GL_ARB_vertex_attrib_binding 1
  4079 #endif /* GL_ARB_vertex_attrib_binding */
  4080 
  4081 #ifndef GL_ARB_vertex_blend
  4082 #define GL_ARB_vertex_blend 1
  4083 #define GL_MAX_VERTEX_UNITS_ARB           0x86A4
  4084 #define GL_ACTIVE_VERTEX_UNITS_ARB        0x86A5
  4085 #define GL_WEIGHT_SUM_UNITY_ARB           0x86A6
  4086 #define GL_VERTEX_BLEND_ARB               0x86A7
  4087 #define GL_CURRENT_WEIGHT_ARB             0x86A8
  4088 #define GL_WEIGHT_ARRAY_TYPE_ARB          0x86A9
  4089 #define GL_WEIGHT_ARRAY_STRIDE_ARB        0x86AA
  4090 #define GL_WEIGHT_ARRAY_SIZE_ARB          0x86AB
  4091 #define GL_WEIGHT_ARRAY_POINTER_ARB       0x86AC
  4092 #define GL_WEIGHT_ARRAY_ARB               0x86AD
  4093 #define GL_MODELVIEW0_ARB                 0x1700
  4094 #define GL_MODELVIEW1_ARB                 0x850A
  4095 #define GL_MODELVIEW2_ARB                 0x8722
  4096 #define GL_MODELVIEW3_ARB                 0x8723
  4097 #define GL_MODELVIEW4_ARB                 0x8724
  4098 #define GL_MODELVIEW5_ARB                 0x8725
  4099 #define GL_MODELVIEW6_ARB                 0x8726
  4100 #define GL_MODELVIEW7_ARB                 0x8727
  4101 #define GL_MODELVIEW8_ARB                 0x8728
  4102 #define GL_MODELVIEW9_ARB                 0x8729
  4103 #define GL_MODELVIEW10_ARB                0x872A
  4104 #define GL_MODELVIEW11_ARB                0x872B
  4105 #define GL_MODELVIEW12_ARB                0x872C
  4106 #define GL_MODELVIEW13_ARB                0x872D
  4107 #define GL_MODELVIEW14_ARB                0x872E
  4108 #define GL_MODELVIEW15_ARB                0x872F
  4109 #define GL_MODELVIEW16_ARB                0x8730
  4110 #define GL_MODELVIEW17_ARB                0x8731
  4111 #define GL_MODELVIEW18_ARB                0x8732
  4112 #define GL_MODELVIEW19_ARB                0x8733
  4113 #define GL_MODELVIEW20_ARB                0x8734
  4114 #define GL_MODELVIEW21_ARB                0x8735
  4115 #define GL_MODELVIEW22_ARB                0x8736
  4116 #define GL_MODELVIEW23_ARB                0x8737
  4117 #define GL_MODELVIEW24_ARB                0x8738
  4118 #define GL_MODELVIEW25_ARB                0x8739
  4119 #define GL_MODELVIEW26_ARB                0x873A
  4120 #define GL_MODELVIEW27_ARB                0x873B
  4121 #define GL_MODELVIEW28_ARB                0x873C
  4122 #define GL_MODELVIEW29_ARB                0x873D
  4123 #define GL_MODELVIEW30_ARB                0x873E
  4124 #define GL_MODELVIEW31_ARB                0x873F
  4125 typedef void (APIENTRYP PFNGLWEIGHTBVARBPROC) (GLint size, const GLbyte *weights);
  4126 typedef void (APIENTRYP PFNGLWEIGHTSVARBPROC) (GLint size, const GLshort *weights);
  4127 typedef void (APIENTRYP PFNGLWEIGHTIVARBPROC) (GLint size, const GLint *weights);
  4128 typedef void (APIENTRYP PFNGLWEIGHTFVARBPROC) (GLint size, const GLfloat *weights);
  4129 typedef void (APIENTRYP PFNGLWEIGHTDVARBPROC) (GLint size, const GLdouble *weights);
  4130 typedef void (APIENTRYP PFNGLWEIGHTUBVARBPROC) (GLint size, const GLubyte *weights);
  4131 typedef void (APIENTRYP PFNGLWEIGHTUSVARBPROC) (GLint size, const GLushort *weights);
  4132 typedef void (APIENTRYP PFNGLWEIGHTUIVARBPROC) (GLint size, const GLuint *weights);
  4133 typedef void (APIENTRYP PFNGLWEIGHTPOINTERARBPROC) (GLint size, GLenum type, GLsizei stride, const void *pointer);
  4134 typedef void (APIENTRYP PFNGLVERTEXBLENDARBPROC) (GLint count);
  4135 #ifdef GL_GLEXT_PROTOTYPES
  4136 GLAPI void APIENTRY glWeightbvARB (GLint size, const GLbyte *weights);
  4137 GLAPI void APIENTRY glWeightsvARB (GLint size, const GLshort *weights);
  4138 GLAPI void APIENTRY glWeightivARB (GLint size, const GLint *weights);
  4139 GLAPI void APIENTRY glWeightfvARB (GLint size, const GLfloat *weights);
  4140 GLAPI void APIENTRY glWeightdvARB (GLint size, const GLdouble *weights);
  4141 GLAPI void APIENTRY glWeightubvARB (GLint size, const GLubyte *weights);
  4142 GLAPI void APIENTRY glWeightusvARB (GLint size, const GLushort *weights);
  4143 GLAPI void APIENTRY glWeightuivARB (GLint size, const GLuint *weights);
  4144 GLAPI void APIENTRY glWeightPointerARB (GLint size, GLenum type, GLsizei stride, const void *pointer);
  4145 GLAPI void APIENTRY glVertexBlendARB (GLint count);
  4146 #endif
  4147 #endif /* GL_ARB_vertex_blend */
  4148 
  4149 #ifndef GL_ARB_vertex_buffer_object
  4150 #define GL_ARB_vertex_buffer_object 1
  4151 #ifdef __MACOSX__ /* The OS X headers haven't caught up with Khronos yet */
  4152 typedef long GLsizeiptrARB;
  4153 typedef long GLintptrARB;
  4154 #else
  4155 typedef ptrdiff_t GLsizeiptrARB;
  4156 typedef ptrdiff_t GLintptrARB;
  4157 #endif
  4158 #define GL_BUFFER_SIZE_ARB                0x8764
  4159 #define GL_BUFFER_USAGE_ARB               0x8765
  4160 #define GL_ARRAY_BUFFER_ARB               0x8892
  4161 #define GL_ELEMENT_ARRAY_BUFFER_ARB       0x8893
  4162 #define GL_ARRAY_BUFFER_BINDING_ARB       0x8894
  4163 #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
  4164 #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
  4165 #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
  4166 #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
  4167 #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
  4168 #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
  4169 #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
  4170 #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
  4171 #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
  4172 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
  4173 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
  4174 #define GL_READ_ONLY_ARB                  0x88B8
  4175 #define GL_WRITE_ONLY_ARB                 0x88B9
  4176 #define GL_READ_WRITE_ARB                 0x88BA
  4177 #define GL_BUFFER_ACCESS_ARB              0x88BB
  4178 #define GL_BUFFER_MAPPED_ARB              0x88BC
  4179 #define GL_BUFFER_MAP_POINTER_ARB         0x88BD
  4180 #define GL_STREAM_DRAW_ARB                0x88E0
  4181 #define GL_STREAM_READ_ARB                0x88E1
  4182 #define GL_STREAM_COPY_ARB                0x88E2
  4183 #define GL_STATIC_DRAW_ARB                0x88E4
  4184 #define GL_STATIC_READ_ARB                0x88E5
  4185 #define GL_STATIC_COPY_ARB                0x88E6
  4186 #define GL_DYNAMIC_DRAW_ARB               0x88E8
  4187 #define GL_DYNAMIC_READ_ARB               0x88E9
  4188 #define GL_DYNAMIC_COPY_ARB               0x88EA
  4189 typedef void (APIENTRYP PFNGLBINDBUFFERARBPROC) (GLenum target, GLuint buffer);
  4190 typedef void (APIENTRYP PFNGLDELETEBUFFERSARBPROC) (GLsizei n, const GLuint *buffers);
  4191 typedef void (APIENTRYP PFNGLGENBUFFERSARBPROC) (GLsizei n, GLuint *buffers);
  4192 typedef GLboolean (APIENTRYP PFNGLISBUFFERARBPROC) (GLuint buffer);
  4193 typedef void (APIENTRYP PFNGLBUFFERDATAARBPROC) (GLenum target, GLsizeiptrARB size, const void *data, GLenum usage);
  4194 typedef void (APIENTRYP PFNGLBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data);
  4195 typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAARBPROC) (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data);
  4196 typedef void *(APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
  4197 typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERARBPROC) (GLenum target);
  4198 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVARBPROC) (GLenum target, GLenum pname, GLint *params);
  4199 typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVARBPROC) (GLenum target, GLenum pname, void **params);
  4200 #ifdef GL_GLEXT_PROTOTYPES
  4201 GLAPI void APIENTRY glBindBufferARB (GLenum target, GLuint buffer);
  4202 GLAPI void APIENTRY glDeleteBuffersARB (GLsizei n, const GLuint *buffers);
  4203 GLAPI void APIENTRY glGenBuffersARB (GLsizei n, GLuint *buffers);
  4204 GLAPI GLboolean APIENTRY glIsBufferARB (GLuint buffer);
  4205 GLAPI void APIENTRY glBufferDataARB (GLenum target, GLsizeiptrARB size, const void *data, GLenum usage);
  4206 GLAPI void APIENTRY glBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, const void *data);
  4207 GLAPI void APIENTRY glGetBufferSubDataARB (GLenum target, GLintptrARB offset, GLsizeiptrARB size, void *data);
  4208 GLAPI void *APIENTRY glMapBufferARB (GLenum target, GLenum access);
  4209 GLAPI GLboolean APIENTRY glUnmapBufferARB (GLenum target);
  4210 GLAPI void APIENTRY glGetBufferParameterivARB (GLenum target, GLenum pname, GLint *params);
  4211 GLAPI void APIENTRY glGetBufferPointervARB (GLenum target, GLenum pname, void **params);
  4212 #endif
  4213 #endif /* GL_ARB_vertex_buffer_object */
  4214 
  4215 #ifndef GL_ARB_vertex_program
  4216 #define GL_ARB_vertex_program 1
  4217 #define GL_COLOR_SUM_ARB                  0x8458
  4218 #define GL_VERTEX_PROGRAM_ARB             0x8620
  4219 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
  4220 #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB   0x8623
  4221 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
  4222 #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB   0x8625
  4223 #define GL_CURRENT_VERTEX_ATTRIB_ARB      0x8626
  4224 #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB  0x8642
  4225 #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB    0x8643
  4226 #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
  4227 #define GL_MAX_VERTEX_ATTRIBS_ARB         0x8869
  4228 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
  4229 #define GL_PROGRAM_ADDRESS_REGISTERS_ARB  0x88B0
  4230 #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
  4231 #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
  4232 #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
  4233 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DARBPROC) (GLuint index, GLdouble x);
  4234 typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVARBPROC) (GLuint index, const GLdouble *v);
  4235 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FARBPROC) (GLuint index, GLfloat x);
  4236 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVARBPROC) (GLuint index, const GLfloat *v);
  4237 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SARBPROC) (GLuint index, GLshort x);
  4238 typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVARBPROC) (GLuint index, const GLshort *v);
  4239 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DARBPROC) (GLuint index, GLdouble x, GLdouble y);
  4240 typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVARBPROC) (GLuint index, const GLdouble *v);
  4241 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FARBPROC) (GLuint index, GLfloat x, GLfloat y);
  4242 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVARBPROC) (GLuint index, const GLfloat *v);
  4243 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SARBPROC) (GLuint index, GLshort x, GLshort y);
  4244 typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVARBPROC) (GLuint index, const GLshort *v);
  4245 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  4246 typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVARBPROC) (GLuint index, const GLdouble *v);
  4247 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
  4248 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVARBPROC) (GLuint index, const GLfloat *v);
  4249 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
  4250 typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVARBPROC) (GLuint index, const GLshort *v);
  4251 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVARBPROC) (GLuint index, const GLbyte *v);
  4252 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVARBPROC) (GLuint index, const GLint *v);
  4253 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVARBPROC) (GLuint index, const GLshort *v);
  4254 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBARBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
  4255 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVARBPROC) (GLuint index, const GLubyte *v);
  4256 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVARBPROC) (GLuint index, const GLuint *v);
  4257 typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVARBPROC) (GLuint index, const GLushort *v);
  4258 typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVARBPROC) (GLuint index, const GLbyte *v);
  4259 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DARBPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  4260 typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVARBPROC) (GLuint index, const GLdouble *v);
  4261 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FARBPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  4262 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVARBPROC) (GLuint index, const GLfloat *v);
  4263 typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVARBPROC) (GLuint index, const GLint *v);
  4264 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SARBPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
  4265 typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVARBPROC) (GLuint index, const GLshort *v);
  4266 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVARBPROC) (GLuint index, const GLubyte *v);
  4267 typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVARBPROC) (GLuint index, const GLuint *v);
  4268 typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVARBPROC) (GLuint index, const GLushort *v);
  4269 typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERARBPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
  4270 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
  4271 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYARBPROC) (GLuint index);
  4272 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVARBPROC) (GLuint index, GLenum pname, GLdouble *params);
  4273 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVARBPROC) (GLuint index, GLenum pname, GLfloat *params);
  4274 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVARBPROC) (GLuint index, GLenum pname, GLint *params);
  4275 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVARBPROC) (GLuint index, GLenum pname, void **pointer);
  4276 #ifdef GL_GLEXT_PROTOTYPES
  4277 GLAPI void APIENTRY glVertexAttrib1dARB (GLuint index, GLdouble x);
  4278 GLAPI void APIENTRY glVertexAttrib1dvARB (GLuint index, const GLdouble *v);
  4279 GLAPI void APIENTRY glVertexAttrib1fARB (GLuint index, GLfloat x);
  4280 GLAPI void APIENTRY glVertexAttrib1fvARB (GLuint index, const GLfloat *v);
  4281 GLAPI void APIENTRY glVertexAttrib1sARB (GLuint index, GLshort x);
  4282 GLAPI void APIENTRY glVertexAttrib1svARB (GLuint index, const GLshort *v);
  4283 GLAPI void APIENTRY glVertexAttrib2dARB (GLuint index, GLdouble x, GLdouble y);
  4284 GLAPI void APIENTRY glVertexAttrib2dvARB (GLuint index, const GLdouble *v);
  4285 GLAPI void APIENTRY glVertexAttrib2fARB (GLuint index, GLfloat x, GLfloat y);
  4286 GLAPI void APIENTRY glVertexAttrib2fvARB (GLuint index, const GLfloat *v);
  4287 GLAPI void APIENTRY glVertexAttrib2sARB (GLuint index, GLshort x, GLshort y);
  4288 GLAPI void APIENTRY glVertexAttrib2svARB (GLuint index, const GLshort *v);
  4289 GLAPI void APIENTRY glVertexAttrib3dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  4290 GLAPI void APIENTRY glVertexAttrib3dvARB (GLuint index, const GLdouble *v);
  4291 GLAPI void APIENTRY glVertexAttrib3fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z);
  4292 GLAPI void APIENTRY glVertexAttrib3fvARB (GLuint index, const GLfloat *v);
  4293 GLAPI void APIENTRY glVertexAttrib3sARB (GLuint index, GLshort x, GLshort y, GLshort z);
  4294 GLAPI void APIENTRY glVertexAttrib3svARB (GLuint index, const GLshort *v);
  4295 GLAPI void APIENTRY glVertexAttrib4NbvARB (GLuint index, const GLbyte *v);
  4296 GLAPI void APIENTRY glVertexAttrib4NivARB (GLuint index, const GLint *v);
  4297 GLAPI void APIENTRY glVertexAttrib4NsvARB (GLuint index, const GLshort *v);
  4298 GLAPI void APIENTRY glVertexAttrib4NubARB (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
  4299 GLAPI void APIENTRY glVertexAttrib4NubvARB (GLuint index, const GLubyte *v);
  4300 GLAPI void APIENTRY glVertexAttrib4NuivARB (GLuint index, const GLuint *v);
  4301 GLAPI void APIENTRY glVertexAttrib4NusvARB (GLuint index, const GLushort *v);
  4302 GLAPI void APIENTRY glVertexAttrib4bvARB (GLuint index, const GLbyte *v);
  4303 GLAPI void APIENTRY glVertexAttrib4dARB (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  4304 GLAPI void APIENTRY glVertexAttrib4dvARB (GLuint index, const GLdouble *v);
  4305 GLAPI void APIENTRY glVertexAttrib4fARB (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  4306 GLAPI void APIENTRY glVertexAttrib4fvARB (GLuint index, const GLfloat *v);
  4307 GLAPI void APIENTRY glVertexAttrib4ivARB (GLuint index, const GLint *v);
  4308 GLAPI void APIENTRY glVertexAttrib4sARB (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
  4309 GLAPI void APIENTRY glVertexAttrib4svARB (GLuint index, const GLshort *v);
  4310 GLAPI void APIENTRY glVertexAttrib4ubvARB (GLuint index, const GLubyte *v);
  4311 GLAPI void APIENTRY glVertexAttrib4uivARB (GLuint index, const GLuint *v);
  4312 GLAPI void APIENTRY glVertexAttrib4usvARB (GLuint index, const GLushort *v);
  4313 GLAPI void APIENTRY glVertexAttribPointerARB (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
  4314 GLAPI void APIENTRY glEnableVertexAttribArrayARB (GLuint index);
  4315 GLAPI void APIENTRY glDisableVertexAttribArrayARB (GLuint index);
  4316 GLAPI void APIENTRY glGetVertexAttribdvARB (GLuint index, GLenum pname, GLdouble *params);
  4317 GLAPI void APIENTRY glGetVertexAttribfvARB (GLuint index, GLenum pname, GLfloat *params);
  4318 GLAPI void APIENTRY glGetVertexAttribivARB (GLuint index, GLenum pname, GLint *params);
  4319 GLAPI void APIENTRY glGetVertexAttribPointervARB (GLuint index, GLenum pname, void **pointer);
  4320 #endif
  4321 #endif /* GL_ARB_vertex_program */
  4322 
  4323 #ifndef GL_ARB_vertex_shader
  4324 #define GL_ARB_vertex_shader 1
  4325 #define GL_VERTEX_SHADER_ARB              0x8B31
  4326 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
  4327 #define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
  4328 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
  4329 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
  4330 #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
  4331 #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
  4332 typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONARBPROC) (GLhandleARB programObj, GLuint index, const GLcharARB *name);
  4333 typedef void (APIENTRYP PFNGLGETACTIVEATTRIBARBPROC) (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
  4334 typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONARBPROC) (GLhandleARB programObj, const GLcharARB *name);
  4335 #ifdef GL_GLEXT_PROTOTYPES
  4336 GLAPI void APIENTRY glBindAttribLocationARB (GLhandleARB programObj, GLuint index, const GLcharARB *name);
  4337 GLAPI void APIENTRY glGetActiveAttribARB (GLhandleARB programObj, GLuint index, GLsizei maxLength, GLsizei *length, GLint *size, GLenum *type, GLcharARB *name);
  4338 GLAPI GLint APIENTRY glGetAttribLocationARB (GLhandleARB programObj, const GLcharARB *name);
  4339 #endif
  4340 #endif /* GL_ARB_vertex_shader */
  4341 
  4342 #ifndef GL_ARB_vertex_type_10f_11f_11f_rev
  4343 #define GL_ARB_vertex_type_10f_11f_11f_rev 1
  4344 #endif /* GL_ARB_vertex_type_10f_11f_11f_rev */
  4345 
  4346 #ifndef GL_ARB_vertex_type_2_10_10_10_rev
  4347 #define GL_ARB_vertex_type_2_10_10_10_rev 1
  4348 #endif /* GL_ARB_vertex_type_2_10_10_10_rev */
  4349 
  4350 #ifndef GL_ARB_viewport_array
  4351 #define GL_ARB_viewport_array 1
  4352 #endif /* GL_ARB_viewport_array */
  4353 
  4354 #ifndef GL_ARB_window_pos
  4355 #define GL_ARB_window_pos 1
  4356 typedef void (APIENTRYP PFNGLWINDOWPOS2DARBPROC) (GLdouble x, GLdouble y);
  4357 typedef void (APIENTRYP PFNGLWINDOWPOS2DVARBPROC) (const GLdouble *v);
  4358 typedef void (APIENTRYP PFNGLWINDOWPOS2FARBPROC) (GLfloat x, GLfloat y);
  4359 typedef void (APIENTRYP PFNGLWINDOWPOS2FVARBPROC) (const GLfloat *v);
  4360 typedef void (APIENTRYP PFNGLWINDOWPOS2IARBPROC) (GLint x, GLint y);
  4361 typedef void (APIENTRYP PFNGLWINDOWPOS2IVARBPROC) (const GLint *v);
  4362 typedef void (APIENTRYP PFNGLWINDOWPOS2SARBPROC) (GLshort x, GLshort y);
  4363 typedef void (APIENTRYP PFNGLWINDOWPOS2SVARBPROC) (const GLshort *v);
  4364 typedef void (APIENTRYP PFNGLWINDOWPOS3DARBPROC) (GLdouble x, GLdouble y, GLdouble z);
  4365 typedef void (APIENTRYP PFNGLWINDOWPOS3DVARBPROC) (const GLdouble *v);
  4366 typedef void (APIENTRYP PFNGLWINDOWPOS3FARBPROC) (GLfloat x, GLfloat y, GLfloat z);
  4367 typedef void (APIENTRYP PFNGLWINDOWPOS3FVARBPROC) (const GLfloat *v);
  4368 typedef void (APIENTRYP PFNGLWINDOWPOS3IARBPROC) (GLint x, GLint y, GLint z);
  4369 typedef void (APIENTRYP PFNGLWINDOWPOS3IVARBPROC) (const GLint *v);
  4370 typedef void (APIENTRYP PFNGLWINDOWPOS3SARBPROC) (GLshort x, GLshort y, GLshort z);
  4371 typedef void (APIENTRYP PFNGLWINDOWPOS3SVARBPROC) (const GLshort *v);
  4372 #ifdef GL_GLEXT_PROTOTYPES
  4373 GLAPI void APIENTRY glWindowPos2dARB (GLdouble x, GLdouble y);
  4374 GLAPI void APIENTRY glWindowPos2dvARB (const GLdouble *v);
  4375 GLAPI void APIENTRY glWindowPos2fARB (GLfloat x, GLfloat y);
  4376 GLAPI void APIENTRY glWindowPos2fvARB (const GLfloat *v);
  4377 GLAPI void APIENTRY glWindowPos2iARB (GLint x, GLint y);
  4378 GLAPI void APIENTRY glWindowPos2ivARB (const GLint *v);
  4379 GLAPI void APIENTRY glWindowPos2sARB (GLshort x, GLshort y);
  4380 GLAPI void APIENTRY glWindowPos2svARB (const GLshort *v);
  4381 GLAPI void APIENTRY glWindowPos3dARB (GLdouble x, GLdouble y, GLdouble z);
  4382 GLAPI void APIENTRY glWindowPos3dvARB (const GLdouble *v);
  4383 GLAPI void APIENTRY glWindowPos3fARB (GLfloat x, GLfloat y, GLfloat z);
  4384 GLAPI void APIENTRY glWindowPos3fvARB (const GLfloat *v);
  4385 GLAPI void APIENTRY glWindowPos3iARB (GLint x, GLint y, GLint z);
  4386 GLAPI void APIENTRY glWindowPos3ivARB (const GLint *v);
  4387 GLAPI void APIENTRY glWindowPos3sARB (GLshort x, GLshort y, GLshort z);
  4388 GLAPI void APIENTRY glWindowPos3svARB (const GLshort *v);
  4389 #endif
  4390 #endif /* GL_ARB_window_pos */
  4391 
  4392 #ifndef GL_KHR_debug
  4393 #define GL_KHR_debug 1
  4394 #endif /* GL_KHR_debug */
  4395 
  4396 #ifndef GL_KHR_texture_compression_astc_hdr
  4397 #define GL_KHR_texture_compression_astc_hdr 1
  4398 #define GL_COMPRESSED_RGBA_ASTC_4x4_KHR   0x93B0
  4399 #define GL_COMPRESSED_RGBA_ASTC_5x4_KHR   0x93B1
  4400 #define GL_COMPRESSED_RGBA_ASTC_5x5_KHR   0x93B2
  4401 #define GL_COMPRESSED_RGBA_ASTC_6x5_KHR   0x93B3
  4402 #define GL_COMPRESSED_RGBA_ASTC_6x6_KHR   0x93B4
  4403 #define GL_COMPRESSED_RGBA_ASTC_8x5_KHR   0x93B5
  4404 #define GL_COMPRESSED_RGBA_ASTC_8x6_KHR   0x93B6
  4405 #define GL_COMPRESSED_RGBA_ASTC_8x8_KHR   0x93B7
  4406 #define GL_COMPRESSED_RGBA_ASTC_10x5_KHR  0x93B8
  4407 #define GL_COMPRESSED_RGBA_ASTC_10x6_KHR  0x93B9
  4408 #define GL_COMPRESSED_RGBA_ASTC_10x8_KHR  0x93BA
  4409 #define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
  4410 #define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
  4411 #define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
  4412 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
  4413 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
  4414 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
  4415 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
  4416 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
  4417 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
  4418 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
  4419 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
  4420 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
  4421 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
  4422 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
  4423 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
  4424 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
  4425 #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
  4426 #endif /* GL_KHR_texture_compression_astc_hdr */
  4427 
  4428 #ifndef GL_KHR_texture_compression_astc_ldr
  4429 #define GL_KHR_texture_compression_astc_ldr 1
  4430 #endif /* GL_KHR_texture_compression_astc_ldr */
  4431 
  4432 #ifndef GL_OES_byte_coordinates
  4433 #define GL_OES_byte_coordinates 1
  4434 typedef void (APIENTRYP PFNGLMULTITEXCOORD1BOESPROC) (GLenum texture, GLbyte s);
  4435 typedef void (APIENTRYP PFNGLMULTITEXCOORD1BVOESPROC) (GLenum texture, const GLbyte *coords);
  4436 typedef void (APIENTRYP PFNGLMULTITEXCOORD2BOESPROC) (GLenum texture, GLbyte s, GLbyte t);
  4437 typedef void (APIENTRYP PFNGLMULTITEXCOORD2BVOESPROC) (GLenum texture, const GLbyte *coords);
  4438 typedef void (APIENTRYP PFNGLMULTITEXCOORD3BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r);
  4439 typedef void (APIENTRYP PFNGLMULTITEXCOORD3BVOESPROC) (GLenum texture, const GLbyte *coords);
  4440 typedef void (APIENTRYP PFNGLMULTITEXCOORD4BOESPROC) (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q);
  4441 typedef void (APIENTRYP PFNGLMULTITEXCOORD4BVOESPROC) (GLenum texture, const GLbyte *coords);
  4442 typedef void (APIENTRYP PFNGLTEXCOORD1BOESPROC) (GLbyte s);
  4443 typedef void (APIENTRYP PFNGLTEXCOORD1BVOESPROC) (const GLbyte *coords);
  4444 typedef void (APIENTRYP PFNGLTEXCOORD2BOESPROC) (GLbyte s, GLbyte t);
  4445 typedef void (APIENTRYP PFNGLTEXCOORD2BVOESPROC) (const GLbyte *coords);
  4446 typedef void (APIENTRYP PFNGLTEXCOORD3BOESPROC) (GLbyte s, GLbyte t, GLbyte r);
  4447 typedef void (APIENTRYP PFNGLTEXCOORD3BVOESPROC) (const GLbyte *coords);
  4448 typedef void (APIENTRYP PFNGLTEXCOORD4BOESPROC) (GLbyte s, GLbyte t, GLbyte r, GLbyte q);
  4449 typedef void (APIENTRYP PFNGLTEXCOORD4BVOESPROC) (const GLbyte *coords);
  4450 typedef void (APIENTRYP PFNGLVERTEX2BOESPROC) (GLbyte x);
  4451 typedef void (APIENTRYP PFNGLVERTEX2BVOESPROC) (const GLbyte *coords);
  4452 typedef void (APIENTRYP PFNGLVERTEX3BOESPROC) (GLbyte x, GLbyte y);
  4453 typedef void (APIENTRYP PFNGLVERTEX3BVOESPROC) (const GLbyte *coords);
  4454 typedef void (APIENTRYP PFNGLVERTEX4BOESPROC) (GLbyte x, GLbyte y, GLbyte z);
  4455 typedef void (APIENTRYP PFNGLVERTEX4BVOESPROC) (const GLbyte *coords);
  4456 #ifdef GL_GLEXT_PROTOTYPES
  4457 GLAPI void APIENTRY glMultiTexCoord1bOES (GLenum texture, GLbyte s);
  4458 GLAPI void APIENTRY glMultiTexCoord1bvOES (GLenum texture, const GLbyte *coords);
  4459 GLAPI void APIENTRY glMultiTexCoord2bOES (GLenum texture, GLbyte s, GLbyte t);
  4460 GLAPI void APIENTRY glMultiTexCoord2bvOES (GLenum texture, const GLbyte *coords);
  4461 GLAPI void APIENTRY glMultiTexCoord3bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r);
  4462 GLAPI void APIENTRY glMultiTexCoord3bvOES (GLenum texture, const GLbyte *coords);
  4463 GLAPI void APIENTRY glMultiTexCoord4bOES (GLenum texture, GLbyte s, GLbyte t, GLbyte r, GLbyte q);
  4464 GLAPI void APIENTRY glMultiTexCoord4bvOES (GLenum texture, const GLbyte *coords);
  4465 GLAPI void APIENTRY glTexCoord1bOES (GLbyte s);
  4466 GLAPI void APIENTRY glTexCoord1bvOES (const GLbyte *coords);
  4467 GLAPI void APIENTRY glTexCoord2bOES (GLbyte s, GLbyte t);
  4468 GLAPI void APIENTRY glTexCoord2bvOES (const GLbyte *coords);
  4469 GLAPI void APIENTRY glTexCoord3bOES (GLbyte s, GLbyte t, GLbyte r);
  4470 GLAPI void APIENTRY glTexCoord3bvOES (const GLbyte *coords);
  4471 GLAPI void APIENTRY glTexCoord4bOES (GLbyte s, GLbyte t, GLbyte r, GLbyte q);
  4472 GLAPI void APIENTRY glTexCoord4bvOES (const GLbyte *coords);
  4473 GLAPI void APIENTRY glVertex2bOES (GLbyte x);
  4474 GLAPI void APIENTRY glVertex2bvOES (const GLbyte *coords);
  4475 GLAPI void APIENTRY glVertex3bOES (GLbyte x, GLbyte y);
  4476 GLAPI void APIENTRY glVertex3bvOES (const GLbyte *coords);
  4477 GLAPI void APIENTRY glVertex4bOES (GLbyte x, GLbyte y, GLbyte z);
  4478 GLAPI void APIENTRY glVertex4bvOES (const GLbyte *coords);
  4479 #endif
  4480 #endif /* GL_OES_byte_coordinates */
  4481 
  4482 #ifndef GL_OES_compressed_paletted_texture
  4483 #define GL_OES_compressed_paletted_texture 1
  4484 #define GL_PALETTE4_RGB8_OES              0x8B90
  4485 #define GL_PALETTE4_RGBA8_OES             0x8B91
  4486 #define GL_PALETTE4_R5_G6_B5_OES          0x8B92
  4487 #define GL_PALETTE4_RGBA4_OES             0x8B93
  4488 #define GL_PALETTE4_RGB5_A1_OES           0x8B94
  4489 #define GL_PALETTE8_RGB8_OES              0x8B95
  4490 #define GL_PALETTE8_RGBA8_OES             0x8B96
  4491 #define GL_PALETTE8_R5_G6_B5_OES          0x8B97
  4492 #define GL_PALETTE8_RGBA4_OES             0x8B98
  4493 #define GL_PALETTE8_RGB5_A1_OES           0x8B99
  4494 #endif /* GL_OES_compressed_paletted_texture */
  4495 
  4496 #ifndef GL_OES_fixed_point
  4497 #define GL_OES_fixed_point 1
  4498 typedef GLint GLfixed;
  4499 #define GL_FIXED_OES                      0x140C
  4500 typedef void (APIENTRYP PFNGLALPHAFUNCXOESPROC) (GLenum func, GLfixed ref);
  4501 typedef void (APIENTRYP PFNGLCLEARCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  4502 typedef void (APIENTRYP PFNGLCLEARDEPTHXOESPROC) (GLfixed depth);
  4503 typedef void (APIENTRYP PFNGLCLIPPLANEXOESPROC) (GLenum plane, const GLfixed *equation);
  4504 typedef void (APIENTRYP PFNGLCOLOR4XOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  4505 typedef void (APIENTRYP PFNGLDEPTHRANGEXOESPROC) (GLfixed n, GLfixed f);
  4506 typedef void (APIENTRYP PFNGLFOGXOESPROC) (GLenum pname, GLfixed param);
  4507 typedef void (APIENTRYP PFNGLFOGXVOESPROC) (GLenum pname, const GLfixed *param);
  4508 typedef void (APIENTRYP PFNGLFRUSTUMXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
  4509 typedef void (APIENTRYP PFNGLGETCLIPPLANEXOESPROC) (GLenum plane, GLfixed *equation);
  4510 typedef void (APIENTRYP PFNGLGETFIXEDVOESPROC) (GLenum pname, GLfixed *params);
  4511 typedef void (APIENTRYP PFNGLGETTEXENVXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
  4512 typedef void (APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
  4513 typedef void (APIENTRYP PFNGLLIGHTMODELXOESPROC) (GLenum pname, GLfixed param);
  4514 typedef void (APIENTRYP PFNGLLIGHTMODELXVOESPROC) (GLenum pname, const GLfixed *param);
  4515 typedef void (APIENTRYP PFNGLLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed param);
  4516 typedef void (APIENTRYP PFNGLLIGHTXVOESPROC) (GLenum light, GLenum pname, const GLfixed *params);
  4517 typedef void (APIENTRYP PFNGLLINEWIDTHXOESPROC) (GLfixed width);
  4518 typedef void (APIENTRYP PFNGLLOADMATRIXXOESPROC) (const GLfixed *m);
  4519 typedef void (APIENTRYP PFNGLMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
  4520 typedef void (APIENTRYP PFNGLMATERIALXVOESPROC) (GLenum face, GLenum pname, const GLfixed *param);
  4521 typedef void (APIENTRYP PFNGLMULTMATRIXXOESPROC) (const GLfixed *m);
  4522 typedef void (APIENTRYP PFNGLMULTITEXCOORD4XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  4523 typedef void (APIENTRYP PFNGLNORMAL3XOESPROC) (GLfixed nx, GLfixed ny, GLfixed nz);
  4524 typedef void (APIENTRYP PFNGLORTHOXOESPROC) (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
  4525 typedef void (APIENTRYP PFNGLPOINTPARAMETERXVOESPROC) (GLenum pname, const GLfixed *params);
  4526 typedef void (APIENTRYP PFNGLPOINTSIZEXOESPROC) (GLfixed size);
  4527 typedef void (APIENTRYP PFNGLPOLYGONOFFSETXOESPROC) (GLfixed factor, GLfixed units);
  4528 typedef void (APIENTRYP PFNGLROTATEXOESPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
  4529 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEOESPROC) (GLfixed value, GLboolean invert);
  4530 typedef void (APIENTRYP PFNGLSCALEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
  4531 typedef void (APIENTRYP PFNGLTEXENVXOESPROC) (GLenum target, GLenum pname, GLfixed param);
  4532 typedef void (APIENTRYP PFNGLTEXENVXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
  4533 typedef void (APIENTRYP PFNGLTEXPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
  4534 typedef void (APIENTRYP PFNGLTEXPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
  4535 typedef void (APIENTRYP PFNGLTRANSLATEXOESPROC) (GLfixed x, GLfixed y, GLfixed z);
  4536 typedef void (APIENTRYP PFNGLACCUMXOESPROC) (GLenum op, GLfixed value);
  4537 typedef void (APIENTRYP PFNGLBITMAPXOESPROC) (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap);
  4538 typedef void (APIENTRYP PFNGLBLENDCOLORXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  4539 typedef void (APIENTRYP PFNGLCLEARACCUMXOESPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  4540 typedef void (APIENTRYP PFNGLCOLOR3XOESPROC) (GLfixed red, GLfixed green, GLfixed blue);
  4541 typedef void (APIENTRYP PFNGLCOLOR3XVOESPROC) (const GLfixed *components);
  4542 typedef void (APIENTRYP PFNGLCOLOR4XVOESPROC) (const GLfixed *components);
  4543 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXOESPROC) (GLenum target, GLenum pname, GLfixed param);
  4544 typedef void (APIENTRYP PFNGLCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, const GLfixed *params);
  4545 typedef void (APIENTRYP PFNGLEVALCOORD1XOESPROC) (GLfixed u);
  4546 typedef void (APIENTRYP PFNGLEVALCOORD1XVOESPROC) (const GLfixed *coords);
  4547 typedef void (APIENTRYP PFNGLEVALCOORD2XOESPROC) (GLfixed u, GLfixed v);
  4548 typedef void (APIENTRYP PFNGLEVALCOORD2XVOESPROC) (const GLfixed *coords);
  4549 typedef void (APIENTRYP PFNGLFEEDBACKBUFFERXOESPROC) (GLsizei n, GLenum type, const GLfixed *buffer);
  4550 typedef void (APIENTRYP PFNGLGETCONVOLUTIONPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
  4551 typedef void (APIENTRYP PFNGLGETHISTOGRAMPARAMETERXVOESPROC) (GLenum target, GLenum pname, GLfixed *params);
  4552 typedef void (APIENTRYP PFNGLGETLIGHTXOESPROC) (GLenum light, GLenum pname, GLfixed *params);
  4553 typedef void (APIENTRYP PFNGLGETMAPXVOESPROC) (GLenum target, GLenum query, GLfixed *v);
  4554 typedef void (APIENTRYP PFNGLGETMATERIALXOESPROC) (GLenum face, GLenum pname, GLfixed param);
  4555 typedef void (APIENTRYP PFNGLGETPIXELMAPXVPROC) (GLenum map, GLint size, GLfixed *values);
  4556 typedef void (APIENTRYP PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed *params);
  4557 typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERXVOESPROC) (GLenum target, GLint level, GLenum pname, GLfixed *params);
  4558 typedef void (APIENTRYP PFNGLINDEXXOESPROC) (GLfixed component);
  4559 typedef void (APIENTRYP PFNGLINDEXXVOESPROC) (const GLfixed *component);
  4560 typedef void (APIENTRYP PFNGLLOADTRANSPOSEMATRIXXOESPROC) (const GLfixed *m);
  4561 typedef void (APIENTRYP PFNGLMAP1XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points);
  4562 typedef void (APIENTRYP PFNGLMAP2XOESPROC) (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points);
  4563 typedef void (APIENTRYP PFNGLMAPGRID1XOESPROC) (GLint n, GLfixed u1, GLfixed u2);
  4564 typedef void (APIENTRYP PFNGLMAPGRID2XOESPROC) (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2);
  4565 typedef void (APIENTRYP PFNGLMULTTRANSPOSEMATRIXXOESPROC) (const GLfixed *m);
  4566 typedef void (APIENTRYP PFNGLMULTITEXCOORD1XOESPROC) (GLenum texture, GLfixed s);
  4567 typedef void (APIENTRYP PFNGLMULTITEXCOORD1XVOESPROC) (GLenum texture, const GLfixed *coords);
  4568 typedef void (APIENTRYP PFNGLMULTITEXCOORD2XOESPROC) (GLenum texture, GLfixed s, GLfixed t);
  4569 typedef void (APIENTRYP PFNGLMULTITEXCOORD2XVOESPROC) (GLenum texture, const GLfixed *coords);
  4570 typedef void (APIENTRYP PFNGLMULTITEXCOORD3XOESPROC) (GLenum texture, GLfixed s, GLfixed t, GLfixed r);
  4571 typedef void (APIENTRYP PFNGLMULTITEXCOORD3XVOESPROC) (GLenum texture, const GLfixed *coords);
  4572 typedef void (APIENTRYP PFNGLMULTITEXCOORD4XVOESPROC) (GLenum texture, const GLfixed *coords);
  4573 typedef void (APIENTRYP PFNGLNORMAL3XVOESPROC) (const GLfixed *coords);
  4574 typedef void (APIENTRYP PFNGLPASSTHROUGHXOESPROC) (GLfixed token);
  4575 typedef void (APIENTRYP PFNGLPIXELMAPXPROC) (GLenum map, GLint size, const GLfixed *values);
  4576 typedef void (APIENTRYP PFNGLPIXELSTOREXPROC) (GLenum pname, GLfixed param);
  4577 typedef void (APIENTRYP PFNGLPIXELTRANSFERXOESPROC) (GLenum pname, GLfixed param);
  4578 typedef void (APIENTRYP PFNGLPIXELZOOMXOESPROC) (GLfixed xfactor, GLfixed yfactor);
  4579 typedef void (APIENTRYP PFNGLPRIORITIZETEXTURESXOESPROC) (GLsizei n, const GLuint *textures, const GLfixed *priorities);
  4580 typedef void (APIENTRYP PFNGLRASTERPOS2XOESPROC) (GLfixed x, GLfixed y);
  4581 typedef void (APIENTRYP PFNGLRASTERPOS2XVOESPROC) (const GLfixed *coords);
  4582 typedef void (APIENTRYP PFNGLRASTERPOS3XOESPROC) (GLfixed x, GLfixed y, GLfixed z);
  4583 typedef void (APIENTRYP PFNGLRASTERPOS3XVOESPROC) (const GLfixed *coords);
  4584 typedef void (APIENTRYP PFNGLRASTERPOS4XOESPROC) (GLfixed x, GLfixed y, GLfixed z, GLfixed w);
  4585 typedef void (APIENTRYP PFNGLRASTERPOS4XVOESPROC) (const GLfixed *coords);
  4586 typedef void (APIENTRYP PFNGLRECTXOESPROC) (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2);
  4587 typedef void (APIENTRYP PFNGLRECTXVOESPROC) (const GLfixed *v1, const GLfixed *v2);
  4588 typedef void (APIENTRYP PFNGLTEXCOORD1XOESPROC) (GLfixed s);
  4589 typedef void (APIENTRYP PFNGLTEXCOORD1XVOESPROC) (const GLfixed *coords);
  4590 typedef void (APIENTRYP PFNGLTEXCOORD2XOESPROC) (GLfixed s, GLfixed t);
  4591 typedef void (APIENTRYP PFNGLTEXCOORD2XVOESPROC) (const GLfixed *coords);
  4592 typedef void (APIENTRYP PFNGLTEXCOORD3XOESPROC) (GLfixed s, GLfixed t, GLfixed r);
  4593 typedef void (APIENTRYP PFNGLTEXCOORD3XVOESPROC) (const GLfixed *coords);
  4594 typedef void (APIENTRYP PFNGLTEXCOORD4XOESPROC) (GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  4595 typedef void (APIENTRYP PFNGLTEXCOORD4XVOESPROC) (const GLfixed *coords);
  4596 typedef void (APIENTRYP PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param);
  4597 typedef void (APIENTRYP PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed *params);
  4598 typedef void (APIENTRYP PFNGLVERTEX2XOESPROC) (GLfixed x);
  4599 typedef void (APIENTRYP PFNGLVERTEX2XVOESPROC) (const GLfixed *coords);
  4600 typedef void (APIENTRYP PFNGLVERTEX3XOESPROC) (GLfixed x, GLfixed y);
  4601 typedef void (APIENTRYP PFNGLVERTEX3XVOESPROC) (const GLfixed *coords);
  4602 typedef void (APIENTRYP PFNGLVERTEX4XOESPROC) (GLfixed x, GLfixed y, GLfixed z);
  4603 typedef void (APIENTRYP PFNGLVERTEX4XVOESPROC) (const GLfixed *coords);
  4604 #ifdef GL_GLEXT_PROTOTYPES
  4605 GLAPI void APIENTRY glAlphaFuncxOES (GLenum func, GLfixed ref);
  4606 GLAPI void APIENTRY glClearColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  4607 GLAPI void APIENTRY glClearDepthxOES (GLfixed depth);
  4608 GLAPI void APIENTRY glClipPlanexOES (GLenum plane, const GLfixed *equation);
  4609 GLAPI void APIENTRY glColor4xOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  4610 GLAPI void APIENTRY glDepthRangexOES (GLfixed n, GLfixed f);
  4611 GLAPI void APIENTRY glFogxOES (GLenum pname, GLfixed param);
  4612 GLAPI void APIENTRY glFogxvOES (GLenum pname, const GLfixed *param);
  4613 GLAPI void APIENTRY glFrustumxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
  4614 GLAPI void APIENTRY glGetClipPlanexOES (GLenum plane, GLfixed *equation);
  4615 GLAPI void APIENTRY glGetFixedvOES (GLenum pname, GLfixed *params);
  4616 GLAPI void APIENTRY glGetTexEnvxvOES (GLenum target, GLenum pname, GLfixed *params);
  4617 GLAPI void APIENTRY glGetTexParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
  4618 GLAPI void APIENTRY glLightModelxOES (GLenum pname, GLfixed param);
  4619 GLAPI void APIENTRY glLightModelxvOES (GLenum pname, const GLfixed *param);
  4620 GLAPI void APIENTRY glLightxOES (GLenum light, GLenum pname, GLfixed param);
  4621 GLAPI void APIENTRY glLightxvOES (GLenum light, GLenum pname, const GLfixed *params);
  4622 GLAPI void APIENTRY glLineWidthxOES (GLfixed width);
  4623 GLAPI void APIENTRY glLoadMatrixxOES (const GLfixed *m);
  4624 GLAPI void APIENTRY glMaterialxOES (GLenum face, GLenum pname, GLfixed param);
  4625 GLAPI void APIENTRY glMaterialxvOES (GLenum face, GLenum pname, const GLfixed *param);
  4626 GLAPI void APIENTRY glMultMatrixxOES (const GLfixed *m);
  4627 GLAPI void APIENTRY glMultiTexCoord4xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  4628 GLAPI void APIENTRY glNormal3xOES (GLfixed nx, GLfixed ny, GLfixed nz);
  4629 GLAPI void APIENTRY glOrthoxOES (GLfixed l, GLfixed r, GLfixed b, GLfixed t, GLfixed n, GLfixed f);
  4630 GLAPI void APIENTRY glPointParameterxvOES (GLenum pname, const GLfixed *params);
  4631 GLAPI void APIENTRY glPointSizexOES (GLfixed size);
  4632 GLAPI void APIENTRY glPolygonOffsetxOES (GLfixed factor, GLfixed units);
  4633 GLAPI void APIENTRY glRotatexOES (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
  4634 GLAPI void APIENTRY glSampleCoverageOES (GLfixed value, GLboolean invert);
  4635 GLAPI void APIENTRY glScalexOES (GLfixed x, GLfixed y, GLfixed z);
  4636 GLAPI void APIENTRY glTexEnvxOES (GLenum target, GLenum pname, GLfixed param);
  4637 GLAPI void APIENTRY glTexEnvxvOES (GLenum target, GLenum pname, const GLfixed *params);
  4638 GLAPI void APIENTRY glTexParameterxOES (GLenum target, GLenum pname, GLfixed param);
  4639 GLAPI void APIENTRY glTexParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
  4640 GLAPI void APIENTRY glTranslatexOES (GLfixed x, GLfixed y, GLfixed z);
  4641 GLAPI void APIENTRY glAccumxOES (GLenum op, GLfixed value);
  4642 GLAPI void APIENTRY glBitmapxOES (GLsizei width, GLsizei height, GLfixed xorig, GLfixed yorig, GLfixed xmove, GLfixed ymove, const GLubyte *bitmap);
  4643 GLAPI void APIENTRY glBlendColorxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  4644 GLAPI void APIENTRY glClearAccumxOES (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  4645 GLAPI void APIENTRY glColor3xOES (GLfixed red, GLfixed green, GLfixed blue);
  4646 GLAPI void APIENTRY glColor3xvOES (const GLfixed *components);
  4647 GLAPI void APIENTRY glColor4xvOES (const GLfixed *components);
  4648 GLAPI void APIENTRY glConvolutionParameterxOES (GLenum target, GLenum pname, GLfixed param);
  4649 GLAPI void APIENTRY glConvolutionParameterxvOES (GLenum target, GLenum pname, const GLfixed *params);
  4650 GLAPI void APIENTRY glEvalCoord1xOES (GLfixed u);
  4651 GLAPI void APIENTRY glEvalCoord1xvOES (const GLfixed *coords);
  4652 GLAPI void APIENTRY glEvalCoord2xOES (GLfixed u, GLfixed v);
  4653 GLAPI void APIENTRY glEvalCoord2xvOES (const GLfixed *coords);
  4654 GLAPI void APIENTRY glFeedbackBufferxOES (GLsizei n, GLenum type, const GLfixed *buffer);
  4655 GLAPI void APIENTRY glGetConvolutionParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
  4656 GLAPI void APIENTRY glGetHistogramParameterxvOES (GLenum target, GLenum pname, GLfixed *params);
  4657 GLAPI void APIENTRY glGetLightxOES (GLenum light, GLenum pname, GLfixed *params);
  4658 GLAPI void APIENTRY glGetMapxvOES (GLenum target, GLenum query, GLfixed *v);
  4659 GLAPI void APIENTRY glGetMaterialxOES (GLenum face, GLenum pname, GLfixed param);
  4660 GLAPI void APIENTRY glGetPixelMapxv (GLenum map, GLint size, GLfixed *values);
  4661 GLAPI void APIENTRY glGetTexGenxvOES (GLenum coord, GLenum pname, GLfixed *params);
  4662 GLAPI void APIENTRY glGetTexLevelParameterxvOES (GLenum target, GLint level, GLenum pname, GLfixed *params);
  4663 GLAPI void APIENTRY glIndexxOES (GLfixed component);
  4664 GLAPI void APIENTRY glIndexxvOES (const GLfixed *component);
  4665 GLAPI void APIENTRY glLoadTransposeMatrixxOES (const GLfixed *m);
  4666 GLAPI void APIENTRY glMap1xOES (GLenum target, GLfixed u1, GLfixed u2, GLint stride, GLint order, GLfixed points);
  4667 GLAPI void APIENTRY glMap2xOES (GLenum target, GLfixed u1, GLfixed u2, GLint ustride, GLint uorder, GLfixed v1, GLfixed v2, GLint vstride, GLint vorder, GLfixed points);
  4668 GLAPI void APIENTRY glMapGrid1xOES (GLint n, GLfixed u1, GLfixed u2);
  4669 GLAPI void APIENTRY glMapGrid2xOES (GLint n, GLfixed u1, GLfixed u2, GLfixed v1, GLfixed v2);
  4670 GLAPI void APIENTRY glMultTransposeMatrixxOES (const GLfixed *m);
  4671 GLAPI void APIENTRY glMultiTexCoord1xOES (GLenum texture, GLfixed s);
  4672 GLAPI void APIENTRY glMultiTexCoord1xvOES (GLenum texture, const GLfixed *coords);
  4673 GLAPI void APIENTRY glMultiTexCoord2xOES (GLenum texture, GLfixed s, GLfixed t);
  4674 GLAPI void APIENTRY glMultiTexCoord2xvOES (GLenum texture, const GLfixed *coords);
  4675 GLAPI void APIENTRY glMultiTexCoord3xOES (GLenum texture, GLfixed s, GLfixed t, GLfixed r);
  4676 GLAPI void APIENTRY glMultiTexCoord3xvOES (GLenum texture, const GLfixed *coords);
  4677 GLAPI void APIENTRY glMultiTexCoord4xvOES (GLenum texture, const GLfixed *coords);
  4678 GLAPI void APIENTRY glNormal3xvOES (const GLfixed *coords);
  4679 GLAPI void APIENTRY glPassThroughxOES (GLfixed token);
  4680 GLAPI void APIENTRY glPixelMapx (GLenum map, GLint size, const GLfixed *values);
  4681 GLAPI void APIENTRY glPixelStorex (GLenum pname, GLfixed param);
  4682 GLAPI void APIENTRY glPixelTransferxOES (GLenum pname, GLfixed param);
  4683 GLAPI void APIENTRY glPixelZoomxOES (GLfixed xfactor, GLfixed yfactor);
  4684 GLAPI void APIENTRY glPrioritizeTexturesxOES (GLsizei n, const GLuint *textures, const GLfixed *priorities);
  4685 GLAPI void APIENTRY glRasterPos2xOES (GLfixed x, GLfixed y);
  4686 GLAPI void APIENTRY glRasterPos2xvOES (const GLfixed *coords);
  4687 GLAPI void APIENTRY glRasterPos3xOES (GLfixed x, GLfixed y, GLfixed z);
  4688 GLAPI void APIENTRY glRasterPos3xvOES (const GLfixed *coords);
  4689 GLAPI void APIENTRY glRasterPos4xOES (GLfixed x, GLfixed y, GLfixed z, GLfixed w);
  4690 GLAPI void APIENTRY glRasterPos4xvOES (const GLfixed *coords);
  4691 GLAPI void APIENTRY glRectxOES (GLfixed x1, GLfixed y1, GLfixed x2, GLfixed y2);
  4692 GLAPI void APIENTRY glRectxvOES (const GLfixed *v1, const GLfixed *v2);
  4693 GLAPI void APIENTRY glTexCoord1xOES (GLfixed s);
  4694 GLAPI void APIENTRY glTexCoord1xvOES (const GLfixed *coords);
  4695 GLAPI void APIENTRY glTexCoord2xOES (GLfixed s, GLfixed t);
  4696 GLAPI void APIENTRY glTexCoord2xvOES (const GLfixed *coords);
  4697 GLAPI void APIENTRY glTexCoord3xOES (GLfixed s, GLfixed t, GLfixed r);
  4698 GLAPI void APIENTRY glTexCoord3xvOES (const GLfixed *coords);
  4699 GLAPI void APIENTRY glTexCoord4xOES (GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  4700 GLAPI void APIENTRY glTexCoord4xvOES (const GLfixed *coords);
  4701 GLAPI void APIENTRY glTexGenxOES (GLenum coord, GLenum pname, GLfixed param);
  4702 GLAPI void APIENTRY glTexGenxvOES (GLenum coord, GLenum pname, const GLfixed *params);
  4703 GLAPI void APIENTRY glVertex2xOES (GLfixed x);
  4704 GLAPI void APIENTRY glVertex2xvOES (const GLfixed *coords);
  4705 GLAPI void APIENTRY glVertex3xOES (GLfixed x, GLfixed y);
  4706 GLAPI void APIENTRY glVertex3xvOES (const GLfixed *coords);
  4707 GLAPI void APIENTRY glVertex4xOES (GLfixed x, GLfixed y, GLfixed z);
  4708 GLAPI void APIENTRY glVertex4xvOES (const GLfixed *coords);
  4709 #endif
  4710 #endif /* GL_OES_fixed_point */
  4711 
  4712 #ifndef GL_OES_query_matrix
  4713 #define GL_OES_query_matrix 1
  4714 typedef GLbitfield (APIENTRYP PFNGLQUERYMATRIXXOESPROC) (GLfixed *mantissa, GLint *exponent);
  4715 #ifdef GL_GLEXT_PROTOTYPES
  4716 GLAPI GLbitfield APIENTRY glQueryMatrixxOES (GLfixed *mantissa, GLint *exponent);
  4717 #endif
  4718 #endif /* GL_OES_query_matrix */
  4719 
  4720 #ifndef GL_OES_read_format
  4721 #define GL_OES_read_format 1
  4722 #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
  4723 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
  4724 #endif /* GL_OES_read_format */
  4725 
  4726 #ifndef GL_OES_single_precision
  4727 #define GL_OES_single_precision 1
  4728 typedef void (APIENTRYP PFNGLCLEARDEPTHFOESPROC) (GLclampf depth);
  4729 typedef void (APIENTRYP PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat *equation);
  4730 typedef void (APIENTRYP PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f);
  4731 typedef void (APIENTRYP PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
  4732 typedef void (APIENTRYP PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat *equation);
  4733 typedef void (APIENTRYP PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
  4734 #ifdef GL_GLEXT_PROTOTYPES
  4735 GLAPI void APIENTRY glClearDepthfOES (GLclampf depth);
  4736 GLAPI void APIENTRY glClipPlanefOES (GLenum plane, const GLfloat *equation);
  4737 GLAPI void APIENTRY glDepthRangefOES (GLclampf n, GLclampf f);
  4738 GLAPI void APIENTRY glFrustumfOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
  4739 GLAPI void APIENTRY glGetClipPlanefOES (GLenum plane, GLfloat *equation);
  4740 GLAPI void APIENTRY glOrthofOES (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
  4741 #endif
  4742 #endif /* GL_OES_single_precision */
  4743 
  4744 #ifndef GL_3DFX_multisample
  4745 #define GL_3DFX_multisample 1
  4746 #define GL_MULTISAMPLE_3DFX               0x86B2
  4747 #define GL_SAMPLE_BUFFERS_3DFX            0x86B3
  4748 #define GL_SAMPLES_3DFX                   0x86B4
  4749 #define GL_MULTISAMPLE_BIT_3DFX           0x20000000
  4750 #endif /* GL_3DFX_multisample */
  4751 
  4752 #ifndef GL_3DFX_tbuffer
  4753 #define GL_3DFX_tbuffer 1
  4754 typedef void (APIENTRYP PFNGLTBUFFERMASK3DFXPROC) (GLuint mask);
  4755 #ifdef GL_GLEXT_PROTOTYPES
  4756 GLAPI void APIENTRY glTbufferMask3DFX (GLuint mask);
  4757 #endif
  4758 #endif /* GL_3DFX_tbuffer */
  4759 
  4760 #ifndef GL_3DFX_texture_compression_FXT1
  4761 #define GL_3DFX_texture_compression_FXT1 1
  4762 #define GL_COMPRESSED_RGB_FXT1_3DFX       0x86B0
  4763 #define GL_COMPRESSED_RGBA_FXT1_3DFX      0x86B1
  4764 #endif /* GL_3DFX_texture_compression_FXT1 */
  4765 
  4766 #ifndef GL_AMD_blend_minmax_factor
  4767 #define GL_AMD_blend_minmax_factor 1
  4768 #define GL_FACTOR_MIN_AMD                 0x901C
  4769 #define GL_FACTOR_MAX_AMD                 0x901D
  4770 #endif /* GL_AMD_blend_minmax_factor */
  4771 
  4772 #ifndef GL_AMD_conservative_depth
  4773 #define GL_AMD_conservative_depth 1
  4774 #endif /* GL_AMD_conservative_depth */
  4775 
  4776 #ifndef GL_AMD_debug_output
  4777 #define GL_AMD_debug_output 1
  4778 typedef void (APIENTRY  *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,void *userParam);
  4779 #define GL_MAX_DEBUG_MESSAGE_LENGTH_AMD   0x9143
  4780 #define GL_MAX_DEBUG_LOGGED_MESSAGES_AMD  0x9144
  4781 #define GL_DEBUG_LOGGED_MESSAGES_AMD      0x9145
  4782 #define GL_DEBUG_SEVERITY_HIGH_AMD        0x9146
  4783 #define GL_DEBUG_SEVERITY_MEDIUM_AMD      0x9147
  4784 #define GL_DEBUG_SEVERITY_LOW_AMD         0x9148
  4785 #define GL_DEBUG_CATEGORY_API_ERROR_AMD   0x9149
  4786 #define GL_DEBUG_CATEGORY_WINDOW_SYSTEM_AMD 0x914A
  4787 #define GL_DEBUG_CATEGORY_DEPRECATION_AMD 0x914B
  4788 #define GL_DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD 0x914C
  4789 #define GL_DEBUG_CATEGORY_PERFORMANCE_AMD 0x914D
  4790 #define GL_DEBUG_CATEGORY_SHADER_COMPILER_AMD 0x914E
  4791 #define GL_DEBUG_CATEGORY_APPLICATION_AMD 0x914F
  4792 #define GL_DEBUG_CATEGORY_OTHER_AMD       0x9150
  4793 typedef void (APIENTRYP PFNGLDEBUGMESSAGEENABLEAMDPROC) (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  4794 typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTAMDPROC) (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
  4795 typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKAMDPROC) (GLDEBUGPROCAMD callback, void *userParam);
  4796 typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGAMDPROC) (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
  4797 #ifdef GL_GLEXT_PROTOTYPES
  4798 GLAPI void APIENTRY glDebugMessageEnableAMD (GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  4799 GLAPI void APIENTRY glDebugMessageInsertAMD (GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
  4800 GLAPI void APIENTRY glDebugMessageCallbackAMD (GLDEBUGPROCAMD callback, void *userParam);
  4801 GLAPI GLuint APIENTRY glGetDebugMessageLogAMD (GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
  4802 #endif
  4803 #endif /* GL_AMD_debug_output */
  4804 
  4805 #ifndef GL_AMD_depth_clamp_separate
  4806 #define GL_AMD_depth_clamp_separate 1
  4807 #define GL_DEPTH_CLAMP_NEAR_AMD           0x901E
  4808 #define GL_DEPTH_CLAMP_FAR_AMD            0x901F
  4809 #endif /* GL_AMD_depth_clamp_separate */
  4810 
  4811 #ifndef GL_AMD_draw_buffers_blend
  4812 #define GL_AMD_draw_buffers_blend 1
  4813 typedef void (APIENTRYP PFNGLBLENDFUNCINDEXEDAMDPROC) (GLuint buf, GLenum src, GLenum dst);
  4814 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  4815 typedef void (APIENTRYP PFNGLBLENDEQUATIONINDEXEDAMDPROC) (GLuint buf, GLenum mode);
  4816 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  4817 #ifdef GL_GLEXT_PROTOTYPES
  4818 GLAPI void APIENTRY glBlendFuncIndexedAMD (GLuint buf, GLenum src, GLenum dst);
  4819 GLAPI void APIENTRY glBlendFuncSeparateIndexedAMD (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  4820 GLAPI void APIENTRY glBlendEquationIndexedAMD (GLuint buf, GLenum mode);
  4821 GLAPI void APIENTRY glBlendEquationSeparateIndexedAMD (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  4822 #endif
  4823 #endif /* GL_AMD_draw_buffers_blend */
  4824 
  4825 #ifndef GL_AMD_gcn_shader
  4826 #define GL_AMD_gcn_shader 1
  4827 #endif /* GL_AMD_gcn_shader */
  4828 
  4829 #ifndef GL_AMD_gpu_shader_int64
  4830 #define GL_AMD_gpu_shader_int64 1
  4831 typedef int64_t GLint64EXT;
  4832 #define GL_INT64_NV                       0x140E
  4833 #define GL_UNSIGNED_INT64_NV              0x140F
  4834 #define GL_INT8_NV                        0x8FE0
  4835 #define GL_INT8_VEC2_NV                   0x8FE1
  4836 #define GL_INT8_VEC3_NV                   0x8FE2
  4837 #define GL_INT8_VEC4_NV                   0x8FE3
  4838 #define GL_INT16_NV                       0x8FE4
  4839 #define GL_INT16_VEC2_NV                  0x8FE5
  4840 #define GL_INT16_VEC3_NV                  0x8FE6
  4841 #define GL_INT16_VEC4_NV                  0x8FE7
  4842 #define GL_INT64_VEC2_NV                  0x8FE9
  4843 #define GL_INT64_VEC3_NV                  0x8FEA
  4844 #define GL_INT64_VEC4_NV                  0x8FEB
  4845 #define GL_UNSIGNED_INT8_NV               0x8FEC
  4846 #define GL_UNSIGNED_INT8_VEC2_NV          0x8FED
  4847 #define GL_UNSIGNED_INT8_VEC3_NV          0x8FEE
  4848 #define GL_UNSIGNED_INT8_VEC4_NV          0x8FEF
  4849 #define GL_UNSIGNED_INT16_NV              0x8FF0
  4850 #define GL_UNSIGNED_INT16_VEC2_NV         0x8FF1
  4851 #define GL_UNSIGNED_INT16_VEC3_NV         0x8FF2
  4852 #define GL_UNSIGNED_INT16_VEC4_NV         0x8FF3
  4853 #define GL_UNSIGNED_INT64_VEC2_NV         0x8FF5
  4854 #define GL_UNSIGNED_INT64_VEC3_NV         0x8FF6
  4855 #define GL_UNSIGNED_INT64_VEC4_NV         0x8FF7
  4856 #define GL_FLOAT16_NV                     0x8FF8
  4857 #define GL_FLOAT16_VEC2_NV                0x8FF9
  4858 #define GL_FLOAT16_VEC3_NV                0x8FFA
  4859 #define GL_FLOAT16_VEC4_NV                0x8FFB
  4860 typedef void (APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x);
  4861 typedef void (APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y);
  4862 typedef void (APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
  4863 typedef void (APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
  4864 typedef void (APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
  4865 typedef void (APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
  4866 typedef void (APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
  4867 typedef void (APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
  4868 typedef void (APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x);
  4869 typedef void (APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y);
  4870 typedef void (APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
  4871 typedef void (APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
  4872 typedef void (APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
  4873 typedef void (APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
  4874 typedef void (APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
  4875 typedef void (APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
  4876 typedef void (APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params);
  4877 typedef void (APIENTRYP PFNGLGETUNIFORMUI64VNVPROC) (GLuint program, GLint location, GLuint64EXT *params);
  4878 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x);
  4879 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
  4880 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
  4881 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
  4882 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  4883 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  4884 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  4885 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  4886 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x);
  4887 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
  4888 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
  4889 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
  4890 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  4891 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  4892 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  4893 typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  4894 #ifdef GL_GLEXT_PROTOTYPES
  4895 GLAPI void APIENTRY glUniform1i64NV (GLint location, GLint64EXT x);
  4896 GLAPI void APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y);
  4897 GLAPI void APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
  4898 GLAPI void APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
  4899 GLAPI void APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
  4900 GLAPI void APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
  4901 GLAPI void APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
  4902 GLAPI void APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
  4903 GLAPI void APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x);
  4904 GLAPI void APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y);
  4905 GLAPI void APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
  4906 GLAPI void APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
  4907 GLAPI void APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
  4908 GLAPI void APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
  4909 GLAPI void APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
  4910 GLAPI void APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
  4911 GLAPI void APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params);
  4912 GLAPI void APIENTRY glGetUniformui64vNV (GLuint program, GLint location, GLuint64EXT *params);
  4913 GLAPI void APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x);
  4914 GLAPI void APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
  4915 GLAPI void APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
  4916 GLAPI void APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
  4917 GLAPI void APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  4918 GLAPI void APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  4919 GLAPI void APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  4920 GLAPI void APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  4921 GLAPI void APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x);
  4922 GLAPI void APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
  4923 GLAPI void APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
  4924 GLAPI void APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
  4925 GLAPI void APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  4926 GLAPI void APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  4927 GLAPI void APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  4928 GLAPI void APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  4929 #endif
  4930 #endif /* GL_AMD_gpu_shader_int64 */
  4931 
  4932 #ifndef GL_AMD_interleaved_elements
  4933 #define GL_AMD_interleaved_elements 1
  4934 #define GL_VERTEX_ELEMENT_SWIZZLE_AMD     0x91A4
  4935 #define GL_VERTEX_ID_SWIZZLE_AMD          0x91A5
  4936 typedef void (APIENTRYP PFNGLVERTEXATTRIBPARAMETERIAMDPROC) (GLuint index, GLenum pname, GLint param);
  4937 #ifdef GL_GLEXT_PROTOTYPES
  4938 GLAPI void APIENTRY glVertexAttribParameteriAMD (GLuint index, GLenum pname, GLint param);
  4939 #endif
  4940 #endif /* GL_AMD_interleaved_elements */
  4941 
  4942 #ifndef GL_AMD_multi_draw_indirect
  4943 #define GL_AMD_multi_draw_indirect 1
  4944 typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC) (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride);
  4945 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride);
  4946 #ifdef GL_GLEXT_PROTOTYPES
  4947 GLAPI void APIENTRY glMultiDrawArraysIndirectAMD (GLenum mode, const void *indirect, GLsizei primcount, GLsizei stride);
  4948 GLAPI void APIENTRY glMultiDrawElementsIndirectAMD (GLenum mode, GLenum type, const void *indirect, GLsizei primcount, GLsizei stride);
  4949 #endif
  4950 #endif /* GL_AMD_multi_draw_indirect */
  4951 
  4952 #ifndef GL_AMD_name_gen_delete
  4953 #define GL_AMD_name_gen_delete 1
  4954 #define GL_DATA_BUFFER_AMD                0x9151
  4955 #define GL_PERFORMANCE_MONITOR_AMD        0x9152
  4956 #define GL_QUERY_OBJECT_AMD               0x9153
  4957 #define GL_VERTEX_ARRAY_OBJECT_AMD        0x9154
  4958 #define GL_SAMPLER_OBJECT_AMD             0x9155
  4959 typedef void (APIENTRYP PFNGLGENNAMESAMDPROC) (GLenum identifier, GLuint num, GLuint *names);
  4960 typedef void (APIENTRYP PFNGLDELETENAMESAMDPROC) (GLenum identifier, GLuint num, const GLuint *names);
  4961 typedef GLboolean (APIENTRYP PFNGLISNAMEAMDPROC) (GLenum identifier, GLuint name);
  4962 #ifdef GL_GLEXT_PROTOTYPES
  4963 GLAPI void APIENTRY glGenNamesAMD (GLenum identifier, GLuint num, GLuint *names);
  4964 GLAPI void APIENTRY glDeleteNamesAMD (GLenum identifier, GLuint num, const GLuint *names);
  4965 GLAPI GLboolean APIENTRY glIsNameAMD (GLenum identifier, GLuint name);
  4966 #endif
  4967 #endif /* GL_AMD_name_gen_delete */
  4968 
  4969 #ifndef GL_AMD_occlusion_query_event
  4970 #define GL_AMD_occlusion_query_event 1
  4971 #define GL_OCCLUSION_QUERY_EVENT_MASK_AMD 0x874F
  4972 #define GL_QUERY_DEPTH_PASS_EVENT_BIT_AMD 0x00000001
  4973 #define GL_QUERY_DEPTH_FAIL_EVENT_BIT_AMD 0x00000002
  4974 #define GL_QUERY_STENCIL_FAIL_EVENT_BIT_AMD 0x00000004
  4975 #define GL_QUERY_DEPTH_BOUNDS_FAIL_EVENT_BIT_AMD 0x00000008
  4976 #define GL_QUERY_ALL_EVENT_BITS_AMD       0xFFFFFFFF
  4977 typedef void (APIENTRYP PFNGLQUERYOBJECTPARAMETERUIAMDPROC) (GLenum target, GLuint id, GLenum pname, GLuint param);
  4978 #ifdef GL_GLEXT_PROTOTYPES
  4979 GLAPI void APIENTRY glQueryObjectParameteruiAMD (GLenum target, GLuint id, GLenum pname, GLuint param);
  4980 #endif
  4981 #endif /* GL_AMD_occlusion_query_event */
  4982 
  4983 #ifndef GL_AMD_performance_monitor
  4984 #define GL_AMD_performance_monitor 1
  4985 #define GL_COUNTER_TYPE_AMD               0x8BC0
  4986 #define GL_COUNTER_RANGE_AMD              0x8BC1
  4987 #define GL_UNSIGNED_INT64_AMD             0x8BC2
  4988 #define GL_PERCENTAGE_AMD                 0x8BC3
  4989 #define GL_PERFMON_RESULT_AVAILABLE_AMD   0x8BC4
  4990 #define GL_PERFMON_RESULT_SIZE_AMD        0x8BC5
  4991 #define GL_PERFMON_RESULT_AMD             0x8BC6
  4992 typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
  4993 typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
  4994 typedef void (APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
  4995 typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
  4996 typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
  4997 typedef void (APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
  4998 typedef void (APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
  4999 typedef void (APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
  5000 typedef void (APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
  5001 typedef void (APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
  5002 typedef void (APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
  5003 #ifdef GL_GLEXT_PROTOTYPES
  5004 GLAPI void APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
  5005 GLAPI void APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
  5006 GLAPI void APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
  5007 GLAPI void APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
  5008 GLAPI void APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data);
  5009 GLAPI void APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
  5010 GLAPI void APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
  5011 GLAPI void APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
  5012 GLAPI void APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
  5013 GLAPI void APIENTRY glEndPerfMonitorAMD (GLuint monitor);
  5014 GLAPI void APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
  5015 #endif
  5016 #endif /* GL_AMD_performance_monitor */
  5017 
  5018 #ifndef GL_AMD_pinned_memory
  5019 #define GL_AMD_pinned_memory 1
  5020 #define GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD 0x9160
  5021 #endif /* GL_AMD_pinned_memory */
  5022 
  5023 #ifndef GL_AMD_query_buffer_object
  5024 #define GL_AMD_query_buffer_object 1
  5025 #define GL_QUERY_BUFFER_AMD               0x9192
  5026 #define GL_QUERY_BUFFER_BINDING_AMD       0x9193
  5027 #define GL_QUERY_RESULT_NO_WAIT_AMD       0x9194
  5028 #endif /* GL_AMD_query_buffer_object */
  5029 
  5030 #ifndef GL_AMD_sample_positions
  5031 #define GL_AMD_sample_positions 1
  5032 #define GL_SUBSAMPLE_DISTANCE_AMD         0x883F
  5033 typedef void (APIENTRYP PFNGLSETMULTISAMPLEFVAMDPROC) (GLenum pname, GLuint index, const GLfloat *val);
  5034 #ifdef GL_GLEXT_PROTOTYPES
  5035 GLAPI void APIENTRY glSetMultisamplefvAMD (GLenum pname, GLuint index, const GLfloat *val);
  5036 #endif
  5037 #endif /* GL_AMD_sample_positions */
  5038 
  5039 #ifndef GL_AMD_seamless_cubemap_per_texture
  5040 #define GL_AMD_seamless_cubemap_per_texture 1
  5041 #endif /* GL_AMD_seamless_cubemap_per_texture */
  5042 
  5043 #ifndef GL_AMD_shader_atomic_counter_ops
  5044 #define GL_AMD_shader_atomic_counter_ops 1
  5045 #endif /* GL_AMD_shader_atomic_counter_ops */
  5046 
  5047 #ifndef GL_AMD_shader_stencil_export
  5048 #define GL_AMD_shader_stencil_export 1
  5049 #endif /* GL_AMD_shader_stencil_export */
  5050 
  5051 #ifndef GL_AMD_shader_trinary_minmax
  5052 #define GL_AMD_shader_trinary_minmax 1
  5053 #endif /* GL_AMD_shader_trinary_minmax */
  5054 
  5055 #ifndef GL_AMD_sparse_texture
  5056 #define GL_AMD_sparse_texture 1
  5057 #define GL_VIRTUAL_PAGE_SIZE_X_AMD        0x9195
  5058 #define GL_VIRTUAL_PAGE_SIZE_Y_AMD        0x9196
  5059 #define GL_VIRTUAL_PAGE_SIZE_Z_AMD        0x9197
  5060 #define GL_MAX_SPARSE_TEXTURE_SIZE_AMD    0x9198
  5061 #define GL_MAX_SPARSE_3D_TEXTURE_SIZE_AMD 0x9199
  5062 #define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS 0x919A
  5063 #define GL_MIN_SPARSE_LEVEL_AMD           0x919B
  5064 #define GL_MIN_LOD_WARNING_AMD            0x919C
  5065 #define GL_TEXTURE_STORAGE_SPARSE_BIT_AMD 0x00000001
  5066 typedef void (APIENTRYP PFNGLTEXSTORAGESPARSEAMDPROC) (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
  5067 typedef void (APIENTRYP PFNGLTEXTURESTORAGESPARSEAMDPROC) (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
  5068 #ifdef GL_GLEXT_PROTOTYPES
  5069 GLAPI void APIENTRY glTexStorageSparseAMD (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
  5070 GLAPI void APIENTRY glTextureStorageSparseAMD (GLuint texture, GLenum target, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLsizei layers, GLbitfield flags);
  5071 #endif
  5072 #endif /* GL_AMD_sparse_texture */
  5073 
  5074 #ifndef GL_AMD_stencil_operation_extended
  5075 #define GL_AMD_stencil_operation_extended 1
  5076 #define GL_SET_AMD                        0x874A
  5077 #define GL_REPLACE_VALUE_AMD              0x874B
  5078 #define GL_STENCIL_OP_VALUE_AMD           0x874C
  5079 #define GL_STENCIL_BACK_OP_VALUE_AMD      0x874D
  5080 typedef void (APIENTRYP PFNGLSTENCILOPVALUEAMDPROC) (GLenum face, GLuint value);
  5081 #ifdef GL_GLEXT_PROTOTYPES
  5082 GLAPI void APIENTRY glStencilOpValueAMD (GLenum face, GLuint value);
  5083 #endif
  5084 #endif /* GL_AMD_stencil_operation_extended */
  5085 
  5086 #ifndef GL_AMD_texture_texture4
  5087 #define GL_AMD_texture_texture4 1
  5088 #endif /* GL_AMD_texture_texture4 */
  5089 
  5090 #ifndef GL_AMD_transform_feedback3_lines_triangles
  5091 #define GL_AMD_transform_feedback3_lines_triangles 1
  5092 #endif /* GL_AMD_transform_feedback3_lines_triangles */
  5093 
  5094 #ifndef GL_AMD_transform_feedback4
  5095 #define GL_AMD_transform_feedback4 1
  5096 #define GL_STREAM_RASTERIZATION_AMD       0x91A0
  5097 #endif /* GL_AMD_transform_feedback4 */
  5098 
  5099 #ifndef GL_AMD_vertex_shader_layer
  5100 #define GL_AMD_vertex_shader_layer 1
  5101 #endif /* GL_AMD_vertex_shader_layer */
  5102 
  5103 #ifndef GL_AMD_vertex_shader_tessellator
  5104 #define GL_AMD_vertex_shader_tessellator 1
  5105 #define GL_SAMPLER_BUFFER_AMD             0x9001
  5106 #define GL_INT_SAMPLER_BUFFER_AMD         0x9002
  5107 #define GL_UNSIGNED_INT_SAMPLER_BUFFER_AMD 0x9003
  5108 #define GL_TESSELLATION_MODE_AMD          0x9004
  5109 #define GL_TESSELLATION_FACTOR_AMD        0x9005
  5110 #define GL_DISCRETE_AMD                   0x9006
  5111 #define GL_CONTINUOUS_AMD                 0x9007
  5112 typedef void (APIENTRYP PFNGLTESSELLATIONFACTORAMDPROC) (GLfloat factor);
  5113 typedef void (APIENTRYP PFNGLTESSELLATIONMODEAMDPROC) (GLenum mode);
  5114 #ifdef GL_GLEXT_PROTOTYPES
  5115 GLAPI void APIENTRY glTessellationFactorAMD (GLfloat factor);
  5116 GLAPI void APIENTRY glTessellationModeAMD (GLenum mode);
  5117 #endif
  5118 #endif /* GL_AMD_vertex_shader_tessellator */
  5119 
  5120 #ifndef GL_AMD_vertex_shader_viewport_index
  5121 #define GL_AMD_vertex_shader_viewport_index 1
  5122 #endif /* GL_AMD_vertex_shader_viewport_index */
  5123 
  5124 #ifndef GL_APPLE_aux_depth_stencil
  5125 #define GL_APPLE_aux_depth_stencil 1
  5126 #define GL_AUX_DEPTH_STENCIL_APPLE        0x8A14
  5127 #endif /* GL_APPLE_aux_depth_stencil */
  5128 
  5129 #ifndef GL_APPLE_client_storage
  5130 #define GL_APPLE_client_storage 1
  5131 #define GL_UNPACK_CLIENT_STORAGE_APPLE    0x85B2
  5132 #endif /* GL_APPLE_client_storage */
  5133 
  5134 #ifndef GL_APPLE_element_array
  5135 #define GL_APPLE_element_array 1
  5136 #define GL_ELEMENT_ARRAY_APPLE            0x8A0C
  5137 #define GL_ELEMENT_ARRAY_TYPE_APPLE       0x8A0D
  5138 #define GL_ELEMENT_ARRAY_POINTER_APPLE    0x8A0E
  5139 typedef void (APIENTRYP PFNGLELEMENTPOINTERAPPLEPROC) (GLenum type, const void *pointer);
  5140 typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, GLint first, GLsizei count);
  5141 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
  5142 typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
  5143 typedef void (APIENTRYP PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC) (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
  5144 #ifdef GL_GLEXT_PROTOTYPES
  5145 GLAPI void APIENTRY glElementPointerAPPLE (GLenum type, const void *pointer);
  5146 GLAPI void APIENTRY glDrawElementArrayAPPLE (GLenum mode, GLint first, GLsizei count);
  5147 GLAPI void APIENTRY glDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
  5148 GLAPI void APIENTRY glMultiDrawElementArrayAPPLE (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
  5149 GLAPI void APIENTRY glMultiDrawRangeElementArrayAPPLE (GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
  5150 #endif
  5151 #endif /* GL_APPLE_element_array */
  5152 
  5153 #ifndef GL_APPLE_fence
  5154 #define GL_APPLE_fence 1
  5155 #define GL_DRAW_PIXELS_APPLE              0x8A0A
  5156 #define GL_FENCE_APPLE                    0x8A0B
  5157 typedef void (APIENTRYP PFNGLGENFENCESAPPLEPROC) (GLsizei n, GLuint *fences);
  5158 typedef void (APIENTRYP PFNGLDELETEFENCESAPPLEPROC) (GLsizei n, const GLuint *fences);
  5159 typedef void (APIENTRYP PFNGLSETFENCEAPPLEPROC) (GLuint fence);
  5160 typedef GLboolean (APIENTRYP PFNGLISFENCEAPPLEPROC) (GLuint fence);
  5161 typedef GLboolean (APIENTRYP PFNGLTESTFENCEAPPLEPROC) (GLuint fence);
  5162 typedef void (APIENTRYP PFNGLFINISHFENCEAPPLEPROC) (GLuint fence);
  5163 typedef GLboolean (APIENTRYP PFNGLTESTOBJECTAPPLEPROC) (GLenum object, GLuint name);
  5164 typedef void (APIENTRYP PFNGLFINISHOBJECTAPPLEPROC) (GLenum object, GLint name);
  5165 #ifdef GL_GLEXT_PROTOTYPES
  5166 GLAPI void APIENTRY glGenFencesAPPLE (GLsizei n, GLuint *fences);
  5167 GLAPI void APIENTRY glDeleteFencesAPPLE (GLsizei n, const GLuint *fences);
  5168 GLAPI void APIENTRY glSetFenceAPPLE (GLuint fence);
  5169 GLAPI GLboolean APIENTRY glIsFenceAPPLE (GLuint fence);
  5170 GLAPI GLboolean APIENTRY glTestFenceAPPLE (GLuint fence);
  5171 GLAPI void APIENTRY glFinishFenceAPPLE (GLuint fence);
  5172 GLAPI GLboolean APIENTRY glTestObjectAPPLE (GLenum object, GLuint name);
  5173 GLAPI void APIENTRY glFinishObjectAPPLE (GLenum object, GLint name);
  5174 #endif
  5175 #endif /* GL_APPLE_fence */
  5176 
  5177 #ifndef GL_APPLE_float_pixels
  5178 #define GL_APPLE_float_pixels 1
  5179 #define GL_HALF_APPLE                     0x140B
  5180 #define GL_RGBA_FLOAT32_APPLE             0x8814
  5181 #define GL_RGB_FLOAT32_APPLE              0x8815
  5182 #define GL_ALPHA_FLOAT32_APPLE            0x8816
  5183 #define GL_INTENSITY_FLOAT32_APPLE        0x8817
  5184 #define GL_LUMINANCE_FLOAT32_APPLE        0x8818
  5185 #define GL_LUMINANCE_ALPHA_FLOAT32_APPLE  0x8819
  5186 #define GL_RGBA_FLOAT16_APPLE             0x881A
  5187 #define GL_RGB_FLOAT16_APPLE              0x881B
  5188 #define GL_ALPHA_FLOAT16_APPLE            0x881C
  5189 #define GL_INTENSITY_FLOAT16_APPLE        0x881D
  5190 #define GL_LUMINANCE_FLOAT16_APPLE        0x881E
  5191 #define GL_LUMINANCE_ALPHA_FLOAT16_APPLE  0x881F
  5192 #define GL_COLOR_FLOAT_APPLE              0x8A0F
  5193 #endif /* GL_APPLE_float_pixels */
  5194 
  5195 #ifndef GL_APPLE_flush_buffer_range
  5196 #define GL_APPLE_flush_buffer_range 1
  5197 #define GL_BUFFER_SERIALIZED_MODIFY_APPLE 0x8A12
  5198 #define GL_BUFFER_FLUSHING_UNMAP_APPLE    0x8A13
  5199 typedef void (APIENTRYP PFNGLBUFFERPARAMETERIAPPLEPROC) (GLenum target, GLenum pname, GLint param);
  5200 typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC) (GLenum target, GLintptr offset, GLsizeiptr size);
  5201 #ifdef GL_GLEXT_PROTOTYPES
  5202 GLAPI void APIENTRY glBufferParameteriAPPLE (GLenum target, GLenum pname, GLint param);
  5203 GLAPI void APIENTRY glFlushMappedBufferRangeAPPLE (GLenum target, GLintptr offset, GLsizeiptr size);
  5204 #endif
  5205 #endif /* GL_APPLE_flush_buffer_range */
  5206 
  5207 #ifndef GL_APPLE_object_purgeable
  5208 #define GL_APPLE_object_purgeable 1
  5209 #define GL_BUFFER_OBJECT_APPLE            0x85B3
  5210 #define GL_RELEASED_APPLE                 0x8A19
  5211 #define GL_VOLATILE_APPLE                 0x8A1A
  5212 #define GL_RETAINED_APPLE                 0x8A1B
  5213 #define GL_UNDEFINED_APPLE                0x8A1C
  5214 #define GL_PURGEABLE_APPLE                0x8A1D
  5215 typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
  5216 typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC) (GLenum objectType, GLuint name, GLenum option);
  5217 typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC) (GLenum objectType, GLuint name, GLenum pname, GLint *params);
  5218 #ifdef GL_GLEXT_PROTOTYPES
  5219 GLAPI GLenum APIENTRY glObjectPurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
  5220 GLAPI GLenum APIENTRY glObjectUnpurgeableAPPLE (GLenum objectType, GLuint name, GLenum option);
  5221 GLAPI void APIENTRY glGetObjectParameterivAPPLE (GLenum objectType, GLuint name, GLenum pname, GLint *params);
  5222 #endif
  5223 #endif /* GL_APPLE_object_purgeable */
  5224 
  5225 #ifndef GL_APPLE_rgb_422
  5226 #define GL_APPLE_rgb_422 1
  5227 #define GL_RGB_422_APPLE                  0x8A1F
  5228 #define GL_UNSIGNED_SHORT_8_8_APPLE       0x85BA
  5229 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE   0x85BB
  5230 #define GL_RGB_RAW_422_APPLE              0x8A51
  5231 #endif /* GL_APPLE_rgb_422 */
  5232 
  5233 #ifndef GL_APPLE_row_bytes
  5234 #define GL_APPLE_row_bytes 1
  5235 #define GL_PACK_ROW_BYTES_APPLE           0x8A15
  5236 #define GL_UNPACK_ROW_BYTES_APPLE         0x8A16
  5237 #endif /* GL_APPLE_row_bytes */
  5238 
  5239 #ifndef GL_APPLE_specular_vector
  5240 #define GL_APPLE_specular_vector 1
  5241 #define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
  5242 #endif /* GL_APPLE_specular_vector */
  5243 
  5244 #ifndef GL_APPLE_texture_range
  5245 #define GL_APPLE_texture_range 1
  5246 #define GL_TEXTURE_RANGE_LENGTH_APPLE     0x85B7
  5247 #define GL_TEXTURE_RANGE_POINTER_APPLE    0x85B8
  5248 #define GL_TEXTURE_STORAGE_HINT_APPLE     0x85BC
  5249 #define GL_STORAGE_PRIVATE_APPLE          0x85BD
  5250 #define GL_STORAGE_CACHED_APPLE           0x85BE
  5251 #define GL_STORAGE_SHARED_APPLE           0x85BF
  5252 typedef void (APIENTRYP PFNGLTEXTURERANGEAPPLEPROC) (GLenum target, GLsizei length, const void *pointer);
  5253 typedef void (APIENTRYP PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC) (GLenum target, GLenum pname, void **params);
  5254 #ifdef GL_GLEXT_PROTOTYPES
  5255 GLAPI void APIENTRY glTextureRangeAPPLE (GLenum target, GLsizei length, const void *pointer);
  5256 GLAPI void APIENTRY glGetTexParameterPointervAPPLE (GLenum target, GLenum pname, void **params);
  5257 #endif
  5258 #endif /* GL_APPLE_texture_range */
  5259 
  5260 #ifndef GL_APPLE_transform_hint
  5261 #define GL_APPLE_transform_hint 1
  5262 #define GL_TRANSFORM_HINT_APPLE           0x85B1
  5263 #endif /* GL_APPLE_transform_hint */
  5264 
  5265 #ifndef GL_APPLE_vertex_array_object
  5266 #define GL_APPLE_vertex_array_object 1
  5267 #define GL_VERTEX_ARRAY_BINDING_APPLE     0x85B5
  5268 typedef void (APIENTRYP PFNGLBINDVERTEXARRAYAPPLEPROC) (GLuint array);
  5269 typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSAPPLEPROC) (GLsizei n, const GLuint *arrays);
  5270 typedef void (APIENTRYP PFNGLGENVERTEXARRAYSAPPLEPROC) (GLsizei n, GLuint *arrays);
  5271 typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYAPPLEPROC) (GLuint array);
  5272 #ifdef GL_GLEXT_PROTOTYPES
  5273 GLAPI void APIENTRY glBindVertexArrayAPPLE (GLuint array);
  5274 GLAPI void APIENTRY glDeleteVertexArraysAPPLE (GLsizei n, const GLuint *arrays);
  5275 GLAPI void APIENTRY glGenVertexArraysAPPLE (GLsizei n, GLuint *arrays);
  5276 GLAPI GLboolean APIENTRY glIsVertexArrayAPPLE (GLuint array);
  5277 #endif
  5278 #endif /* GL_APPLE_vertex_array_object */
  5279 
  5280 #ifndef GL_APPLE_vertex_array_range
  5281 #define GL_APPLE_vertex_array_range 1
  5282 #define GL_VERTEX_ARRAY_RANGE_APPLE       0x851D
  5283 #define GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE 0x851E
  5284 #define GL_VERTEX_ARRAY_STORAGE_HINT_APPLE 0x851F
  5285 #define GL_VERTEX_ARRAY_RANGE_POINTER_APPLE 0x8521
  5286 #define GL_STORAGE_CLIENT_APPLE           0x85B4
  5287 typedef void (APIENTRYP PFNGLVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void *pointer);
  5288 typedef void (APIENTRYP PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC) (GLsizei length, void *pointer);
  5289 typedef void (APIENTRYP PFNGLVERTEXARRAYPARAMETERIAPPLEPROC) (GLenum pname, GLint param);
  5290 #ifdef GL_GLEXT_PROTOTYPES
  5291 GLAPI void APIENTRY glVertexArrayRangeAPPLE (GLsizei length, void *pointer);
  5292 GLAPI void APIENTRY glFlushVertexArrayRangeAPPLE (GLsizei length, void *pointer);
  5293 GLAPI void APIENTRY glVertexArrayParameteriAPPLE (GLenum pname, GLint param);
  5294 #endif
  5295 #endif /* GL_APPLE_vertex_array_range */
  5296 
  5297 #ifndef GL_APPLE_vertex_program_evaluators
  5298 #define GL_APPLE_vertex_program_evaluators 1
  5299 #define GL_VERTEX_ATTRIB_MAP1_APPLE       0x8A00
  5300 #define GL_VERTEX_ATTRIB_MAP2_APPLE       0x8A01
  5301 #define GL_VERTEX_ATTRIB_MAP1_SIZE_APPLE  0x8A02
  5302 #define GL_VERTEX_ATTRIB_MAP1_COEFF_APPLE 0x8A03
  5303 #define GL_VERTEX_ATTRIB_MAP1_ORDER_APPLE 0x8A04
  5304 #define GL_VERTEX_ATTRIB_MAP1_DOMAIN_APPLE 0x8A05
  5305 #define GL_VERTEX_ATTRIB_MAP2_SIZE_APPLE  0x8A06
  5306 #define GL_VERTEX_ATTRIB_MAP2_COEFF_APPLE 0x8A07
  5307 #define GL_VERTEX_ATTRIB_MAP2_ORDER_APPLE 0x8A08
  5308 #define GL_VERTEX_ATTRIB_MAP2_DOMAIN_APPLE 0x8A09
  5309 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
  5310 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBAPPLEPROC) (GLuint index, GLenum pname);
  5311 typedef GLboolean (APIENTRYP PFNGLISVERTEXATTRIBENABLEDAPPLEPROC) (GLuint index, GLenum pname);
  5312 typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  5313 typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB1FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  5314 typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2DAPPLEPROC) (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  5315 typedef void (APIENTRYP PFNGLMAPVERTEXATTRIB2FAPPLEPROC) (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  5316 #ifdef GL_GLEXT_PROTOTYPES
  5317 GLAPI void APIENTRY glEnableVertexAttribAPPLE (GLuint index, GLenum pname);
  5318 GLAPI void APIENTRY glDisableVertexAttribAPPLE (GLuint index, GLenum pname);
  5319 GLAPI GLboolean APIENTRY glIsVertexAttribEnabledAPPLE (GLuint index, GLenum pname);
  5320 GLAPI void APIENTRY glMapVertexAttrib1dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  5321 GLAPI void APIENTRY glMapVertexAttrib1fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  5322 GLAPI void APIENTRY glMapVertexAttrib2dAPPLE (GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  5323 GLAPI void APIENTRY glMapVertexAttrib2fAPPLE (GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  5324 #endif
  5325 #endif /* GL_APPLE_vertex_program_evaluators */
  5326 
  5327 #ifndef GL_APPLE_ycbcr_422
  5328 #define GL_APPLE_ycbcr_422 1
  5329 #define GL_YCBCR_422_APPLE                0x85B9
  5330 #endif /* GL_APPLE_ycbcr_422 */
  5331 
  5332 #ifndef GL_ATI_draw_buffers
  5333 #define GL_ATI_draw_buffers 1
  5334 #define GL_MAX_DRAW_BUFFERS_ATI           0x8824
  5335 #define GL_DRAW_BUFFER0_ATI               0x8825
  5336 #define GL_DRAW_BUFFER1_ATI               0x8826
  5337 #define GL_DRAW_BUFFER2_ATI               0x8827
  5338 #define GL_DRAW_BUFFER3_ATI               0x8828
  5339 #define GL_DRAW_BUFFER4_ATI               0x8829
  5340 #define GL_DRAW_BUFFER5_ATI               0x882A
  5341 #define GL_DRAW_BUFFER6_ATI               0x882B
  5342 #define GL_DRAW_BUFFER7_ATI               0x882C
  5343 #define GL_DRAW_BUFFER8_ATI               0x882D
  5344 #define GL_DRAW_BUFFER9_ATI               0x882E
  5345 #define GL_DRAW_BUFFER10_ATI              0x882F
  5346 #define GL_DRAW_BUFFER11_ATI              0x8830
  5347 #define GL_DRAW_BUFFER12_ATI              0x8831
  5348 #define GL_DRAW_BUFFER13_ATI              0x8832
  5349 #define GL_DRAW_BUFFER14_ATI              0x8833
  5350 #define GL_DRAW_BUFFER15_ATI              0x8834
  5351 typedef void (APIENTRYP PFNGLDRAWBUFFERSATIPROC) (GLsizei n, const GLenum *bufs);
  5352 #ifdef GL_GLEXT_PROTOTYPES
  5353 GLAPI void APIENTRY glDrawBuffersATI (GLsizei n, const GLenum *bufs);
  5354 #endif
  5355 #endif /* GL_ATI_draw_buffers */
  5356 
  5357 #ifndef GL_ATI_element_array
  5358 #define GL_ATI_element_array 1
  5359 #define GL_ELEMENT_ARRAY_ATI              0x8768
  5360 #define GL_ELEMENT_ARRAY_TYPE_ATI         0x8769
  5361 #define GL_ELEMENT_ARRAY_POINTER_ATI      0x876A
  5362 typedef void (APIENTRYP PFNGLELEMENTPOINTERATIPROC) (GLenum type, const void *pointer);
  5363 typedef void (APIENTRYP PFNGLDRAWELEMENTARRAYATIPROC) (GLenum mode, GLsizei count);
  5364 typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTARRAYATIPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count);
  5365 #ifdef GL_GLEXT_PROTOTYPES
  5366 GLAPI void APIENTRY glElementPointerATI (GLenum type, const void *pointer);
  5367 GLAPI void APIENTRY glDrawElementArrayATI (GLenum mode, GLsizei count);
  5368 GLAPI void APIENTRY glDrawRangeElementArrayATI (GLenum mode, GLuint start, GLuint end, GLsizei count);
  5369 #endif
  5370 #endif /* GL_ATI_element_array */
  5371 
  5372 #ifndef GL_ATI_envmap_bumpmap
  5373 #define GL_ATI_envmap_bumpmap 1
  5374 #define GL_BUMP_ROT_MATRIX_ATI            0x8775
  5375 #define GL_BUMP_ROT_MATRIX_SIZE_ATI       0x8776
  5376 #define GL_BUMP_NUM_TEX_UNITS_ATI         0x8777
  5377 #define GL_BUMP_TEX_UNITS_ATI             0x8778
  5378 #define GL_DUDV_ATI                       0x8779
  5379 #define GL_DU8DV8_ATI                     0x877A
  5380 #define GL_BUMP_ENVMAP_ATI                0x877B
  5381 #define GL_BUMP_TARGET_ATI                0x877C
  5382 typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERIVATIPROC) (GLenum pname, const GLint *param);
  5383 typedef void (APIENTRYP PFNGLTEXBUMPPARAMETERFVATIPROC) (GLenum pname, const GLfloat *param);
  5384 typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERIVATIPROC) (GLenum pname, GLint *param);
  5385 typedef void (APIENTRYP PFNGLGETTEXBUMPPARAMETERFVATIPROC) (GLenum pname, GLfloat *param);
  5386 #ifdef GL_GLEXT_PROTOTYPES
  5387 GLAPI void APIENTRY glTexBumpParameterivATI (GLenum pname, const GLint *param);
  5388 GLAPI void APIENTRY glTexBumpParameterfvATI (GLenum pname, const GLfloat *param);
  5389 GLAPI void APIENTRY glGetTexBumpParameterivATI (GLenum pname, GLint *param);
  5390 GLAPI void APIENTRY glGetTexBumpParameterfvATI (GLenum pname, GLfloat *param);
  5391 #endif
  5392 #endif /* GL_ATI_envmap_bumpmap */
  5393 
  5394 #ifndef GL_ATI_fragment_shader
  5395 #define GL_ATI_fragment_shader 1
  5396 #define GL_FRAGMENT_SHADER_ATI            0x8920
  5397 #define GL_REG_0_ATI                      0x8921
  5398 #define GL_REG_1_ATI                      0x8922
  5399 #define GL_REG_2_ATI                      0x8923
  5400 #define GL_REG_3_ATI                      0x8924
  5401 #define GL_REG_4_ATI                      0x8925
  5402 #define GL_REG_5_ATI                      0x8926
  5403 #define GL_REG_6_ATI                      0x8927
  5404 #define GL_REG_7_ATI                      0x8928
  5405 #define GL_REG_8_ATI                      0x8929
  5406 #define GL_REG_9_ATI                      0x892A
  5407 #define GL_REG_10_ATI                     0x892B
  5408 #define GL_REG_11_ATI                     0x892C
  5409 #define GL_REG_12_ATI                     0x892D
  5410 #define GL_REG_13_ATI                     0x892E
  5411 #define GL_REG_14_ATI                     0x892F
  5412 #define GL_REG_15_ATI                     0x8930
  5413 #define GL_REG_16_ATI                     0x8931
  5414 #define GL_REG_17_ATI                     0x8932
  5415 #define GL_REG_18_ATI                     0x8933
  5416 #define GL_REG_19_ATI                     0x8934
  5417 #define GL_REG_20_ATI                     0x8935
  5418 #define GL_REG_21_ATI                     0x8936
  5419 #define GL_REG_22_ATI                     0x8937
  5420 #define GL_REG_23_ATI                     0x8938
  5421 #define GL_REG_24_ATI                     0x8939
  5422 #define GL_REG_25_ATI                     0x893A
  5423 #define GL_REG_26_ATI                     0x893B
  5424 #define GL_REG_27_ATI                     0x893C
  5425 #define GL_REG_28_ATI                     0x893D
  5426 #define GL_REG_29_ATI                     0x893E
  5427 #define GL_REG_30_ATI                     0x893F
  5428 #define GL_REG_31_ATI                     0x8940
  5429 #define GL_CON_0_ATI                      0x8941
  5430 #define GL_CON_1_ATI                      0x8942
  5431 #define GL_CON_2_ATI                      0x8943
  5432 #define GL_CON_3_ATI                      0x8944
  5433 #define GL_CON_4_ATI                      0x8945
  5434 #define GL_CON_5_ATI                      0x8946
  5435 #define GL_CON_6_ATI                      0x8947
  5436 #define GL_CON_7_ATI                      0x8948
  5437 #define GL_CON_8_ATI                      0x8949
  5438 #define GL_CON_9_ATI                      0x894A
  5439 #define GL_CON_10_ATI                     0x894B
  5440 #define GL_CON_11_ATI                     0x894C
  5441 #define GL_CON_12_ATI                     0x894D
  5442 #define GL_CON_13_ATI                     0x894E
  5443 #define GL_CON_14_ATI                     0x894F
  5444 #define GL_CON_15_ATI                     0x8950
  5445 #define GL_CON_16_ATI                     0x8951
  5446 #define GL_CON_17_ATI                     0x8952
  5447 #define GL_CON_18_ATI                     0x8953
  5448 #define GL_CON_19_ATI                     0x8954
  5449 #define GL_CON_20_ATI                     0x8955
  5450 #define GL_CON_21_ATI                     0x8956
  5451 #define GL_CON_22_ATI                     0x8957
  5452 #define GL_CON_23_ATI                     0x8958
  5453 #define GL_CON_24_ATI                     0x8959
  5454 #define GL_CON_25_ATI                     0x895A
  5455 #define GL_CON_26_ATI                     0x895B
  5456 #define GL_CON_27_ATI                     0x895C
  5457 #define GL_CON_28_ATI                     0x895D
  5458 #define GL_CON_29_ATI                     0x895E
  5459 #define GL_CON_30_ATI                     0x895F
  5460 #define GL_CON_31_ATI                     0x8960
  5461 #define GL_MOV_ATI                        0x8961
  5462 #define GL_ADD_ATI                        0x8963
  5463 #define GL_MUL_ATI                        0x8964
  5464 #define GL_SUB_ATI                        0x8965
  5465 #define GL_DOT3_ATI                       0x8966
  5466 #define GL_DOT4_ATI                       0x8967
  5467 #define GL_MAD_ATI                        0x8968
  5468 #define GL_LERP_ATI                       0x8969
  5469 #define GL_CND_ATI                        0x896A
  5470 #define GL_CND0_ATI                       0x896B
  5471 #define GL_DOT2_ADD_ATI                   0x896C
  5472 #define GL_SECONDARY_INTERPOLATOR_ATI     0x896D
  5473 #define GL_NUM_FRAGMENT_REGISTERS_ATI     0x896E
  5474 #define GL_NUM_FRAGMENT_CONSTANTS_ATI     0x896F
  5475 #define GL_NUM_PASSES_ATI                 0x8970
  5476 #define GL_NUM_INSTRUCTIONS_PER_PASS_ATI  0x8971
  5477 #define GL_NUM_INSTRUCTIONS_TOTAL_ATI     0x8972
  5478 #define GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI 0x8973
  5479 #define GL_NUM_LOOPBACK_COMPONENTS_ATI    0x8974
  5480 #define GL_COLOR_ALPHA_PAIRING_ATI        0x8975
  5481 #define GL_SWIZZLE_STR_ATI                0x8976
  5482 #define GL_SWIZZLE_STQ_ATI                0x8977
  5483 #define GL_SWIZZLE_STR_DR_ATI             0x8978
  5484 #define GL_SWIZZLE_STQ_DQ_ATI             0x8979
  5485 #define GL_SWIZZLE_STRQ_ATI               0x897A
  5486 #define GL_SWIZZLE_STRQ_DQ_ATI            0x897B
  5487 #define GL_RED_BIT_ATI                    0x00000001
  5488 #define GL_GREEN_BIT_ATI                  0x00000002
  5489 #define GL_BLUE_BIT_ATI                   0x00000004
  5490 #define GL_2X_BIT_ATI                     0x00000001
  5491 #define GL_4X_BIT_ATI                     0x00000002
  5492 #define GL_8X_BIT_ATI                     0x00000004
  5493 #define GL_HALF_BIT_ATI                   0x00000008
  5494 #define GL_QUARTER_BIT_ATI                0x00000010
  5495 #define GL_EIGHTH_BIT_ATI                 0x00000020
  5496 #define GL_SATURATE_BIT_ATI               0x00000040
  5497 #define GL_COMP_BIT_ATI                   0x00000002
  5498 #define GL_NEGATE_BIT_ATI                 0x00000004
  5499 #define GL_BIAS_BIT_ATI                   0x00000008
  5500 typedef GLuint (APIENTRYP PFNGLGENFRAGMENTSHADERSATIPROC) (GLuint range);
  5501 typedef void (APIENTRYP PFNGLBINDFRAGMENTSHADERATIPROC) (GLuint id);
  5502 typedef void (APIENTRYP PFNGLDELETEFRAGMENTSHADERATIPROC) (GLuint id);
  5503 typedef void (APIENTRYP PFNGLBEGINFRAGMENTSHADERATIPROC) (void);
  5504 typedef void (APIENTRYP PFNGLENDFRAGMENTSHADERATIPROC) (void);
  5505 typedef void (APIENTRYP PFNGLPASSTEXCOORDATIPROC) (GLuint dst, GLuint coord, GLenum swizzle);
  5506 typedef void (APIENTRYP PFNGLSAMPLEMAPATIPROC) (GLuint dst, GLuint interp, GLenum swizzle);
  5507 typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
  5508 typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
  5509 typedef void (APIENTRYP PFNGLCOLORFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
  5510 typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP1ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
  5511 typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP2ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
  5512 typedef void (APIENTRYP PFNGLALPHAFRAGMENTOP3ATIPROC) (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
  5513 typedef void (APIENTRYP PFNGLSETFRAGMENTSHADERCONSTANTATIPROC) (GLuint dst, const GLfloat *value);
  5514 #ifdef GL_GLEXT_PROTOTYPES
  5515 GLAPI GLuint APIENTRY glGenFragmentShadersATI (GLuint range);
  5516 GLAPI void APIENTRY glBindFragmentShaderATI (GLuint id);
  5517 GLAPI void APIENTRY glDeleteFragmentShaderATI (GLuint id);
  5518 GLAPI void APIENTRY glBeginFragmentShaderATI (void);
  5519 GLAPI void APIENTRY glEndFragmentShaderATI (void);
  5520 GLAPI void APIENTRY glPassTexCoordATI (GLuint dst, GLuint coord, GLenum swizzle);
  5521 GLAPI void APIENTRY glSampleMapATI (GLuint dst, GLuint interp, GLenum swizzle);
  5522 GLAPI void APIENTRY glColorFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
  5523 GLAPI void APIENTRY glColorFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
  5524 GLAPI void APIENTRY glColorFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMask, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod, GLuint arg3, GLuint arg3Rep, GLuint arg3Mod);
  5525 GLAPI void APIENTRY glAlphaFragmentOp1ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod);
  5526 GLAPI void APIENTRY glAlphaFragmentOp2ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep, GLuint arg2Mod);
  5527 GLAPI void APIENTRY glAlphaFragmentOp3ATI (GLenum op, GLuint dst, GLuint dstMod, GLuint arg1, GLuint arg1Rep, GLuint arg1Mod, GLuint arg2, GLuint arg2Rep,