Fixed bug 3616 - SDL_GL_CreateContext fails with SDL_GL_CONTEXT_DEBUG_FLAG and ANGLE/GLES 2.0
authorSam Lantinga <slouken@libsdl.org>
Tue, 29 Aug 2017 22:04:43 -0700
changeset 11422243b1a53ad89
parent 11421 f9d5845f2311
child 11423 1d6cabc7ac23
Fixed bug 3616 - SDL_GL_CreateContext fails with SDL_GL_CONTEXT_DEBUG_FLAG and ANGLE/GLES 2.0

Colin Barrett

Using the pre-built x86 devel libs from here:
https://www.libsdl.org/release/SDL2-devel-2.0.5-VC.zip

If I have:

SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);

and I'm using ANGLE/(a GL driver that doesn't provide an ES2 context) such that SDL_EGL_CreateContext is called by SDL_GL_CreateContext, I get the error "Could not create EGL context (context attributes are not supported)" and no context is created.

Looking at the code in SDL_EGL_CreateContext - if gl_config.flags is non-zero, it looks like the code in the section guarded with "#ifdef EGL_KHR_create_context" should be executed - but it apparently isn't.

Is it possible this section hasn't been compiled into the pre-built libraries? If I build SDL2.dll myself using the Visual C++ solution (VS2015 Community Update 3) then the call succeeds as I expect
CMakeLists.txt
configure
configure.in
src/video/khronos/EGL/egl.h
src/video/khronos/EGL/eglext.h
src/video/khronos/EGL/eglplatform.h
src/video/khronos/GLES2/gl2.h
src/video/khronos/GLES2/gl2ext.h
src/video/khronos/GLES2/gl2platform.h
src/video/khronos/KHR/khrplatform.h
     1.1 --- a/CMakeLists.txt	Tue Aug 29 21:42:22 2017 -0700
     1.2 +++ b/CMakeLists.txt	Tue Aug 29 22:04:43 2017 -0700
     1.3 @@ -232,7 +232,7 @@
     1.4  
     1.5  add_definitions(-DUSING_GENERATED_CONFIG_H)
     1.6  # General includes
     1.7 -include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include)
     1.8 +include_directories(${SDL2_BINARY_DIR}/include ${SDL2_SOURCE_DIR}/include ${SDL2_SOURCE_DIR}/src/video/khronos)
     1.9  
    1.10  # All these ENABLED_BY_DEFAULT vars will default to ON if not specified, so
    1.11  #  you only need to have a platform override them if they are disabling.
     2.1 --- a/configure	Tue Aug 29 21:42:22 2017 -0700
     2.2 +++ b/configure	Tue Aug 29 22:04:43 2017 -0700
     2.3 @@ -15677,7 +15677,7 @@
     2.4          ;;
     2.5  esac
     2.6  
     2.7 -INCLUDE="-I$srcdir/include"
     2.8 +INCLUDE="-I$srcdir/include -I$srcdir/src/video/khronos"
     2.9  if test x$srcdir != x.; then
    2.10      INCLUDE="-Iinclude $INCLUDE"
    2.11  elif test -d .hg; then
     3.1 --- a/configure.in	Tue Aug 29 21:42:22 2017 -0700
     3.2 +++ b/configure.in	Tue Aug 29 22:04:43 2017 -0700
     3.3 @@ -68,7 +68,7 @@
     3.4  esac
     3.5  
     3.6  dnl Set up the compiler and linker flags
     3.7 -INCLUDE="-I$srcdir/include"
     3.8 +INCLUDE="-I$srcdir/include -I$srcdir/src/video/khronos"
     3.9  if test x$srcdir != x.; then
    3.10      INCLUDE="-Iinclude $INCLUDE"
    3.11  elif test -d .hg; then
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/src/video/khronos/EGL/egl.h	Tue Aug 29 22:04:43 2017 -0700
     4.3 @@ -0,0 +1,303 @@
     4.4 +#ifndef __egl_h_
     4.5 +#define __egl_h_ 1
     4.6 +
     4.7 +#ifdef __cplusplus
     4.8 +extern "C" {
     4.9 +#endif
    4.10 +
    4.11 +/*
    4.12 +** Copyright (c) 2013-2017 The Khronos Group Inc.
    4.13 +**
    4.14 +** Permission is hereby granted, free of charge, to any person obtaining a
    4.15 +** copy of this software and/or associated documentation files (the
    4.16 +** "Materials"), to deal in the Materials without restriction, including
    4.17 +** without limitation the rights to use, copy, modify, merge, publish,
    4.18 +** distribute, sublicense, and/or sell copies of the Materials, and to
    4.19 +** permit persons to whom the Materials are furnished to do so, subject to
    4.20 +** the following conditions:
    4.21 +**
    4.22 +** The above copyright notice and this permission notice shall be included
    4.23 +** in all copies or substantial portions of the Materials.
    4.24 +**
    4.25 +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    4.26 +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    4.27 +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    4.28 +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    4.29 +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    4.30 +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    4.31 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    4.32 +*/
    4.33 +/*
    4.34 +** This header is generated from the Khronos OpenGL / OpenGL ES XML
    4.35 +** API Registry. The current version of the Registry, generator scripts
    4.36 +** used to make the header, and the header can be found at
    4.37 +**   http://www.khronos.org/registry/egl
    4.38 +**
    4.39 +** Khronos $Git commit SHA1: a732b061e7 $ on $Git commit date: 2017-06-17 23:27:53 +0100 $
    4.40 +*/
    4.41 +
    4.42 +#include <EGL/eglplatform.h>
    4.43 +
    4.44 +/* Generated on date 20170627 */
    4.45 +
    4.46 +/* Generated C header for:
    4.47 + * API: egl
    4.48 + * Versions considered: .*
    4.49 + * Versions emitted: .*
    4.50 + * Default extensions included: None
    4.51 + * Additional extensions included: _nomatch_^
    4.52 + * Extensions removed: _nomatch_^
    4.53 + */
    4.54 +
    4.55 +#ifndef EGL_VERSION_1_0
    4.56 +#define EGL_VERSION_1_0 1
    4.57 +typedef unsigned int EGLBoolean;
    4.58 +typedef void *EGLDisplay;
    4.59 +#include <KHR/khrplatform.h>
    4.60 +#include <EGL/eglplatform.h>
    4.61 +typedef void *EGLConfig;
    4.62 +typedef void *EGLSurface;
    4.63 +typedef void *EGLContext;
    4.64 +typedef void (*__eglMustCastToProperFunctionPointerType)(void);
    4.65 +#define EGL_ALPHA_SIZE                    0x3021
    4.66 +#define EGL_BAD_ACCESS                    0x3002
    4.67 +#define EGL_BAD_ALLOC                     0x3003
    4.68 +#define EGL_BAD_ATTRIBUTE                 0x3004
    4.69 +#define EGL_BAD_CONFIG                    0x3005
    4.70 +#define EGL_BAD_CONTEXT                   0x3006
    4.71 +#define EGL_BAD_CURRENT_SURFACE           0x3007
    4.72 +#define EGL_BAD_DISPLAY                   0x3008
    4.73 +#define EGL_BAD_MATCH                     0x3009
    4.74 +#define EGL_BAD_NATIVE_PIXMAP             0x300A
    4.75 +#define EGL_BAD_NATIVE_WINDOW             0x300B
    4.76 +#define EGL_BAD_PARAMETER                 0x300C
    4.77 +#define EGL_BAD_SURFACE                   0x300D
    4.78 +#define EGL_BLUE_SIZE                     0x3022
    4.79 +#define EGL_BUFFER_SIZE                   0x3020
    4.80 +#define EGL_CONFIG_CAVEAT                 0x3027
    4.81 +#define EGL_CONFIG_ID                     0x3028
    4.82 +#define EGL_CORE_NATIVE_ENGINE            0x305B
    4.83 +#define EGL_DEPTH_SIZE                    0x3025
    4.84 +#define EGL_DONT_CARE                     EGL_CAST(EGLint,-1)
    4.85 +#define EGL_DRAW                          0x3059
    4.86 +#define EGL_EXTENSIONS                    0x3055
    4.87 +#define EGL_FALSE                         0
    4.88 +#define EGL_GREEN_SIZE                    0x3023
    4.89 +#define EGL_HEIGHT                        0x3056
    4.90 +#define EGL_LARGEST_PBUFFER               0x3058
    4.91 +#define EGL_LEVEL                         0x3029
    4.92 +#define EGL_MAX_PBUFFER_HEIGHT            0x302A
    4.93 +#define EGL_MAX_PBUFFER_PIXELS            0x302B
    4.94 +#define EGL_MAX_PBUFFER_WIDTH             0x302C
    4.95 +#define EGL_NATIVE_RENDERABLE             0x302D
    4.96 +#define EGL_NATIVE_VISUAL_ID              0x302E
    4.97 +#define EGL_NATIVE_VISUAL_TYPE            0x302F
    4.98 +#define EGL_NONE                          0x3038
    4.99 +#define EGL_NON_CONFORMANT_CONFIG         0x3051
   4.100 +#define EGL_NOT_INITIALIZED               0x3001
   4.101 +#define EGL_NO_CONTEXT                    EGL_CAST(EGLContext,0)
   4.102 +#define EGL_NO_DISPLAY                    EGL_CAST(EGLDisplay,0)
   4.103 +#define EGL_NO_SURFACE                    EGL_CAST(EGLSurface,0)
   4.104 +#define EGL_PBUFFER_BIT                   0x0001
   4.105 +#define EGL_PIXMAP_BIT                    0x0002
   4.106 +#define EGL_READ                          0x305A
   4.107 +#define EGL_RED_SIZE                      0x3024
   4.108 +#define EGL_SAMPLES                       0x3031
   4.109 +#define EGL_SAMPLE_BUFFERS                0x3032
   4.110 +#define EGL_SLOW_CONFIG                   0x3050
   4.111 +#define EGL_STENCIL_SIZE                  0x3026
   4.112 +#define EGL_SUCCESS                       0x3000
   4.113 +#define EGL_SURFACE_TYPE                  0x3033
   4.114 +#define EGL_TRANSPARENT_BLUE_VALUE        0x3035
   4.115 +#define EGL_TRANSPARENT_GREEN_VALUE       0x3036
   4.116 +#define EGL_TRANSPARENT_RED_VALUE         0x3037
   4.117 +#define EGL_TRANSPARENT_RGB               0x3052
   4.118 +#define EGL_TRANSPARENT_TYPE              0x3034
   4.119 +#define EGL_TRUE                          1
   4.120 +#define EGL_VENDOR                        0x3053
   4.121 +#define EGL_VERSION                       0x3054
   4.122 +#define EGL_WIDTH                         0x3057
   4.123 +#define EGL_WINDOW_BIT                    0x0004
   4.124 +EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
   4.125 +EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
   4.126 +EGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
   4.127 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
   4.128 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
   4.129 +EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
   4.130 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext (EGLDisplay dpy, EGLContext ctx);
   4.131 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface);
   4.132 +EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
   4.133 +EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
   4.134 +EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay (void);
   4.135 +EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface (EGLint readdraw);
   4.136 +EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay (EGLNativeDisplayType display_id);
   4.137 +EGLAPI EGLint EGLAPIENTRY eglGetError (void);
   4.138 +EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
   4.139 +EGLAPI EGLBoolean EGLAPIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor);
   4.140 +EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
   4.141 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
   4.142 +EGLAPI const char *EGLAPIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
   4.143 +EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
   4.144 +EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers (EGLDisplay dpy, EGLSurface surface);
   4.145 +EGLAPI EGLBoolean EGLAPIENTRY eglTerminate (EGLDisplay dpy);
   4.146 +EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL (void);
   4.147 +EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative (EGLint engine);
   4.148 +#endif /* EGL_VERSION_1_0 */
   4.149 +
   4.150 +#ifndef EGL_VERSION_1_1
   4.151 +#define EGL_VERSION_1_1 1
   4.152 +#define EGL_BACK_BUFFER                   0x3084
   4.153 +#define EGL_BIND_TO_TEXTURE_RGB           0x3039
   4.154 +#define EGL_BIND_TO_TEXTURE_RGBA          0x303A
   4.155 +#define EGL_CONTEXT_LOST                  0x300E
   4.156 +#define EGL_MIN_SWAP_INTERVAL             0x303B
   4.157 +#define EGL_MAX_SWAP_INTERVAL             0x303C
   4.158 +#define EGL_MIPMAP_TEXTURE                0x3082
   4.159 +#define EGL_MIPMAP_LEVEL                  0x3083
   4.160 +#define EGL_NO_TEXTURE                    0x305C
   4.161 +#define EGL_TEXTURE_2D                    0x305F
   4.162 +#define EGL_TEXTURE_FORMAT                0x3080
   4.163 +#define EGL_TEXTURE_RGB                   0x305D
   4.164 +#define EGL_TEXTURE_RGBA                  0x305E
   4.165 +#define EGL_TEXTURE_TARGET                0x3081
   4.166 +EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
   4.167 +EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
   4.168 +EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
   4.169 +EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval (EGLDisplay dpy, EGLint interval);
   4.170 +#endif /* EGL_VERSION_1_1 */
   4.171 +
   4.172 +#ifndef EGL_VERSION_1_2
   4.173 +#define EGL_VERSION_1_2 1
   4.174 +typedef unsigned int EGLenum;
   4.175 +typedef void *EGLClientBuffer;
   4.176 +#define EGL_ALPHA_FORMAT                  0x3088
   4.177 +#define EGL_ALPHA_FORMAT_NONPRE           0x308B
   4.178 +#define EGL_ALPHA_FORMAT_PRE              0x308C
   4.179 +#define EGL_ALPHA_MASK_SIZE               0x303E
   4.180 +#define EGL_BUFFER_PRESERVED              0x3094
   4.181 +#define EGL_BUFFER_DESTROYED              0x3095
   4.182 +#define EGL_CLIENT_APIS                   0x308D
   4.183 +#define EGL_COLORSPACE                    0x3087
   4.184 +#define EGL_COLORSPACE_sRGB               0x3089
   4.185 +#define EGL_COLORSPACE_LINEAR             0x308A
   4.186 +#define EGL_COLOR_BUFFER_TYPE             0x303F
   4.187 +#define EGL_CONTEXT_CLIENT_TYPE           0x3097
   4.188 +#define EGL_DISPLAY_SCALING               10000
   4.189 +#define EGL_HORIZONTAL_RESOLUTION         0x3090
   4.190 +#define EGL_LUMINANCE_BUFFER              0x308F
   4.191 +#define EGL_LUMINANCE_SIZE                0x303D
   4.192 +#define EGL_OPENGL_ES_BIT                 0x0001
   4.193 +#define EGL_OPENVG_BIT                    0x0002
   4.194 +#define EGL_OPENGL_ES_API                 0x30A0
   4.195 +#define EGL_OPENVG_API                    0x30A1
   4.196 +#define EGL_OPENVG_IMAGE                  0x3096
   4.197 +#define EGL_PIXEL_ASPECT_RATIO            0x3092
   4.198 +#define EGL_RENDERABLE_TYPE               0x3040
   4.199 +#define EGL_RENDER_BUFFER                 0x3086
   4.200 +#define EGL_RGB_BUFFER                    0x308E
   4.201 +#define EGL_SINGLE_BUFFER                 0x3085
   4.202 +#define EGL_SWAP_BEHAVIOR                 0x3093
   4.203 +#define EGL_UNKNOWN                       EGL_CAST(EGLint,-1)
   4.204 +#define EGL_VERTICAL_RESOLUTION           0x3091
   4.205 +EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI (EGLenum api);
   4.206 +EGLAPI EGLenum EGLAPIENTRY eglQueryAPI (void);
   4.207 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
   4.208 +EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread (void);
   4.209 +EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient (void);
   4.210 +#endif /* EGL_VERSION_1_2 */
   4.211 +
   4.212 +#ifndef EGL_VERSION_1_3
   4.213 +#define EGL_VERSION_1_3 1
   4.214 +#define EGL_CONFORMANT                    0x3042
   4.215 +#define EGL_CONTEXT_CLIENT_VERSION        0x3098
   4.216 +#define EGL_MATCH_NATIVE_PIXMAP           0x3041
   4.217 +#define EGL_OPENGL_ES2_BIT                0x0004
   4.218 +#define EGL_VG_ALPHA_FORMAT               0x3088
   4.219 +#define EGL_VG_ALPHA_FORMAT_NONPRE        0x308B
   4.220 +#define EGL_VG_ALPHA_FORMAT_PRE           0x308C
   4.221 +#define EGL_VG_ALPHA_FORMAT_PRE_BIT       0x0040
   4.222 +#define EGL_VG_COLORSPACE                 0x3087
   4.223 +#define EGL_VG_COLORSPACE_sRGB            0x3089
   4.224 +#define EGL_VG_COLORSPACE_LINEAR          0x308A
   4.225 +#define EGL_VG_COLORSPACE_LINEAR_BIT      0x0020
   4.226 +#endif /* EGL_VERSION_1_3 */
   4.227 +
   4.228 +#ifndef EGL_VERSION_1_4
   4.229 +#define EGL_VERSION_1_4 1
   4.230 +#define EGL_DEFAULT_DISPLAY               EGL_CAST(EGLNativeDisplayType,0)
   4.231 +#define EGL_MULTISAMPLE_RESOLVE_BOX_BIT   0x0200
   4.232 +#define EGL_MULTISAMPLE_RESOLVE           0x3099
   4.233 +#define EGL_MULTISAMPLE_RESOLVE_DEFAULT   0x309A
   4.234 +#define EGL_MULTISAMPLE_RESOLVE_BOX       0x309B
   4.235 +#define EGL_OPENGL_API                    0x30A2
   4.236 +#define EGL_OPENGL_BIT                    0x0008
   4.237 +#define EGL_SWAP_BEHAVIOR_PRESERVED_BIT   0x0400
   4.238 +EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext (void);
   4.239 +#endif /* EGL_VERSION_1_4 */
   4.240 +
   4.241 +#ifndef EGL_VERSION_1_5
   4.242 +#define EGL_VERSION_1_5 1
   4.243 +typedef void *EGLSync;
   4.244 +typedef intptr_t EGLAttrib;
   4.245 +typedef khronos_utime_nanoseconds_t EGLTime;
   4.246 +typedef void *EGLImage;
   4.247 +#define EGL_CONTEXT_MAJOR_VERSION         0x3098
   4.248 +#define EGL_CONTEXT_MINOR_VERSION         0x30FB
   4.249 +#define EGL_CONTEXT_OPENGL_PROFILE_MASK   0x30FD
   4.250 +#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
   4.251 +#define EGL_NO_RESET_NOTIFICATION         0x31BE
   4.252 +#define EGL_LOSE_CONTEXT_ON_RESET         0x31BF
   4.253 +#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
   4.254 +#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
   4.255 +#define EGL_CONTEXT_OPENGL_DEBUG          0x31B0
   4.256 +#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
   4.257 +#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS  0x31B2
   4.258 +#define EGL_OPENGL_ES3_BIT                0x00000040
   4.259 +#define EGL_CL_EVENT_HANDLE               0x309C
   4.260 +#define EGL_SYNC_CL_EVENT                 0x30FE
   4.261 +#define EGL_SYNC_CL_EVENT_COMPLETE        0x30FF
   4.262 +#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE  0x30F0
   4.263 +#define EGL_SYNC_TYPE                     0x30F7
   4.264 +#define EGL_SYNC_STATUS                   0x30F1
   4.265 +#define EGL_SYNC_CONDITION                0x30F8
   4.266 +#define EGL_SIGNALED                      0x30F2
   4.267 +#define EGL_UNSIGNALED                    0x30F3
   4.268 +#define EGL_SYNC_FLUSH_COMMANDS_BIT       0x0001
   4.269 +#define EGL_FOREVER                       0xFFFFFFFFFFFFFFFFull
   4.270 +#define EGL_TIMEOUT_EXPIRED               0x30F5
   4.271 +#define EGL_CONDITION_SATISFIED           0x30F6
   4.272 +#define EGL_NO_SYNC                       EGL_CAST(EGLSync,0)
   4.273 +#define EGL_SYNC_FENCE                    0x30F9
   4.274 +#define EGL_GL_COLORSPACE                 0x309D
   4.275 +#define EGL_GL_COLORSPACE_SRGB            0x3089
   4.276 +#define EGL_GL_COLORSPACE_LINEAR          0x308A
   4.277 +#define EGL_GL_RENDERBUFFER               0x30B9
   4.278 +#define EGL_GL_TEXTURE_2D                 0x30B1
   4.279 +#define EGL_GL_TEXTURE_LEVEL              0x30BC
   4.280 +#define EGL_GL_TEXTURE_3D                 0x30B2
   4.281 +#define EGL_GL_TEXTURE_ZOFFSET            0x30BD
   4.282 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
   4.283 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
   4.284 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
   4.285 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
   4.286 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
   4.287 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
   4.288 +#define EGL_IMAGE_PRESERVED               0x30D2
   4.289 +#define EGL_NO_IMAGE                      EGL_CAST(EGLImage,0)
   4.290 +EGLAPI EGLSync EGLAPIENTRY eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
   4.291 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
   4.292 +EGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
   4.293 +EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
   4.294 +EGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
   4.295 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage image);
   4.296 +EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
   4.297 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
   4.298 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
   4.299 +EGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags);
   4.300 +#endif /* EGL_VERSION_1_5 */
   4.301 +
   4.302 +#ifdef __cplusplus
   4.303 +}
   4.304 +#endif
   4.305 +
   4.306 +#endif
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/src/video/khronos/EGL/eglext.h	Tue Aug 29 22:04:43 2017 -0700
     5.3 @@ -0,0 +1,1241 @@
     5.4 +#ifndef __eglext_h_
     5.5 +#define __eglext_h_ 1
     5.6 +
     5.7 +#ifdef __cplusplus
     5.8 +extern "C" {
     5.9 +#endif
    5.10 +
    5.11 +/*
    5.12 +** Copyright (c) 2013-2017 The Khronos Group Inc.
    5.13 +**
    5.14 +** Permission is hereby granted, free of charge, to any person obtaining a
    5.15 +** copy of this software and/or associated documentation files (the
    5.16 +** "Materials"), to deal in the Materials without restriction, including
    5.17 +** without limitation the rights to use, copy, modify, merge, publish,
    5.18 +** distribute, sublicense, and/or sell copies of the Materials, and to
    5.19 +** permit persons to whom the Materials are furnished to do so, subject to
    5.20 +** the following conditions:
    5.21 +**
    5.22 +** The above copyright notice and this permission notice shall be included
    5.23 +** in all copies or substantial portions of the Materials.
    5.24 +**
    5.25 +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    5.26 +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    5.27 +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    5.28 +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    5.29 +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    5.30 +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    5.31 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    5.32 +*/
    5.33 +/*
    5.34 +** This header is generated from the Khronos OpenGL / OpenGL ES XML
    5.35 +** API Registry. The current version of the Registry, generator scripts
    5.36 +** used to make the header, and the header can be found at
    5.37 +**   http://www.khronos.org/registry/egl
    5.38 +**
    5.39 +** Khronos $Git commit SHA1: a732b061e7 $ on $Git commit date: 2017-06-17 23:27:53 +0100 $
    5.40 +*/
    5.41 +
    5.42 +#include <EGL/eglplatform.h>
    5.43 +
    5.44 +#define EGL_EGLEXT_VERSION 20170627
    5.45 +
    5.46 +/* Generated C header for:
    5.47 + * API: egl
    5.48 + * Versions considered: .*
    5.49 + * Versions emitted: _nomatch_^
    5.50 + * Default extensions included: egl
    5.51 + * Additional extensions included: _nomatch_^
    5.52 + * Extensions removed: _nomatch_^
    5.53 + */
    5.54 +
    5.55 +#ifndef EGL_KHR_cl_event
    5.56 +#define EGL_KHR_cl_event 1
    5.57 +#define EGL_CL_EVENT_HANDLE_KHR           0x309C
    5.58 +#define EGL_SYNC_CL_EVENT_KHR             0x30FE
    5.59 +#define EGL_SYNC_CL_EVENT_COMPLETE_KHR    0x30FF
    5.60 +#endif /* EGL_KHR_cl_event */
    5.61 +
    5.62 +#ifndef EGL_KHR_cl_event2
    5.63 +#define EGL_KHR_cl_event2 1
    5.64 +typedef void *EGLSyncKHR;
    5.65 +typedef intptr_t EGLAttribKHR;
    5.66 +typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
    5.67 +#ifdef EGL_EGLEXT_PROTOTYPES
    5.68 +EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
    5.69 +#endif
    5.70 +#endif /* EGL_KHR_cl_event2 */
    5.71 +
    5.72 +#ifndef EGL_KHR_client_get_all_proc_addresses
    5.73 +#define EGL_KHR_client_get_all_proc_addresses 1
    5.74 +#endif /* EGL_KHR_client_get_all_proc_addresses */
    5.75 +
    5.76 +#ifndef EGL_KHR_config_attribs
    5.77 +#define EGL_KHR_config_attribs 1
    5.78 +#define EGL_CONFORMANT_KHR                0x3042
    5.79 +#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR  0x0020
    5.80 +#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR   0x0040
    5.81 +#endif /* EGL_KHR_config_attribs */
    5.82 +
    5.83 +#ifndef EGL_KHR_context_flush_control
    5.84 +#define EGL_KHR_context_flush_control 1
    5.85 +#define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0
    5.86 +#define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR  0x2097
    5.87 +#define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098
    5.88 +#endif /* EGL_KHR_context_flush_control */
    5.89 +
    5.90 +#ifndef EGL_KHR_create_context
    5.91 +#define EGL_KHR_create_context 1
    5.92 +#define EGL_CONTEXT_MAJOR_VERSION_KHR     0x3098
    5.93 +#define EGL_CONTEXT_MINOR_VERSION_KHR     0x30FB
    5.94 +#define EGL_CONTEXT_FLAGS_KHR             0x30FC
    5.95 +#define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
    5.96 +#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
    5.97 +#define EGL_NO_RESET_NOTIFICATION_KHR     0x31BE
    5.98 +#define EGL_LOSE_CONTEXT_ON_RESET_KHR     0x31BF
    5.99 +#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR  0x00000001
   5.100 +#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
   5.101 +#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
   5.102 +#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
   5.103 +#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
   5.104 +#define EGL_OPENGL_ES3_BIT_KHR            0x00000040
   5.105 +#endif /* EGL_KHR_create_context */
   5.106 +
   5.107 +#ifndef EGL_KHR_create_context_no_error
   5.108 +#define EGL_KHR_create_context_no_error 1
   5.109 +#define EGL_CONTEXT_OPENGL_NO_ERROR_KHR   0x31B3
   5.110 +#endif /* EGL_KHR_create_context_no_error */
   5.111 +
   5.112 +#ifndef EGL_KHR_debug
   5.113 +#define EGL_KHR_debug 1
   5.114 +typedef void *EGLLabelKHR;
   5.115 +typedef void *EGLObjectKHR;
   5.116 +typedef void (EGLAPIENTRY  *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
   5.117 +#define EGL_OBJECT_THREAD_KHR             0x33B0
   5.118 +#define EGL_OBJECT_DISPLAY_KHR            0x33B1
   5.119 +#define EGL_OBJECT_CONTEXT_KHR            0x33B2
   5.120 +#define EGL_OBJECT_SURFACE_KHR            0x33B3
   5.121 +#define EGL_OBJECT_IMAGE_KHR              0x33B4
   5.122 +#define EGL_OBJECT_SYNC_KHR               0x33B5
   5.123 +#define EGL_OBJECT_STREAM_KHR             0x33B6
   5.124 +#define EGL_DEBUG_MSG_CRITICAL_KHR        0x33B9
   5.125 +#define EGL_DEBUG_MSG_ERROR_KHR           0x33BA
   5.126 +#define EGL_DEBUG_MSG_WARN_KHR            0x33BB
   5.127 +#define EGL_DEBUG_MSG_INFO_KHR            0x33BC
   5.128 +#define EGL_DEBUG_CALLBACK_KHR            0x33B8
   5.129 +typedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
   5.130 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib *value);
   5.131 +typedef EGLint (EGLAPIENTRYP PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
   5.132 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.133 +EGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
   5.134 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *value);
   5.135 +EGLAPI EGLint EGLAPIENTRY eglLabelObjectKHR (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
   5.136 +#endif
   5.137 +#endif /* EGL_KHR_debug */
   5.138 +
   5.139 +#ifndef EGL_KHR_display_reference
   5.140 +#define EGL_KHR_display_reference 1
   5.141 +#define EGL_TRACK_REFERENCES_KHR          0x3352
   5.142 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBKHRPROC) (EGLDisplay dpy, EGLint name, EGLAttrib *value);
   5.143 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.144 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribKHR (EGLDisplay dpy, EGLint name, EGLAttrib *value);
   5.145 +#endif
   5.146 +#endif /* EGL_KHR_display_reference */
   5.147 +
   5.148 +#ifndef EGL_KHR_fence_sync
   5.149 +#define EGL_KHR_fence_sync 1
   5.150 +typedef khronos_utime_nanoseconds_t EGLTimeKHR;
   5.151 +#ifdef KHRONOS_SUPPORT_INT64
   5.152 +#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
   5.153 +#define EGL_SYNC_CONDITION_KHR            0x30F8
   5.154 +#define EGL_SYNC_FENCE_KHR                0x30F9
   5.155 +typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
   5.156 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
   5.157 +typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
   5.158 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
   5.159 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.160 +EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
   5.161 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
   5.162 +EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
   5.163 +EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
   5.164 +#endif
   5.165 +#endif /* KHRONOS_SUPPORT_INT64 */
   5.166 +#endif /* EGL_KHR_fence_sync */
   5.167 +
   5.168 +#ifndef EGL_KHR_get_all_proc_addresses
   5.169 +#define EGL_KHR_get_all_proc_addresses 1
   5.170 +#endif /* EGL_KHR_get_all_proc_addresses */
   5.171 +
   5.172 +#ifndef EGL_KHR_gl_colorspace
   5.173 +#define EGL_KHR_gl_colorspace 1
   5.174 +#define EGL_GL_COLORSPACE_KHR             0x309D
   5.175 +#define EGL_GL_COLORSPACE_SRGB_KHR        0x3089
   5.176 +#define EGL_GL_COLORSPACE_LINEAR_KHR      0x308A
   5.177 +#endif /* EGL_KHR_gl_colorspace */
   5.178 +
   5.179 +#ifndef EGL_KHR_gl_renderbuffer_image
   5.180 +#define EGL_KHR_gl_renderbuffer_image 1
   5.181 +#define EGL_GL_RENDERBUFFER_KHR           0x30B9
   5.182 +#endif /* EGL_KHR_gl_renderbuffer_image */
   5.183 +
   5.184 +#ifndef EGL_KHR_gl_texture_2D_image
   5.185 +#define EGL_KHR_gl_texture_2D_image 1
   5.186 +#define EGL_GL_TEXTURE_2D_KHR             0x30B1
   5.187 +#define EGL_GL_TEXTURE_LEVEL_KHR          0x30BC
   5.188 +#endif /* EGL_KHR_gl_texture_2D_image */
   5.189 +
   5.190 +#ifndef EGL_KHR_gl_texture_3D_image
   5.191 +#define EGL_KHR_gl_texture_3D_image 1
   5.192 +#define EGL_GL_TEXTURE_3D_KHR             0x30B2
   5.193 +#define EGL_GL_TEXTURE_ZOFFSET_KHR        0x30BD
   5.194 +#endif /* EGL_KHR_gl_texture_3D_image */
   5.195 +
   5.196 +#ifndef EGL_KHR_gl_texture_cubemap_image
   5.197 +#define EGL_KHR_gl_texture_cubemap_image 1
   5.198 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
   5.199 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
   5.200 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
   5.201 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
   5.202 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
   5.203 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
   5.204 +#endif /* EGL_KHR_gl_texture_cubemap_image */
   5.205 +
   5.206 +#ifndef EGL_KHR_image
   5.207 +#define EGL_KHR_image 1
   5.208 +typedef void *EGLImageKHR;
   5.209 +#define EGL_NATIVE_PIXMAP_KHR             0x30B0
   5.210 +#define EGL_NO_IMAGE_KHR                  EGL_CAST(EGLImageKHR,0)
   5.211 +typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
   5.212 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
   5.213 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.214 +EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
   5.215 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
   5.216 +#endif
   5.217 +#endif /* EGL_KHR_image */
   5.218 +
   5.219 +#ifndef EGL_KHR_image_base
   5.220 +#define EGL_KHR_image_base 1
   5.221 +#define EGL_IMAGE_PRESERVED_KHR           0x30D2
   5.222 +#endif /* EGL_KHR_image_base */
   5.223 +
   5.224 +#ifndef EGL_KHR_image_pixmap
   5.225 +#define EGL_KHR_image_pixmap 1
   5.226 +#endif /* EGL_KHR_image_pixmap */
   5.227 +
   5.228 +#ifndef EGL_KHR_lock_surface
   5.229 +#define EGL_KHR_lock_surface 1
   5.230 +#define EGL_READ_SURFACE_BIT_KHR          0x0001
   5.231 +#define EGL_WRITE_SURFACE_BIT_KHR         0x0002
   5.232 +#define EGL_LOCK_SURFACE_BIT_KHR          0x0080
   5.233 +#define EGL_OPTIMAL_FORMAT_BIT_KHR        0x0100
   5.234 +#define EGL_MATCH_FORMAT_KHR              0x3043
   5.235 +#define EGL_FORMAT_RGB_565_EXACT_KHR      0x30C0
   5.236 +#define EGL_FORMAT_RGB_565_KHR            0x30C1
   5.237 +#define EGL_FORMAT_RGBA_8888_EXACT_KHR    0x30C2
   5.238 +#define EGL_FORMAT_RGBA_8888_KHR          0x30C3
   5.239 +#define EGL_MAP_PRESERVE_PIXELS_KHR       0x30C4
   5.240 +#define EGL_LOCK_USAGE_HINT_KHR           0x30C5
   5.241 +#define EGL_BITMAP_POINTER_KHR            0x30C6
   5.242 +#define EGL_BITMAP_PITCH_KHR              0x30C7
   5.243 +#define EGL_BITMAP_ORIGIN_KHR             0x30C8
   5.244 +#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR   0x30C9
   5.245 +#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
   5.246 +#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR  0x30CB
   5.247 +#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
   5.248 +#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
   5.249 +#define EGL_LOWER_LEFT_KHR                0x30CE
   5.250 +#define EGL_UPPER_LEFT_KHR                0x30CF
   5.251 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
   5.252 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
   5.253 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.254 +EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
   5.255 +EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
   5.256 +#endif
   5.257 +#endif /* EGL_KHR_lock_surface */
   5.258 +
   5.259 +#ifndef EGL_KHR_lock_surface2
   5.260 +#define EGL_KHR_lock_surface2 1
   5.261 +#define EGL_BITMAP_PIXEL_SIZE_KHR         0x3110
   5.262 +#endif /* EGL_KHR_lock_surface2 */
   5.263 +
   5.264 +#ifndef EGL_KHR_lock_surface3
   5.265 +#define EGL_KHR_lock_surface3 1
   5.266 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
   5.267 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.268 +EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
   5.269 +#endif
   5.270 +#endif /* EGL_KHR_lock_surface3 */
   5.271 +
   5.272 +#ifndef EGL_KHR_mutable_render_buffer
   5.273 +#define EGL_KHR_mutable_render_buffer 1
   5.274 +#define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000
   5.275 +#endif /* EGL_KHR_mutable_render_buffer */
   5.276 +
   5.277 +#ifndef EGL_KHR_no_config_context
   5.278 +#define EGL_KHR_no_config_context 1
   5.279 +#define EGL_NO_CONFIG_KHR                 EGL_CAST(EGLConfig,0)
   5.280 +#endif /* EGL_KHR_no_config_context */
   5.281 +
   5.282 +#ifndef EGL_KHR_partial_update
   5.283 +#define EGL_KHR_partial_update 1
   5.284 +#define EGL_BUFFER_AGE_KHR                0x313D
   5.285 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
   5.286 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.287 +EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
   5.288 +#endif
   5.289 +#endif /* EGL_KHR_partial_update */
   5.290 +
   5.291 +#ifndef EGL_KHR_platform_android
   5.292 +#define EGL_KHR_platform_android 1
   5.293 +#define EGL_PLATFORM_ANDROID_KHR          0x3141
   5.294 +#endif /* EGL_KHR_platform_android */
   5.295 +
   5.296 +#ifndef EGL_KHR_platform_gbm
   5.297 +#define EGL_KHR_platform_gbm 1
   5.298 +#define EGL_PLATFORM_GBM_KHR              0x31D7
   5.299 +#endif /* EGL_KHR_platform_gbm */
   5.300 +
   5.301 +#ifndef EGL_KHR_platform_wayland
   5.302 +#define EGL_KHR_platform_wayland 1
   5.303 +#define EGL_PLATFORM_WAYLAND_KHR          0x31D8
   5.304 +#endif /* EGL_KHR_platform_wayland */
   5.305 +
   5.306 +#ifndef EGL_KHR_platform_x11
   5.307 +#define EGL_KHR_platform_x11 1
   5.308 +#define EGL_PLATFORM_X11_KHR              0x31D5
   5.309 +#define EGL_PLATFORM_X11_SCREEN_KHR       0x31D6
   5.310 +#endif /* EGL_KHR_platform_x11 */
   5.311 +
   5.312 +#ifndef EGL_KHR_reusable_sync
   5.313 +#define EGL_KHR_reusable_sync 1
   5.314 +#ifdef KHRONOS_SUPPORT_INT64
   5.315 +#define EGL_SYNC_STATUS_KHR               0x30F1
   5.316 +#define EGL_SIGNALED_KHR                  0x30F2
   5.317 +#define EGL_UNSIGNALED_KHR                0x30F3
   5.318 +#define EGL_TIMEOUT_EXPIRED_KHR           0x30F5
   5.319 +#define EGL_CONDITION_SATISFIED_KHR       0x30F6
   5.320 +#define EGL_SYNC_TYPE_KHR                 0x30F7
   5.321 +#define EGL_SYNC_REUSABLE_KHR             0x30FA
   5.322 +#define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR   0x0001
   5.323 +#define EGL_FOREVER_KHR                   0xFFFFFFFFFFFFFFFFull
   5.324 +#define EGL_NO_SYNC_KHR                   EGL_CAST(EGLSyncKHR,0)
   5.325 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
   5.326 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.327 +EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
   5.328 +#endif
   5.329 +#endif /* KHRONOS_SUPPORT_INT64 */
   5.330 +#endif /* EGL_KHR_reusable_sync */
   5.331 +
   5.332 +#ifndef EGL_KHR_stream
   5.333 +#define EGL_KHR_stream 1
   5.334 +typedef void *EGLStreamKHR;
   5.335 +typedef khronos_uint64_t EGLuint64KHR;
   5.336 +#ifdef KHRONOS_SUPPORT_INT64
   5.337 +#define EGL_NO_STREAM_KHR                 EGL_CAST(EGLStreamKHR,0)
   5.338 +#define EGL_CONSUMER_LATENCY_USEC_KHR     0x3210
   5.339 +#define EGL_PRODUCER_FRAME_KHR            0x3212
   5.340 +#define EGL_CONSUMER_FRAME_KHR            0x3213
   5.341 +#define EGL_STREAM_STATE_KHR              0x3214
   5.342 +#define EGL_STREAM_STATE_CREATED_KHR      0x3215
   5.343 +#define EGL_STREAM_STATE_CONNECTING_KHR   0x3216
   5.344 +#define EGL_STREAM_STATE_EMPTY_KHR        0x3217
   5.345 +#define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
   5.346 +#define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
   5.347 +#define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
   5.348 +#define EGL_BAD_STREAM_KHR                0x321B
   5.349 +#define EGL_BAD_STATE_KHR                 0x321C
   5.350 +typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
   5.351 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
   5.352 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
   5.353 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
   5.354 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
   5.355 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.356 +EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
   5.357 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
   5.358 +EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
   5.359 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
   5.360 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
   5.361 +#endif
   5.362 +#endif /* KHRONOS_SUPPORT_INT64 */
   5.363 +#endif /* EGL_KHR_stream */
   5.364 +
   5.365 +#ifndef EGL_KHR_stream_attrib
   5.366 +#define EGL_KHR_stream_attrib 1
   5.367 +#ifdef KHRONOS_SUPPORT_INT64
   5.368 +typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list);
   5.369 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
   5.370 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
   5.371 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
   5.372 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
   5.373 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.374 +EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamAttribKHR (EGLDisplay dpy, const EGLAttrib *attrib_list);
   5.375 +EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
   5.376 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
   5.377 +EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
   5.378 +EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
   5.379 +#endif
   5.380 +#endif /* KHRONOS_SUPPORT_INT64 */
   5.381 +#endif /* EGL_KHR_stream_attrib */
   5.382 +
   5.383 +#ifndef EGL_KHR_stream_consumer_gltexture
   5.384 +#define EGL_KHR_stream_consumer_gltexture 1
   5.385 +#ifdef EGL_KHR_stream
   5.386 +#define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
   5.387 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
   5.388 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
   5.389 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
   5.390 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.391 +EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
   5.392 +EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
   5.393 +EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
   5.394 +#endif
   5.395 +#endif /* EGL_KHR_stream */
   5.396 +#endif /* EGL_KHR_stream_consumer_gltexture */
   5.397 +
   5.398 +#ifndef EGL_KHR_stream_cross_process_fd
   5.399 +#define EGL_KHR_stream_cross_process_fd 1
   5.400 +typedef int EGLNativeFileDescriptorKHR;
   5.401 +#ifdef EGL_KHR_stream
   5.402 +#define EGL_NO_FILE_DESCRIPTOR_KHR        EGL_CAST(EGLNativeFileDescriptorKHR,-1)
   5.403 +typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
   5.404 +typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
   5.405 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.406 +EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
   5.407 +EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
   5.408 +#endif
   5.409 +#endif /* EGL_KHR_stream */
   5.410 +#endif /* EGL_KHR_stream_cross_process_fd */
   5.411 +
   5.412 +#ifndef EGL_KHR_stream_fifo
   5.413 +#define EGL_KHR_stream_fifo 1
   5.414 +#ifdef EGL_KHR_stream
   5.415 +#define EGL_STREAM_FIFO_LENGTH_KHR        0x31FC
   5.416 +#define EGL_STREAM_TIME_NOW_KHR           0x31FD
   5.417 +#define EGL_STREAM_TIME_CONSUMER_KHR      0x31FE
   5.418 +#define EGL_STREAM_TIME_PRODUCER_KHR      0x31FF
   5.419 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
   5.420 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.421 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
   5.422 +#endif
   5.423 +#endif /* EGL_KHR_stream */
   5.424 +#endif /* EGL_KHR_stream_fifo */
   5.425 +
   5.426 +#ifndef EGL_KHR_stream_producer_aldatalocator
   5.427 +#define EGL_KHR_stream_producer_aldatalocator 1
   5.428 +#ifdef EGL_KHR_stream
   5.429 +#endif /* EGL_KHR_stream */
   5.430 +#endif /* EGL_KHR_stream_producer_aldatalocator */
   5.431 +
   5.432 +#ifndef EGL_KHR_stream_producer_eglsurface
   5.433 +#define EGL_KHR_stream_producer_eglsurface 1
   5.434 +#ifdef EGL_KHR_stream
   5.435 +#define EGL_STREAM_BIT_KHR                0x0800
   5.436 +typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
   5.437 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.438 +EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
   5.439 +#endif
   5.440 +#endif /* EGL_KHR_stream */
   5.441 +#endif /* EGL_KHR_stream_producer_eglsurface */
   5.442 +
   5.443 +#ifndef EGL_KHR_surfaceless_context
   5.444 +#define EGL_KHR_surfaceless_context 1
   5.445 +#endif /* EGL_KHR_surfaceless_context */
   5.446 +
   5.447 +#ifndef EGL_KHR_swap_buffers_with_damage
   5.448 +#define EGL_KHR_swap_buffers_with_damage 1
   5.449 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
   5.450 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.451 +EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
   5.452 +#endif
   5.453 +#endif /* EGL_KHR_swap_buffers_with_damage */
   5.454 +
   5.455 +#ifndef EGL_KHR_vg_parent_image
   5.456 +#define EGL_KHR_vg_parent_image 1
   5.457 +#define EGL_VG_PARENT_IMAGE_KHR           0x30BA
   5.458 +#endif /* EGL_KHR_vg_parent_image */
   5.459 +
   5.460 +#ifndef EGL_KHR_wait_sync
   5.461 +#define EGL_KHR_wait_sync 1
   5.462 +typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
   5.463 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.464 +EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
   5.465 +#endif
   5.466 +#endif /* EGL_KHR_wait_sync */
   5.467 +
   5.468 +#ifndef EGL_ANDROID_blob_cache
   5.469 +#define EGL_ANDROID_blob_cache 1
   5.470 +typedef khronos_ssize_t EGLsizeiANDROID;
   5.471 +typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
   5.472 +typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
   5.473 +typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
   5.474 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.475 +EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
   5.476 +#endif
   5.477 +#endif /* EGL_ANDROID_blob_cache */
   5.478 +
   5.479 +#ifndef EGL_ANDROID_create_native_client_buffer
   5.480 +#define EGL_ANDROID_create_native_client_buffer 1
   5.481 +#define EGL_NATIVE_BUFFER_USAGE_ANDROID   0x3143
   5.482 +#define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001
   5.483 +#define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002
   5.484 +#define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004
   5.485 +typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint *attrib_list);
   5.486 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.487 +EGLAPI EGLClientBuffer EGLAPIENTRY eglCreateNativeClientBufferANDROID (const EGLint *attrib_list);
   5.488 +#endif
   5.489 +#endif /* EGL_ANDROID_create_native_client_buffer */
   5.490 +
   5.491 +#ifndef EGL_ANDROID_framebuffer_target
   5.492 +#define EGL_ANDROID_framebuffer_target 1
   5.493 +#define EGL_FRAMEBUFFER_TARGET_ANDROID    0x3147
   5.494 +#endif /* EGL_ANDROID_framebuffer_target */
   5.495 +
   5.496 +#ifndef EGL_ANDROID_front_buffer_auto_refresh
   5.497 +#define EGL_ANDROID_front_buffer_auto_refresh 1
   5.498 +#define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C
   5.499 +#endif /* EGL_ANDROID_front_buffer_auto_refresh */
   5.500 +
   5.501 +#ifndef EGL_ANDROID_image_native_buffer
   5.502 +#define EGL_ANDROID_image_native_buffer 1
   5.503 +#define EGL_NATIVE_BUFFER_ANDROID         0x3140
   5.504 +#endif /* EGL_ANDROID_image_native_buffer */
   5.505 +
   5.506 +#ifndef EGL_ANDROID_native_fence_sync
   5.507 +#define EGL_ANDROID_native_fence_sync 1
   5.508 +#define EGL_SYNC_NATIVE_FENCE_ANDROID     0x3144
   5.509 +#define EGL_SYNC_NATIVE_FENCE_FD_ANDROID  0x3145
   5.510 +#define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
   5.511 +#define EGL_NO_NATIVE_FENCE_FD_ANDROID    -1
   5.512 +typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
   5.513 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.514 +EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
   5.515 +#endif
   5.516 +#endif /* EGL_ANDROID_native_fence_sync */
   5.517 +
   5.518 +#ifndef EGL_ANDROID_presentation_time
   5.519 +#define EGL_ANDROID_presentation_time 1
   5.520 +typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
   5.521 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
   5.522 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.523 +EGLAPI EGLBoolean EGLAPIENTRY eglPresentationTimeANDROID (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
   5.524 +#endif
   5.525 +#endif /* EGL_ANDROID_presentation_time */
   5.526 +
   5.527 +#ifndef EGL_ANDROID_recordable
   5.528 +#define EGL_ANDROID_recordable 1
   5.529 +#define EGL_RECORDABLE_ANDROID            0x3142
   5.530 +#endif /* EGL_ANDROID_recordable */
   5.531 +
   5.532 +#ifndef EGL_ANGLE_d3d_share_handle_client_buffer
   5.533 +#define EGL_ANGLE_d3d_share_handle_client_buffer 1
   5.534 +#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
   5.535 +#endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
   5.536 +
   5.537 +#ifndef EGL_ANGLE_device_d3d
   5.538 +#define EGL_ANGLE_device_d3d 1
   5.539 +#define EGL_D3D9_DEVICE_ANGLE             0x33A0
   5.540 +#define EGL_D3D11_DEVICE_ANGLE            0x33A1
   5.541 +#endif /* EGL_ANGLE_device_d3d */
   5.542 +
   5.543 +#ifndef EGL_ANGLE_query_surface_pointer
   5.544 +#define EGL_ANGLE_query_surface_pointer 1
   5.545 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
   5.546 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.547 +EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
   5.548 +#endif
   5.549 +#endif /* EGL_ANGLE_query_surface_pointer */
   5.550 +
   5.551 +#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
   5.552 +#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
   5.553 +#endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
   5.554 +
   5.555 +#ifndef EGL_ANGLE_window_fixed_size
   5.556 +#define EGL_ANGLE_window_fixed_size 1
   5.557 +#define EGL_FIXED_SIZE_ANGLE              0x3201
   5.558 +#endif /* EGL_ANGLE_window_fixed_size */
   5.559 +
   5.560 +#ifndef EGL_ARM_implicit_external_sync
   5.561 +#define EGL_ARM_implicit_external_sync 1
   5.562 +#define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
   5.563 +#endif /* EGL_ARM_implicit_external_sync */
   5.564 +
   5.565 +#ifndef EGL_ARM_pixmap_multisample_discard
   5.566 +#define EGL_ARM_pixmap_multisample_discard 1
   5.567 +#define EGL_DISCARD_SAMPLES_ARM           0x3286
   5.568 +#endif /* EGL_ARM_pixmap_multisample_discard */
   5.569 +
   5.570 +#ifndef EGL_EXT_bind_to_front
   5.571 +#define EGL_EXT_bind_to_front 1
   5.572 +#define EGL_FRONT_BUFFER_EXT              0x3464
   5.573 +#endif /* EGL_EXT_bind_to_front */
   5.574 +
   5.575 +#ifndef EGL_EXT_buffer_age
   5.576 +#define EGL_EXT_buffer_age 1
   5.577 +#define EGL_BUFFER_AGE_EXT                0x313D
   5.578 +#endif /* EGL_EXT_buffer_age */
   5.579 +
   5.580 +#ifndef EGL_EXT_client_extensions
   5.581 +#define EGL_EXT_client_extensions 1
   5.582 +#endif /* EGL_EXT_client_extensions */
   5.583 +
   5.584 +#ifndef EGL_EXT_compositor
   5.585 +#define EGL_EXT_compositor 1
   5.586 +#define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460
   5.587 +#define EGL_EXTERNAL_REF_ID_EXT           0x3461
   5.588 +#define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462
   5.589 +#define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463
   5.590 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC) (const EGLint *external_ref_ids, EGLint num_entries);
   5.591 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC) (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
   5.592 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC) (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
   5.593 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC) (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
   5.594 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC) (EGLint external_win_id);
   5.595 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETSIZEEXTPROC) (EGLint external_win_id, EGLint width, EGLint height);
   5.596 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_id, EGLint policy);
   5.597 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.598 +EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextListEXT (const EGLint *external_ref_ids, EGLint num_entries);
   5.599 +EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextAttributesEXT (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
   5.600 +EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowListEXT (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
   5.601 +EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowAttributesEXT (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
   5.602 +EGLAPI EGLBoolean EGLAPIENTRY eglCompositorBindTexWindowEXT (EGLint external_win_id);
   5.603 +EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetSizeEXT (EGLint external_win_id, EGLint width, EGLint height);
   5.604 +EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSwapPolicyEXT (EGLint external_win_id, EGLint policy);
   5.605 +#endif
   5.606 +#endif /* EGL_EXT_compositor */
   5.607 +
   5.608 +#ifndef EGL_EXT_create_context_robustness
   5.609 +#define EGL_EXT_create_context_robustness 1
   5.610 +#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
   5.611 +#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
   5.612 +#define EGL_NO_RESET_NOTIFICATION_EXT     0x31BE
   5.613 +#define EGL_LOSE_CONTEXT_ON_RESET_EXT     0x31BF
   5.614 +#endif /* EGL_EXT_create_context_robustness */
   5.615 +
   5.616 +#ifndef EGL_EXT_device_base
   5.617 +#define EGL_EXT_device_base 1
   5.618 +typedef void *EGLDeviceEXT;
   5.619 +#define EGL_NO_DEVICE_EXT                 EGL_CAST(EGLDeviceEXT,0)
   5.620 +#define EGL_BAD_DEVICE_EXT                0x322B
   5.621 +#define EGL_DEVICE_EXT                    0x322C
   5.622 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
   5.623 +typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
   5.624 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
   5.625 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
   5.626 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.627 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
   5.628 +EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
   5.629 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
   5.630 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
   5.631 +#endif
   5.632 +#endif /* EGL_EXT_device_base */
   5.633 +
   5.634 +#ifndef EGL_EXT_device_drm
   5.635 +#define EGL_EXT_device_drm 1
   5.636 +#define EGL_DRM_DEVICE_FILE_EXT           0x3233
   5.637 +#endif /* EGL_EXT_device_drm */
   5.638 +
   5.639 +#ifndef EGL_EXT_device_enumeration
   5.640 +#define EGL_EXT_device_enumeration 1
   5.641 +#endif /* EGL_EXT_device_enumeration */
   5.642 +
   5.643 +#ifndef EGL_EXT_device_openwf
   5.644 +#define EGL_EXT_device_openwf 1
   5.645 +#define EGL_OPENWF_DEVICE_ID_EXT          0x3237
   5.646 +#endif /* EGL_EXT_device_openwf */
   5.647 +
   5.648 +#ifndef EGL_EXT_device_query
   5.649 +#define EGL_EXT_device_query 1
   5.650 +#endif /* EGL_EXT_device_query */
   5.651 +
   5.652 +#ifndef EGL_EXT_gl_colorspace_bt2020_linear
   5.653 +#define EGL_EXT_gl_colorspace_bt2020_linear 1
   5.654 +#define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
   5.655 +#endif /* EGL_EXT_gl_colorspace_bt2020_linear */
   5.656 +
   5.657 +#ifndef EGL_EXT_gl_colorspace_bt2020_pq
   5.658 +#define EGL_EXT_gl_colorspace_bt2020_pq 1
   5.659 +#define EGL_GL_COLORSPACE_BT2020_PQ_EXT   0x3340
   5.660 +#endif /* EGL_EXT_gl_colorspace_bt2020_pq */
   5.661 +
   5.662 +#ifndef EGL_EXT_gl_colorspace_display_p3
   5.663 +#define EGL_EXT_gl_colorspace_display_p3 1
   5.664 +#define EGL_GL_COLORSPACE_DISPLAY_P3_EXT  0x3363
   5.665 +#endif /* EGL_EXT_gl_colorspace_display_p3 */
   5.666 +
   5.667 +#ifndef EGL_EXT_gl_colorspace_display_p3_linear
   5.668 +#define EGL_EXT_gl_colorspace_display_p3_linear 1
   5.669 +#define EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT 0x3362
   5.670 +#endif /* EGL_EXT_gl_colorspace_display_p3_linear */
   5.671 +
   5.672 +#ifndef EGL_EXT_gl_colorspace_scrgb
   5.673 +#define EGL_EXT_gl_colorspace_scrgb 1
   5.674 +#define EGL_GL_COLORSPACE_SCRGB_EXT       0x3351
   5.675 +#endif /* EGL_EXT_gl_colorspace_scrgb */
   5.676 +
   5.677 +#ifndef EGL_EXT_gl_colorspace_scrgb_linear
   5.678 +#define EGL_EXT_gl_colorspace_scrgb_linear 1
   5.679 +#define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350
   5.680 +#endif /* EGL_EXT_gl_colorspace_scrgb_linear */
   5.681 +
   5.682 +#ifndef EGL_EXT_image_dma_buf_import
   5.683 +#define EGL_EXT_image_dma_buf_import 1
   5.684 +#define EGL_LINUX_DMA_BUF_EXT             0x3270
   5.685 +#define EGL_LINUX_DRM_FOURCC_EXT          0x3271
   5.686 +#define EGL_DMA_BUF_PLANE0_FD_EXT         0x3272
   5.687 +#define EGL_DMA_BUF_PLANE0_OFFSET_EXT     0x3273
   5.688 +#define EGL_DMA_BUF_PLANE0_PITCH_EXT      0x3274
   5.689 +#define EGL_DMA_BUF_PLANE1_FD_EXT         0x3275
   5.690 +#define EGL_DMA_BUF_PLANE1_OFFSET_EXT     0x3276
   5.691 +#define EGL_DMA_BUF_PLANE1_PITCH_EXT      0x3277
   5.692 +#define EGL_DMA_BUF_PLANE2_FD_EXT         0x3278
   5.693 +#define EGL_DMA_BUF_PLANE2_OFFSET_EXT     0x3279
   5.694 +#define EGL_DMA_BUF_PLANE2_PITCH_EXT      0x327A
   5.695 +#define EGL_YUV_COLOR_SPACE_HINT_EXT      0x327B
   5.696 +#define EGL_SAMPLE_RANGE_HINT_EXT         0x327C
   5.697 +#define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
   5.698 +#define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
   5.699 +#define EGL_ITU_REC601_EXT                0x327F
   5.700 +#define EGL_ITU_REC709_EXT                0x3280
   5.701 +#define EGL_ITU_REC2020_EXT               0x3281
   5.702 +#define EGL_YUV_FULL_RANGE_EXT            0x3282
   5.703 +#define EGL_YUV_NARROW_RANGE_EXT          0x3283
   5.704 +#define EGL_YUV_CHROMA_SITING_0_EXT       0x3284
   5.705 +#define EGL_YUV_CHROMA_SITING_0_5_EXT     0x3285
   5.706 +#endif /* EGL_EXT_image_dma_buf_import */
   5.707 +
   5.708 +#ifndef EGL_EXT_image_dma_buf_import_modifiers
   5.709 +#define EGL_EXT_image_dma_buf_import_modifiers 1
   5.710 +#define EGL_DMA_BUF_PLANE3_FD_EXT         0x3440
   5.711 +#define EGL_DMA_BUF_PLANE3_OFFSET_EXT     0x3441
   5.712 +#define EGL_DMA_BUF_PLANE3_PITCH_EXT      0x3442
   5.713 +#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
   5.714 +#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
   5.715 +#define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
   5.716 +#define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
   5.717 +#define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
   5.718 +#define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
   5.719 +#define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
   5.720 +#define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
   5.721 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
   5.722 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
   5.723 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.724 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
   5.725 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
   5.726 +#endif
   5.727 +#endif /* EGL_EXT_image_dma_buf_import_modifiers */
   5.728 +
   5.729 +#ifndef EGL_EXT_image_implicit_sync_control
   5.730 +#define EGL_EXT_image_implicit_sync_control 1
   5.731 +#define EGL_IMPORT_SYNC_TYPE_EXT          0x3470
   5.732 +#define EGL_IMPORT_IMPLICIT_SYNC_EXT      0x3471
   5.733 +#define EGL_IMPORT_EXPLICIT_SYNC_EXT      0x3472
   5.734 +#endif /* EGL_EXT_image_implicit_sync_control */
   5.735 +
   5.736 +#ifndef EGL_EXT_multiview_window
   5.737 +#define EGL_EXT_multiview_window 1
   5.738 +#define EGL_MULTIVIEW_VIEW_COUNT_EXT      0x3134
   5.739 +#endif /* EGL_EXT_multiview_window */
   5.740 +
   5.741 +#ifndef EGL_EXT_output_base
   5.742 +#define EGL_EXT_output_base 1
   5.743 +typedef void *EGLOutputLayerEXT;
   5.744 +typedef void *EGLOutputPortEXT;
   5.745 +#define EGL_NO_OUTPUT_LAYER_EXT           EGL_CAST(EGLOutputLayerEXT,0)
   5.746 +#define EGL_NO_OUTPUT_PORT_EXT            EGL_CAST(EGLOutputPortEXT,0)
   5.747 +#define EGL_BAD_OUTPUT_LAYER_EXT          0x322D
   5.748 +#define EGL_BAD_OUTPUT_PORT_EXT           0x322E
   5.749 +#define EGL_SWAP_INTERVAL_EXT             0x322F
   5.750 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
   5.751 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
   5.752 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
   5.753 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
   5.754 +typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
   5.755 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
   5.756 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
   5.757 +typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
   5.758 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.759 +EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
   5.760 +EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
   5.761 +EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
   5.762 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
   5.763 +EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
   5.764 +EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
   5.765 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
   5.766 +EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
   5.767 +#endif
   5.768 +#endif /* EGL_EXT_output_base */
   5.769 +
   5.770 +#ifndef EGL_EXT_output_drm
   5.771 +#define EGL_EXT_output_drm 1
   5.772 +#define EGL_DRM_CRTC_EXT                  0x3234
   5.773 +#define EGL_DRM_PLANE_EXT                 0x3235
   5.774 +#define EGL_DRM_CONNECTOR_EXT             0x3236
   5.775 +#endif /* EGL_EXT_output_drm */
   5.776 +
   5.777 +#ifndef EGL_EXT_output_openwf
   5.778 +#define EGL_EXT_output_openwf 1
   5.779 +#define EGL_OPENWF_PIPELINE_ID_EXT        0x3238
   5.780 +#define EGL_OPENWF_PORT_ID_EXT            0x3239
   5.781 +#endif /* EGL_EXT_output_openwf */
   5.782 +
   5.783 +#ifndef EGL_EXT_pixel_format_float
   5.784 +#define EGL_EXT_pixel_format_float 1
   5.785 +#define EGL_COLOR_COMPONENT_TYPE_EXT      0x3339
   5.786 +#define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A
   5.787 +#define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B
   5.788 +#endif /* EGL_EXT_pixel_format_float */
   5.789 +
   5.790 +#ifndef EGL_EXT_platform_base
   5.791 +#define EGL_EXT_platform_base 1
   5.792 +typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
   5.793 +typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
   5.794 +typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
   5.795 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.796 +EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
   5.797 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
   5.798 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
   5.799 +#endif
   5.800 +#endif /* EGL_EXT_platform_base */
   5.801 +
   5.802 +#ifndef EGL_EXT_platform_device
   5.803 +#define EGL_EXT_platform_device 1
   5.804 +#define EGL_PLATFORM_DEVICE_EXT           0x313F
   5.805 +#endif /* EGL_EXT_platform_device */
   5.806 +
   5.807 +#ifndef EGL_EXT_platform_wayland
   5.808 +#define EGL_EXT_platform_wayland 1
   5.809 +#define EGL_PLATFORM_WAYLAND_EXT          0x31D8
   5.810 +#endif /* EGL_EXT_platform_wayland */
   5.811 +
   5.812 +#ifndef EGL_EXT_platform_x11
   5.813 +#define EGL_EXT_platform_x11 1
   5.814 +#define EGL_PLATFORM_X11_EXT              0x31D5
   5.815 +#define EGL_PLATFORM_X11_SCREEN_EXT       0x31D6
   5.816 +#endif /* EGL_EXT_platform_x11 */
   5.817 +
   5.818 +#ifndef EGL_EXT_protected_content
   5.819 +#define EGL_EXT_protected_content 1
   5.820 +#define EGL_PROTECTED_CONTENT_EXT         0x32C0
   5.821 +#endif /* EGL_EXT_protected_content */
   5.822 +
   5.823 +#ifndef EGL_EXT_protected_surface
   5.824 +#define EGL_EXT_protected_surface 1
   5.825 +#endif /* EGL_EXT_protected_surface */
   5.826 +
   5.827 +#ifndef EGL_EXT_stream_consumer_egloutput
   5.828 +#define EGL_EXT_stream_consumer_egloutput 1
   5.829 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
   5.830 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.831 +EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
   5.832 +#endif
   5.833 +#endif /* EGL_EXT_stream_consumer_egloutput */
   5.834 +
   5.835 +#ifndef EGL_EXT_surface_CTA861_3_metadata
   5.836 +#define EGL_EXT_surface_CTA861_3_metadata 1
   5.837 +#define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360
   5.838 +#define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361
   5.839 +#endif /* EGL_EXT_surface_CTA861_3_metadata */
   5.840 +
   5.841 +#ifndef EGL_EXT_surface_SMPTE2086_metadata
   5.842 +#define EGL_EXT_surface_SMPTE2086_metadata 1
   5.843 +#define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341
   5.844 +#define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342
   5.845 +#define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343
   5.846 +#define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344
   5.847 +#define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345
   5.848 +#define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346
   5.849 +#define EGL_SMPTE2086_WHITE_POINT_X_EXT   0x3347
   5.850 +#define EGL_SMPTE2086_WHITE_POINT_Y_EXT   0x3348
   5.851 +#define EGL_SMPTE2086_MAX_LUMINANCE_EXT   0x3349
   5.852 +#define EGL_SMPTE2086_MIN_LUMINANCE_EXT   0x334A
   5.853 +#define EGL_METADATA_SCALING_EXT          50000
   5.854 +#endif /* EGL_EXT_surface_SMPTE2086_metadata */
   5.855 +
   5.856 +#ifndef EGL_EXT_swap_buffers_with_damage
   5.857 +#define EGL_EXT_swap_buffers_with_damage 1
   5.858 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
   5.859 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.860 +EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
   5.861 +#endif
   5.862 +#endif /* EGL_EXT_swap_buffers_with_damage */
   5.863 +
   5.864 +#ifndef EGL_EXT_yuv_surface
   5.865 +#define EGL_EXT_yuv_surface 1
   5.866 +#define EGL_YUV_ORDER_EXT                 0x3301
   5.867 +#define EGL_YUV_NUMBER_OF_PLANES_EXT      0x3311
   5.868 +#define EGL_YUV_SUBSAMPLE_EXT             0x3312
   5.869 +#define EGL_YUV_DEPTH_RANGE_EXT           0x3317
   5.870 +#define EGL_YUV_CSC_STANDARD_EXT          0x330A
   5.871 +#define EGL_YUV_PLANE_BPP_EXT             0x331A
   5.872 +#define EGL_YUV_BUFFER_EXT                0x3300
   5.873 +#define EGL_YUV_ORDER_YUV_EXT             0x3302
   5.874 +#define EGL_YUV_ORDER_YVU_EXT             0x3303
   5.875 +#define EGL_YUV_ORDER_YUYV_EXT            0x3304
   5.876 +#define EGL_YUV_ORDER_UYVY_EXT            0x3305
   5.877 +#define EGL_YUV_ORDER_YVYU_EXT            0x3306
   5.878 +#define EGL_YUV_ORDER_VYUY_EXT            0x3307
   5.879 +#define EGL_YUV_ORDER_AYUV_EXT            0x3308
   5.880 +#define EGL_YUV_SUBSAMPLE_4_2_0_EXT       0x3313
   5.881 +#define EGL_YUV_SUBSAMPLE_4_2_2_EXT       0x3314
   5.882 +#define EGL_YUV_SUBSAMPLE_4_4_4_EXT       0x3315
   5.883 +#define EGL_YUV_DEPTH_RANGE_LIMITED_EXT   0x3318
   5.884 +#define EGL_YUV_DEPTH_RANGE_FULL_EXT      0x3319
   5.885 +#define EGL_YUV_CSC_STANDARD_601_EXT      0x330B
   5.886 +#define EGL_YUV_CSC_STANDARD_709_EXT      0x330C
   5.887 +#define EGL_YUV_CSC_STANDARD_2020_EXT     0x330D
   5.888 +#define EGL_YUV_PLANE_BPP_0_EXT           0x331B
   5.889 +#define EGL_YUV_PLANE_BPP_8_EXT           0x331C
   5.890 +#define EGL_YUV_PLANE_BPP_10_EXT          0x331D
   5.891 +#endif /* EGL_EXT_yuv_surface */
   5.892 +
   5.893 +#ifndef EGL_HI_clientpixmap
   5.894 +#define EGL_HI_clientpixmap 1
   5.895 +struct EGLClientPixmapHI {
   5.896 +    void  *pData;
   5.897 +    EGLint iWidth;
   5.898 +    EGLint iHeight;
   5.899 +    EGLint iStride;
   5.900 +};
   5.901 +#define EGL_CLIENT_PIXMAP_POINTER_HI      0x8F74
   5.902 +typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
   5.903 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.904 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
   5.905 +#endif
   5.906 +#endif /* EGL_HI_clientpixmap */
   5.907 +
   5.908 +#ifndef EGL_HI_colorformats
   5.909 +#define EGL_HI_colorformats 1
   5.910 +#define EGL_COLOR_FORMAT_HI               0x8F70
   5.911 +#define EGL_COLOR_RGB_HI                  0x8F71
   5.912 +#define EGL_COLOR_RGBA_HI                 0x8F72
   5.913 +#define EGL_COLOR_ARGB_HI                 0x8F73
   5.914 +#endif /* EGL_HI_colorformats */
   5.915 +
   5.916 +#ifndef EGL_IMG_context_priority
   5.917 +#define EGL_IMG_context_priority 1
   5.918 +#define EGL_CONTEXT_PRIORITY_LEVEL_IMG    0x3100
   5.919 +#define EGL_CONTEXT_PRIORITY_HIGH_IMG     0x3101
   5.920 +#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG   0x3102
   5.921 +#define EGL_CONTEXT_PRIORITY_LOW_IMG      0x3103
   5.922 +#endif /* EGL_IMG_context_priority */
   5.923 +
   5.924 +#ifndef EGL_IMG_image_plane_attribs
   5.925 +#define EGL_IMG_image_plane_attribs 1
   5.926 +#define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
   5.927 +#define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
   5.928 +#endif /* EGL_IMG_image_plane_attribs */
   5.929 +
   5.930 +#ifndef EGL_MESA_drm_image
   5.931 +#define EGL_MESA_drm_image 1
   5.932 +#define EGL_DRM_BUFFER_FORMAT_MESA        0x31D0
   5.933 +#define EGL_DRM_BUFFER_USE_MESA           0x31D1
   5.934 +#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
   5.935 +#define EGL_DRM_BUFFER_MESA               0x31D3
   5.936 +#define EGL_DRM_BUFFER_STRIDE_MESA        0x31D4
   5.937 +#define EGL_DRM_BUFFER_USE_SCANOUT_MESA   0x00000001
   5.938 +#define EGL_DRM_BUFFER_USE_SHARE_MESA     0x00000002
   5.939 +typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
   5.940 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
   5.941 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.942 +EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
   5.943 +EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
   5.944 +#endif
   5.945 +#endif /* EGL_MESA_drm_image */
   5.946 +
   5.947 +#ifndef EGL_MESA_image_dma_buf_export
   5.948 +#define EGL_MESA_image_dma_buf_export 1
   5.949 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
   5.950 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
   5.951 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.952 +EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
   5.953 +EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
   5.954 +#endif
   5.955 +#endif /* EGL_MESA_image_dma_buf_export */
   5.956 +
   5.957 +#ifndef EGL_MESA_platform_gbm
   5.958 +#define EGL_MESA_platform_gbm 1
   5.959 +#define EGL_PLATFORM_GBM_MESA             0x31D7
   5.960 +#endif /* EGL_MESA_platform_gbm */
   5.961 +
   5.962 +#ifndef EGL_MESA_platform_surfaceless
   5.963 +#define EGL_MESA_platform_surfaceless 1
   5.964 +#define EGL_PLATFORM_SURFACELESS_MESA     0x31DD
   5.965 +#endif /* EGL_MESA_platform_surfaceless */
   5.966 +
   5.967 +#ifndef EGL_NOK_swap_region
   5.968 +#define EGL_NOK_swap_region 1
   5.969 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
   5.970 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.971 +EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
   5.972 +#endif
   5.973 +#endif /* EGL_NOK_swap_region */
   5.974 +
   5.975 +#ifndef EGL_NOK_swap_region2
   5.976 +#define EGL_NOK_swap_region2 1
   5.977 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
   5.978 +#ifdef EGL_EGLEXT_PROTOTYPES
   5.979 +EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
   5.980 +#endif
   5.981 +#endif /* EGL_NOK_swap_region2 */
   5.982 +
   5.983 +#ifndef EGL_NOK_texture_from_pixmap
   5.984 +#define EGL_NOK_texture_from_pixmap 1
   5.985 +#define EGL_Y_INVERTED_NOK                0x307F
   5.986 +#endif /* EGL_NOK_texture_from_pixmap */
   5.987 +
   5.988 +#ifndef EGL_NV_3dvision_surface
   5.989 +#define EGL_NV_3dvision_surface 1
   5.990 +#define EGL_AUTO_STEREO_NV                0x3136
   5.991 +#endif /* EGL_NV_3dvision_surface */
   5.992 +
   5.993 +#ifndef EGL_NV_coverage_sample
   5.994 +#define EGL_NV_coverage_sample 1
   5.995 +#define EGL_COVERAGE_BUFFERS_NV           0x30E0
   5.996 +#define EGL_COVERAGE_SAMPLES_NV           0x30E1
   5.997 +#endif /* EGL_NV_coverage_sample */
   5.998 +
   5.999 +#ifndef EGL_NV_coverage_sample_resolve
  5.1000 +#define EGL_NV_coverage_sample_resolve 1
  5.1001 +#define EGL_COVERAGE_SAMPLE_RESOLVE_NV    0x3131
  5.1002 +#define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
  5.1003 +#define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
  5.1004 +#endif /* EGL_NV_coverage_sample_resolve */
  5.1005 +
  5.1006 +#ifndef EGL_NV_cuda_event
  5.1007 +#define EGL_NV_cuda_event 1
  5.1008 +#define EGL_CUDA_EVENT_HANDLE_NV          0x323B
  5.1009 +#define EGL_SYNC_CUDA_EVENT_NV            0x323C
  5.1010 +#define EGL_SYNC_CUDA_EVENT_COMPLETE_NV   0x323D
  5.1011 +#endif /* EGL_NV_cuda_event */
  5.1012 +
  5.1013 +#ifndef EGL_NV_depth_nonlinear
  5.1014 +#define EGL_NV_depth_nonlinear 1
  5.1015 +#define EGL_DEPTH_ENCODING_NV             0x30E2
  5.1016 +#define EGL_DEPTH_ENCODING_NONE_NV        0
  5.1017 +#define EGL_DEPTH_ENCODING_NONLINEAR_NV   0x30E3
  5.1018 +#endif /* EGL_NV_depth_nonlinear */
  5.1019 +
  5.1020 +#ifndef EGL_NV_device_cuda
  5.1021 +#define EGL_NV_device_cuda 1
  5.1022 +#define EGL_CUDA_DEVICE_NV                0x323A
  5.1023 +#endif /* EGL_NV_device_cuda */
  5.1024 +
  5.1025 +#ifndef EGL_NV_native_query
  5.1026 +#define EGL_NV_native_query 1
  5.1027 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  5.1028 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  5.1029 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  5.1030 +#ifdef EGL_EGLEXT_PROTOTYPES
  5.1031 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  5.1032 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  5.1033 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  5.1034 +#endif
  5.1035 +#endif /* EGL_NV_native_query */
  5.1036 +
  5.1037 +#ifndef EGL_NV_post_convert_rounding
  5.1038 +#define EGL_NV_post_convert_rounding 1
  5.1039 +#endif /* EGL_NV_post_convert_rounding */
  5.1040 +
  5.1041 +#ifndef EGL_NV_post_sub_buffer
  5.1042 +#define EGL_NV_post_sub_buffer 1
  5.1043 +#define EGL_POST_SUB_BUFFER_SUPPORTED_NV  0x30BE
  5.1044 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  5.1045 +#ifdef EGL_EGLEXT_PROTOTYPES
  5.1046 +EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  5.1047 +#endif
  5.1048 +#endif /* EGL_NV_post_sub_buffer */
  5.1049 +
  5.1050 +#ifndef EGL_NV_robustness_video_memory_purge
  5.1051 +#define EGL_NV_robustness_video_memory_purge 1
  5.1052 +#define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
  5.1053 +#endif /* EGL_NV_robustness_video_memory_purge */
  5.1054 +
  5.1055 +#ifndef EGL_NV_stream_consumer_gltexture_yuv
  5.1056 +#define EGL_NV_stream_consumer_gltexture_yuv 1
  5.1057 +#define EGL_YUV_PLANE0_TEXTURE_UNIT_NV    0x332C
  5.1058 +#define EGL_YUV_PLANE1_TEXTURE_UNIT_NV    0x332D
  5.1059 +#define EGL_YUV_PLANE2_TEXTURE_UNIT_NV    0x332E
  5.1060 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  5.1061 +#ifdef EGL_EGLEXT_PROTOTYPES
  5.1062 +EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  5.1063 +#endif
  5.1064 +#endif /* EGL_NV_stream_consumer_gltexture_yuv */
  5.1065 +
  5.1066 +#ifndef EGL_NV_stream_cross_display
  5.1067 +#define EGL_NV_stream_cross_display 1
  5.1068 +#define EGL_STREAM_CROSS_DISPLAY_NV       0x334E
  5.1069 +#endif /* EGL_NV_stream_cross_display */
  5.1070 +
  5.1071 +#ifndef EGL_NV_stream_cross_object
  5.1072 +#define EGL_NV_stream_cross_object 1
  5.1073 +#define EGL_STREAM_CROSS_OBJECT_NV        0x334D
  5.1074 +#endif /* EGL_NV_stream_cross_object */
  5.1075 +
  5.1076 +#ifndef EGL_NV_stream_cross_partition
  5.1077 +#define EGL_NV_stream_cross_partition 1
  5.1078 +#define EGL_STREAM_CROSS_PARTITION_NV     0x323F
  5.1079 +#endif /* EGL_NV_stream_cross_partition */
  5.1080 +
  5.1081 +#ifndef EGL_NV_stream_cross_process
  5.1082 +#define EGL_NV_stream_cross_process 1
  5.1083 +#define EGL_STREAM_CROSS_PROCESS_NV       0x3245
  5.1084 +#endif /* EGL_NV_stream_cross_process */
  5.1085 +
  5.1086 +#ifndef EGL_NV_stream_cross_system
  5.1087 +#define EGL_NV_stream_cross_system 1
  5.1088 +#define EGL_STREAM_CROSS_SYSTEM_NV        0x334F
  5.1089 +#endif /* EGL_NV_stream_cross_system */
  5.1090 +
  5.1091 +#ifndef EGL_NV_stream_fifo_next
  5.1092 +#define EGL_NV_stream_fifo_next 1
  5.1093 +#define EGL_PENDING_FRAME_NV              0x3329
  5.1094 +#define EGL_STREAM_TIME_PENDING_NV        0x332A
  5.1095 +#endif /* EGL_NV_stream_fifo_next */
  5.1096 +
  5.1097 +#ifndef EGL_NV_stream_fifo_synchronous
  5.1098 +#define EGL_NV_stream_fifo_synchronous 1
  5.1099 +#define EGL_STREAM_FIFO_SYNCHRONOUS_NV    0x3336
  5.1100 +#endif /* EGL_NV_stream_fifo_synchronous */
  5.1101 +
  5.1102 +#ifndef EGL_NV_stream_frame_limits
  5.1103 +#define EGL_NV_stream_frame_limits 1
  5.1104 +#define EGL_PRODUCER_MAX_FRAME_HINT_NV    0x3337
  5.1105 +#define EGL_CONSUMER_MAX_FRAME_HINT_NV    0x3338
  5.1106 +#endif /* EGL_NV_stream_frame_limits */
  5.1107 +
  5.1108 +#ifndef EGL_NV_stream_metadata
  5.1109 +#define EGL_NV_stream_metadata 1
  5.1110 +#define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
  5.1111 +#define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
  5.1112 +#define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
  5.1113 +#define EGL_PRODUCER_METADATA_NV          0x3253
  5.1114 +#define EGL_CONSUMER_METADATA_NV          0x3254
  5.1115 +#define EGL_PENDING_METADATA_NV           0x3328
  5.1116 +#define EGL_METADATA0_SIZE_NV             0x3255
  5.1117 +#define EGL_METADATA1_SIZE_NV             0x3256
  5.1118 +#define EGL_METADATA2_SIZE_NV             0x3257
  5.1119 +#define EGL_METADATA3_SIZE_NV             0x3258
  5.1120 +#define EGL_METADATA0_TYPE_NV             0x3259
  5.1121 +#define EGL_METADATA1_TYPE_NV             0x325A
  5.1122 +#define EGL_METADATA2_TYPE_NV             0x325B
  5.1123 +#define EGL_METADATA3_TYPE_NV             0x325C
  5.1124 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  5.1125 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  5.1126 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  5.1127 +#ifdef EGL_EGLEXT_PROTOTYPES
  5.1128 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  5.1129 +EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
  5.1130 +EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
  5.1131 +#endif
  5.1132 +#endif /* EGL_NV_stream_metadata */
  5.1133 +
  5.1134 +#ifndef EGL_NV_stream_remote
  5.1135 +#define EGL_NV_stream_remote 1
  5.1136 +#define EGL_STREAM_STATE_INITIALIZING_NV  0x3240
  5.1137 +#define EGL_STREAM_TYPE_NV                0x3241
  5.1138 +#define EGL_STREAM_PROTOCOL_NV            0x3242
  5.1139 +#define EGL_STREAM_ENDPOINT_NV            0x3243
  5.1140 +#define EGL_STREAM_LOCAL_NV               0x3244
  5.1141 +#define EGL_STREAM_PRODUCER_NV            0x3247
  5.1142 +#define EGL_STREAM_CONSUMER_NV            0x3248
  5.1143 +#define EGL_STREAM_PROTOCOL_FD_NV         0x3246
  5.1144 +#endif /* EGL_NV_stream_remote */
  5.1145 +
  5.1146 +#ifndef EGL_NV_stream_reset
  5.1147 +#define EGL_NV_stream_reset 1
  5.1148 +#define EGL_SUPPORT_RESET_NV              0x3334
  5.1149 +#define EGL_SUPPORT_REUSE_NV              0x3335
  5.1150 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  5.1151 +#ifdef EGL_EGLEXT_PROTOTYPES
  5.1152 +EGLAPI EGLBoolean EGLAPIENTRY eglResetStreamNV (EGLDisplay dpy, EGLStreamKHR stream);
  5.1153 +#endif
  5.1154 +#endif /* EGL_NV_stream_reset */
  5.1155 +
  5.1156 +#ifndef EGL_NV_stream_socket
  5.1157 +#define EGL_NV_stream_socket 1
  5.1158 +#define EGL_STREAM_PROTOCOL_SOCKET_NV     0x324B
  5.1159 +#define EGL_SOCKET_HANDLE_NV              0x324C
  5.1160 +#define EGL_SOCKET_TYPE_NV                0x324D
  5.1161 +#endif /* EGL_NV_stream_socket */
  5.1162 +
  5.1163 +#ifndef EGL_NV_stream_socket_inet
  5.1164 +#define EGL_NV_stream_socket_inet 1
  5.1165 +#define EGL_SOCKET_TYPE_INET_NV           0x324F
  5.1166 +#endif /* EGL_NV_stream_socket_inet */
  5.1167 +
  5.1168 +#ifndef EGL_NV_stream_socket_unix
  5.1169 +#define EGL_NV_stream_socket_unix 1
  5.1170 +#define EGL_SOCKET_TYPE_UNIX_NV           0x324E
  5.1171 +#endif /* EGL_NV_stream_socket_unix */
  5.1172 +
  5.1173 +#ifndef EGL_NV_stream_sync
  5.1174 +#define EGL_NV_stream_sync 1
  5.1175 +#define EGL_SYNC_NEW_FRAME_NV             0x321F
  5.1176 +typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  5.1177 +#ifdef EGL_EGLEXT_PROTOTYPES
  5.1178 +EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  5.1179 +#endif
  5.1180 +#endif /* EGL_NV_stream_sync */
  5.1181 +
  5.1182 +#ifndef EGL_NV_sync
  5.1183 +#define EGL_NV_sync 1
  5.1184 +typedef void *EGLSyncNV;
  5.1185 +typedef khronos_utime_nanoseconds_t EGLTimeNV;
  5.1186 +#ifdef KHRONOS_SUPPORT_INT64
  5.1187 +#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
  5.1188 +#define EGL_SYNC_STATUS_NV                0x30E7
  5.1189 +#define EGL_SIGNALED_NV                   0x30E8
  5.1190 +#define EGL_UNSIGNALED_NV                 0x30E9
  5.1191 +#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV    0x0001
  5.1192 +#define EGL_FOREVER_NV                    0xFFFFFFFFFFFFFFFFull
  5.1193 +#define EGL_ALREADY_SIGNALED_NV           0x30EA
  5.1194 +#define EGL_TIMEOUT_EXPIRED_NV            0x30EB
  5.1195 +#define EGL_CONDITION_SATISFIED_NV        0x30EC
  5.1196 +#define EGL_SYNC_TYPE_NV                  0x30ED
  5.1197 +#define EGL_SYNC_CONDITION_NV             0x30EE
  5.1198 +#define EGL_SYNC_FENCE_NV                 0x30EF
  5.1199 +#define EGL_NO_SYNC_NV                    EGL_CAST(EGLSyncNV,0)
  5.1200 +typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  5.1201 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
  5.1202 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
  5.1203 +typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  5.1204 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
  5.1205 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
  5.1206 +#ifdef EGL_EGLEXT_PROTOTYPES
  5.1207 +EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  5.1208 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
  5.1209 +EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
  5.1210 +EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  5.1211 +EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
  5.1212 +EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
  5.1213 +#endif
  5.1214 +#endif /* KHRONOS_SUPPORT_INT64 */
  5.1215 +#endif /* EGL_NV_sync */
  5.1216 +
  5.1217 +#ifndef EGL_NV_system_time
  5.1218 +#define EGL_NV_system_time 1
  5.1219 +typedef khronos_utime_nanoseconds_t EGLuint64NV;
  5.1220 +#ifdef KHRONOS_SUPPORT_INT64
  5.1221 +typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
  5.1222 +typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
  5.1223 +#ifdef EGL_EGLEXT_PROTOTYPES
  5.1224 +EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
  5.1225 +EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
  5.1226 +#endif
  5.1227 +#endif /* KHRONOS_SUPPORT_INT64 */
  5.1228 +#endif /* EGL_NV_system_time */
  5.1229 +
  5.1230 +#ifndef EGL_TIZEN_image_native_buffer
  5.1231 +#define EGL_TIZEN_image_native_buffer 1
  5.1232 +#define EGL_NATIVE_BUFFER_TIZEN           0x32A0
  5.1233 +#endif /* EGL_TIZEN_image_native_buffer */
  5.1234 +
  5.1235 +#ifndef EGL_TIZEN_image_native_surface
  5.1236 +#define EGL_TIZEN_image_native_surface 1
  5.1237 +#define EGL_NATIVE_SURFACE_TIZEN          0x32A1
  5.1238 +#endif /* EGL_TIZEN_image_native_surface */
  5.1239 +
  5.1240 +#ifdef __cplusplus
  5.1241 +}
  5.1242 +#endif
  5.1243 +
  5.1244 +#endif
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/src/video/khronos/EGL/eglplatform.h	Tue Aug 29 22:04:43 2017 -0700
     6.3 @@ -0,0 +1,132 @@
     6.4 +#ifndef __eglplatform_h_
     6.5 +#define __eglplatform_h_
     6.6 +
     6.7 +/*
     6.8 +** Copyright (c) 2007-2016 The Khronos Group Inc.
     6.9 +**
    6.10 +** Permission is hereby granted, free of charge, to any person obtaining a
    6.11 +** copy of this software and/or associated documentation files (the
    6.12 +** "Materials"), to deal in the Materials without restriction, including
    6.13 +** without limitation the rights to use, copy, modify, merge, publish,
    6.14 +** distribute, sublicense, and/or sell copies of the Materials, and to
    6.15 +** permit persons to whom the Materials are furnished to do so, subject to
    6.16 +** the following conditions:
    6.17 +**
    6.18 +** The above copyright notice and this permission notice shall be included
    6.19 +** in all copies or substantial portions of the Materials.
    6.20 +**
    6.21 +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    6.22 +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    6.23 +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    6.24 +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    6.25 +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    6.26 +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    6.27 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    6.28 +*/
    6.29 +
    6.30 +/* Platform-specific types and definitions for egl.h
    6.31 + * $Revision: 30994 $ on $Date: 2015-04-30 13:36:48 -0700 (Thu, 30 Apr 2015) $
    6.32 + *
    6.33 + * Adopters may modify khrplatform.h and this file to suit their platform.
    6.34 + * You are encouraged to submit all modifications to the Khronos group so that
    6.35 + * they can be included in future versions of this file.  Please submit changes
    6.36 + * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
    6.37 + * by filing a bug against product "EGL" component "Registry".
    6.38 + */
    6.39 +
    6.40 +#include <KHR/khrplatform.h>
    6.41 +
    6.42 +/* Macros used in EGL function prototype declarations.
    6.43 + *
    6.44 + * EGL functions should be prototyped as:
    6.45 + *
    6.46 + * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
    6.47 + * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
    6.48 + *
    6.49 + * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
    6.50 + */
    6.51 +
    6.52 +#ifndef EGLAPI
    6.53 +#define EGLAPI KHRONOS_APICALL
    6.54 +#endif
    6.55 +
    6.56 +#ifndef EGLAPIENTRY
    6.57 +#define EGLAPIENTRY  KHRONOS_APIENTRY
    6.58 +#endif
    6.59 +#define EGLAPIENTRYP EGLAPIENTRY*
    6.60 +
    6.61 +/* The types NativeDisplayType, NativeWindowType, and NativePixmapType
    6.62 + * are aliases of window-system-dependent types, such as X Display * or
    6.63 + * Windows Device Context. They must be defined in platform-specific
    6.64 + * code below. The EGL-prefixed versions of Native*Type are the same
    6.65 + * types, renamed in EGL 1.3 so all types in the API start with "EGL".
    6.66 + *
    6.67 + * Khronos STRONGLY RECOMMENDS that you use the default definitions
    6.68 + * provided below, since these changes affect both binary and source
    6.69 + * portability of applications using EGL running on different EGL
    6.70 + * implementations.
    6.71 + */
    6.72 +
    6.73 +#if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
    6.74 +#ifndef WIN32_LEAN_AND_MEAN
    6.75 +#define WIN32_LEAN_AND_MEAN 1
    6.76 +#endif
    6.77 +#include <windows.h>
    6.78 +
    6.79 +typedef HDC     EGLNativeDisplayType;
    6.80 +typedef HBITMAP EGLNativePixmapType;
    6.81 +typedef HWND    EGLNativeWindowType;
    6.82 +
    6.83 +#elif defined(__APPLE__) || defined(__WINSCW__) || defined(__SYMBIAN32__)  /* Symbian */
    6.84 +
    6.85 +typedef int   EGLNativeDisplayType;
    6.86 +typedef void *EGLNativeWindowType;
    6.87 +typedef void *EGLNativePixmapType;
    6.88 +
    6.89 +#elif defined(__ANDROID__) || defined(ANDROID)
    6.90 +
    6.91 +struct ANativeWindow;
    6.92 +struct egl_native_pixmap_t;
    6.93 +
    6.94 +typedef struct ANativeWindow*           EGLNativeWindowType;
    6.95 +typedef struct egl_native_pixmap_t*     EGLNativePixmapType;
    6.96 +typedef void*                           EGLNativeDisplayType;
    6.97 +
    6.98 +#elif defined(__unix__)
    6.99 +
   6.100 +/* X11 (tentative)  */
   6.101 +#include <X11/Xlib.h>
   6.102 +#include <X11/Xutil.h>
   6.103 +
   6.104 +typedef Display *EGLNativeDisplayType;
   6.105 +typedef Pixmap   EGLNativePixmapType;
   6.106 +typedef Window   EGLNativeWindowType;
   6.107 +
   6.108 +#else
   6.109 +#error "Platform not recognized"
   6.110 +#endif
   6.111 +
   6.112 +/* EGL 1.2 types, renamed for consistency in EGL 1.3 */
   6.113 +typedef EGLNativeDisplayType NativeDisplayType;
   6.114 +typedef EGLNativePixmapType  NativePixmapType;
   6.115 +typedef EGLNativeWindowType  NativeWindowType;
   6.116 +
   6.117 +
   6.118 +/* Define EGLint. This must be a signed integral type large enough to contain
   6.119 + * all legal attribute names and values passed into and out of EGL, whether
   6.120 + * their type is boolean, bitmask, enumerant (symbolic constant), integer,
   6.121 + * handle, or other.  While in general a 32-bit integer will suffice, if
   6.122 + * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
   6.123 + * integer type.
   6.124 + */
   6.125 +typedef khronos_int32_t EGLint;
   6.126 +
   6.127 +
   6.128 +/* C++ / C typecast macros for special EGL handle values */
   6.129 +#if defined(__cplusplus)
   6.130 +#define EGL_CAST(type, value) (static_cast<type>(value))
   6.131 +#else
   6.132 +#define EGL_CAST(type, value) ((type) (value))
   6.133 +#endif
   6.134 +
   6.135 +#endif /* __eglplatform_h */
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/src/video/khronos/GLES2/gl2.h	Tue Aug 29 22:04:43 2017 -0700
     7.3 @@ -0,0 +1,675 @@
     7.4 +#ifndef __gl2_h_
     7.5 +#define __gl2_h_ 1
     7.6 +
     7.7 +#ifdef __cplusplus
     7.8 +extern "C" {
     7.9 +#endif
    7.10 +
    7.11 +/*
    7.12 +** Copyright (c) 2013-2017 The Khronos Group Inc.
    7.13 +**
    7.14 +** Permission is hereby granted, free of charge, to any person obtaining a
    7.15 +** copy of this software and/or associated documentation files (the
    7.16 +** "Materials"), to deal in the Materials without restriction, including
    7.17 +** without limitation the rights to use, copy, modify, merge, publish,
    7.18 +** distribute, sublicense, and/or sell copies of the Materials, and to
    7.19 +** permit persons to whom the Materials are furnished to do so, subject to
    7.20 +** the following conditions:
    7.21 +**
    7.22 +** The above copyright notice and this permission notice shall be included
    7.23 +** in all copies or substantial portions of the Materials.
    7.24 +**
    7.25 +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    7.26 +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    7.27 +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    7.28 +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    7.29 +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    7.30 +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    7.31 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    7.32 +*/
    7.33 +/*
    7.34 +** This header is generated from the Khronos OpenGL / OpenGL ES XML
    7.35 +** API Registry. The current version of the Registry, generator scripts
    7.36 +** used to make the header, and the header can be found at
    7.37 +**   https://github.com/KhronosGroup/OpenGL-Registry
    7.38 +*/
    7.39 +
    7.40 +#include <GLES2/gl2platform.h>
    7.41 +
    7.42 +#ifndef GL_APIENTRYP
    7.43 +#define GL_APIENTRYP GL_APIENTRY*
    7.44 +#endif
    7.45 +
    7.46 +#ifndef GL_GLES_PROTOTYPES
    7.47 +#define GL_GLES_PROTOTYPES 1
    7.48 +#endif
    7.49 +
    7.50 +/* Generated on date 20170817 */
    7.51 +
    7.52 +/* Generated C header for:
    7.53 + * API: gles2
    7.54 + * Profile: common
    7.55 + * Versions considered: 2\.[0-9]
    7.56 + * Versions emitted: .*
    7.57 + * Default extensions included: None
    7.58 + * Additional extensions included: _nomatch_^
    7.59 + * Extensions removed: _nomatch_^
    7.60 + */
    7.61 +
    7.62 +#ifndef GL_ES_VERSION_2_0
    7.63 +#define GL_ES_VERSION_2_0 1
    7.64 +#include <KHR/khrplatform.h>
    7.65 +typedef khronos_int8_t GLbyte;
    7.66 +typedef khronos_float_t GLclampf;
    7.67 +typedef khronos_int32_t GLfixed;
    7.68 +typedef short GLshort;
    7.69 +typedef unsigned short GLushort;
    7.70 +typedef void GLvoid;
    7.71 +typedef struct __GLsync *GLsync;
    7.72 +typedef khronos_int64_t GLint64;
    7.73 +typedef khronos_uint64_t GLuint64;
    7.74 +typedef unsigned int GLenum;
    7.75 +typedef unsigned int GLuint;
    7.76 +typedef char GLchar;
    7.77 +typedef khronos_float_t GLfloat;
    7.78 +typedef khronos_ssize_t GLsizeiptr;
    7.79 +typedef khronos_intptr_t GLintptr;
    7.80 +typedef unsigned int GLbitfield;
    7.81 +typedef int GLint;
    7.82 +typedef unsigned char GLboolean;
    7.83 +typedef int GLsizei;
    7.84 +typedef khronos_uint8_t GLubyte;
    7.85 +#define GL_DEPTH_BUFFER_BIT               0x00000100
    7.86 +#define GL_STENCIL_BUFFER_BIT             0x00000400
    7.87 +#define GL_COLOR_BUFFER_BIT               0x00004000
    7.88 +#define GL_FALSE                          0
    7.89 +#define GL_TRUE                           1
    7.90 +#define GL_POINTS                         0x0000
    7.91 +#define GL_LINES                          0x0001
    7.92 +#define GL_LINE_LOOP                      0x0002
    7.93 +#define GL_LINE_STRIP                     0x0003
    7.94 +#define GL_TRIANGLES                      0x0004
    7.95 +#define GL_TRIANGLE_STRIP                 0x0005
    7.96 +#define GL_TRIANGLE_FAN                   0x0006
    7.97 +#define GL_ZERO                           0
    7.98 +#define GL_ONE                            1
    7.99 +#define GL_SRC_COLOR                      0x0300
   7.100 +#define GL_ONE_MINUS_SRC_COLOR            0x0301
   7.101 +#define GL_SRC_ALPHA                      0x0302
   7.102 +#define GL_ONE_MINUS_SRC_ALPHA            0x0303
   7.103 +#define GL_DST_ALPHA                      0x0304
   7.104 +#define GL_ONE_MINUS_DST_ALPHA            0x0305
   7.105 +#define GL_DST_COLOR                      0x0306
   7.106 +#define GL_ONE_MINUS_DST_COLOR            0x0307
   7.107 +#define GL_SRC_ALPHA_SATURATE             0x0308
   7.108 +#define GL_FUNC_ADD                       0x8006
   7.109 +#define GL_BLEND_EQUATION                 0x8009
   7.110 +#define GL_BLEND_EQUATION_RGB             0x8009
   7.111 +#define GL_BLEND_EQUATION_ALPHA           0x883D
   7.112 +#define GL_FUNC_SUBTRACT                  0x800A
   7.113 +#define GL_FUNC_REVERSE_SUBTRACT          0x800B
   7.114 +#define GL_BLEND_DST_RGB                  0x80C8
   7.115 +#define GL_BLEND_SRC_RGB                  0x80C9
   7.116 +#define GL_BLEND_DST_ALPHA                0x80CA
   7.117 +#define GL_BLEND_SRC_ALPHA                0x80CB
   7.118 +#define GL_CONSTANT_COLOR                 0x8001
   7.119 +#define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
   7.120 +#define GL_CONSTANT_ALPHA                 0x8003
   7.121 +#define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
   7.122 +#define GL_BLEND_COLOR                    0x8005
   7.123 +#define GL_ARRAY_BUFFER                   0x8892
   7.124 +#define GL_ELEMENT_ARRAY_BUFFER           0x8893
   7.125 +#define GL_ARRAY_BUFFER_BINDING           0x8894
   7.126 +#define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
   7.127 +#define GL_STREAM_DRAW                    0x88E0
   7.128 +#define GL_STATIC_DRAW                    0x88E4
   7.129 +#define GL_DYNAMIC_DRAW                   0x88E8
   7.130 +#define GL_BUFFER_SIZE                    0x8764
   7.131 +#define GL_BUFFER_USAGE                   0x8765
   7.132 +#define GL_CURRENT_VERTEX_ATTRIB          0x8626
   7.133 +#define GL_FRONT                          0x0404
   7.134 +#define GL_BACK                           0x0405
   7.135 +#define GL_FRONT_AND_BACK                 0x0408
   7.136 +#define GL_TEXTURE_2D                     0x0DE1
   7.137 +#define GL_CULL_FACE                      0x0B44
   7.138 +#define GL_BLEND                          0x0BE2
   7.139 +#define GL_DITHER                         0x0BD0
   7.140 +#define GL_STENCIL_TEST                   0x0B90
   7.141 +#define GL_DEPTH_TEST                     0x0B71
   7.142 +#define GL_SCISSOR_TEST                   0x0C11
   7.143 +#define GL_POLYGON_OFFSET_FILL            0x8037
   7.144 +#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
   7.145 +#define GL_SAMPLE_COVERAGE                0x80A0
   7.146 +#define GL_NO_ERROR                       0
   7.147 +#define GL_INVALID_ENUM                   0x0500
   7.148 +#define GL_INVALID_VALUE                  0x0501
   7.149 +#define GL_INVALID_OPERATION              0x0502
   7.150 +#define GL_OUT_OF_MEMORY                  0x0505
   7.151 +#define GL_CW                             0x0900
   7.152 +#define GL_CCW                            0x0901
   7.153 +#define GL_LINE_WIDTH                     0x0B21
   7.154 +#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
   7.155 +#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
   7.156 +#define GL_CULL_FACE_MODE                 0x0B45
   7.157 +#define GL_FRONT_FACE                     0x0B46
   7.158 +#define GL_DEPTH_RANGE                    0x0B70
   7.159 +#define GL_DEPTH_WRITEMASK                0x0B72
   7.160 +#define GL_DEPTH_CLEAR_VALUE              0x0B73
   7.161 +#define GL_DEPTH_FUNC                     0x0B74
   7.162 +#define GL_STENCIL_CLEAR_VALUE            0x0B91
   7.163 +#define GL_STENCIL_FUNC                   0x0B92
   7.164 +#define GL_STENCIL_FAIL                   0x0B94
   7.165 +#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
   7.166 +#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
   7.167 +#define GL_STENCIL_REF                    0x0B97
   7.168 +#define GL_STENCIL_VALUE_MASK             0x0B93
   7.169 +#define GL_STENCIL_WRITEMASK              0x0B98
   7.170 +#define GL_STENCIL_BACK_FUNC              0x8800
   7.171 +#define GL_STENCIL_BACK_FAIL              0x8801
   7.172 +#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
   7.173 +#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
   7.174 +#define GL_STENCIL_BACK_REF               0x8CA3
   7.175 +#define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
   7.176 +#define GL_STENCIL_BACK_WRITEMASK         0x8CA5
   7.177 +#define GL_VIEWPORT                       0x0BA2
   7.178 +#define GL_SCISSOR_BOX                    0x0C10
   7.179 +#define GL_COLOR_CLEAR_VALUE              0x0C22
   7.180 +#define GL_COLOR_WRITEMASK                0x0C23
   7.181 +#define GL_UNPACK_ALIGNMENT               0x0CF5
   7.182 +#define GL_PACK_ALIGNMENT                 0x0D05
   7.183 +#define GL_MAX_TEXTURE_SIZE               0x0D33
   7.184 +#define GL_MAX_VIEWPORT_DIMS              0x0D3A
   7.185 +#define GL_SUBPIXEL_BITS                  0x0D50
   7.186 +#define GL_RED_BITS                       0x0D52
   7.187 +#define GL_GREEN_BITS                     0x0D53
   7.188 +#define GL_BLUE_BITS                      0x0D54
   7.189 +#define GL_ALPHA_BITS                     0x0D55
   7.190 +#define GL_DEPTH_BITS                     0x0D56
   7.191 +#define GL_STENCIL_BITS                   0x0D57
   7.192 +#define GL_POLYGON_OFFSET_UNITS           0x2A00
   7.193 +#define GL_POLYGON_OFFSET_FACTOR          0x8038
   7.194 +#define GL_TEXTURE_BINDING_2D             0x8069
   7.195 +#define GL_SAMPLE_BUFFERS                 0x80A8
   7.196 +#define GL_SAMPLES                        0x80A9
   7.197 +#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
   7.198 +#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
   7.199 +#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
   7.200 +#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
   7.201 +#define GL_DONT_CARE                      0x1100
   7.202 +#define GL_FASTEST                        0x1101
   7.203 +#define GL_NICEST                         0x1102
   7.204 +#define GL_GENERATE_MIPMAP_HINT           0x8192
   7.205 +#define GL_BYTE                           0x1400
   7.206 +#define GL_UNSIGNED_BYTE                  0x1401
   7.207 +#define GL_SHORT                          0x1402
   7.208 +#define GL_UNSIGNED_SHORT                 0x1403
   7.209 +#define GL_INT                            0x1404
   7.210 +#define GL_UNSIGNED_INT                   0x1405
   7.211 +#define GL_FLOAT                          0x1406
   7.212 +#define GL_FIXED                          0x140C
   7.213 +#define GL_DEPTH_COMPONENT                0x1902
   7.214 +#define GL_ALPHA                          0x1906
   7.215 +#define GL_RGB                            0x1907
   7.216 +#define GL_RGBA                           0x1908
   7.217 +#define GL_LUMINANCE                      0x1909
   7.218 +#define GL_LUMINANCE_ALPHA                0x190A
   7.219 +#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
   7.220 +#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
   7.221 +#define GL_UNSIGNED_SHORT_5_6_5           0x8363
   7.222 +#define GL_FRAGMENT_SHADER                0x8B30
   7.223 +#define GL_VERTEX_SHADER                  0x8B31
   7.224 +#define GL_MAX_VERTEX_ATTRIBS             0x8869
   7.225 +#define GL_MAX_VERTEX_UNIFORM_VECTORS     0x8DFB
   7.226 +#define GL_MAX_VARYING_VECTORS            0x8DFC
   7.227 +#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
   7.228 +#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
   7.229 +#define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
   7.230 +#define GL_MAX_FRAGMENT_UNIFORM_VECTORS   0x8DFD
   7.231 +#define GL_SHADER_TYPE                    0x8B4F
   7.232 +#define GL_DELETE_STATUS                  0x8B80
   7.233 +#define GL_LINK_STATUS                    0x8B82
   7.234 +#define GL_VALIDATE_STATUS                0x8B83
   7.235 +#define GL_ATTACHED_SHADERS               0x8B85
   7.236 +#define GL_ACTIVE_UNIFORMS                0x8B86
   7.237 +#define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
   7.238 +#define GL_ACTIVE_ATTRIBUTES              0x8B89
   7.239 +#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
   7.240 +#define GL_SHADING_LANGUAGE_VERSION       0x8B8C
   7.241 +#define GL_CURRENT_PROGRAM                0x8B8D
   7.242 +#define GL_NEVER                          0x0200
   7.243 +#define GL_LESS                           0x0201
   7.244 +#define GL_EQUAL                          0x0202
   7.245 +#define GL_LEQUAL                         0x0203
   7.246 +#define GL_GREATER                        0x0204
   7.247 +#define GL_NOTEQUAL                       0x0205
   7.248 +#define GL_GEQUAL                         0x0206
   7.249 +#define GL_ALWAYS                         0x0207
   7.250 +#define GL_KEEP                           0x1E00
   7.251 +#define GL_REPLACE                        0x1E01
   7.252 +#define GL_INCR                           0x1E02
   7.253 +#define GL_DECR                           0x1E03
   7.254 +#define GL_INVERT                         0x150A
   7.255 +#define GL_INCR_WRAP                      0x8507
   7.256 +#define GL_DECR_WRAP                      0x8508
   7.257 +#define GL_VENDOR                         0x1F00
   7.258 +#define GL_RENDERER                       0x1F01
   7.259 +#define GL_VERSION                        0x1F02
   7.260 +#define GL_EXTENSIONS                     0x1F03
   7.261 +#define GL_NEAREST                        0x2600
   7.262 +#define GL_LINEAR                         0x2601
   7.263 +#define GL_NEAREST_MIPMAP_NEAREST         0x2700
   7.264 +#define GL_LINEAR_MIPMAP_NEAREST          0x2701
   7.265 +#define GL_NEAREST_MIPMAP_LINEAR          0x2702
   7.266 +#define GL_LINEAR_MIPMAP_LINEAR           0x2703
   7.267 +#define GL_TEXTURE_MAG_FILTER             0x2800
   7.268 +#define GL_TEXTURE_MIN_FILTER             0x2801
   7.269 +#define GL_TEXTURE_WRAP_S                 0x2802
   7.270 +#define GL_TEXTURE_WRAP_T                 0x2803
   7.271 +#define GL_TEXTURE                        0x1702
   7.272 +#define GL_TEXTURE_CUBE_MAP               0x8513
   7.273 +#define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
   7.274 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
   7.275 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
   7.276 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
   7.277 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
   7.278 +#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
   7.279 +#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
   7.280 +#define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
   7.281 +#define GL_TEXTURE0                       0x84C0
   7.282 +#define GL_TEXTURE1                       0x84C1
   7.283 +#define GL_TEXTURE2                       0x84C2
   7.284 +#define GL_TEXTURE3                       0x84C3
   7.285 +#define GL_TEXTURE4                       0x84C4
   7.286 +#define GL_TEXTURE5                       0x84C5
   7.287 +#define GL_TEXTURE6                       0x84C6
   7.288 +#define GL_TEXTURE7                       0x84C7
   7.289 +#define GL_TEXTURE8                       0x84C8
   7.290 +#define GL_TEXTURE9                       0x84C9
   7.291 +#define GL_TEXTURE10                      0x84CA
   7.292 +#define GL_TEXTURE11                      0x84CB
   7.293 +#define GL_TEXTURE12                      0x84CC
   7.294 +#define GL_TEXTURE13                      0x84CD
   7.295 +#define GL_TEXTURE14                      0x84CE
   7.296 +#define GL_TEXTURE15                      0x84CF
   7.297 +#define GL_TEXTURE16                      0x84D0
   7.298 +#define GL_TEXTURE17                      0x84D1
   7.299 +#define GL_TEXTURE18                      0x84D2
   7.300 +#define GL_TEXTURE19                      0x84D3
   7.301 +#define GL_TEXTURE20                      0x84D4
   7.302 +#define GL_TEXTURE21                      0x84D5
   7.303 +#define GL_TEXTURE22                      0x84D6
   7.304 +#define GL_TEXTURE23                      0x84D7
   7.305 +#define GL_TEXTURE24                      0x84D8
   7.306 +#define GL_TEXTURE25                      0x84D9
   7.307 +#define GL_TEXTURE26                      0x84DA
   7.308 +#define GL_TEXTURE27                      0x84DB
   7.309 +#define GL_TEXTURE28                      0x84DC
   7.310 +#define GL_TEXTURE29                      0x84DD
   7.311 +#define GL_TEXTURE30                      0x84DE
   7.312 +#define GL_TEXTURE31                      0x84DF
   7.313 +#define GL_ACTIVE_TEXTURE                 0x84E0
   7.314 +#define GL_REPEAT                         0x2901
   7.315 +#define GL_CLAMP_TO_EDGE                  0x812F
   7.316 +#define GL_MIRRORED_REPEAT                0x8370
   7.317 +#define GL_FLOAT_VEC2                     0x8B50
   7.318 +#define GL_FLOAT_VEC3                     0x8B51
   7.319 +#define GL_FLOAT_VEC4                     0x8B52
   7.320 +#define GL_INT_VEC2                       0x8B53
   7.321 +#define GL_INT_VEC3                       0x8B54
   7.322 +#define GL_INT_VEC4                       0x8B55
   7.323 +#define GL_BOOL                           0x8B56
   7.324 +#define GL_BOOL_VEC2                      0x8B57
   7.325 +#define GL_BOOL_VEC3                      0x8B58
   7.326 +#define GL_BOOL_VEC4                      0x8B59
   7.327 +#define GL_FLOAT_MAT2                     0x8B5A
   7.328 +#define GL_FLOAT_MAT3                     0x8B5B
   7.329 +#define GL_FLOAT_MAT4                     0x8B5C
   7.330 +#define GL_SAMPLER_2D                     0x8B5E
   7.331 +#define GL_SAMPLER_CUBE                   0x8B60
   7.332 +#define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
   7.333 +#define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
   7.334 +#define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
   7.335 +#define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
   7.336 +#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
   7.337 +#define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
   7.338 +#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
   7.339 +#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
   7.340 +#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
   7.341 +#define GL_COMPILE_STATUS                 0x8B81
   7.342 +#define GL_INFO_LOG_LENGTH                0x8B84
   7.343 +#define GL_SHADER_SOURCE_LENGTH           0x8B88
   7.344 +#define GL_SHADER_COMPILER                0x8DFA
   7.345 +#define GL_SHADER_BINARY_FORMATS          0x8DF8
   7.346 +#define GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
   7.347 +#define GL_LOW_FLOAT                      0x8DF0
   7.348 +#define GL_MEDIUM_FLOAT                   0x8DF1
   7.349 +#define GL_HIGH_FLOAT                     0x8DF2
   7.350 +#define GL_LOW_INT                        0x8DF3
   7.351 +#define GL_MEDIUM_INT                     0x8DF4
   7.352 +#define GL_HIGH_INT                       0x8DF5
   7.353 +#define GL_FRAMEBUFFER                    0x8D40
   7.354 +#define GL_RENDERBUFFER                   0x8D41
   7.355 +#define GL_RGBA4                          0x8056
   7.356 +#define GL_RGB5_A1                        0x8057
   7.357 +#define GL_RGB565                         0x8D62
   7.358 +#define GL_DEPTH_COMPONENT16              0x81A5
   7.359 +#define GL_STENCIL_INDEX8                 0x8D48
   7.360 +#define GL_RENDERBUFFER_WIDTH             0x8D42
   7.361 +#define GL_RENDERBUFFER_HEIGHT            0x8D43
   7.362 +#define GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
   7.363 +#define GL_RENDERBUFFER_RED_SIZE          0x8D50
   7.364 +#define GL_RENDERBUFFER_GREEN_SIZE        0x8D51
   7.365 +#define GL_RENDERBUFFER_BLUE_SIZE         0x8D52
   7.366 +#define GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
   7.367 +#define GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
   7.368 +#define GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
   7.369 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
   7.370 +#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
   7.371 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
   7.372 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
   7.373 +#define GL_COLOR_ATTACHMENT0              0x8CE0
   7.374 +#define GL_DEPTH_ATTACHMENT               0x8D00
   7.375 +#define GL_STENCIL_ATTACHMENT             0x8D20
   7.376 +#define GL_NONE                           0
   7.377 +#define GL_FRAMEBUFFER_COMPLETE           0x8CD5
   7.378 +#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
   7.379 +#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
   7.380 +#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
   7.381 +#define GL_FRAMEBUFFER_UNSUPPORTED        0x8CDD
   7.382 +#define GL_FRAMEBUFFER_BINDING            0x8CA6
   7.383 +#define GL_RENDERBUFFER_BINDING           0x8CA7
   7.384 +#define GL_MAX_RENDERBUFFER_SIZE          0x84E8
   7.385 +#define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
   7.386 +typedef void (GL_APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
   7.387 +typedef void (GL_APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
   7.388 +typedef void (GL_APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
   7.389 +typedef void (GL_APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
   7.390 +typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
   7.391 +typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
   7.392 +typedef void (GL_APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture);
   7.393 +typedef void (GL_APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
   7.394 +typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
   7.395 +typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
   7.396 +typedef void (GL_APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor);
   7.397 +typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
   7.398 +typedef void (GL_APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
   7.399 +typedef void (GL_APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
   7.400 +typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
   7.401 +typedef void (GL_APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
   7.402 +typedef void (GL_APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
   7.403 +typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
   7.404 +typedef void (GL_APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s);
   7.405 +typedef void (GL_APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
   7.406 +typedef void (GL_APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
   7.407 +typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
   7.408 +typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
   7.409 +typedef void (GL_APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
   7.410 +typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   7.411 +typedef GLuint (GL_APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
   7.412 +typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
   7.413 +typedef void (GL_APIENTRYP PFNGLCULLFACEPROC) (GLenum mode);
   7.414 +typedef void (GL_APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
   7.415 +typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
   7.416 +typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
   7.417 +typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
   7.418 +typedef void (GL_APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
   7.419 +typedef void (GL_APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures);
   7.420 +typedef void (GL_APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func);
   7.421 +typedef void (GL_APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag);
   7.422 +typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
   7.423 +typedef void (GL_APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
   7.424 +typedef void (GL_APIENTRYP PFNGLDISABLEPROC) (GLenum cap);
   7.425 +typedef void (GL_APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
   7.426 +typedef void (GL_APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count);
   7.427 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices);
   7.428 +typedef void (GL_APIENTRYP PFNGLENABLEPROC) (GLenum cap);
   7.429 +typedef void (GL_APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
   7.430 +typedef void (GL_APIENTRYP PFNGLFINISHPROC) (void);
   7.431 +typedef void (GL_APIENTRYP PFNGLFLUSHPROC) (void);
   7.432 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
   7.433 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
   7.434 +typedef void (GL_APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode);
   7.435 +typedef void (GL_APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
   7.436 +typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
   7.437 +typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
   7.438 +typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
   7.439 +typedef void (GL_APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures);
   7.440 +typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   7.441 +typedef void (GL_APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   7.442 +typedef void (GL_APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
   7.443 +typedef GLint (GL_APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
   7.444 +typedef void (GL_APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *data);
   7.445 +typedef void (GL_APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
   7.446 +typedef GLenum (GL_APIENTRYP PFNGLGETERRORPROC) (void);
   7.447 +typedef void (GL_APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *data);
   7.448 +typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
   7.449 +typedef void (GL_APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data);
   7.450 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
   7.451 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   7.452 +typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
   7.453 +typedef void (GL_APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
   7.454 +typedef void (GL_APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   7.455 +typedef void (GL_APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
   7.456 +typedef void (GL_APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
   7.457 +typedef const GLubyte *(GL_APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
   7.458 +typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
   7.459 +typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
   7.460 +typedef void (GL_APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
   7.461 +typedef void (GL_APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
   7.462 +typedef GLint (GL_APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
   7.463 +typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
   7.464 +typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
   7.465 +typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
   7.466 +typedef void (GL_APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode);
   7.467 +typedef GLboolean (GL_APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
   7.468 +typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDPROC) (GLenum cap);
   7.469 +typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
   7.470 +typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
   7.471 +typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
   7.472 +typedef GLboolean (GL_APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
   7.473 +typedef GLboolean (GL_APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture);
   7.474 +typedef void (GL_APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width);
   7.475 +typedef void (GL_APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
   7.476 +typedef void (GL_APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
   7.477 +typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units);
   7.478 +typedef void (GL_APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
   7.479 +typedef void (GL_APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
   7.480 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
   7.481 +typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
   7.482 +typedef void (GL_APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
   7.483 +typedef void (GL_APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
   7.484 +typedef void (GL_APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
   7.485 +typedef void (GL_APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask);
   7.486 +typedef void (GL_APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
   7.487 +typedef void (GL_APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask);
   7.488 +typedef void (GL_APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
   7.489 +typedef void (GL_APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass);
   7.490 +typedef void (GL_APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
   7.491 +typedef void (GL_APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
   7.492 +typedef void (GL_APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
   7.493 +typedef void (GL_APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
   7.494 +typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
   7.495 +typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
   7.496 +typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
   7.497 +typedef void (GL_APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
   7.498 +typedef void (GL_APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
   7.499 +typedef void (GL_APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
   7.500 +typedef void (GL_APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
   7.501 +typedef void (GL_APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
   7.502 +typedef void (GL_APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
   7.503 +typedef void (GL_APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
   7.504 +typedef void (GL_APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
   7.505 +typedef void (GL_APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
   7.506 +typedef void (GL_APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
   7.507 +typedef void (GL_APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
   7.508 +typedef void (GL_APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
   7.509 +typedef void (GL_APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
   7.510 +typedef void (GL_APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
   7.511 +typedef void (GL_APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
   7.512 +typedef void (GL_APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
   7.513 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   7.514 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   7.515 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   7.516 +typedef void (GL_APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
   7.517 +typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
   7.518 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
   7.519 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
   7.520 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
   7.521 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
   7.522 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
   7.523 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
   7.524 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
   7.525 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
   7.526 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
   7.527 +typedef void (GL_APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
   7.528 +#if GL_GLES_PROTOTYPES
   7.529 +GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
   7.530 +GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
   7.531 +GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
   7.532 +GL_APICALL void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
   7.533 +GL_APICALL void GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
   7.534 +GL_APICALL void GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
   7.535 +GL_APICALL void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
   7.536 +GL_APICALL void GL_APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
   7.537 +GL_APICALL void GL_APIENTRY glBlendEquation (GLenum mode);
   7.538 +GL_APICALL void GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
   7.539 +GL_APICALL void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
   7.540 +GL_APICALL void GL_APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
   7.541 +GL_APICALL void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
   7.542 +GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
   7.543 +GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus (GLenum target);
   7.544 +GL_APICALL void GL_APIENTRY glClear (GLbitfield mask);
   7.545 +GL_APICALL void GL_APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
   7.546 +GL_APICALL void GL_APIENTRY glClearDepthf (GLfloat d);
   7.547 +GL_APICALL void GL_APIENTRY glClearStencil (GLint s);
   7.548 +GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
   7.549 +GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
   7.550 +GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
   7.551 +GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
   7.552 +GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
   7.553 +GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   7.554 +GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);
   7.555 +GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenum type);
   7.556 +GL_APICALL void GL_APIENTRY glCullFace (GLenum mode);
   7.557 +GL_APICALL void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
   7.558 +GL_APICALL void GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
   7.559 +GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);
   7.560 +GL_APICALL void GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
   7.561 +GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
   7.562 +GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
   7.563 +GL_APICALL void GL_APIENTRY glDepthFunc (GLenum func);
   7.564 +GL_APICALL void GL_APIENTRY glDepthMask (GLboolean flag);
   7.565 +GL_APICALL void GL_APIENTRY glDepthRangef (GLfloat n, GLfloat f);
   7.566 +GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
   7.567 +GL_APICALL void GL_APIENTRY glDisable (GLenum cap);
   7.568 +GL_APICALL void GL_APIENTRY glDisableVertexAttribArray (GLuint index);
   7.569 +GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
   7.570 +GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices);
   7.571 +GL_APICALL void GL_APIENTRY glEnable (GLenum cap);
   7.572 +GL_APICALL void GL_APIENTRY glEnableVertexAttribArray (GLuint index);
   7.573 +GL_APICALL void GL_APIENTRY glFinish (void);
   7.574 +GL_APICALL void GL_APIENTRY glFlush (void);
   7.575 +GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
   7.576 +GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
   7.577 +GL_APICALL void GL_APIENTRY glFrontFace (GLenum mode);
   7.578 +GL_APICALL void GL_APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
   7.579 +GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenum target);
   7.580 +GL_APICALL void GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
   7.581 +GL_APICALL void GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
   7.582 +GL_APICALL void GL_APIENTRY glGenTextures (GLsizei n, GLuint *textures);
   7.583 +GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   7.584 +GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   7.585 +GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
   7.586 +GL_APICALL GLint GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
   7.587 +GL_APICALL void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean *data);
   7.588 +GL_APICALL void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
   7.589 +GL_APICALL GLenum GL_APIENTRY glGetError (void);
   7.590 +GL_APICALL void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat *data);
   7.591 +GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
   7.592 +GL_APICALL void GL_APIENTRY glGetIntegerv (GLenum pname, GLint *data);
   7.593 +GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
   7.594 +GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   7.595 +GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
   7.596 +GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
   7.597 +GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   7.598 +GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
   7.599 +GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
   7.600 +GL_APICALL const GLubyte *GL_APIENTRY glGetString (GLenum name);
   7.601 +GL_APICALL void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
   7.602 +GL_APICALL void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
   7.603 +GL_APICALL void GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
   7.604 +GL_APICALL void GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
   7.605 +GL_APICALL GLint GL_APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
   7.606 +GL_APICALL void GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
   7.607 +GL_APICALL void GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
   7.608 +GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
   7.609 +GL_APICALL void GL_APIENTRY glHint (GLenum target, GLenum mode);
   7.610 +GL_APICALL GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);
   7.611 +GL_APICALL GLboolean GL_APIENTRY glIsEnabled (GLenum cap);
   7.612 +GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
   7.613 +GL_APICALL GLboolean GL_APIENTRY glIsProgram (GLuint program);
   7.614 +GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
   7.615 +GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
   7.616 +GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLuint texture);
   7.617 +GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width);
   7.618 +GL_APICALL void GL_APIENTRY glLinkProgram (GLuint program);
   7.619 +GL_APICALL void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
   7.620 +GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
   7.621 +GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
   7.622 +GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void);
   7.623 +GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
   7.624 +GL_APICALL void GL_APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
   7.625 +GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
   7.626 +GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
   7.627 +GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
   7.628 +GL_APICALL void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
   7.629 +GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
   7.630 +GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask);
   7.631 +GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
   7.632 +GL_APICALL void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
   7.633 +GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
   7.634 +GL_APICALL void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
   7.635 +GL_APICALL void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
   7.636 +GL_APICALL void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
   7.637 +GL_APICALL void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
   7.638 +GL_APICALL void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
   7.639 +GL_APICALL void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
   7.640 +GL_APICALL void GL_APIENTRY glUniform1f (GLint location, GLfloat v0);
   7.641 +GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
   7.642 +GL_APICALL void GL_APIENTRY glUniform1i (GLint location, GLint v0);
   7.643 +GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
   7.644 +GL_APICALL void GL_APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
   7.645 +GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
   7.646 +GL_APICALL void GL_APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
   7.647 +GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
   7.648 +GL_APICALL void GL_APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
   7.649 +GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
   7.650 +GL_APICALL void GL_APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
   7.651 +GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
   7.652 +GL_APICALL void GL_APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
   7.653 +GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
   7.654 +GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
   7.655 +GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
   7.656 +GL_APICALL void GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   7.657 +GL_APICALL void GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   7.658 +GL_APICALL void GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   7.659 +GL_APICALL void GL_APIENTRY glUseProgram (GLuint program);
   7.660 +GL_APICALL void GL_APIENTRY glValidateProgram (GLuint program);
   7.661 +GL_APICALL void GL_APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
   7.662 +GL_APICALL void GL_APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
   7.663 +GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
   7.664 +GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
   7.665 +GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
   7.666 +GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
   7.667 +GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
   7.668 +GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
   7.669 +GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
   7.670 +GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
   7.671 +#endif
   7.672 +#endif /* GL_ES_VERSION_2_0 */
   7.673 +
   7.674 +#ifdef __cplusplus
   7.675 +}
   7.676 +#endif
   7.677 +
   7.678 +#endif
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/src/video/khronos/GLES2/gl2ext.h	Tue Aug 29 22:04:43 2017 -0700
     8.3 @@ -0,0 +1,3505 @@
     8.4 +#ifndef __gl2ext_h_
     8.5 +#define __gl2ext_h_ 1
     8.6 +
     8.7 +#ifdef __cplusplus
     8.8 +extern "C" {
     8.9 +#endif
    8.10 +
    8.11 +/*
    8.12 +** Copyright (c) 2013-2017 The Khronos Group Inc.
    8.13 +**
    8.14 +** Permission is hereby granted, free of charge, to any person obtaining a
    8.15 +** copy of this software and/or associated documentation files (the
    8.16 +** "Materials"), to deal in the Materials without restriction, including
    8.17 +** without limitation the rights to use, copy, modify, merge, publish,
    8.18 +** distribute, sublicense, and/or sell copies of the Materials, and to
    8.19 +** permit persons to whom the Materials are furnished to do so, subject to
    8.20 +** the following conditions:
    8.21 +**
    8.22 +** The above copyright notice and this permission notice shall be included
    8.23 +** in all copies or substantial portions of the Materials.
    8.24 +**
    8.25 +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    8.26 +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    8.27 +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    8.28 +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    8.29 +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    8.30 +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    8.31 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    8.32 +*/
    8.33 +/*
    8.34 +** This header is generated from the Khronos OpenGL / OpenGL ES XML
    8.35 +** API Registry. The current version of the Registry, generator scripts
    8.36 +** used to make the header, and the header can be found at
    8.37 +**   https://github.com/KhronosGroup/OpenGL-Registry
    8.38 +*/
    8.39 +
    8.40 +#ifndef GL_APIENTRYP
    8.41 +#define GL_APIENTRYP GL_APIENTRY*
    8.42 +#endif
    8.43 +
    8.44 +/* Generated on date 20170817 */
    8.45 +
    8.46 +/* Generated C header for:
    8.47 + * API: gles2
    8.48 + * Profile: common
    8.49 + * Versions considered: 2\.[0-9]
    8.50 + * Versions emitted: _nomatch_^
    8.51 + * Default extensions included: gles2
    8.52 + * Additional extensions included: _nomatch_^
    8.53 + * Extensions removed: _nomatch_^
    8.54 + */
    8.55 +
    8.56 +#ifndef GL_KHR_blend_equation_advanced
    8.57 +#define GL_KHR_blend_equation_advanced 1
    8.58 +#define GL_MULTIPLY_KHR                   0x9294
    8.59 +#define GL_SCREEN_KHR                     0x9295
    8.60 +#define GL_OVERLAY_KHR                    0x9296
    8.61 +#define GL_DARKEN_KHR                     0x9297
    8.62 +#define GL_LIGHTEN_KHR                    0x9298
    8.63 +#define GL_COLORDODGE_KHR                 0x9299
    8.64 +#define GL_COLORBURN_KHR                  0x929A
    8.65 +#define GL_HARDLIGHT_KHR                  0x929B
    8.66 +#define GL_SOFTLIGHT_KHR                  0x929C
    8.67 +#define GL_DIFFERENCE_KHR                 0x929E
    8.68 +#define GL_EXCLUSION_KHR                  0x92A0
    8.69 +#define GL_HSL_HUE_KHR                    0x92AD
    8.70 +#define GL_HSL_SATURATION_KHR             0x92AE
    8.71 +#define GL_HSL_COLOR_KHR                  0x92AF
    8.72 +#define GL_HSL_LUMINOSITY_KHR             0x92B0
    8.73 +typedef void (GL_APIENTRYP PFNGLBLENDBARRIERKHRPROC) (void);
    8.74 +#ifdef GL_GLEXT_PROTOTYPES
    8.75 +GL_APICALL void GL_APIENTRY glBlendBarrierKHR (void);
    8.76 +#endif
    8.77 +#endif /* GL_KHR_blend_equation_advanced */
    8.78 +
    8.79 +#ifndef GL_KHR_blend_equation_advanced_coherent
    8.80 +#define GL_KHR_blend_equation_advanced_coherent 1
    8.81 +#define GL_BLEND_ADVANCED_COHERENT_KHR    0x9285
    8.82 +#endif /* GL_KHR_blend_equation_advanced_coherent */
    8.83 +
    8.84 +#ifndef GL_KHR_context_flush_control
    8.85 +#define GL_KHR_context_flush_control 1
    8.86 +#define GL_CONTEXT_RELEASE_BEHAVIOR_KHR   0x82FB
    8.87 +#define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x82FC
    8.88 +#endif /* GL_KHR_context_flush_control */
    8.89 +
    8.90 +#ifndef GL_KHR_debug
    8.91 +#define GL_KHR_debug 1
    8.92 +typedef void (GL_APIENTRY  *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
    8.93 +#define GL_SAMPLER                        0x82E6
    8.94 +#define GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR   0x8242
    8.95 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR 0x8243
    8.96 +#define GL_DEBUG_CALLBACK_FUNCTION_KHR    0x8244
    8.97 +#define GL_DEBUG_CALLBACK_USER_PARAM_KHR  0x8245
    8.98 +#define GL_DEBUG_SOURCE_API_KHR           0x8246
    8.99 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR 0x8247
   8.100 +#define GL_DEBUG_SOURCE_SHADER_COMPILER_KHR 0x8248
   8.101 +#define GL_DEBUG_SOURCE_THIRD_PARTY_KHR   0x8249
   8.102 +#define GL_DEBUG_SOURCE_APPLICATION_KHR   0x824A
   8.103 +#define GL_DEBUG_SOURCE_OTHER_KHR         0x824B
   8.104 +#define GL_DEBUG_TYPE_ERROR_KHR           0x824C
   8.105 +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR 0x824D
   8.106 +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR 0x824E
   8.107 +#define GL_DEBUG_TYPE_PORTABILITY_KHR     0x824F
   8.108 +#define GL_DEBUG_TYPE_PERFORMANCE_KHR     0x8250
   8.109 +#define GL_DEBUG_TYPE_OTHER_KHR           0x8251
   8.110 +#define GL_DEBUG_TYPE_MARKER_KHR          0x8268
   8.111 +#define GL_DEBUG_TYPE_PUSH_GROUP_KHR      0x8269
   8.112 +#define GL_DEBUG_TYPE_POP_GROUP_KHR       0x826A
   8.113 +#define GL_DEBUG_SEVERITY_NOTIFICATION_KHR 0x826B
   8.114 +#define GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR 0x826C
   8.115 +#define GL_DEBUG_GROUP_STACK_DEPTH_KHR    0x826D
   8.116 +#define GL_BUFFER_KHR                     0x82E0
   8.117 +#define GL_SHADER_KHR                     0x82E1
   8.118 +#define GL_PROGRAM_KHR                    0x82E2
   8.119 +#define GL_VERTEX_ARRAY_KHR               0x8074
   8.120 +#define GL_QUERY_KHR                      0x82E3
   8.121 +#define GL_PROGRAM_PIPELINE_KHR           0x82E4
   8.122 +#define GL_SAMPLER_KHR                    0x82E6
   8.123 +#define GL_MAX_LABEL_LENGTH_KHR           0x82E8
   8.124 +#define GL_MAX_DEBUG_MESSAGE_LENGTH_KHR   0x9143
   8.125 +#define GL_MAX_DEBUG_LOGGED_MESSAGES_KHR  0x9144
   8.126 +#define GL_DEBUG_LOGGED_MESSAGES_KHR      0x9145
   8.127 +#define GL_DEBUG_SEVERITY_HIGH_KHR        0x9146
   8.128 +#define GL_DEBUG_SEVERITY_MEDIUM_KHR      0x9147
   8.129 +#define GL_DEBUG_SEVERITY_LOW_KHR         0x9148
   8.130 +#define GL_DEBUG_OUTPUT_KHR               0x92E0
   8.131 +#define GL_CONTEXT_FLAG_DEBUG_BIT_KHR     0x00000002
   8.132 +#define GL_STACK_OVERFLOW_KHR             0x0503
   8.133 +#define GL_STACK_UNDERFLOW_KHR            0x0504
   8.134 +typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECONTROLKHRPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
   8.135 +typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTKHRPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
   8.136 +typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECALLBACKKHRPROC) (GLDEBUGPROCKHR callback, const void *userParam);
   8.137 +typedef GLuint (GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGKHRPROC) (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
   8.138 +typedef void (GL_APIENTRYP PFNGLPUSHDEBUGGROUPKHRPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
   8.139 +typedef void (GL_APIENTRYP PFNGLPOPDEBUGGROUPKHRPROC) (void);
   8.140 +typedef void (GL_APIENTRYP PFNGLOBJECTLABELKHRPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
   8.141 +typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELKHRPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
   8.142 +typedef void (GL_APIENTRYP PFNGLOBJECTPTRLABELKHRPROC) (const void *ptr, GLsizei length, const GLchar *label);
   8.143 +typedef void (GL_APIENTRYP PFNGLGETOBJECTPTRLABELKHRPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
   8.144 +typedef void (GL_APIENTRYP PFNGLGETPOINTERVKHRPROC) (GLenum pname, void **params);
   8.145 +#ifdef GL_GLEXT_PROTOTYPES
   8.146 +GL_APICALL void GL_APIENTRY glDebugMessageControlKHR (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
   8.147 +GL_APICALL void GL_APIENTRY glDebugMessageInsertKHR (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
   8.148 +GL_APICALL void GL_APIENTRY glDebugMessageCallbackKHR (GLDEBUGPROCKHR callback, const void *userParam);
   8.149 +GL_APICALL GLuint GL_APIENTRY glGetDebugMessageLogKHR (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
   8.150 +GL_APICALL void GL_APIENTRY glPushDebugGroupKHR (GLenum source, GLuint id, GLsizei length, const GLchar *message);
   8.151 +GL_APICALL void GL_APIENTRY glPopDebugGroupKHR (void);
   8.152 +GL_APICALL void GL_APIENTRY glObjectLabelKHR (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
   8.153 +GL_APICALL void GL_APIENTRY glGetObjectLabelKHR (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
   8.154 +GL_APICALL void GL_APIENTRY glObjectPtrLabelKHR (const void *ptr, GLsizei length, const GLchar *label);
   8.155 +GL_APICALL void GL_APIENTRY glGetObjectPtrLabelKHR (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
   8.156 +GL_APICALL void GL_APIENTRY glGetPointervKHR (GLenum pname, void **params);
   8.157 +#endif
   8.158 +#endif /* GL_KHR_debug */
   8.159 +
   8.160 +#ifndef GL_KHR_no_error
   8.161 +#define GL_KHR_no_error 1
   8.162 +#define GL_CONTEXT_FLAG_NO_ERROR_BIT_KHR  0x00000008
   8.163 +#endif /* GL_KHR_no_error */
   8.164 +
   8.165 +#ifndef GL_KHR_parallel_shader_compile
   8.166 +#define GL_KHR_parallel_shader_compile 1
   8.167 +#define GL_MAX_SHADER_COMPILER_THREADS_KHR 0x91B0
   8.168 +#define GL_COMPLETION_STATUS_KHR          0x91B1
   8.169 +typedef void (GL_APIENTRYP PFNGLMAXSHADERCOMPILERTHREADSKHRPROC) (GLuint count);
   8.170 +#ifdef GL_GLEXT_PROTOTYPES
   8.171 +GL_APICALL void GL_APIENTRY glMaxShaderCompilerThreadsKHR (GLuint count);
   8.172 +#endif
   8.173 +#endif /* GL_KHR_parallel_shader_compile */
   8.174 +
   8.175 +#ifndef GL_KHR_robust_buffer_access_behavior
   8.176 +#define GL_KHR_robust_buffer_access_behavior 1
   8.177 +#endif /* GL_KHR_robust_buffer_access_behavior */
   8.178 +
   8.179 +#ifndef GL_KHR_robustness
   8.180 +#define GL_KHR_robustness 1
   8.181 +#define GL_CONTEXT_ROBUST_ACCESS_KHR      0x90F3
   8.182 +#define GL_LOSE_CONTEXT_ON_RESET_KHR      0x8252
   8.183 +#define GL_GUILTY_CONTEXT_RESET_KHR       0x8253
   8.184 +#define GL_INNOCENT_CONTEXT_RESET_KHR     0x8254
   8.185 +#define GL_UNKNOWN_CONTEXT_RESET_KHR      0x8255
   8.186 +#define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256
   8.187 +#define GL_NO_RESET_NOTIFICATION_KHR      0x8261
   8.188 +#define GL_CONTEXT_LOST_KHR               0x0507
   8.189 +typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC) (void);
   8.190 +typedef void (GL_APIENTRYP PFNGLREADNPIXELSKHRPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
   8.191 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVKHRPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
   8.192 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVKHRPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
   8.193 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMUIVKHRPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
   8.194 +#ifdef GL_GLEXT_PROTOTYPES
   8.195 +GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusKHR (void);
   8.196 +GL_APICALL void GL_APIENTRY glReadnPixelsKHR (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
   8.197 +GL_APICALL void GL_APIENTRY glGetnUniformfvKHR (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
   8.198 +GL_APICALL void GL_APIENTRY glGetnUniformivKHR (GLuint program, GLint location, GLsizei bufSize, GLint *params);
   8.199 +GL_APICALL void GL_APIENTRY glGetnUniformuivKHR (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
   8.200 +#endif
   8.201 +#endif /* GL_KHR_robustness */
   8.202 +
   8.203 +#ifndef GL_KHR_texture_compression_astc_hdr
   8.204 +#define GL_KHR_texture_compression_astc_hdr 1
   8.205 +#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR   0x93B0
   8.206 +#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR   0x93B1
   8.207 +#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR   0x93B2
   8.208 +#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR   0x93B3
   8.209 +#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR   0x93B4
   8.210 +#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR   0x93B5
   8.211 +#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR   0x93B6
   8.212 +#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR   0x93B7
   8.213 +#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR  0x93B8
   8.214 +#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR  0x93B9
   8.215 +#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR  0x93BA
   8.216 +#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
   8.217 +#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
   8.218 +#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
   8.219 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
   8.220 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
   8.221 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
   8.222 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
   8.223 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
   8.224 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
   8.225 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
   8.226 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
   8.227 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
   8.228 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
   8.229 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
   8.230 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
   8.231 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
   8.232 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
   8.233 +#endif /* GL_KHR_texture_compression_astc_hdr */
   8.234 +
   8.235 +#ifndef GL_KHR_texture_compression_astc_ldr
   8.236 +#define GL_KHR_texture_compression_astc_ldr 1
   8.237 +#endif /* GL_KHR_texture_compression_astc_ldr */
   8.238 +
   8.239 +#ifndef GL_KHR_texture_compression_astc_sliced_3d
   8.240 +#define GL_KHR_texture_compression_astc_sliced_3d 1
   8.241 +#endif /* GL_KHR_texture_compression_astc_sliced_3d */
   8.242 +
   8.243 +#ifndef GL_OES_EGL_image
   8.244 +#define GL_OES_EGL_image 1
   8.245 +typedef void *GLeglImageOES;
   8.246 +typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
   8.247 +typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
   8.248 +#ifdef GL_GLEXT_PROTOTYPES
   8.249 +GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
   8.250 +GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
   8.251 +#endif
   8.252 +#endif /* GL_OES_EGL_image */
   8.253 +
   8.254 +#ifndef GL_OES_EGL_image_external
   8.255 +#define GL_OES_EGL_image_external 1
   8.256 +#define GL_TEXTURE_EXTERNAL_OES           0x8D65
   8.257 +#define GL_TEXTURE_BINDING_EXTERNAL_OES   0x8D67
   8.258 +#define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
   8.259 +#define GL_SAMPLER_EXTERNAL_OES           0x8D66
   8.260 +#endif /* GL_OES_EGL_image_external */
   8.261 +
   8.262 +#ifndef GL_OES_EGL_image_external_essl3
   8.263 +#define GL_OES_EGL_image_external_essl3 1
   8.264 +#endif /* GL_OES_EGL_image_external_essl3 */
   8.265 +
   8.266 +#ifndef GL_OES_compressed_ETC1_RGB8_sub_texture
   8.267 +#define GL_OES_compressed_ETC1_RGB8_sub_texture 1
   8.268 +#endif /* GL_OES_compressed_ETC1_RGB8_sub_texture */
   8.269 +
   8.270 +#ifndef GL_OES_compressed_ETC1_RGB8_texture
   8.271 +#define GL_OES_compressed_ETC1_RGB8_texture 1
   8.272 +#define GL_ETC1_RGB8_OES                  0x8D64
   8.273 +#endif /* GL_OES_compressed_ETC1_RGB8_texture */
   8.274 +
   8.275 +#ifndef GL_OES_compressed_paletted_texture
   8.276 +#define GL_OES_compressed_paletted_texture 1
   8.277 +#define GL_PALETTE4_RGB8_OES              0x8B90
   8.278 +#define GL_PALETTE4_RGBA8_OES             0x8B91
   8.279 +#define GL_PALETTE4_R5_G6_B5_OES          0x8B92
   8.280 +#define GL_PALETTE4_RGBA4_OES             0x8B93
   8.281 +#define GL_PALETTE4_RGB5_A1_OES           0x8B94
   8.282 +#define GL_PALETTE8_RGB8_OES              0x8B95
   8.283 +#define GL_PALETTE8_RGBA8_OES             0x8B96
   8.284 +#define GL_PALETTE8_R5_G6_B5_OES          0x8B97
   8.285 +#define GL_PALETTE8_RGBA4_OES             0x8B98
   8.286 +#define GL_PALETTE8_RGB5_A1_OES           0x8B99
   8.287 +#endif /* GL_OES_compressed_paletted_texture */
   8.288 +
   8.289 +#ifndef GL_OES_copy_image
   8.290 +#define GL_OES_copy_image 1
   8.291 +typedef void (GL_APIENTRYP PFNGLCOPYIMAGESUBDATAOESPROC) (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);
   8.292 +#ifdef GL_GLEXT_PROTOTYPES
   8.293 +GL_APICALL void GL_APIENTRY glCopyImageSubDataOES (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);
   8.294 +#endif
   8.295 +#endif /* GL_OES_copy_image */
   8.296 +
   8.297 +#ifndef GL_OES_depth24
   8.298 +#define GL_OES_depth24 1
   8.299 +#define GL_DEPTH_COMPONENT24_OES          0x81A6
   8.300 +#endif /* GL_OES_depth24 */
   8.301 +
   8.302 +#ifndef GL_OES_depth32
   8.303 +#define GL_OES_depth32 1
   8.304 +#define GL_DEPTH_COMPONENT32_OES          0x81A7
   8.305 +#endif /* GL_OES_depth32 */
   8.306 +
   8.307 +#ifndef GL_OES_depth_texture
   8.308 +#define GL_OES_depth_texture 1
   8.309 +#endif /* GL_OES_depth_texture */
   8.310 +
   8.311 +#ifndef GL_OES_draw_buffers_indexed
   8.312 +#define GL_OES_draw_buffers_indexed 1
   8.313 +#define GL_MIN                            0x8007
   8.314 +#define GL_MAX                            0x8008
   8.315 +typedef void (GL_APIENTRYP PFNGLENABLEIOESPROC) (GLenum target, GLuint index);
   8.316 +typedef void (GL_APIENTRYP PFNGLDISABLEIOESPROC) (GLenum target, GLuint index);
   8.317 +typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONIOESPROC) (GLuint buf, GLenum mode);
   8.318 +typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEIOESPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
   8.319 +typedef void (GL_APIENTRYP PFNGLBLENDFUNCIOESPROC) (GLuint buf, GLenum src, GLenum dst);
   8.320 +typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEIOESPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
   8.321 +typedef void (GL_APIENTRYP PFNGLCOLORMASKIOESPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
   8.322 +typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDIOESPROC) (GLenum target, GLuint index);
   8.323 +#ifdef GL_GLEXT_PROTOTYPES
   8.324 +GL_APICALL void GL_APIENTRY glEnableiOES (GLenum target, GLuint index);
   8.325 +GL_APICALL void GL_APIENTRY glDisableiOES (GLenum target, GLuint index);
   8.326 +GL_APICALL void GL_APIENTRY glBlendEquationiOES (GLuint buf, GLenum mode);
   8.327 +GL_APICALL void GL_APIENTRY glBlendEquationSeparateiOES (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
   8.328 +GL_APICALL void GL_APIENTRY glBlendFunciOES (GLuint buf, GLenum src, GLenum dst);
   8.329 +GL_APICALL void GL_APIENTRY glBlendFuncSeparateiOES (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
   8.330 +GL_APICALL void GL_APIENTRY glColorMaskiOES (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
   8.331 +GL_APICALL GLboolean GL_APIENTRY glIsEnablediOES (GLenum target, GLuint index);
   8.332 +#endif
   8.333 +#endif /* GL_OES_draw_buffers_indexed */
   8.334 +
   8.335 +#ifndef GL_OES_draw_elements_base_vertex
   8.336 +#define GL_OES_draw_elements_base_vertex 1
   8.337 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXOESPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
   8.338 +typedef void (GL_APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXOESPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
   8.339 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXOESPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
   8.340 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, const GLint *basevertex);
   8.341 +#ifdef GL_GLEXT_PROTOTYPES
   8.342 +GL_APICALL void GL_APIENTRY glDrawElementsBaseVertexOES (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
   8.343 +GL_APICALL void GL_APIENTRY glDrawRangeElementsBaseVertexOES (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
   8.344 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseVertexOES (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
   8.345 +GL_APICALL void GL_APIENTRY glMultiDrawElementsBaseVertexEXT (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount, const GLint *basevertex);
   8.346 +#endif
   8.347 +#endif /* GL_OES_draw_elements_base_vertex */
   8.348 +
   8.349 +#ifndef GL_OES_element_index_uint
   8.350 +#define GL_OES_element_index_uint 1
   8.351 +#endif /* GL_OES_element_index_uint */
   8.352 +
   8.353 +#ifndef GL_OES_fbo_render_mipmap
   8.354 +#define GL_OES_fbo_render_mipmap 1
   8.355 +#endif /* GL_OES_fbo_render_mipmap */
   8.356 +
   8.357 +#ifndef GL_OES_fragment_precision_high
   8.358 +#define GL_OES_fragment_precision_high 1
   8.359 +#endif /* GL_OES_fragment_precision_high */
   8.360 +
   8.361 +#ifndef GL_OES_geometry_point_size
   8.362 +#define GL_OES_geometry_point_size 1
   8.363 +#endif /* GL_OES_geometry_point_size */
   8.364 +
   8.365 +#ifndef GL_OES_geometry_shader
   8.366 +#define GL_OES_geometry_shader 1
   8.367 +#define GL_GEOMETRY_SHADER_OES            0x8DD9
   8.368 +#define GL_GEOMETRY_SHADER_BIT_OES        0x00000004
   8.369 +#define GL_GEOMETRY_LINKED_VERTICES_OUT_OES 0x8916
   8.370 +#define GL_GEOMETRY_LINKED_INPUT_TYPE_OES 0x8917
   8.371 +#define GL_GEOMETRY_LINKED_OUTPUT_TYPE_OES 0x8918
   8.372 +#define GL_GEOMETRY_SHADER_INVOCATIONS_OES 0x887F
   8.373 +#define GL_LAYER_PROVOKING_VERTEX_OES     0x825E
   8.374 +#define GL_LINES_ADJACENCY_OES            0x000A
   8.375 +#define GL_LINE_STRIP_ADJACENCY_OES       0x000B
   8.376 +#define GL_TRIANGLES_ADJACENCY_OES        0x000C
   8.377 +#define GL_TRIANGLE_STRIP_ADJACENCY_OES   0x000D
   8.378 +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_OES 0x8DDF
   8.379 +#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS_OES 0x8A2C
   8.380 +#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_OES 0x8A32
   8.381 +#define GL_MAX_GEOMETRY_INPUT_COMPONENTS_OES 0x9123
   8.382 +#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_OES 0x9124
   8.383 +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_OES 0x8DE0
   8.384 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_OES 0x8DE1
   8.385 +#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS_OES 0x8E5A
   8.386 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_OES 0x8C29
   8.387 +#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_OES 0x92CF
   8.388 +#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS_OES 0x92D5
   8.389 +#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS_OES 0x90CD
   8.390 +#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_OES 0x90D7
   8.391 +#define GL_FIRST_VERTEX_CONVENTION_OES    0x8E4D
   8.392 +#define GL_LAST_VERTEX_CONVENTION_OES     0x8E4E
   8.393 +#define GL_UNDEFINED_VERTEX_OES           0x8260
   8.394 +#define GL_PRIMITIVES_GENERATED_OES       0x8C87
   8.395 +#define GL_FRAMEBUFFER_DEFAULT_LAYERS_OES 0x9312
   8.396 +#define GL_MAX_FRAMEBUFFER_LAYERS_OES     0x9317
   8.397 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_OES 0x8DA8
   8.398 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_OES 0x8DA7
   8.399 +#define GL_REFERENCED_BY_GEOMETRY_SHADER_OES 0x9309
   8.400 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREOESPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
   8.401 +#ifdef GL_GLEXT_PROTOTYPES
   8.402 +GL_APICALL void GL_APIENTRY glFramebufferTextureOES (GLenum target, GLenum attachment, GLuint texture, GLint level);
   8.403 +#endif
   8.404 +#endif /* GL_OES_geometry_shader */
   8.405 +
   8.406 +#ifndef GL_OES_get_program_binary
   8.407 +#define GL_OES_get_program_binary 1
   8.408 +#define GL_PROGRAM_BINARY_LENGTH_OES      0x8741
   8.409 +#define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE
   8.410 +#define GL_PROGRAM_BINARY_FORMATS_OES     0x87FF
   8.411 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
   8.412 +typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLint length);
   8.413 +#ifdef GL_GLEXT_PROTOTYPES
   8.414 +GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
   8.415 +GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const void *binary, GLint length);
   8.416 +#endif
   8.417 +#endif /* GL_OES_get_program_binary */
   8.418 +
   8.419 +#ifndef GL_OES_gpu_shader5
   8.420 +#define GL_OES_gpu_shader5 1
   8.421 +#endif /* GL_OES_gpu_shader5 */
   8.422 +
   8.423 +#ifndef GL_OES_mapbuffer
   8.424 +#define GL_OES_mapbuffer 1
   8.425 +#define GL_WRITE_ONLY_OES                 0x88B9
   8.426 +#define GL_BUFFER_ACCESS_OES              0x88BB
   8.427 +#define GL_BUFFER_MAPPED_OES              0x88BC
   8.428 +#define GL_BUFFER_MAP_POINTER_OES         0x88BD
   8.429 +typedef void *(GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
   8.430 +typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
   8.431 +typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void **params);
   8.432 +#ifdef GL_GLEXT_PROTOTYPES
   8.433 +GL_APICALL void *GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
   8.434 +GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
   8.435 +GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void **params);
   8.436 +#endif
   8.437 +#endif /* GL_OES_mapbuffer */
   8.438 +
   8.439 +#ifndef GL_OES_packed_depth_stencil
   8.440 +#define GL_OES_packed_depth_stencil 1
   8.441 +#define GL_DEPTH_STENCIL_OES              0x84F9
   8.442 +#define GL_UNSIGNED_INT_24_8_OES          0x84FA
   8.443 +#define GL_DEPTH24_STENCIL8_OES           0x88F0
   8.444 +#endif /* GL_OES_packed_depth_stencil */
   8.445 +
   8.446 +#ifndef GL_OES_primitive_bounding_box
   8.447 +#define GL_OES_primitive_bounding_box 1
   8.448 +#define GL_PRIMITIVE_BOUNDING_BOX_OES     0x92BE
   8.449 +typedef void (GL_APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXOESPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
   8.450 +#ifdef GL_GLEXT_PROTOTYPES
   8.451 +GL_APICALL void GL_APIENTRY glPrimitiveBoundingBoxOES (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
   8.452 +#endif
   8.453 +#endif /* GL_OES_primitive_bounding_box */
   8.454 +
   8.455 +#ifndef GL_OES_required_internalformat
   8.456 +#define GL_OES_required_internalformat 1
   8.457 +#define GL_ALPHA8_OES                     0x803C
   8.458 +#define GL_DEPTH_COMPONENT16_OES          0x81A5
   8.459 +#define GL_LUMINANCE4_ALPHA4_OES          0x8043
   8.460 +#define GL_LUMINANCE8_ALPHA8_OES          0x8045
   8.461 +#define GL_LUMINANCE8_OES                 0x8040
   8.462 +#define GL_RGBA4_OES                      0x8056
   8.463 +#define GL_RGB5_A1_OES                    0x8057
   8.464 +#define GL_RGB565_OES                     0x8D62
   8.465 +#define GL_RGB8_OES                       0x8051
   8.466 +#define GL_RGBA8_OES                      0x8058
   8.467 +#define GL_RGB10_EXT                      0x8052
   8.468 +#define GL_RGB10_A2_EXT                   0x8059
   8.469 +#endif /* GL_OES_required_internalformat */
   8.470 +
   8.471 +#ifndef GL_OES_rgb8_rgba8
   8.472 +#define GL_OES_rgb8_rgba8 1
   8.473 +#endif /* GL_OES_rgb8_rgba8 */
   8.474 +
   8.475 +#ifndef GL_OES_sample_shading
   8.476 +#define GL_OES_sample_shading 1
   8.477 +#define GL_SAMPLE_SHADING_OES             0x8C36
   8.478 +#define GL_MIN_SAMPLE_SHADING_VALUE_OES   0x8C37
   8.479 +typedef void (GL_APIENTRYP PFNGLMINSAMPLESHADINGOESPROC) (GLfloat value);
   8.480 +#ifdef GL_GLEXT_PROTOTYPES
   8.481 +GL_APICALL void GL_APIENTRY glMinSampleShadingOES (GLfloat value);
   8.482 +#endif
   8.483 +#endif /* GL_OES_sample_shading */
   8.484 +
   8.485 +#ifndef GL_OES_sample_variables
   8.486 +#define GL_OES_sample_variables 1
   8.487 +#endif /* GL_OES_sample_variables */
   8.488 +
   8.489 +#ifndef GL_OES_shader_image_atomic
   8.490 +#define GL_OES_shader_image_atomic 1
   8.491 +#endif /* GL_OES_shader_image_atomic */
   8.492 +
   8.493 +#ifndef GL_OES_shader_io_blocks
   8.494 +#define GL_OES_shader_io_blocks 1
   8.495 +#endif /* GL_OES_shader_io_blocks */
   8.496 +
   8.497 +#ifndef GL_OES_shader_multisample_interpolation
   8.498 +#define GL_OES_shader_multisample_interpolation 1
   8.499 +#define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET_OES 0x8E5B
   8.500 +#define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET_OES 0x8E5C
   8.501 +#define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS_OES 0x8E5D
   8.502 +#endif /* GL_OES_shader_multisample_interpolation */
   8.503 +
   8.504 +#ifndef GL_OES_standard_derivatives
   8.505 +#define GL_OES_standard_derivatives 1
   8.506 +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B
   8.507 +#endif /* GL_OES_standard_derivatives */
   8.508 +
   8.509 +#ifndef GL_OES_stencil1
   8.510 +#define GL_OES_stencil1 1
   8.511 +#define GL_STENCIL_INDEX1_OES             0x8D46
   8.512 +#endif /* GL_OES_stencil1 */
   8.513 +
   8.514 +#ifndef GL_OES_stencil4
   8.515 +#define GL_OES_stencil4 1
   8.516 +#define GL_STENCIL_INDEX4_OES             0x8D47
   8.517 +#endif /* GL_OES_stencil4 */
   8.518 +
   8.519 +#ifndef GL_OES_surfaceless_context
   8.520 +#define GL_OES_surfaceless_context 1
   8.521 +#define GL_FRAMEBUFFER_UNDEFINED_OES      0x8219
   8.522 +#endif /* GL_OES_surfaceless_context */
   8.523 +
   8.524 +#ifndef GL_OES_tessellation_point_size
   8.525 +#define GL_OES_tessellation_point_size 1
   8.526 +#endif /* GL_OES_tessellation_point_size */
   8.527 +
   8.528 +#ifndef GL_OES_tessellation_shader
   8.529 +#define GL_OES_tessellation_shader 1
   8.530 +#define GL_PATCHES_OES                    0x000E
   8.531 +#define GL_PATCH_VERTICES_OES             0x8E72
   8.532 +#define GL_TESS_CONTROL_OUTPUT_VERTICES_OES 0x8E75
   8.533 +#define GL_TESS_GEN_MODE_OES              0x8E76
   8.534 +#define GL_TESS_GEN_SPACING_OES           0x8E77
   8.535 +#define GL_TESS_GEN_VERTEX_ORDER_OES      0x8E78
   8.536 +#define GL_TESS_GEN_POINT_MODE_OES        0x8E79
   8.537 +#define GL_ISOLINES_OES                   0x8E7A
   8.538 +#define GL_QUADS_OES                      0x0007
   8.539 +#define GL_FRACTIONAL_ODD_OES             0x8E7B
   8.540 +#define GL_FRACTIONAL_EVEN_OES            0x8E7C
   8.541 +#define GL_MAX_PATCH_VERTICES_OES         0x8E7D
   8.542 +#define GL_MAX_TESS_GEN_LEVEL_OES         0x8E7E
   8.543 +#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_OES 0x8E7F
   8.544 +#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_OES 0x8E80
   8.545 +#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_OES 0x8E81
   8.546 +#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_OES 0x8E82
   8.547 +#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_OES 0x8E83
   8.548 +#define GL_MAX_TESS_PATCH_COMPONENTS_OES  0x8E84
   8.549 +#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_OES 0x8E85
   8.550 +#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_OES 0x8E86
   8.551 +#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_OES 0x8E89
   8.552 +#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_OES 0x8E8A
   8.553 +#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_OES 0x886C
   8.554 +#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_OES 0x886D
   8.555 +#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_OES 0x8E1E
   8.556 +#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_OES 0x8E1F
   8.557 +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_OES 0x92CD
   8.558 +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_OES 0x92CE
   8.559 +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_OES 0x92D3
   8.560 +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_OES 0x92D4
   8.561 +#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_OES 0x90CB
   8.562 +#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_OES 0x90CC
   8.563 +#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_OES 0x90D8
   8.564 +#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_OES 0x90D9
   8.565 +#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED_OES 0x8221
   8.566 +#define GL_IS_PER_PATCH_OES               0x92E7
   8.567 +#define GL_REFERENCED_BY_TESS_CONTROL_SHADER_OES 0x9307
   8.568 +#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER_OES 0x9308
   8.569 +#define GL_TESS_CONTROL_SHADER_OES        0x8E88
   8.570 +#define GL_TESS_EVALUATION_SHADER_OES     0x8E87
   8.571 +#define GL_TESS_CONTROL_SHADER_BIT_OES    0x00000008
   8.572 +#define GL_TESS_EVALUATION_SHADER_BIT_OES 0x00000010
   8.573 +typedef void (GL_APIENTRYP PFNGLPATCHPARAMETERIOESPROC) (GLenum pname, GLint value);
   8.574 +#ifdef GL_GLEXT_PROTOTYPES
   8.575 +GL_APICALL void GL_APIENTRY glPatchParameteriOES (GLenum pname, GLint value);
   8.576 +#endif
   8.577 +#endif /* GL_OES_tessellation_shader */
   8.578 +
   8.579 +#ifndef GL_OES_texture_3D
   8.580 +#define GL_OES_texture_3D 1
   8.581 +#define GL_TEXTURE_WRAP_R_OES             0x8072
   8.582 +#define GL_TEXTURE_3D_OES                 0x806F
   8.583 +#define GL_TEXTURE_BINDING_3D_OES         0x806A
   8.584 +#define GL_MAX_3D_TEXTURE_SIZE_OES        0x8073
   8.585 +#define GL_SAMPLER_3D_OES                 0x8B5F
   8.586 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
   8.587 +typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
   8.588 +typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
   8.589 +typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   8.590 +typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
   8.591 +typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
   8.592 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
   8.593 +#ifdef GL_GLEXT_PROTOTYPES
   8.594 +GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void *pixels);
   8.595 +GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *pixels);
   8.596 +GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   8.597 +GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data);
   8.598 +GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data);
   8.599 +GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
   8.600 +#endif
   8.601 +#endif /* GL_OES_texture_3D */
   8.602 +
   8.603 +#ifndef GL_OES_texture_border_clamp
   8.604 +#define GL_OES_texture_border_clamp 1
   8.605 +#define GL_TEXTURE_BORDER_COLOR_OES       0x1004
   8.606 +#define GL_CLAMP_TO_BORDER_OES            0x812D
   8.607 +typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIIVOESPROC) (GLenum target, GLenum pname, const GLint *params);
   8.608 +typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIUIVOESPROC) (GLenum target, GLenum pname, const GLuint *params);
   8.609 +typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIIVOESPROC) (GLenum target, GLenum pname, GLint *params);
   8.610 +typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIUIVOESPROC) (GLenum target, GLenum pname, GLuint *params);
   8.611 +typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIIVOESPROC) (GLuint sampler, GLenum pname, const GLint *param);
   8.612 +typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIUIVOESPROC) (GLuint sampler, GLenum pname, const GLuint *param);
   8.613 +typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIIVOESPROC) (GLuint sampler, GLenum pname, GLint *params);
   8.614 +typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVOESPROC) (GLuint sampler, GLenum pname, GLuint *params);
   8.615 +#ifdef GL_GLEXT_PROTOTYPES
   8.616 +GL_APICALL void GL_APIENTRY glTexParameterIivOES (GLenum target, GLenum pname, const GLint *params);
   8.617 +GL_APICALL void GL_APIENTRY glTexParameterIuivOES (GLenum target, GLenum pname, const GLuint *params);
   8.618 +GL_APICALL void GL_APIENTRY glGetTexParameterIivOES (GLenum target, GLenum pname, GLint *params);
   8.619 +GL_APICALL void GL_APIENTRY glGetTexParameterIuivOES (GLenum target, GLenum pname, GLuint *params);
   8.620 +GL_APICALL void GL_APIENTRY glSamplerParameterIivOES (GLuint sampler, GLenum pname, const GLint *param);
   8.621 +GL_APICALL void GL_APIENTRY glSamplerParameterIuivOES (GLuint sampler, GLenum pname, const GLuint *param);
   8.622 +GL_APICALL void GL_APIENTRY glGetSamplerParameterIivOES (GLuint sampler, GLenum pname, GLint *params);
   8.623 +GL_APICALL void GL_APIENTRY glGetSamplerParameterIuivOES (GLuint sampler, GLenum pname, GLuint *params);
   8.624 +#endif
   8.625 +#endif /* GL_OES_texture_border_clamp */
   8.626 +
   8.627 +#ifndef GL_OES_texture_buffer
   8.628 +#define GL_OES_texture_buffer 1
   8.629 +#define GL_TEXTURE_BUFFER_OES             0x8C2A
   8.630 +#define GL_TEXTURE_BUFFER_BINDING_OES     0x8C2A
   8.631 +#define GL_MAX_TEXTURE_BUFFER_SIZE_OES    0x8C2B
   8.632 +#define GL_TEXTURE_BINDING_BUFFER_OES     0x8C2C
   8.633 +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_OES 0x8C2D
   8.634 +#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_OES 0x919F
   8.635 +#define GL_SAMPLER_BUFFER_OES             0x8DC2
   8.636 +#define GL_INT_SAMPLER_BUFFER_OES         0x8DD0
   8.637 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER_OES 0x8DD8
   8.638 +#define GL_IMAGE_BUFFER_OES               0x9051
   8.639 +#define GL_INT_IMAGE_BUFFER_OES           0x905C
   8.640 +#define GL_UNSIGNED_INT_IMAGE_BUFFER_OES  0x9067
   8.641 +#define GL_TEXTURE_BUFFER_OFFSET_OES      0x919D
   8.642 +#define GL_TEXTURE_BUFFER_SIZE_OES        0x919E
   8.643 +typedef void (GL_APIENTRYP PFNGLTEXBUFFEROESPROC) (GLenum target, GLenum internalformat, GLuint buffer);
   8.644 +typedef void (GL_APIENTRYP PFNGLTEXBUFFERRANGEOESPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
   8.645 +#ifdef GL_GLEXT_PROTOTYPES
   8.646 +GL_APICALL void GL_APIENTRY glTexBufferOES (GLenum target, GLenum internalformat, GLuint buffer);
   8.647 +GL_APICALL void GL_APIENTRY glTexBufferRangeOES (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
   8.648 +#endif
   8.649 +#endif /* GL_OES_texture_buffer */
   8.650 +
   8.651 +#ifndef GL_OES_texture_compression_astc
   8.652 +#define GL_OES_texture_compression_astc 1
   8.653 +#define GL_COMPRESSED_RGBA_ASTC_3x3x3_OES 0x93C0
   8.654 +#define GL_COMPRESSED_RGBA_ASTC_4x3x3_OES 0x93C1
   8.655 +#define GL_COMPRESSED_RGBA_ASTC_4x4x3_OES 0x93C2
   8.656 +#define GL_COMPRESSED_RGBA_ASTC_4x4x4_OES 0x93C3
   8.657 +#define GL_COMPRESSED_RGBA_ASTC_5x4x4_OES 0x93C4
   8.658 +#define GL_COMPRESSED_RGBA_ASTC_5x5x4_OES 0x93C5
   8.659 +#define GL_COMPRESSED_RGBA_ASTC_5x5x5_OES 0x93C6
   8.660 +#define GL_COMPRESSED_RGBA_ASTC_6x5x5_OES 0x93C7
   8.661 +#define GL_COMPRESSED_RGBA_ASTC_6x6x5_OES 0x93C8
   8.662 +#define GL_COMPRESSED_RGBA_ASTC_6x6x6_OES 0x93C9
   8.663 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES 0x93E0
   8.664 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES 0x93E1
   8.665 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES 0x93E2
   8.666 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES 0x93E3
   8.667 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES 0x93E4
   8.668 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES 0x93E5
   8.669 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES 0x93E6
   8.670 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES 0x93E7
   8.671 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES 0x93E8
   8.672 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES 0x93E9
   8.673 +#endif /* GL_OES_texture_compression_astc */
   8.674 +
   8.675 +#ifndef GL_OES_texture_cube_map_array
   8.676 +#define GL_OES_texture_cube_map_array 1
   8.677 +#define GL_TEXTURE_CUBE_MAP_ARRAY_OES     0x9009
   8.678 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_OES 0x900A
   8.679 +#define GL_SAMPLER_CUBE_MAP_ARRAY_OES     0x900C
   8.680 +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_OES 0x900D
   8.681 +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_OES 0x900E
   8.682 +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_OES 0x900F
   8.683 +#define GL_IMAGE_CUBE_MAP_ARRAY_OES       0x9054
   8.684 +#define GL_INT_IMAGE_CUBE_MAP_ARRAY_OES   0x905F
   8.685 +#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_OES 0x906A
   8.686 +#endif /* GL_OES_texture_cube_map_array */
   8.687 +
   8.688 +#ifndef GL_OES_texture_float
   8.689 +#define GL_OES_texture_float 1
   8.690 +#endif /* GL_OES_texture_float */
   8.691 +
   8.692 +#ifndef GL_OES_texture_float_linear
   8.693 +#define GL_OES_texture_float_linear 1
   8.694 +#endif /* GL_OES_texture_float_linear */
   8.695 +
   8.696 +#ifndef GL_OES_texture_half_float
   8.697 +#define GL_OES_texture_half_float 1
   8.698 +#define GL_HALF_FLOAT_OES                 0x8D61
   8.699 +#endif /* GL_OES_texture_half_float */
   8.700 +
   8.701 +#ifndef GL_OES_texture_half_float_linear
   8.702 +#define GL_OES_texture_half_float_linear 1
   8.703 +#endif /* GL_OES_texture_half_float_linear */
   8.704 +
   8.705 +#ifndef GL_OES_texture_npot
   8.706 +#define GL_OES_texture_npot 1
   8.707 +#endif /* GL_OES_texture_npot */
   8.708 +
   8.709 +#ifndef GL_OES_texture_stencil8
   8.710 +#define GL_OES_texture_stencil8 1
   8.711 +#define GL_STENCIL_INDEX_OES              0x1901
   8.712 +#define GL_STENCIL_INDEX8_OES             0x8D48
   8.713 +#endif /* GL_OES_texture_stencil8 */
   8.714 +
   8.715 +#ifndef GL_OES_texture_storage_multisample_2d_array
   8.716 +#define GL_OES_texture_storage_multisample_2d_array 1
   8.717 +#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY_OES 0x9102
   8.718 +#define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY_OES 0x9105
   8.719 +#define GL_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910B
   8.720 +#define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910C
   8.721 +#define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY_OES 0x910D
   8.722 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEOESPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
   8.723 +#ifdef GL_GLEXT_PROTOTYPES
   8.724 +GL_APICALL void GL_APIENTRY glTexStorage3DMultisampleOES (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
   8.725 +#endif
   8.726 +#endif /* GL_OES_texture_storage_multisample_2d_array */
   8.727 +
   8.728 +#ifndef GL_OES_texture_view
   8.729 +#define GL_OES_texture_view 1
   8.730 +#define GL_TEXTURE_VIEW_MIN_LEVEL_OES     0x82DB
   8.731 +#define GL_TEXTURE_VIEW_NUM_LEVELS_OES    0x82DC
   8.732 +#define GL_TEXTURE_VIEW_MIN_LAYER_OES     0x82DD
   8.733 +#define GL_TEXTURE_VIEW_NUM_LAYERS_OES    0x82DE
   8.734 +#define GL_TEXTURE_IMMUTABLE_LEVELS       0x82DF
   8.735 +typedef void (GL_APIENTRYP PFNGLTEXTUREVIEWOESPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
   8.736 +#ifdef GL_GLEXT_PROTOTYPES
   8.737 +GL_APICALL void GL_APIENTRY glTextureViewOES (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
   8.738 +#endif
   8.739 +#endif /* GL_OES_texture_view */
   8.740 +
   8.741 +#ifndef GL_OES_vertex_array_object
   8.742 +#define GL_OES_vertex_array_object 1
   8.743 +#define GL_VERTEX_ARRAY_BINDING_OES       0x85B5
   8.744 +typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
   8.745 +typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
   8.746 +typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
   8.747 +typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
   8.748 +#ifdef GL_GLEXT_PROTOTYPES
   8.749 +GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
   8.750 +GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
   8.751 +GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
   8.752 +GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
   8.753 +#endif
   8.754 +#endif /* GL_OES_vertex_array_object */
   8.755 +
   8.756 +#ifndef GL_OES_vertex_half_float
   8.757 +#define GL_OES_vertex_half_float 1
   8.758 +#endif /* GL_OES_vertex_half_float */
   8.759 +
   8.760 +#ifndef GL_OES_vertex_type_10_10_10_2
   8.761 +#define GL_OES_vertex_type_10_10_10_2 1
   8.762 +#define GL_UNSIGNED_INT_10_10_10_2_OES    0x8DF6
   8.763 +#define GL_INT_10_10_10_2_OES             0x8DF7
   8.764 +#endif /* GL_OES_vertex_type_10_10_10_2 */
   8.765 +
   8.766 +#ifndef GL_OES_viewport_array
   8.767 +#define GL_OES_viewport_array 1
   8.768 +#define GL_MAX_VIEWPORTS_OES              0x825B
   8.769 +#define GL_VIEWPORT_SUBPIXEL_BITS_OES     0x825C
   8.770 +#define GL_VIEWPORT_BOUNDS_RANGE_OES      0x825D
   8.771 +#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX_OES 0x825F
   8.772 +typedef void (GL_APIENTRYP PFNGLVIEWPORTARRAYVOESPROC) (GLuint first, GLsizei count, const GLfloat *v);
   8.773 +typedef void (GL_APIENTRYP PFNGLVIEWPORTINDEXEDFOESPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
   8.774 +typedef void (GL_APIENTRYP PFNGLVIEWPORTINDEXEDFVOESPROC) (GLuint index, const GLfloat *v);
   8.775 +typedef void (GL_APIENTRYP PFNGLSCISSORARRAYVOESPROC) (GLuint first, GLsizei count, const GLint *v);
   8.776 +typedef void (GL_APIENTRYP PFNGLSCISSORINDEXEDOESPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
   8.777 +typedef void (GL_APIENTRYP PFNGLSCISSORINDEXEDVOESPROC) (GLuint index, const GLint *v);
   8.778 +typedef void (GL_APIENTRYP PFNGLDEPTHRANGEARRAYFVOESPROC) (GLuint first, GLsizei count, const GLfloat *v);
   8.779 +typedef void (GL_APIENTRYP PFNGLDEPTHRANGEINDEXEDFOESPROC) (GLuint index, GLfloat n, GLfloat f);
   8.780 +typedef void (GL_APIENTRYP PFNGLGETFLOATI_VOESPROC) (GLenum target, GLuint index, GLfloat *data);
   8.781 +#ifdef GL_GLEXT_PROTOTYPES
   8.782 +GL_APICALL void GL_APIENTRY glViewportArrayvOES (GLuint first, GLsizei count, const GLfloat *v);
   8.783 +GL_APICALL void GL_APIENTRY glViewportIndexedfOES (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
   8.784 +GL_APICALL void GL_APIENTRY glViewportIndexedfvOES (GLuint index, const GLfloat *v);
   8.785 +GL_APICALL void GL_APIENTRY glScissorArrayvOES (GLuint first, GLsizei count, const GLint *v);
   8.786 +GL_APICALL void GL_APIENTRY glScissorIndexedOES (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
   8.787 +GL_APICALL void GL_APIENTRY glScissorIndexedvOES (GLuint index, const GLint *v);
   8.788 +GL_APICALL void GL_APIENTRY glDepthRangeArrayfvOES (GLuint first, GLsizei count, const GLfloat *v);
   8.789 +GL_APICALL void GL_APIENTRY glDepthRangeIndexedfOES (GLuint index, GLfloat n, GLfloat f);
   8.790 +GL_APICALL void GL_APIENTRY glGetFloati_vOES (GLenum target, GLuint index, GLfloat *data);
   8.791 +#endif
   8.792 +#endif /* GL_OES_viewport_array */
   8.793 +
   8.794 +#ifndef GL_AMD_compressed_3DC_texture
   8.795 +#define GL_AMD_compressed_3DC_texture 1
   8.796 +#define GL_3DC_X_AMD                      0x87F9
   8.797 +#define GL_3DC_XY_AMD                     0x87FA
   8.798 +#endif /* GL_AMD_compressed_3DC_texture */
   8.799 +
   8.800 +#ifndef GL_AMD_compressed_ATC_texture
   8.801 +#define GL_AMD_compressed_ATC_texture 1
   8.802 +#define GL_ATC_RGB_AMD                    0x8C92
   8.803 +#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD    0x8C93
   8.804 +#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
   8.805 +#endif /* GL_AMD_compressed_ATC_texture */
   8.806 +
   8.807 +#ifndef GL_AMD_performance_monitor
   8.808 +#define GL_AMD_performance_monitor 1
   8.809 +#define GL_COUNTER_TYPE_AMD               0x8BC0
   8.810 +#define GL_COUNTER_RANGE_AMD              0x8BC1
   8.811 +#define GL_UNSIGNED_INT64_AMD             0x8BC2
   8.812 +#define GL_PERCENTAGE_AMD                 0x8BC3
   8.813 +#define GL_PERFMON_RESULT_AVAILABLE_AMD   0x8BC4
   8.814 +#define GL_PERFMON_RESULT_SIZE_AMD        0x8BC5
   8.815 +#define GL_PERFMON_RESULT_AMD             0x8BC6
   8.816 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
   8.817 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
   8.818 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
   8.819 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
   8.820 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void *data);
   8.821 +typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
   8.822 +typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
   8.823 +typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
   8.824 +typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
   8.825 +typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
   8.826 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
   8.827 +#ifdef GL_GLEXT_PROTOTYPES
   8.828 +GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
   8.829 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
   8.830 +GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
   8.831 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
   8.832 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, void *data);
   8.833 +GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
   8.834 +GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
   8.835 +GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *counterList);
   8.836 +GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
   8.837 +GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
   8.838 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
   8.839 +#endif
   8.840 +#endif /* GL_AMD_performance_monitor */
   8.841 +
   8.842 +#ifndef GL_AMD_program_binary_Z400
   8.843 +#define GL_AMD_program_binary_Z400 1
   8.844 +#define GL_Z400_BINARY_AMD                0x8740
   8.845 +#endif /* GL_AMD_program_binary_Z400 */
   8.846 +
   8.847 +#ifndef GL_ANDROID_extension_pack_es31a
   8.848 +#define GL_ANDROID_extension_pack_es31a 1
   8.849 +#endif /* GL_ANDROID_extension_pack_es31a */
   8.850 +
   8.851 +#ifndef GL_ANGLE_depth_texture
   8.852 +#define GL_ANGLE_depth_texture 1
   8.853 +#endif /* GL_ANGLE_depth_texture */
   8.854 +
   8.855 +#ifndef GL_ANGLE_framebuffer_blit
   8.856 +#define GL_ANGLE_framebuffer_blit 1
   8.857 +#define GL_READ_FRAMEBUFFER_ANGLE         0x8CA8
   8.858 +#define GL_DRAW_FRAMEBUFFER_ANGLE         0x8CA9
   8.859 +#define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE 0x8CA6
   8.860 +#define GL_READ_FRAMEBUFFER_BINDING_ANGLE 0x8CAA
   8.861 +typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERANGLEPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
   8.862 +#ifdef GL_GLEXT_PROTOTYPES
   8.863 +GL_APICALL void GL_APIENTRY glBlitFramebufferANGLE (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
   8.864 +#endif
   8.865 +#endif /* GL_ANGLE_framebuffer_blit */
   8.866 +
   8.867 +#ifndef GL_ANGLE_framebuffer_multisample
   8.868 +#define GL_ANGLE_framebuffer_multisample 1
   8.869 +#define GL_RENDERBUFFER_SAMPLES_ANGLE     0x8CAB
   8.870 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56
   8.871 +#define GL_MAX_SAMPLES_ANGLE              0x8D57
   8.872 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
   8.873 +#ifdef GL_GLEXT_PROTOTYPES
   8.874 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
   8.875 +#endif
   8.876 +#endif /* GL_ANGLE_framebuffer_multisample */
   8.877 +
   8.878 +#ifndef GL_ANGLE_instanced_arrays
   8.879 +#define GL_ANGLE_instanced_arrays 1
   8.880 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE
   8.881 +typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
   8.882 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
   8.883 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
   8.884 +#ifdef GL_GLEXT_PROTOTYPES
   8.885 +GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
   8.886 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
   8.887 +GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE (GLuint index, GLuint divisor);
   8.888 +#endif
   8.889 +#endif /* GL_ANGLE_instanced_arrays */
   8.890 +
   8.891 +#ifndef GL_ANGLE_pack_reverse_row_order
   8.892 +#define GL_ANGLE_pack_reverse_row_order 1
   8.893 +#define GL_PACK_REVERSE_ROW_ORDER_ANGLE   0x93A4
   8.894 +#endif /* GL_ANGLE_pack_reverse_row_order */
   8.895 +
   8.896 +#ifndef GL_ANGLE_program_binary
   8.897 +#define GL_ANGLE_program_binary 1
   8.898 +#define GL_PROGRAM_BINARY_ANGLE           0x93A6
   8.899 +#endif /* GL_ANGLE_program_binary */
   8.900 +
   8.901 +#ifndef GL_ANGLE_texture_compression_dxt3
   8.902 +#define GL_ANGLE_texture_compression_dxt3 1
   8.903 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
   8.904 +#endif /* GL_ANGLE_texture_compression_dxt3 */
   8.905 +
   8.906 +#ifndef GL_ANGLE_texture_compression_dxt5
   8.907 +#define GL_ANGLE_texture_compression_dxt5 1
   8.908 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
   8.909 +#endif /* GL_ANGLE_texture_compression_dxt5 */
   8.910 +
   8.911 +#ifndef GL_ANGLE_texture_usage
   8.912 +#define GL_ANGLE_texture_usage 1
   8.913 +#define GL_TEXTURE_USAGE_ANGLE            0x93A2
   8.914 +#define GL_FRAMEBUFFER_ATTACHMENT_ANGLE   0x93A3
   8.915 +#endif /* GL_ANGLE_texture_usage */
   8.916 +
   8.917 +#ifndef GL_ANGLE_translated_shader_source
   8.918 +#define GL_ANGLE_translated_shader_source 1
   8.919 +#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0
   8.920 +typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
   8.921 +#ifdef GL_GLEXT_PROTOTYPES
   8.922 +GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
   8.923 +#endif
   8.924 +#endif /* GL_ANGLE_translated_shader_source */
   8.925 +
   8.926 +#ifndef GL_APPLE_clip_distance
   8.927 +#define GL_APPLE_clip_distance 1
   8.928 +#define GL_MAX_CLIP_DISTANCES_APPLE       0x0D32
   8.929 +#define GL_CLIP_DISTANCE0_APPLE           0x3000
   8.930 +#define GL_CLIP_DISTANCE1_APPLE           0x3001
   8.931 +#define GL_CLIP_DISTANCE2_APPLE           0x3002
   8.932 +#define GL_CLIP_DISTANCE3_APPLE           0x3003
   8.933 +#define GL_CLIP_DISTANCE4_APPLE           0x3004
   8.934 +#define GL_CLIP_DISTANCE5_APPLE           0x3005
   8.935 +#define GL_CLIP_DISTANCE6_APPLE           0x3006
   8.936 +#define GL_CLIP_DISTANCE7_APPLE           0x3007
   8.937 +#endif /* GL_APPLE_clip_distance */
   8.938 +
   8.939 +#ifndef GL_APPLE_color_buffer_packed_float
   8.940 +#define GL_APPLE_color_buffer_packed_float 1
   8.941 +#endif /* GL_APPLE_color_buffer_packed_float */
   8.942 +
   8.943 +#ifndef GL_APPLE_copy_texture_levels
   8.944 +#define GL_APPLE_copy_texture_levels 1
   8.945 +typedef void (GL_APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
   8.946 +#ifdef GL_GLEXT_PROTOTYPES
   8.947 +GL_APICALL void GL_APIENTRY glCopyTextureLevelsAPPLE (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
   8.948 +#endif
   8.949 +#endif /* GL_APPLE_copy_texture_levels */
   8.950 +
   8.951 +#ifndef GL_APPLE_framebuffer_multisample
   8.952 +#define GL_APPLE_framebuffer_multisample 1
   8.953 +#define GL_RENDERBUFFER_SAMPLES_APPLE     0x8CAB
   8.954 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56
   8.955 +#define GL_MAX_SAMPLES_APPLE              0x8D57
   8.956 +#define GL_READ_FRAMEBUFFER_APPLE         0x8CA8
   8.957 +#define GL_DRAW_FRAMEBUFFER_APPLE         0x8CA9
   8.958 +#define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6
   8.959 +#define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA
   8.960 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
   8.961 +typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
   8.962 +#ifdef GL_GLEXT_PROTOTYPES
   8.963 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
   8.964 +GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
   8.965 +#endif
   8.966 +#endif /* GL_APPLE_framebuffer_multisample */
   8.967 +
   8.968 +#ifndef GL_APPLE_rgb_422
   8.969 +#define GL_APPLE_rgb_422 1
   8.970 +#define GL_RGB_422_APPLE                  0x8A1F
   8.971 +#define GL_UNSIGNED_SHORT_8_8_APPLE       0x85BA
   8.972 +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE   0x85BB
   8.973 +#define GL_RGB_RAW_422_APPLE              0x8A51
   8.974 +#endif /* GL_APPLE_rgb_422 */
   8.975 +
   8.976 +#ifndef GL_APPLE_sync
   8.977 +#define GL_APPLE_sync 1
   8.978 +#define GL_SYNC_OBJECT_APPLE              0x8A53
   8.979 +#define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE  0x9111
   8.980 +#define GL_OBJECT_TYPE_APPLE              0x9112
   8.981 +#define GL_SYNC_CONDITION_APPLE           0x9113
   8.982 +#define GL_SYNC_STATUS_APPLE              0x9114
   8.983 +#define GL_SYNC_FLAGS_APPLE               0x9115
   8.984 +#define GL_SYNC_FENCE_APPLE               0x9116
   8.985 +#define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE 0x9117
   8.986 +#define GL_UNSIGNALED_APPLE               0x9118
   8.987 +#define GL_SIGNALED_APPLE                 0x9119
   8.988 +#define GL_ALREADY_SIGNALED_APPLE         0x911A
   8.989 +#define GL_TIMEOUT_EXPIRED_APPLE          0x911B
   8.990 +#define GL_CONDITION_SATISFIED_APPLE      0x911C
   8.991 +#define GL_WAIT_FAILED_APPLE              0x911D
   8.992 +#define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE  0x00000001
   8.993 +#define GL_TIMEOUT_IGNORED_APPLE          0xFFFFFFFFFFFFFFFFull
   8.994 +typedef GLsync (GL_APIENTRYP PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
   8.995 +typedef GLboolean (GL_APIENTRYP PFNGLISSYNCAPPLEPROC) (GLsync sync);
   8.996 +typedef void (GL_APIENTRYP PFNGLDELETESYNCAPPLEPROC) (GLsync sync);
   8.997 +typedef GLenum (GL_APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
   8.998 +typedef void (GL_APIENTRYP PFNGLWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
   8.999 +typedef void (GL_APIENTRYP PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64 *params);
  8.1000 +typedef void (GL_APIENTRYP PFNGLGETSYNCIVAPPLEPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  8.1001 +#ifdef GL_GLEXT_PROTOTYPES
  8.1002 +GL_APICALL GLsync GL_APIENTRY glFenceSyncAPPLE (GLenum condition, GLbitfield flags);
  8.1003 +GL_APICALL GLboolean GL_APIENTRY glIsSyncAPPLE (GLsync sync);
  8.1004 +GL_APICALL void GL_APIENTRY glDeleteSyncAPPLE (GLsync sync);
  8.1005 +GL_APICALL GLenum GL_APIENTRY glClientWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
  8.1006 +GL_APICALL void GL_APIENTRY glWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
  8.1007 +GL_APICALL void GL_APIENTRY glGetInteger64vAPPLE (GLenum pname, GLint64 *params);
  8.1008 +GL_APICALL void GL_APIENTRY glGetSyncivAPPLE (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  8.1009 +#endif
  8.1010 +#endif /* GL_APPLE_sync */
  8.1011 +
  8.1012 +#ifndef GL_APPLE_texture_format_BGRA8888
  8.1013 +#define GL_APPLE_texture_format_BGRA8888 1
  8.1014 +#define GL_BGRA_EXT                       0x80E1
  8.1015 +#define GL_BGRA8_EXT                      0x93A1
  8.1016 +#endif /* GL_APPLE_texture_format_BGRA8888 */
  8.1017 +
  8.1018 +#ifndef GL_APPLE_texture_max_level
  8.1019 +#define GL_APPLE_texture_max_level 1
  8.1020 +#define GL_TEXTURE_MAX_LEVEL_APPLE        0x813D
  8.1021 +#endif /* GL_APPLE_texture_max_level */
  8.1022 +
  8.1023 +#ifndef GL_APPLE_texture_packed_float
  8.1024 +#define GL_APPLE_texture_packed_float 1
  8.1025 +#define GL_UNSIGNED_INT_10F_11F_11F_REV_APPLE 0x8C3B
  8.1026 +#define GL_UNSIGNED_INT_5_9_9_9_REV_APPLE 0x8C3E
  8.1027 +#define GL_R11F_G11F_B10F_APPLE           0x8C3A
  8.1028 +#define GL_RGB9_E5_APPLE                  0x8C3D
  8.1029 +#endif /* GL_APPLE_texture_packed_float */
  8.1030 +
  8.1031 +#ifndef GL_ARM_mali_program_binary
  8.1032 +#define GL_ARM_mali_program_binary 1
  8.1033 +#define GL_MALI_PROGRAM_BINARY_ARM        0x8F61
  8.1034 +#endif /* GL_ARM_mali_program_binary */
  8.1035 +
  8.1036 +#ifndef GL_ARM_mali_shader_binary
  8.1037 +#define GL_ARM_mali_shader_binary 1
  8.1038 +#define GL_MALI_SHADER_BINARY_ARM         0x8F60
  8.1039 +#endif /* GL_ARM_mali_shader_binary */
  8.1040 +
  8.1041 +#ifndef GL_ARM_rgba8
  8.1042 +#define GL_ARM_rgba8 1
  8.1043 +#endif /* GL_ARM_rgba8 */
  8.1044 +
  8.1045 +#ifndef GL_ARM_shader_framebuffer_fetch
  8.1046 +#define GL_ARM_shader_framebuffer_fetch 1
  8.1047 +#define GL_FETCH_PER_SAMPLE_ARM           0x8F65
  8.1048 +#define GL_FRAGMENT_SHADER_FRAMEBUFFER_FETCH_MRT_ARM 0x8F66
  8.1049 +#endif /* GL_ARM_shader_framebuffer_fetch */
  8.1050 +
  8.1051 +#ifndef GL_ARM_shader_framebuffer_fetch_depth_stencil
  8.1052 +#define GL_ARM_shader_framebuffer_fetch_depth_stencil 1
  8.1053 +#endif /* GL_ARM_shader_framebuffer_fetch_depth_stencil */
  8.1054 +
  8.1055 +#ifndef GL_DMP_program_binary
  8.1056 +#define GL_DMP_program_binary 1
  8.1057 +#define GL_SMAPHS30_PROGRAM_BINARY_DMP    0x9251
  8.1058 +#define GL_SMAPHS_PROGRAM_BINARY_DMP      0x9252
  8.1059 +#define GL_DMP_PROGRAM_BINARY_DMP         0x9253
  8.1060 +#endif /* GL_DMP_program_binary */
  8.1061 +
  8.1062 +#ifndef GL_DMP_shader_binary
  8.1063 +#define GL_DMP_shader_binary 1
  8.1064 +#define GL_SHADER_BINARY_DMP              0x9250
  8.1065 +#endif /* GL_DMP_shader_binary */
  8.1066 +
  8.1067 +#ifndef GL_EXT_EGL_image_array
  8.1068 +#define GL_EXT_EGL_image_array 1
  8.1069 +#endif /* GL_EXT_EGL_image_array */
  8.1070 +
  8.1071 +#ifndef GL_EXT_YUV_target
  8.1072 +#define GL_EXT_YUV_target 1
  8.1073 +#define GL_SAMPLER_EXTERNAL_2D_Y2Y_EXT    0x8BE7
  8.1074 +#endif /* GL_EXT_YUV_target */
  8.1075 +
  8.1076 +#ifndef GL_EXT_base_instance
  8.1077 +#define GL_EXT_base_instance 1
  8.1078 +typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEEXTPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
  8.1079 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
  8.1080 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
  8.1081 +#ifdef GL_GLEXT_PROTOTYPES
  8.1082 +GL_APICALL void GL_APIENTRY glDrawArraysInstancedBaseInstanceEXT (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
  8.1083 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseInstanceEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
  8.1084 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseVertexBaseInstanceEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
  8.1085 +#endif
  8.1086 +#endif /* GL_EXT_base_instance */
  8.1087 +
  8.1088 +#ifndef GL_EXT_blend_func_extended
  8.1089 +#define GL_EXT_blend_func_extended 1
  8.1090 +#define GL_SRC1_COLOR_EXT                 0x88F9
  8.1091 +#define GL_SRC1_ALPHA_EXT                 0x8589
  8.1092 +#define GL_ONE_MINUS_SRC1_COLOR_EXT       0x88FA
  8.1093 +#define GL_ONE_MINUS_SRC1_ALPHA_EXT       0x88FB
  8.1094 +#define GL_SRC_ALPHA_SATURATE_EXT         0x0308
  8.1095 +#define GL_LOCATION_INDEX_EXT             0x930F
  8.1096 +#define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT 0x88FC
  8.1097 +typedef void (GL_APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDEXTPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
  8.1098 +typedef void (GL_APIENTRYP PFNGLBINDFRAGDATALOCATIONEXTPROC) (GLuint program, GLuint color, const GLchar *name);
  8.1099 +typedef GLint (GL_APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXEXTPROC) (GLuint program, GLenum programInterface, const GLchar *name);
  8.1100 +typedef GLint (GL_APIENTRYP PFNGLGETFRAGDATAINDEXEXTPROC) (GLuint program, const GLchar *name);
  8.1101 +#ifdef GL_GLEXT_PROTOTYPES
  8.1102 +GL_APICALL void GL_APIENTRY glBindFragDataLocationIndexedEXT (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
  8.1103 +GL_APICALL void GL_APIENTRY glBindFragDataLocationEXT (GLuint program, GLuint color, const GLchar *name);
  8.1104 +GL_APICALL GLint GL_APIENTRY glGetProgramResourceLocationIndexEXT (GLuint program, GLenum programInterface, const GLchar *name);
  8.1105 +GL_APICALL GLint GL_APIENTRY glGetFragDataIndexEXT (GLuint program, const GLchar *name);
  8.1106 +#endif
  8.1107 +#endif /* GL_EXT_blend_func_extended */
  8.1108 +
  8.1109 +#ifndef GL_EXT_blend_minmax
  8.1110 +#define GL_EXT_blend_minmax 1
  8.1111 +#define GL_MIN_EXT                        0x8007
  8.1112 +#define GL_MAX_EXT                        0x8008
  8.1113 +#endif /* GL_EXT_blend_minmax */
  8.1114 +
  8.1115 +#ifndef GL_EXT_buffer_storage
  8.1116 +#define GL_EXT_buffer_storage 1
  8.1117 +#define GL_MAP_READ_BIT                   0x0001
  8.1118 +#define GL_MAP_WRITE_BIT                  0x0002
  8.1119 +#define GL_MAP_PERSISTENT_BIT_EXT         0x0040
  8.1120 +#define GL_MAP_COHERENT_BIT_EXT           0x0080
  8.1121 +#define GL_DYNAMIC_STORAGE_BIT_EXT        0x0100
  8.1122 +#define GL_CLIENT_STORAGE_BIT_EXT         0x0200
  8.1123 +#define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT_EXT 0x00004000
  8.1124 +#define GL_BUFFER_IMMUTABLE_STORAGE_EXT   0x821F
  8.1125 +#define GL_BUFFER_STORAGE_FLAGS_EXT       0x8220
  8.1126 +typedef void (GL_APIENTRYP PFNGLBUFFERSTORAGEEXTPROC) (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
  8.1127 +#ifdef GL_GLEXT_PROTOTYPES
  8.1128 +GL_APICALL void GL_APIENTRY glBufferStorageEXT (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags);
  8.1129 +#endif
  8.1130 +#endif /* GL_EXT_buffer_storage */
  8.1131 +
  8.1132 +#ifndef GL_EXT_clear_texture
  8.1133 +#define GL_EXT_clear_texture 1
  8.1134 +typedef void (GL_APIENTRYP PFNGLCLEARTEXIMAGEEXTPROC) (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
  8.1135 +typedef void (GL_APIENTRYP PFNGLCLEARTEXSUBIMAGEEXTPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
  8.1136 +#ifdef GL_GLEXT_PROTOTYPES
  8.1137 +GL_APICALL void GL_APIENTRY glClearTexImageEXT (GLuint texture, GLint level, GLenum format, GLenum type, const void *data);
  8.1138 +GL_APICALL void GL_APIENTRY glClearTexSubImageEXT (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data);
  8.1139 +#endif
  8.1140 +#endif /* GL_EXT_clear_texture */
  8.1141 +
  8.1142 +#ifndef GL_EXT_clip_control
  8.1143 +#define GL_EXT_clip_control 1
  8.1144 +#define GL_LOWER_LEFT_EXT                 0x8CA1
  8.1145 +#define GL_UPPER_LEFT_EXT                 0x8CA2
  8.1146 +#define GL_NEGATIVE_ONE_TO_ONE_EXT        0x935E
  8.1147 +#define GL_ZERO_TO_ONE_EXT                0x935F
  8.1148 +#define GL_CLIP_ORIGIN_EXT                0x935C
  8.1149 +#define GL_CLIP_DEPTH_MODE_EXT            0x935D
  8.1150 +typedef void (GL_APIENTRYP PFNGLCLIPCONTROLEXTPROC) (GLenum origin, GLenum depth);
  8.1151 +#ifdef GL_GLEXT_PROTOTYPES
  8.1152 +GL_APICALL void GL_APIENTRY glClipControlEXT (GLenum origin, GLenum depth);
  8.1153 +#endif
  8.1154 +#endif /* GL_EXT_clip_control */
  8.1155 +
  8.1156 +#ifndef GL_EXT_clip_cull_distance
  8.1157 +#define GL_EXT_clip_cull_distance 1
  8.1158 +#define GL_MAX_CLIP_DISTANCES_EXT         0x0D32
  8.1159 +#define GL_MAX_CULL_DISTANCES_EXT         0x82F9
  8.1160 +#define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES_EXT 0x82FA
  8.1161 +#define GL_CLIP_DISTANCE0_EXT             0x3000
  8.1162 +#define GL_CLIP_DISTANCE1_EXT             0x3001
  8.1163 +#define GL_CLIP_DISTANCE2_EXT             0x3002
  8.1164 +#define GL_CLIP_DISTANCE3_EXT             0x3003
  8.1165 +#define GL_CLIP_DISTANCE4_EXT             0x3004
  8.1166 +#define GL_CLIP_DISTANCE5_EXT             0x3005
  8.1167 +#define GL_CLIP_DISTANCE6_EXT             0x3006
  8.1168 +#define GL_CLIP_DISTANCE7_EXT             0x3007
  8.1169 +#endif /* GL_EXT_clip_cull_distance */
  8.1170 +
  8.1171 +#ifndef GL_EXT_color_buffer_float
  8.1172 +#define GL_EXT_color_buffer_float 1
  8.1173 +#endif /* GL_EXT_color_buffer_float */
  8.1174 +
  8.1175 +#ifndef GL_EXT_color_buffer_half_float
  8.1176 +#define GL_EXT_color_buffer_half_float 1
  8.1177 +#define GL_RGBA16F_EXT                    0x881A
  8.1178 +#define GL_RGB16F_EXT                     0x881B
  8.1179 +#define GL_RG16F_EXT                      0x822F
  8.1180 +#define GL_R16F_EXT                       0x822D
  8.1181 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT 0x8211
  8.1182 +#define GL_UNSIGNED_NORMALIZED_EXT        0x8C17
  8.1183 +#endif /* GL_EXT_color_buffer_half_float */
  8.1184 +
  8.1185 +#ifndef GL_EXT_conservative_depth
  8.1186 +#define GL_EXT_conservative_depth 1
  8.1187 +#endif /* GL_EXT_conservative_depth */
  8.1188 +
  8.1189 +#ifndef GL_EXT_copy_image
  8.1190 +#define GL_EXT_copy_image 1
  8.1191 +typedef void (GL_APIENTRYP PFNGLCOPYIMAGESUBDATAEXTPROC) (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);
  8.1192 +#ifdef GL_GLEXT_PROTOTYPES
  8.1193 +GL_APICALL void GL_APIENTRY glCopyImageSubDataEXT (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);
  8.1194 +#endif
  8.1195 +#endif /* GL_EXT_copy_image */
  8.1196 +
  8.1197 +#ifndef GL_EXT_debug_label
  8.1198 +#define GL_EXT_debug_label 1
  8.1199 +#define GL_PROGRAM_PIPELINE_OBJECT_EXT    0x8A4F
  8.1200 +#define GL_PROGRAM_OBJECT_EXT             0x8B40
  8.1201 +#define GL_SHADER_OBJECT_EXT              0x8B48
  8.1202 +#define GL_BUFFER_OBJECT_EXT              0x9151
  8.1203 +#define GL_QUERY_OBJECT_EXT               0x9153
  8.1204 +#define GL_VERTEX_ARRAY_OBJECT_EXT        0x9154
  8.1205 +#define GL_TRANSFORM_FEEDBACK             0x8E22
  8.1206 +typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
  8.1207 +typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
  8.1208 +#ifdef GL_GLEXT_PROTOTYPES
  8.1209 +GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
  8.1210 +GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
  8.1211 +#endif
  8.1212 +#endif /* GL_EXT_debug_label */
  8.1213 +
  8.1214 +#ifndef GL_EXT_debug_marker
  8.1215 +#define GL_EXT_debug_marker 1
  8.1216 +typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
  8.1217 +typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
  8.1218 +typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
  8.1219 +#ifdef GL_GLEXT_PROTOTYPES
  8.1220 +GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
  8.1221 +GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
  8.1222 +GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
  8.1223 +#endif
  8.1224 +#endif /* GL_EXT_debug_marker */
  8.1225 +
  8.1226 +#ifndef GL_EXT_discard_framebuffer
  8.1227 +#define GL_EXT_discard_framebuffer 1
  8.1228 +#define GL_COLOR_EXT                      0x1800
  8.1229 +#define GL_DEPTH_EXT                      0x1801
  8.1230 +#define GL_STENCIL_EXT                    0x1802
  8.1231 +typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  8.1232 +#ifdef GL_GLEXT_PROTOTYPES
  8.1233 +GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  8.1234 +#endif
  8.1235 +#endif /* GL_EXT_discard_framebuffer */
  8.1236 +
  8.1237 +#ifndef GL_EXT_disjoint_timer_query
  8.1238 +#define GL_EXT_disjoint_timer_query 1
  8.1239 +#define GL_QUERY_COUNTER_BITS_EXT         0x8864
  8.1240 +#define GL_CURRENT_QUERY_EXT              0x8865
  8.1241 +#define GL_QUERY_RESULT_EXT               0x8866
  8.1242 +#define GL_QUERY_RESULT_AVAILABLE_EXT     0x8867
  8.1243 +#define GL_TIME_ELAPSED_EXT               0x88BF
  8.1244 +#define GL_TIMESTAMP_EXT                  0x8E28
  8.1245 +#define GL_GPU_DISJOINT_EXT               0x8FBB
  8.1246 +typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
  8.1247 +typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
  8.1248 +typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
  8.1249 +typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
  8.1250 +typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
  8.1251 +typedef void (GL_APIENTRYP PFNGLQUERYCOUNTEREXTPROC) (GLuint id, GLenum target);
  8.1252 +typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
  8.1253 +typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTIVEXTPROC) (GLuint id, GLenum pname, GLint *params);
  8.1254 +typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
  8.1255 +typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTI64VEXTPROC) (GLuint id, GLenum pname, GLint64 *params);
  8.1256 +typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUI64VEXTPROC) (GLuint id, GLenum pname, GLuint64 *params);
  8.1257 +#ifdef GL_GLEXT_PROTOTYPES
  8.1258 +GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
  8.1259 +GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
  8.1260 +GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
  8.1261 +GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
  8.1262 +GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
  8.1263 +GL_APICALL void GL_APIENTRY glQueryCounterEXT (GLuint id, GLenum target);
  8.1264 +GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
  8.1265 +GL_APICALL void GL_APIENTRY glGetQueryObjectivEXT (GLuint id, GLenum pname, GLint *params);
  8.1266 +GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
  8.1267 +GL_APICALL void GL_APIENTRY glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64 *params);
  8.1268 +GL_APICALL void GL_APIENTRY glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64 *params);
  8.1269 +#endif
  8.1270 +#endif /* GL_EXT_disjoint_timer_query */
  8.1271 +
  8.1272 +#ifndef GL_EXT_draw_buffers
  8.1273 +#define GL_EXT_draw_buffers 1
  8.1274 +#define GL_MAX_COLOR_ATTACHMENTS_EXT      0x8CDF
  8.1275 +#define GL_MAX_DRAW_BUFFERS_EXT           0x8824
  8.1276 +#define GL_DRAW_BUFFER0_EXT               0x8825
  8.1277 +#define GL_DRAW_BUFFER1_EXT               0x8826
  8.1278 +#define GL_DRAW_BUFFER2_EXT               0x8827
  8.1279 +#define GL_DRAW_BUFFER3_EXT               0x8828
  8.1280 +#define GL_DRAW_BUFFER4_EXT               0x8829
  8.1281 +#define GL_DRAW_BUFFER5_EXT               0x882A
  8.1282 +#define GL_DRAW_BUFFER6_EXT               0x882B
  8.1283 +#define GL_DRAW_BUFFER7_EXT               0x882C
  8.1284 +#define GL_DRAW_BUFFER8_EXT               0x882D
  8.1285 +#define GL_DRAW_BUFFER9_EXT               0x882E
  8.1286 +#define GL_DRAW_BUFFER10_EXT              0x882F
  8.1287 +#define GL_DRAW_BUFFER11_EXT              0x8830
  8.1288 +#define GL_DRAW_BUFFER12_EXT              0x8831
  8.1289 +#define GL_DRAW_BUFFER13_EXT              0x8832
  8.1290 +#define GL_DRAW_BUFFER14_EXT              0x8833
  8.1291 +#define GL_DRAW_BUFFER15_EXT              0x8834
  8.1292 +#define GL_COLOR_ATTACHMENT0_EXT          0x8CE0
  8.1293 +#define GL_COLOR_ATTACHMENT1_EXT          0x8CE1
  8.1294 +#define GL_COLOR_ATTACHMENT2_EXT          0x8CE2
  8.1295 +#define GL_COLOR_ATTACHMENT3_EXT          0x8CE3
  8.1296 +#define GL_COLOR_ATTACHMENT4_EXT          0x8CE4
  8.1297 +#define GL_COLOR_ATTACHMENT5_EXT          0x8CE5
  8.1298 +#define GL_COLOR_ATTACHMENT6_EXT          0x8CE6
  8.1299 +#define GL_COLOR_ATTACHMENT7_EXT          0x8CE7
  8.1300 +#define GL_COLOR_ATTACHMENT8_EXT          0x8CE8
  8.1301 +#define GL_COLOR_ATTACHMENT9_EXT          0x8CE9
  8.1302 +#define GL_COLOR_ATTACHMENT10_EXT         0x8CEA
  8.1303 +#define GL_COLOR_ATTACHMENT11_EXT         0x8CEB
  8.1304 +#define GL_COLOR_ATTACHMENT12_EXT         0x8CEC
  8.1305 +#define GL_COLOR_ATTACHMENT13_EXT         0x8CED
  8.1306 +#define GL_COLOR_ATTACHMENT14_EXT         0x8CEE
  8.1307 +#define GL_COLOR_ATTACHMENT15_EXT         0x8CEF
  8.1308 +typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC) (GLsizei n, const GLenum *bufs);
  8.1309 +#ifdef GL_GLEXT_PROTOTYPES
  8.1310 +GL_APICALL void GL_APIENTRY glDrawBuffersEXT (GLsizei n, const GLenum *bufs);
  8.1311 +#endif
  8.1312 +#endif /* GL_EXT_draw_buffers */
  8.1313 +
  8.1314 +#ifndef GL_EXT_draw_buffers_indexed
  8.1315 +#define GL_EXT_draw_buffers_indexed 1
  8.1316 +typedef void (GL_APIENTRYP PFNGLENABLEIEXTPROC) (GLenum target, GLuint index);
  8.1317 +typedef void (GL_APIENTRYP PFNGLDISABLEIEXTPROC) (GLenum target, GLuint index);
  8.1318 +typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONIEXTPROC) (GLuint buf, GLenum mode);
  8.1319 +typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEIEXTPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  8.1320 +typedef void (GL_APIENTRYP PFNGLBLENDFUNCIEXTPROC) (GLuint buf, GLenum src, GLenum dst);
  8.1321 +typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEIEXTPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  8.1322 +typedef void (GL_APIENTRYP PFNGLCOLORMASKIEXTPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  8.1323 +typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDIEXTPROC) (GLenum target, GLuint index);
  8.1324 +#ifdef GL_GLEXT_PROTOTYPES
  8.1325 +GL_APICALL void GL_APIENTRY glEnableiEXT (GLenum target, GLuint index);
  8.1326 +GL_APICALL void GL_APIENTRY glDisableiEXT (GLenum target, GLuint index);
  8.1327 +GL_APICALL void GL_APIENTRY glBlendEquationiEXT (GLuint buf, GLenum mode);
  8.1328 +GL_APICALL void GL_APIENTRY glBlendEquationSeparateiEXT (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  8.1329 +GL_APICALL void GL_APIENTRY glBlendFunciEXT (GLuint buf, GLenum src, GLenum dst);
  8.1330 +GL_APICALL void GL_APIENTRY glBlendFuncSeparateiEXT (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  8.1331 +GL_APICALL void GL_APIENTRY glColorMaskiEXT (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  8.1332 +GL_APICALL GLboolean GL_APIENTRY glIsEnablediEXT (GLenum target, GLuint index);
  8.1333 +#endif
  8.1334 +#endif /* GL_EXT_draw_buffers_indexed */
  8.1335 +
  8.1336 +#ifndef GL_EXT_draw_elements_base_vertex
  8.1337 +#define GL_EXT_draw_elements_base_vertex 1
  8.1338 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
  8.1339 +typedef void (GL_APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXEXTPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
  8.1340 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
  8.1341 +#ifdef GL_GLEXT_PROTOTYPES
  8.1342 +GL_APICALL void GL_APIENTRY glDrawElementsBaseVertexEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex);
  8.1343 +GL_APICALL void GL_APIENTRY glDrawRangeElementsBaseVertexEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex);
  8.1344 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedBaseVertexEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex);
  8.1345 +#endif
  8.1346 +#endif /* GL_EXT_draw_elements_base_vertex */
  8.1347 +
  8.1348 +#ifndef GL_EXT_draw_instanced
  8.1349 +#define GL_EXT_draw_instanced 1
  8.1350 +typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDEXTPROC) (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
  8.1351 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDEXTPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  8.1352 +#ifdef GL_GLEXT_PROTOTYPES
  8.1353 +GL_APICALL void GL_APIENTRY glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount);
  8.1354 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  8.1355 +#endif
  8.1356 +#endif /* GL_EXT_draw_instanced */
  8.1357 +
  8.1358 +#ifndef GL_EXT_draw_transform_feedback
  8.1359 +#define GL_EXT_draw_transform_feedback 1
  8.1360 +typedef void (GL_APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKEXTPROC) (GLenum mode, GLuint id);
  8.1361 +typedef void (GL_APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDEXTPROC) (GLenum mode, GLuint id, GLsizei instancecount);
  8.1362 +#ifdef GL_GLEXT_PROTOTYPES
  8.1363 +GL_APICALL void GL_APIENTRY glDrawTransformFeedbackEXT (GLenum mode, GLuint id);
  8.1364 +GL_APICALL void GL_APIENTRY glDrawTransformFeedbackInstancedEXT (GLenum mode, GLuint id, GLsizei instancecount);
  8.1365 +#endif
  8.1366 +#endif /* GL_EXT_draw_transform_feedback */
  8.1367 +
  8.1368 +#ifndef GL_EXT_external_buffer
  8.1369 +#define GL_EXT_external_buffer 1
  8.1370 +typedef void *GLeglClientBufferEXT;
  8.1371 +typedef void (GL_APIENTRYP PFNGLBUFFERSTORAGEEXTERNALEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
  8.1372 +typedef void (GL_APIENTRYP PFNGLNAMEDBUFFERSTORAGEEXTERNALEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
  8.1373 +#ifdef GL_GLEXT_PROTOTYPES
  8.1374 +GL_APICALL void GL_APIENTRY glBufferStorageExternalEXT (GLenum target, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
  8.1375 +GL_APICALL void GL_APIENTRY glNamedBufferStorageExternalEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, GLeglClientBufferEXT clientBuffer, GLbitfield flags);
  8.1376 +#endif
  8.1377 +#endif /* GL_EXT_external_buffer */
  8.1378 +
  8.1379 +#ifndef GL_EXT_float_blend
  8.1380 +#define GL_EXT_float_blend 1
  8.1381 +#endif /* GL_EXT_float_blend */
  8.1382 +
  8.1383 +#ifndef GL_EXT_geometry_point_size
  8.1384 +#define GL_EXT_geometry_point_size 1
  8.1385 +#endif /* GL_EXT_geometry_point_size */
  8.1386 +
  8.1387 +#ifndef GL_EXT_geometry_shader
  8.1388 +#define GL_EXT_geometry_shader 1
  8.1389 +#define GL_GEOMETRY_SHADER_EXT            0x8DD9
  8.1390 +#define GL_GEOMETRY_SHADER_BIT_EXT        0x00000004
  8.1391 +#define GL_GEOMETRY_LINKED_VERTICES_OUT_EXT 0x8916
  8.1392 +#define GL_GEOMETRY_LINKED_INPUT_TYPE_EXT 0x8917
  8.1393 +#define GL_GEOMETRY_LINKED_OUTPUT_TYPE_EXT 0x8918
  8.1394 +#define GL_GEOMETRY_SHADER_INVOCATIONS_EXT 0x887F
  8.1395 +#define GL_LAYER_PROVOKING_VERTEX_EXT     0x825E
  8.1396 +#define GL_LINES_ADJACENCY_EXT            0x000A
  8.1397 +#define GL_LINE_STRIP_ADJACENCY_EXT       0x000B
  8.1398 +#define GL_TRIANGLES_ADJACENCY_EXT        0x000C
  8.1399 +#define GL_TRIANGLE_STRIP_ADJACENCY_EXT   0x000D
  8.1400 +#define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8DDF
  8.1401 +#define GL_MAX_GEOMETRY_UNIFORM_BLOCKS_EXT 0x8A2C
  8.1402 +#define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS_EXT 0x8A32
  8.1403 +#define GL_MAX_GEOMETRY_INPUT_COMPONENTS_EXT 0x9123
  8.1404 +#define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS_EXT 0x9124
  8.1405 +#define GL_MAX_GEOMETRY_OUTPUT_VERTICES_EXT 0x8DE0
  8.1406 +#define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT 0x8DE1
  8.1407 +#define GL_MAX_GEOMETRY_SHADER_INVOCATIONS_EXT 0x8E5A
  8.1408 +#define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT 0x8C29
  8.1409 +#define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS_EXT 0x92CF
  8.1410 +#define GL_MAX_GEOMETRY_ATOMIC_COUNTERS_EXT 0x92D5
  8.1411 +#define GL_MAX_GEOMETRY_IMAGE_UNIFORMS_EXT 0x90CD
  8.1412 +#define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS_EXT 0x90D7
  8.1413 +#define GL_FIRST_VERTEX_CONVENTION_EXT    0x8E4D
  8.1414 +#define GL_LAST_VERTEX_CONVENTION_EXT     0x8E4E
  8.1415 +#define GL_UNDEFINED_VERTEX_EXT           0x8260
  8.1416 +#define GL_PRIMITIVES_GENERATED_EXT       0x8C87
  8.1417 +#define GL_FRAMEBUFFER_DEFAULT_LAYERS_EXT 0x9312
  8.1418 +#define GL_MAX_FRAMEBUFFER_LAYERS_EXT     0x9317
  8.1419 +#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT 0x8DA8
  8.1420 +#define GL_FRAMEBUFFER_ATTACHMENT_LAYERED_EXT 0x8DA7
  8.1421 +#define GL_REFERENCED_BY_GEOMETRY_SHADER_EXT 0x9309
  8.1422 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREEXTPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
  8.1423 +#ifdef GL_GLEXT_PROTOTYPES
  8.1424 +GL_APICALL void GL_APIENTRY glFramebufferTextureEXT (GLenum target, GLenum attachment, GLuint texture, GLint level);
  8.1425 +#endif
  8.1426 +#endif /* GL_EXT_geometry_shader */
  8.1427 +
  8.1428 +#ifndef GL_EXT_gpu_shader5
  8.1429 +#define GL_EXT_gpu_shader5 1
  8.1430 +#endif /* GL_EXT_gpu_shader5 */
  8.1431 +
  8.1432 +#ifndef GL_EXT_instanced_arrays
  8.1433 +#define GL_EXT_instanced_arrays 1
  8.1434 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_EXT 0x88FE
  8.1435 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISOREXTPROC) (GLuint index, GLuint divisor);
  8.1436 +#ifdef GL_GLEXT_PROTOTYPES
  8.1437 +GL_APICALL void GL_APIENTRY glVertexAttribDivisorEXT (GLuint index, GLuint divisor);
  8.1438 +#endif
  8.1439 +#endif /* GL_EXT_instanced_arrays */
  8.1440 +
  8.1441 +#ifndef GL_EXT_map_buffer_range
  8.1442 +#define GL_EXT_map_buffer_range 1
  8.1443 +#define GL_MAP_READ_BIT_EXT               0x0001
  8.1444 +#define GL_MAP_WRITE_BIT_EXT              0x0002
  8.1445 +#define GL_MAP_INVALIDATE_RANGE_BIT_EXT   0x0004
  8.1446 +#define GL_MAP_INVALIDATE_BUFFER_BIT_EXT  0x0008
  8.1447 +#define GL_MAP_FLUSH_EXPLICIT_BIT_EXT     0x0010
  8.1448 +#define GL_MAP_UNSYNCHRONIZED_BIT_EXT     0x0020
  8.1449 +typedef void *(GL_APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  8.1450 +typedef void (GL_APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  8.1451 +#ifdef GL_GLEXT_PROTOTYPES
  8.1452 +GL_APICALL void *GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  8.1453 +GL_APICALL void GL_APIENTRY glFlushMappedBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length);
  8.1454 +#endif
  8.1455 +#endif /* GL_EXT_map_buffer_range */
  8.1456 +
  8.1457 +#ifndef GL_EXT_memory_object
  8.1458 +#define GL_EXT_memory_object 1
  8.1459 +#define GL_TEXTURE_TILING_EXT             0x9580
  8.1460 +#define GL_DEDICATED_MEMORY_OBJECT_EXT    0x9581
  8.1461 +#define GL_PROTECTED_MEMORY_OBJECT_EXT    0x959B
  8.1462 +#define GL_NUM_TILING_TYPES_EXT           0x9582
  8.1463 +#define GL_TILING_TYPES_EXT               0x9583
  8.1464 +#define GL_OPTIMAL_TILING_EXT             0x9584
  8.1465 +#define GL_LINEAR_TILING_EXT              0x9585
  8.1466 +#define GL_NUM_DEVICE_UUIDS_EXT           0x9596
  8.1467 +#define GL_DEVICE_UUID_EXT                0x9597
  8.1468 +#define GL_DRIVER_UUID_EXT                0x9598
  8.1469 +#define GL_UUID_SIZE_EXT                  16
  8.1470 +typedef void (GL_APIENTRYP PFNGLGETUNSIGNEDBYTEVEXTPROC) (GLenum pname, GLubyte *data);
  8.1471 +typedef void (GL_APIENTRYP PFNGLGETUNSIGNEDBYTEI_VEXTPROC) (GLenum target, GLuint index, GLubyte *data);
  8.1472 +typedef void (GL_APIENTRYP PFNGLDELETEMEMORYOBJECTSEXTPROC) (GLsizei n, const GLuint *memoryObjects);
  8.1473 +typedef GLboolean (GL_APIENTRYP PFNGLISMEMORYOBJECTEXTPROC) (GLuint memoryObject);
  8.1474 +typedef void (GL_APIENTRYP PFNGLCREATEMEMORYOBJECTSEXTPROC) (GLsizei n, GLuint *memoryObjects);
  8.1475 +typedef void (GL_APIENTRYP PFNGLMEMORYOBJECTPARAMETERIVEXTPROC) (GLuint memoryObject, GLenum pname, const GLint *params);
  8.1476 +typedef void (GL_APIENTRYP PFNGLGETMEMORYOBJECTPARAMETERIVEXTPROC) (GLuint memoryObject, GLenum pname, GLint *params);
  8.1477 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
  8.1478 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM2DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
  8.1479 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
  8.1480 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGEMEM3DMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
  8.1481 +typedef void (GL_APIENTRYP PFNGLBUFFERSTORAGEMEMEXTPROC) (GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset);
  8.1482 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM2DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
  8.1483 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM2DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
  8.1484 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM3DEXTPROC) (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
  8.1485 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGEMEM3DMULTISAMPLEEXTPROC) (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
  8.1486 +typedef void (GL_APIENTRYP PFNGLNAMEDBUFFERSTORAGEMEMEXTPROC) (GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset);
  8.1487 +#ifdef GL_GLEXT_PROTOTYPES
  8.1488 +GL_APICALL void GL_APIENTRY glGetUnsignedBytevEXT (GLenum pname, GLubyte *data);
  8.1489 +GL_APICALL void GL_APIENTRY glGetUnsignedBytei_vEXT (GLenum target, GLuint index, GLubyte *data);
  8.1490 +GL_APICALL void GL_APIENTRY glDeleteMemoryObjectsEXT (GLsizei n, const GLuint *memoryObjects);
  8.1491 +GL_APICALL GLboolean GL_APIENTRY glIsMemoryObjectEXT (GLuint memoryObject);
  8.1492 +GL_APICALL void GL_APIENTRY glCreateMemoryObjectsEXT (GLsizei n, GLuint *memoryObjects);
  8.1493 +GL_APICALL void GL_APIENTRY glMemoryObjectParameterivEXT (GLuint memoryObject, GLenum pname, const GLint *params);
  8.1494 +GL_APICALL void GL_APIENTRY glGetMemoryObjectParameterivEXT (GLuint memoryObject, GLenum pname, GLint *params);
  8.1495 +GL_APICALL void GL_APIENTRY glTexStorageMem2DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
  8.1496 +GL_APICALL void GL_APIENTRY glTexStorageMem2DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
  8.1497 +GL_APICALL void GL_APIENTRY glTexStorageMem3DEXT (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
  8.1498 +GL_APICALL void GL_APIENTRY glTexStorageMem3DMultisampleEXT (GLenum target, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
  8.1499 +GL_APICALL void GL_APIENTRY glBufferStorageMemEXT (GLenum target, GLsizeiptr size, GLuint memory, GLuint64 offset);
  8.1500 +GL_APICALL void GL_APIENTRY glTextureStorageMem2DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLuint memory, GLuint64 offset);
  8.1501 +GL_APICALL void GL_APIENTRY glTextureStorageMem2DMultisampleEXT (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
  8.1502 +GL_APICALL void GL_APIENTRY glTextureStorageMem3DEXT (GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLuint memory, GLuint64 offset);
  8.1503 +GL_APICALL void GL_APIENTRY glTextureStorageMem3DMultisampleEXT (GLuint texture, GLsizei samples, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedSampleLocations, GLuint memory, GLuint64 offset);
  8.1504 +GL_APICALL void GL_APIENTRY glNamedBufferStorageMemEXT (GLuint buffer, GLsizeiptr size, GLuint memory, GLuint64 offset);
  8.1505 +#endif
  8.1506 +#endif /* GL_EXT_memory_object */
  8.1507 +
  8.1508 +#ifndef GL_EXT_memory_object_fd
  8.1509 +#define GL_EXT_memory_object_fd 1
  8.1510 +#define GL_HANDLE_TYPE_OPAQUE_FD_EXT      0x9586
  8.1511 +typedef void (GL_APIENTRYP PFNGLIMPORTMEMORYFDEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, GLint fd);
  8.1512 +#ifdef GL_GLEXT_PROTOTYPES
  8.1513 +GL_APICALL void GL_APIENTRY glImportMemoryFdEXT (GLuint memory, GLuint64 size, GLenum handleType, GLint fd);
  8.1514 +#endif
  8.1515 +#endif /* GL_EXT_memory_object_fd */
  8.1516 +
  8.1517 +#ifndef GL_EXT_memory_object_win32
  8.1518 +#define GL_EXT_memory_object_win32 1
  8.1519 +#define GL_HANDLE_TYPE_OPAQUE_WIN32_EXT   0x9587
  8.1520 +#define GL_HANDLE_TYPE_OPAQUE_WIN32_KMT_EXT 0x9588
  8.1521 +#define GL_DEVICE_LUID_EXT                0x9599
  8.1522 +#define GL_DEVICE_NODE_MASK_EXT           0x959A
  8.1523 +#define GL_LUID_SIZE_EXT                  8
  8.1524 +#define GL_HANDLE_TYPE_D3D12_TILEPOOL_EXT 0x9589
  8.1525 +#define GL_HANDLE_TYPE_D3D12_RESOURCE_EXT 0x958A
  8.1526 +#define GL_HANDLE_TYPE_D3D11_IMAGE_EXT    0x958B
  8.1527 +#define GL_HANDLE_TYPE_D3D11_IMAGE_KMT_EXT 0x958C
  8.1528 +typedef void (GL_APIENTRYP PFNGLIMPORTMEMORYWIN32HANDLEEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, void *handle);
  8.1529 +typedef void (GL_APIENTRYP PFNGLIMPORTMEMORYWIN32NAMEEXTPROC) (GLuint memory, GLuint64 size, GLenum handleType, const void *name);
  8.1530 +#ifdef GL_GLEXT_PROTOTYPES
  8.1531 +GL_APICALL void GL_APIENTRY glImportMemoryWin32HandleEXT (GLuint memory, GLuint64 size, GLenum handleType, void *handle);
  8.1532 +GL_APICALL void GL_APIENTRY glImportMemoryWin32NameEXT (GLuint memory, GLuint64 size, GLenum handleType, const void *name);
  8.1533 +#endif
  8.1534 +#endif /* GL_EXT_memory_object_win32 */
  8.1535 +
  8.1536 +#ifndef GL_EXT_multi_draw_arrays
  8.1537 +#define GL_EXT_multi_draw_arrays 1
  8.1538 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
  8.1539 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
  8.1540 +#ifdef GL_GLEXT_PROTOTYPES
  8.1541 +GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
  8.1542 +GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const void *const*indices, GLsizei primcount);
  8.1543 +#endif
  8.1544 +#endif /* GL_EXT_multi_draw_arrays */
  8.1545 +
  8.1546 +#ifndef GL_EXT_multi_draw_indirect
  8.1547 +#define GL_EXT_multi_draw_indirect 1
  8.1548 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTEXTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
  8.1549 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTEXTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
  8.1550 +#ifdef GL_GLEXT_PROTOTYPES
  8.1551 +GL_APICALL void GL_APIENTRY glMultiDrawArraysIndirectEXT (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
  8.1552 +GL_APICALL void GL_APIENTRY glMultiDrawElementsIndirectEXT (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
  8.1553 +#endif
  8.1554 +#endif /* GL_EXT_multi_draw_indirect */
  8.1555 +
  8.1556 +#ifndef GL_EXT_multisampled_compatibility
  8.1557 +#define GL_EXT_multisampled_compatibility 1
  8.1558 +#define GL_MULTISAMPLE_EXT                0x809D
  8.1559 +#define GL_SAMPLE_ALPHA_TO_ONE_EXT        0x809F
  8.1560 +#endif /* GL_EXT_multisampled_compatibility */
  8.1561 +
  8.1562 +#ifndef GL_EXT_multisampled_render_to_texture
  8.1563 +#define GL_EXT_multisampled_render_to_texture 1
  8.1564 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C
  8.1565 +#define GL_RENDERBUFFER_SAMPLES_EXT       0x8CAB
  8.1566 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
  8.1567 +#define GL_MAX_SAMPLES_EXT                0x8D57
  8.1568 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  8.1569 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  8.1570 +#ifdef GL_GLEXT_PROTOTYPES
  8.1571 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  8.1572 +GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  8.1573 +#endif
  8.1574 +#endif /* GL_EXT_multisampled_render_to_texture */
  8.1575 +
  8.1576 +#ifndef GL_EXT_multiview_draw_buffers
  8.1577 +#define GL_EXT_multiview_draw_buffers 1
  8.1578 +#define GL_COLOR_ATTACHMENT_EXT           0x90F0
  8.1579 +#define GL_MULTIVIEW_EXT                  0x90F1
  8.1580 +#define GL_DRAW_BUFFER_EXT                0x0C01
  8.1581 +#define GL_READ_BUFFER_EXT                0x0C02
  8.1582 +#define GL_MAX_MULTIVIEW_BUFFERS_EXT      0x90F2
  8.1583 +typedef void (GL_APIENTRYP PFNGLREADBUFFERINDEXEDEXTPROC) (GLenum src, GLint index);
  8.1584 +typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSINDEXEDEXTPROC) (GLint n, const GLenum *location, const GLint *indices);
  8.1585 +typedef void (GL_APIENTRYP PFNGLGETINTEGERI_VEXTPROC) (GLenum target, GLuint index, GLint *data);
  8.1586 +#ifdef GL_GLEXT_PROTOTYPES
  8.1587 +GL_APICALL void GL_APIENTRY glReadBufferIndexedEXT (GLenum src, GLint index);
  8.1588 +GL_APICALL void GL_APIENTRY glDrawBuffersIndexedEXT (GLint n, const GLenum *location, const GLint *indices);
  8.1589 +GL_APICALL void GL_APIENTRY glGetIntegeri_vEXT (GLenum target, GLuint index, GLint *data);
  8.1590 +#endif
  8.1591 +#endif /* GL_EXT_multiview_draw_buffers */
  8.1592 +
  8.1593 +#ifndef GL_EXT_occlusion_query_boolean
  8.1594 +#define GL_EXT_occlusion_query_boolean 1
  8.1595 +#define GL_ANY_SAMPLES_PASSED_EXT         0x8C2F
  8.1596 +#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A
  8.1597 +#endif /* GL_EXT_occlusion_query_boolean */
  8.1598 +
  8.1599 +#ifndef GL_EXT_polygon_offset_clamp
  8.1600 +#define GL_EXT_polygon_offset_clamp 1
  8.1601 +#define GL_POLYGON_OFFSET_CLAMP_EXT       0x8E1B
  8.1602 +typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETCLAMPEXTPROC) (GLfloat factor, GLfloat units, GLfloat clamp);
  8.1603 +#ifdef GL_GLEXT_PROTOTYPES
  8.1604 +GL_APICALL void GL_APIENTRY glPolygonOffsetClampEXT (GLfloat factor, GLfloat units, GLfloat clamp);
  8.1605 +#endif
  8.1606 +#endif /* GL_EXT_polygon_offset_clamp */
  8.1607 +
  8.1608 +#ifndef GL_EXT_post_depth_coverage
  8.1609 +#define GL_EXT_post_depth_coverage 1
  8.1610 +#endif /* GL_EXT_post_depth_coverage */
  8.1611 +
  8.1612 +#ifndef GL_EXT_primitive_bounding_box
  8.1613 +#define GL_EXT_primitive_bounding_box 1
  8.1614 +#define GL_PRIMITIVE_BOUNDING_BOX_EXT     0x92BE
  8.1615 +typedef void (GL_APIENTRYP PFNGLPRIMITIVEBOUNDINGBOXEXTPROC) (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
  8.1616 +#ifdef GL_GLEXT_PROTOTYPES
  8.1617 +GL_APICALL void GL_APIENTRY glPrimitiveBoundingBoxEXT (GLfloat minX, GLfloat minY, GLfloat minZ, GLfloat minW, GLfloat maxX, GLfloat maxY, GLfloat maxZ, GLfloat maxW);
  8.1618 +#endif
  8.1619 +#endif /* GL_EXT_primitive_bounding_box */
  8.1620 +
  8.1621 +#ifndef GL_EXT_protected_textures
  8.1622 +#define GL_EXT_protected_textures 1
  8.1623 +#define GL_CONTEXT_FLAG_PROTECTED_CONTENT_BIT_EXT 0x00000010
  8.1624 +#define GL_TEXTURE_PROTECTED_EXT          0x8BFA
  8.1625 +#endif /* GL_EXT_protected_textures */
  8.1626 +
  8.1627 +#ifndef GL_EXT_pvrtc_sRGB
  8.1628 +#define GL_EXT_pvrtc_sRGB 1
  8.1629 +#define GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT 0x8A54
  8.1630 +#define GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT 0x8A55
  8.1631 +#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT 0x8A56
  8.1632 +#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT 0x8A57
  8.1633 +#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV2_IMG 0x93F0
  8.1634 +#define GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV2_IMG 0x93F1
  8.1635 +#endif /* GL_EXT_pvrtc_sRGB */
  8.1636 +
  8.1637 +#ifndef GL_EXT_raster_multisample
  8.1638 +#define GL_EXT_raster_multisample 1
  8.1639 +#define GL_RASTER_MULTISAMPLE_EXT         0x9327
  8.1640 +#define GL_RASTER_SAMPLES_EXT             0x9328
  8.1641 +#define GL_MAX_RASTER_SAMPLES_EXT         0x9329
  8.1642 +#define GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT 0x932A
  8.1643 +#define GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT 0x932B
  8.1644 +#define GL_EFFECTIVE_RASTER_SAMPLES_EXT   0x932C
  8.1645 +typedef void (GL_APIENTRYP PFNGLRASTERSAMPLESEXTPROC) (GLuint samples, GLboolean fixedsamplelocations);
  8.1646 +#ifdef GL_GLEXT_PROTOTYPES
  8.1647 +GL_APICALL void GL_APIENTRY glRasterSamplesEXT (GLuint samples, GLboolean fixedsamplelocations);
  8.1648 +#endif
  8.1649 +#endif /* GL_EXT_raster_multisample */
  8.1650 +
  8.1651 +#ifndef GL_EXT_read_format_bgra
  8.1652 +#define GL_EXT_read_format_bgra 1
  8.1653 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365
  8.1654 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366
  8.1655 +#endif /* GL_EXT_read_format_bgra */
  8.1656 +
  8.1657 +#ifndef GL_EXT_render_snorm
  8.1658 +#define GL_EXT_render_snorm 1
  8.1659 +#define GL_R8_SNORM                       0x8F94
  8.1660 +#define GL_RG8_SNORM                      0x8F95
  8.1661 +#define GL_RGBA8_SNORM                    0x8F97
  8.1662 +#define GL_R16_SNORM_EXT                  0x8F98
  8.1663 +#define GL_RG16_SNORM_EXT                 0x8F99
  8.1664 +#define GL_RGBA16_SNORM_EXT               0x8F9B
  8.1665 +#endif /* GL_EXT_render_snorm */
  8.1666 +
  8.1667 +#ifndef GL_EXT_robustness
  8.1668 +#define GL_EXT_robustness 1
  8.1669 +#define GL_GUILTY_CONTEXT_RESET_EXT       0x8253
  8.1670 +#define GL_INNOCENT_CONTEXT_RESET_EXT     0x8254
  8.1671 +#define GL_UNKNOWN_CONTEXT_RESET_EXT      0x8255
  8.1672 +#define GL_CONTEXT_ROBUST_ACCESS_EXT      0x90F3
  8.1673 +#define GL_RESET_NOTIFICATION_STRATEGY_EXT 0x8256
  8.1674 +#define GL_LOSE_CONTEXT_ON_RESET_EXT      0x8252
  8.1675 +#define GL_NO_RESET_NOTIFICATION_EXT      0x8261
  8.1676 +typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
  8.1677 +typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  8.1678 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
  8.1679 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  8.1680 +#ifdef GL_GLEXT_PROTOTYPES
  8.1681 +GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
  8.1682 +GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  8.1683 +GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
  8.1684 +GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  8.1685 +#endif
  8.1686 +#endif /* GL_EXT_robustness */
  8.1687 +
  8.1688 +#ifndef GL_EXT_sRGB
  8.1689 +#define GL_EXT_sRGB 1
  8.1690 +#define GL_SRGB_EXT                       0x8C40
  8.1691 +#define GL_SRGB_ALPHA_EXT                 0x8C42
  8.1692 +#define GL_SRGB8_ALPHA8_EXT               0x8C43
  8.1693 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT 0x8210
  8.1694 +#endif /* GL_EXT_sRGB */
  8.1695 +
  8.1696 +#ifndef GL_EXT_sRGB_write_control
  8.1697 +#define GL_EXT_sRGB_write_control 1
  8.1698 +#define GL_FRAMEBUFFER_SRGB_EXT           0x8DB9
  8.1699 +#endif /* GL_EXT_sRGB_write_control */
  8.1700 +
  8.1701 +#ifndef GL_EXT_semaphore
  8.1702 +#define GL_EXT_semaphore 1
  8.1703 +#define GL_LAYOUT_GENERAL_EXT             0x958D
  8.1704 +#define GL_LAYOUT_COLOR_ATTACHMENT_EXT    0x958E
  8.1705 +#define GL_LAYOUT_DEPTH_STENCIL_ATTACHMENT_EXT 0x958F
  8.1706 +#define GL_LAYOUT_DEPTH_STENCIL_READ_ONLY_EXT 0x9590
  8.1707 +#define GL_LAYOUT_SHADER_READ_ONLY_EXT    0x9591
  8.1708 +#define GL_LAYOUT_TRANSFER_SRC_EXT        0x9592
  8.1709 +#define GL_LAYOUT_TRANSFER_DST_EXT        0x9593
  8.1710 +typedef void (GL_APIENTRYP PFNGLGENSEMAPHORESEXTPROC) (GLsizei n, GLuint *semaphores);
  8.1711 +typedef void (GL_APIENTRYP PFNGLDELETESEMAPHORESEXTPROC) (GLsizei n, const GLuint *semaphores);
  8.1712 +typedef GLboolean (GL_APIENTRYP PFNGLISSEMAPHOREEXTPROC) (GLuint semaphore);
  8.1713 +typedef void (GL_APIENTRYP PFNGLSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, const GLuint64 *params);
  8.1714 +typedef void (GL_APIENTRYP PFNGLGETSEMAPHOREPARAMETERUI64VEXTPROC) (GLuint semaphore, GLenum pname, GLuint64 *params);
  8.1715 +typedef void (GL_APIENTRYP PFNGLWAITSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *srcLayouts);
  8.1716 +typedef void (GL_APIENTRYP PFNGLSIGNALSEMAPHOREEXTPROC) (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *dstLayouts);
  8.1717 +#ifdef GL_GLEXT_PROTOTYPES
  8.1718 +GL_APICALL void GL_APIENTRY glGenSemaphoresEXT (GLsizei n, GLuint *semaphores);
  8.1719 +GL_APICALL void GL_APIENTRY glDeleteSemaphoresEXT (GLsizei n, const GLuint *semaphores);
  8.1720 +GL_APICALL GLboolean GL_APIENTRY glIsSemaphoreEXT (GLuint semaphore);
  8.1721 +GL_APICALL void GL_APIENTRY glSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, const GLuint64 *params);
  8.1722 +GL_APICALL void GL_APIENTRY glGetSemaphoreParameterui64vEXT (GLuint semaphore, GLenum pname, GLuint64 *params);
  8.1723 +GL_APICALL void GL_APIENTRY glWaitSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *srcLayouts);
  8.1724 +GL_APICALL void GL_APIENTRY glSignalSemaphoreEXT (GLuint semaphore, GLuint numBufferBarriers, const GLuint *buffers, GLuint numTextureBarriers, const GLuint *textures, const GLenum *dstLayouts);
  8.1725 +#endif
  8.1726 +#endif /* GL_EXT_semaphore */
  8.1727 +
  8.1728 +#ifndef GL_EXT_semaphore_fd
  8.1729 +#define GL_EXT_semaphore_fd 1
  8.1730 +typedef void (GL_APIENTRYP PFNGLIMPORTSEMAPHOREFDEXTPROC) (GLuint semaphore, GLenum handleType, GLint fd);
  8.1731 +#ifdef GL_GLEXT_PROTOTYPES
  8.1732 +GL_APICALL void GL_APIENTRY glImportSemaphoreFdEXT (GLuint semaphore, GLenum handleType, GLint fd);
  8.1733 +#endif
  8.1734 +#endif /* GL_EXT_semaphore_fd */
  8.1735 +
  8.1736 +#ifndef GL_EXT_semaphore_win32
  8.1737 +#define GL_EXT_semaphore_win32 1
  8.1738 +#define GL_HANDLE_TYPE_D3D12_FENCE_EXT    0x9594
  8.1739 +#define GL_D3D12_FENCE_VALUE_EXT          0x9595
  8.1740 +typedef void (GL_APIENTRYP PFNGLIMPORTSEMAPHOREWIN32HANDLEEXTPROC) (GLuint semaphore, GLenum handleType, void *handle);
  8.1741 +typedef void (GL_APIENTRYP PFNGLIMPORTSEMAPHOREWIN32NAMEEXTPROC) (GLuint semaphore, GLenum handleType, const void *name);
  8.1742 +#ifdef GL_GLEXT_PROTOTYPES
  8.1743 +GL_APICALL void GL_APIENTRY glImportSemaphoreWin32HandleEXT (GLuint semaphore, GLenum handleType, void *handle);
  8.1744 +GL_APICALL void GL_APIENTRY glImportSemaphoreWin32NameEXT (GLuint semaphore, GLenum handleType, const void *name);
  8.1745 +#endif
  8.1746 +#endif /* GL_EXT_semaphore_win32 */
  8.1747 +
  8.1748 +#ifndef GL_EXT_separate_shader_objects
  8.1749 +#define GL_EXT_separate_shader_objects 1
  8.1750 +#define GL_ACTIVE_PROGRAM_EXT             0x8259
  8.1751 +#define GL_VERTEX_SHADER_BIT_EXT          0x00000001
  8.1752 +#define GL_FRAGMENT_SHADER_BIT_EXT        0x00000002
  8.1753 +#define GL_ALL_SHADER_BITS_EXT            0xFFFFFFFF
  8.1754 +#define GL_PROGRAM_SEPARABLE_EXT          0x8258
  8.1755 +#define GL_PROGRAM_PIPELINE_BINDING_EXT   0x825A
  8.1756 +typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
  8.1757 +typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  8.1758 +typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
  8.1759 +typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
  8.1760 +typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
  8.1761 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  8.1762 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
  8.1763 +typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  8.1764 +typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
  8.1765 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat v0);
  8.1766 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  8.1767 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint v0);
  8.1768 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  8.1769 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
  8.1770 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  8.1771 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1);
  8.1772 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  8.1773 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  8.1774 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  8.1775 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
  8.1776 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  8.1777 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  8.1778 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  8.1779 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  8.1780 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  8.1781 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1782 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1783 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1784 +typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
  8.1785 +typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  8.1786 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UIEXTPROC) (GLuint program, GLint location, GLuint v0);
  8.1787 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
  8.1788 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
  8.1789 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UIEXTPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  8.1790 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  8.1791 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  8.1792 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  8.1793 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UIVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  8.1794 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1795 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1796 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1797 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1798 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1799 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1800 +#ifdef GL_GLEXT_PROTOTYPES
  8.1801 +GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
  8.1802 +GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
  8.1803 +GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
  8.1804 +GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
  8.1805 +GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
  8.1806 +GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  8.1807 +GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
  8.1808 +GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
  8.1809 +GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
  8.1810 +GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat v0);
  8.1811 +GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  8.1812 +GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint v0);
  8.1813 +GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  8.1814 +GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1);
  8.1815 +GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  8.1816 +GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint v0, GLint v1);
  8.1817 +GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  8.1818 +GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  8.1819 +GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  8.1820 +GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
  8.1821 +GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  8.1822 +GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  8.1823 +GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  8.1824 +GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  8.1825 +GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  8.1826 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1827 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1828 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1829 +GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
  8.1830 +GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
  8.1831 +GL_APICALL void GL_APIENTRY glProgramUniform1uiEXT (GLuint program, GLint location, GLuint v0);
  8.1832 +GL_APICALL void GL_APIENTRY glProgramUniform2uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1);
  8.1833 +GL_APICALL void GL_APIENTRY glProgramUniform3uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
  8.1834 +GL_APICALL void GL_APIENTRY glProgramUniform4uiEXT (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  8.1835 +GL_APICALL void GL_APIENTRY glProgramUniform1uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
  8.1836 +GL_APICALL void GL_APIENTRY glProgramUniform2uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
  8.1837 +GL_APICALL void GL_APIENTRY glProgramUniform3uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
  8.1838 +GL_APICALL void GL_APIENTRY glProgramUniform4uivEXT (GLuint program, GLint location, GLsizei count, const GLuint *value);
  8.1839 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix2x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1840 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix3x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1841 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix2x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1842 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix4x2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1843 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix3x4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1844 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix4x3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.1845 +#endif
  8.1846 +#endif /* GL_EXT_separate_shader_objects */
  8.1847 +
  8.1848 +#ifndef GL_EXT_shader_framebuffer_fetch
  8.1849 +#define GL_EXT_shader_framebuffer_fetch 1
  8.1850 +#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52
  8.1851 +#endif /* GL_EXT_shader_framebuffer_fetch */
  8.1852 +
  8.1853 +#ifndef GL_EXT_shader_group_vote
  8.1854 +#define GL_EXT_shader_group_vote 1
  8.1855 +#endif /* GL_EXT_shader_group_vote */
  8.1856 +
  8.1857 +#ifndef GL_EXT_shader_implicit_conversions
  8.1858 +#define GL_EXT_shader_implicit_conversions 1
  8.1859 +#endif /* GL_EXT_shader_implicit_conversions */
  8.1860 +
  8.1861 +#ifndef GL_EXT_shader_integer_mix
  8.1862 +#define GL_EXT_shader_integer_mix 1
  8.1863 +#endif /* GL_EXT_shader_integer_mix */
  8.1864 +
  8.1865 +#ifndef GL_EXT_shader_io_blocks
  8.1866 +#define GL_EXT_shader_io_blocks 1
  8.1867 +#endif /* GL_EXT_shader_io_blocks */
  8.1868 +
  8.1869 +#ifndef GL_EXT_shader_non_constant_global_initializers
  8.1870 +#define GL_EXT_shader_non_constant_global_initializers 1
  8.1871 +#endif /* GL_EXT_shader_non_constant_global_initializers */
  8.1872 +
  8.1873 +#ifndef GL_EXT_shader_pixel_local_storage
  8.1874 +#define GL_EXT_shader_pixel_local_storage 1
  8.1875 +#define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_FAST_SIZE_EXT 0x8F63
  8.1876 +#define GL_MAX_SHADER_PIXEL_LOCAL_STORAGE_SIZE_EXT 0x8F67
  8.1877 +#define GL_SHADER_PIXEL_LOCAL_STORAGE_EXT 0x8F64
  8.1878 +#endif /* GL_EXT_shader_pixel_local_storage */
  8.1879 +
  8.1880 +#ifndef GL_EXT_shader_pixel_local_storage2
  8.1881 +#define GL_EXT_shader_pixel_local_storage2 1
  8.1882 +#define GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_FAST_SIZE_EXT 0x9650
  8.1883 +#define GL_MAX_SHADER_COMBINED_LOCAL_STORAGE_SIZE_EXT 0x9651
  8.1884 +#define GL_FRAMEBUFFER_INCOMPLETE_INSUFFICIENT_SHADER_COMBINED_LOCAL_STORAGE_EXT 0x9652
  8.1885 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC) (GLuint target, GLsizei size);
  8.1886 +typedef GLsizei (GL_APIENTRYP PFNGLGETFRAMEBUFFERPIXELLOCALSTORAGESIZEEXTPROC) (GLuint target);
  8.1887 +typedef void (GL_APIENTRYP PFNGLCLEARPIXELLOCALSTORAGEUIEXTPROC) (GLsizei offset, GLsizei n, const GLuint *values);
  8.1888 +#ifdef GL_GLEXT_PROTOTYPES
  8.1889 +GL_APICALL void GL_APIENTRY glFramebufferPixelLocalStorageSizeEXT (GLuint target, GLsizei size);
  8.1890 +GL_APICALL GLsizei GL_APIENTRY glGetFramebufferPixelLocalStorageSizeEXT (GLuint target);
  8.1891 +GL_APICALL void GL_APIENTRY glClearPixelLocalStorageuiEXT (GLsizei offset, GLsizei n, const GLuint *values);
  8.1892 +#endif
  8.1893 +#endif /* GL_EXT_shader_pixel_local_storage2 */
  8.1894 +
  8.1895 +#ifndef GL_EXT_shader_texture_lod
  8.1896 +#define GL_EXT_shader_texture_lod 1
  8.1897 +#endif /* GL_EXT_shader_texture_lod */
  8.1898 +
  8.1899 +#ifndef GL_EXT_shadow_samplers
  8.1900 +#define GL_EXT_shadow_samplers 1
  8.1901 +#define GL_TEXTURE_COMPARE_MODE_EXT       0x884C
  8.1902 +#define GL_TEXTURE_COMPARE_FUNC_EXT       0x884D
  8.1903 +#define GL_COMPARE_REF_TO_TEXTURE_EXT     0x884E
  8.1904 +#define GL_SAMPLER_2D_SHADOW_EXT          0x8B62
  8.1905 +#endif /* GL_EXT_shadow_samplers */
  8.1906 +
  8.1907 +#ifndef GL_EXT_sparse_texture
  8.1908 +#define GL_EXT_sparse_texture 1
  8.1909 +#define GL_TEXTURE_SPARSE_EXT             0x91A6
  8.1910 +#define GL_VIRTUAL_PAGE_SIZE_INDEX_EXT    0x91A7
  8.1911 +#define GL_NUM_SPARSE_LEVELS_EXT          0x91AA
  8.1912 +#define GL_NUM_VIRTUAL_PAGE_SIZES_EXT     0x91A8
  8.1913 +#define GL_VIRTUAL_PAGE_SIZE_X_EXT        0x9195
  8.1914 +#define GL_VIRTUAL_PAGE_SIZE_Y_EXT        0x9196
  8.1915 +#define GL_VIRTUAL_PAGE_SIZE_Z_EXT        0x9197
  8.1916 +#define GL_TEXTURE_2D_ARRAY               0x8C1A
  8.1917 +#define GL_TEXTURE_3D                     0x806F
  8.1918 +#define GL_MAX_SPARSE_TEXTURE_SIZE_EXT    0x9198
  8.1919 +#define GL_MAX_SPARSE_3D_TEXTURE_SIZE_EXT 0x9199
  8.1920 +#define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_EXT 0x919A
  8.1921 +#define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_EXT 0x91A9
  8.1922 +typedef void (GL_APIENTRYP PFNGLTEXPAGECOMMITMENTEXTPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
  8.1923 +#ifdef GL_GLEXT_PROTOTYPES
  8.1924 +GL_APICALL void GL_APIENTRY glTexPageCommitmentEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLboolean commit);
  8.1925 +#endif
  8.1926 +#endif /* GL_EXT_sparse_texture */
  8.1927 +
  8.1928 +#ifndef GL_EXT_sparse_texture2
  8.1929 +#define GL_EXT_sparse_texture2 1
  8.1930 +#endif /* GL_EXT_sparse_texture2 */
  8.1931 +
  8.1932 +#ifndef GL_EXT_tessellation_point_size
  8.1933 +#define GL_EXT_tessellation_point_size 1
  8.1934 +#endif /* GL_EXT_tessellation_point_size */
  8.1935 +
  8.1936 +#ifndef GL_EXT_tessellation_shader
  8.1937 +#define GL_EXT_tessellation_shader 1
  8.1938 +#define GL_PATCHES_EXT                    0x000E
  8.1939 +#define GL_PATCH_VERTICES_EXT             0x8E72
  8.1940 +#define GL_TESS_CONTROL_OUTPUT_VERTICES_EXT 0x8E75
  8.1941 +#define GL_TESS_GEN_MODE_EXT              0x8E76
  8.1942 +#define GL_TESS_GEN_SPACING_EXT           0x8E77
  8.1943 +#define GL_TESS_GEN_VERTEX_ORDER_EXT      0x8E78
  8.1944 +#define GL_TESS_GEN_POINT_MODE_EXT        0x8E79
  8.1945 +#define GL_ISOLINES_EXT                   0x8E7A
  8.1946 +#define GL_QUADS_EXT                      0x0007
  8.1947 +#define GL_FRACTIONAL_ODD_EXT             0x8E7B
  8.1948 +#define GL_FRACTIONAL_EVEN_EXT            0x8E7C
  8.1949 +#define GL_MAX_PATCH_VERTICES_EXT         0x8E7D
  8.1950 +#define GL_MAX_TESS_GEN_LEVEL_EXT         0x8E7E
  8.1951 +#define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS_EXT 0x8E7F
  8.1952 +#define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT 0x8E80
  8.1953 +#define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS_EXT 0x8E81
  8.1954 +#define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS_EXT 0x8E82
  8.1955 +#define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS_EXT 0x8E83
  8.1956 +#define GL_MAX_TESS_PATCH_COMPONENTS_EXT  0x8E84
  8.1957 +#define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS_EXT 0x8E85
  8.1958 +#define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS_EXT 0x8E86
  8.1959 +#define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS_EXT 0x8E89
  8.1960 +#define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS_EXT 0x8E8A
  8.1961 +#define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS_EXT 0x886C
  8.1962 +#define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS_EXT 0x886D
  8.1963 +#define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS_EXT 0x8E1E
  8.1964 +#define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS_EXT 0x8E1F
  8.1965 +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS_EXT 0x92CD
  8.1966 +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS_EXT 0x92CE
  8.1967 +#define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS_EXT 0x92D3
  8.1968 +#define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS_EXT 0x92D4
  8.1969 +#define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS_EXT 0x90CB
  8.1970 +#define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS_EXT 0x90CC
  8.1971 +#define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS_EXT 0x90D8
  8.1972 +#define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS_EXT 0x90D9
  8.1973 +#define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
  8.1974 +#define GL_IS_PER_PATCH_EXT               0x92E7
  8.1975 +#define GL_REFERENCED_BY_TESS_CONTROL_SHADER_EXT 0x9307
  8.1976 +#define GL_REFERENCED_BY_TESS_EVALUATION_SHADER_EXT 0x9308
  8.1977 +#define GL_TESS_CONTROL_SHADER_EXT        0x8E88
  8.1978 +#define GL_TESS_EVALUATION_SHADER_EXT     0x8E87
  8.1979 +#define GL_TESS_CONTROL_SHADER_BIT_EXT    0x00000008
  8.1980 +#define GL_TESS_EVALUATION_SHADER_BIT_EXT 0x00000010
  8.1981 +typedef void (GL_APIENTRYP PFNGLPATCHPARAMETERIEXTPROC) (GLenum pname, GLint value);
  8.1982 +#ifdef GL_GLEXT_PROTOTYPES
  8.1983 +GL_APICALL void GL_APIENTRY glPatchParameteriEXT (GLenum pname, GLint value);
  8.1984 +#endif
  8.1985 +#endif /* GL_EXT_tessellation_shader */
  8.1986 +
  8.1987 +#ifndef GL_EXT_texture_border_clamp
  8.1988 +#define GL_EXT_texture_border_clamp 1
  8.1989 +#define GL_TEXTURE_BORDER_COLOR_EXT       0x1004
  8.1990 +#define GL_CLAMP_TO_BORDER_EXT            0x812D
  8.1991 +typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, const GLint *params);
  8.1992 +typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, const GLuint *params);
  8.1993 +typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
  8.1994 +typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIUIVEXTPROC) (GLenum target, GLenum pname, GLuint *params);
  8.1995 +typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIIVEXTPROC) (GLuint sampler, GLenum pname, const GLint *param);
  8.1996 +typedef void (GL_APIENTRYP PFNGLSAMPLERPARAMETERIUIVEXTPROC) (GLuint sampler, GLenum pname, const GLuint *param);
  8.1997 +typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIIVEXTPROC) (GLuint sampler, GLenum pname, GLint *params);
  8.1998 +typedef void (GL_APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVEXTPROC) (GLuint sampler, GLenum pname, GLuint *params);
  8.1999 +#ifdef GL_GLEXT_PROTOTYPES
  8.2000 +GL_APICALL void GL_APIENTRY glTexParameterIivEXT (GLenum target, GLenum pname, const GLint *params);
  8.2001 +GL_APICALL void GL_APIENTRY glTexParameterIuivEXT (GLenum target, GLenum pname, const GLuint *params);
  8.2002 +GL_APICALL void GL_APIENTRY glGetTexParameterIivEXT (GLenum target, GLenum pname, GLint *params);
  8.2003 +GL_APICALL void GL_APIENTRY glGetTexParameterIuivEXT (GLenum target, GLenum pname, GLuint *params);
  8.2004 +GL_APICALL void GL_APIENTRY glSamplerParameterIivEXT (GLuint sampler, GLenum pname, const GLint *param);
  8.2005 +GL_APICALL void GL_APIENTRY glSamplerParameterIuivEXT (GLuint sampler, GLenum pname, const GLuint *param);
  8.2006 +GL_APICALL void GL_APIENTRY glGetSamplerParameterIivEXT (GLuint sampler, GLenum pname, GLint *params);
  8.2007 +GL_APICALL void GL_APIENTRY glGetSamplerParameterIuivEXT (GLuint sampler, GLenum pname, GLuint *params);
  8.2008 +#endif
  8.2009 +#endif /* GL_EXT_texture_border_clamp */
  8.2010 +
  8.2011 +#ifndef GL_EXT_texture_buffer
  8.2012 +#define GL_EXT_texture_buffer 1
  8.2013 +#define GL_TEXTURE_BUFFER_EXT             0x8C2A
  8.2014 +#define GL_TEXTURE_BUFFER_BINDING_EXT     0x8C2A
  8.2015 +#define GL_MAX_TEXTURE_BUFFER_SIZE_EXT    0x8C2B
  8.2016 +#define GL_TEXTURE_BINDING_BUFFER_EXT     0x8C2C
  8.2017 +#define GL_TEXTURE_BUFFER_DATA_STORE_BINDING_EXT 0x8C2D
  8.2018 +#define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT_EXT 0x919F
  8.2019 +#define GL_SAMPLER_BUFFER_EXT             0x8DC2
  8.2020 +#define GL_INT_SAMPLER_BUFFER_EXT         0x8DD0
  8.2021 +#define GL_UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8
  8.2022 +#define GL_IMAGE_BUFFER_EXT               0x9051
  8.2023 +#define GL_INT_IMAGE_BUFFER_EXT           0x905C
  8.2024 +#define GL_UNSIGNED_INT_IMAGE_BUFFER_EXT  0x9067
  8.2025 +#define GL_TEXTURE_BUFFER_OFFSET_EXT      0x919D
  8.2026 +#define GL_TEXTURE_BUFFER_SIZE_EXT        0x919E
  8.2027 +typedef void (GL_APIENTRYP PFNGLTEXBUFFEREXTPROC) (GLenum target, GLenum internalformat, GLuint buffer);
  8.2028 +typedef void (GL_APIENTRYP PFNGLTEXBUFFERRANGEEXTPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  8.2029 +#ifdef GL_GLEXT_PROTOTYPES
  8.2030 +GL_APICALL void GL_APIENTRY glTexBufferEXT (GLenum target, GLenum internalformat, GLuint buffer);
  8.2031 +GL_APICALL void GL_APIENTRY glTexBufferRangeEXT (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  8.2032 +#endif
  8.2033 +#endif /* GL_EXT_texture_buffer */
  8.2034 +
  8.2035 +#ifndef GL_EXT_texture_compression_astc_decode_mode
  8.2036 +#define GL_EXT_texture_compression_astc_decode_mode 1
  8.2037 +#define GL_TEXTURE_ASTC_DECODE_PRECISION_EXT 0x8F69
  8.2038 +#endif /* GL_EXT_texture_compression_astc_decode_mode */
  8.2039 +
  8.2040 +#ifndef GL_EXT_texture_compression_bptc
  8.2041 +#define GL_EXT_texture_compression_bptc 1
  8.2042 +#define GL_COMPRESSED_RGBA_BPTC_UNORM_EXT 0x8E8C
  8.2043 +#define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT 0x8E8D
  8.2044 +#define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT 0x8E8E
  8.2045 +#define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT 0x8E8F
  8.2046 +#endif /* GL_EXT_texture_compression_bptc */
  8.2047 +
  8.2048 +#ifndef GL_EXT_texture_compression_dxt1
  8.2049 +#define GL_EXT_texture_compression_dxt1 1
  8.2050 +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0
  8.2051 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT  0x83F1
  8.2052 +#endif /* GL_EXT_texture_compression_dxt1 */
  8.2053 +
  8.2054 +#ifndef GL_EXT_texture_compression_rgtc
  8.2055 +#define GL_EXT_texture_compression_rgtc 1
  8.2056 +#define GL_COMPRESSED_RED_RGTC1_EXT       0x8DBB
  8.2057 +#define GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC
  8.2058 +#define GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD
  8.2059 +#define GL_COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT 0x8DBE
  8.2060 +#endif /* GL_EXT_texture_compression_rgtc */
  8.2061 +
  8.2062 +#ifndef GL_EXT_texture_compression_s3tc
  8.2063 +#define GL_EXT_texture_compression_s3tc 1
  8.2064 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT  0x83F2
  8.2065 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT  0x83F3
  8.2066 +#endif /* GL_EXT_texture_compression_s3tc */
  8.2067 +
  8.2068 +#ifndef GL_EXT_texture_compression_s3tc_srgb
  8.2069 +#define GL_EXT_texture_compression_s3tc_srgb 1
  8.2070 +#define GL_COMPRESSED_SRGB_S3TC_DXT1_EXT  0x8C4C
  8.2071 +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT 0x8C4D
  8.2072 +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT 0x8C4E
  8.2073 +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT 0x8C4F
  8.2074 +#endif /* GL_EXT_texture_compression_s3tc_srgb */
  8.2075 +
  8.2076 +#ifndef GL_EXT_texture_cube_map_array
  8.2077 +#define GL_EXT_texture_cube_map_array 1
  8.2078 +#define GL_TEXTURE_CUBE_MAP_ARRAY_EXT     0x9009
  8.2079 +#define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_EXT 0x900A
  8.2080 +#define GL_SAMPLER_CUBE_MAP_ARRAY_EXT     0x900C
  8.2081 +#define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_EXT 0x900D
  8.2082 +#define GL_INT_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900E
  8.2083 +#define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_EXT 0x900F
  8.2084 +#define GL_IMAGE_CUBE_MAP_ARRAY_EXT       0x9054
  8.2085 +#define GL_INT_IMAGE_CUBE_MAP_ARRAY_EXT   0x905F
  8.2086 +#define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT 0x906A
  8.2087 +#endif /* GL_EXT_texture_cube_map_array */
  8.2088 +
  8.2089 +#ifndef GL_EXT_texture_filter_anisotropic
  8.2090 +#define GL_EXT_texture_filter_anisotropic 1
  8.2091 +#define GL_TEXTURE_MAX_ANISOTROPY_EXT     0x84FE
  8.2092 +#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
  8.2093 +#endif /* GL_EXT_texture_filter_anisotropic */
  8.2094 +
  8.2095 +#ifndef GL_EXT_texture_filter_minmax
  8.2096 +#define GL_EXT_texture_filter_minmax 1
  8.2097 +#endif /* GL_EXT_texture_filter_minmax */
  8.2098 +
  8.2099 +#ifndef GL_EXT_texture_format_BGRA8888
  8.2100 +#define GL_EXT_texture_format_BGRA8888 1
  8.2101 +#endif /* GL_EXT_texture_format_BGRA8888 */
  8.2102 +
  8.2103 +#ifndef GL_EXT_texture_norm16
  8.2104 +#define GL_EXT_texture_norm16 1
  8.2105 +#define GL_R16_EXT                        0x822A
  8.2106 +#define GL_RG16_EXT                       0x822C
  8.2107 +#define GL_RGBA16_EXT                     0x805B
  8.2108 +#define GL_RGB16_EXT                      0x8054
  8.2109 +#define GL_RGB16_SNORM_EXT                0x8F9A
  8.2110 +#endif /* GL_EXT_texture_norm16 */
  8.2111 +
  8.2112 +#ifndef GL_EXT_texture_rg
  8.2113 +#define GL_EXT_texture_rg 1
  8.2114 +#define GL_RED_EXT                        0x1903
  8.2115 +#define GL_RG_EXT                         0x8227
  8.2116 +#define GL_R8_EXT                         0x8229
  8.2117 +#define GL_RG8_EXT                        0x822B
  8.2118 +#endif /* GL_EXT_texture_rg */
  8.2119 +
  8.2120 +#ifndef GL_EXT_texture_sRGB_R8
  8.2121 +#define GL_EXT_texture_sRGB_R8 1
  8.2122 +#define GL_SR8_EXT                        0x8FBD
  8.2123 +#endif /* GL_EXT_texture_sRGB_R8 */
  8.2124 +
  8.2125 +#ifndef GL_EXT_texture_sRGB_RG8
  8.2126 +#define GL_EXT_texture_sRGB_RG8 1
  8.2127 +#define GL_SRG8_EXT                       0x8FBE
  8.2128 +#endif /* GL_EXT_texture_sRGB_RG8 */
  8.2129 +
  8.2130 +#ifndef GL_EXT_texture_sRGB_decode
  8.2131 +#define GL_EXT_texture_sRGB_decode 1
  8.2132 +#define GL_TEXTURE_SRGB_DECODE_EXT        0x8A48
  8.2133 +#define GL_DECODE_EXT                     0x8A49
  8.2134 +#define GL_SKIP_DECODE_EXT                0x8A4A
  8.2135 +#endif /* GL_EXT_texture_sRGB_decode */
  8.2136 +
  8.2137 +#ifndef GL_EXT_texture_storage
  8.2138 +#define GL_EXT_texture_storage 1
  8.2139 +#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT   0x912F
  8.2140 +#define GL_ALPHA8_EXT                     0x803C
  8.2141 +#define GL_LUMINANCE8_EXT                 0x8040
  8.2142 +#define GL_LUMINANCE8_ALPHA8_EXT          0x8045
  8.2143 +#define GL_RGBA32F_EXT                    0x8814
  8.2144 +#define GL_RGB32F_EXT                     0x8815
  8.2145 +#define GL_ALPHA32F_EXT                   0x8816
  8.2146 +#define GL_LUMINANCE32F_EXT               0x8818
  8.2147 +#define GL_LUMINANCE_ALPHA32F_EXT         0x8819
  8.2148 +#define GL_ALPHA16F_EXT                   0x881C
  8.2149 +#define GL_LUMINANCE16F_EXT               0x881E
  8.2150 +#define GL_LUMINANCE_ALPHA16F_EXT         0x881F
  8.2151 +#define GL_R32F_EXT                       0x822E
  8.2152 +#define GL_RG32F_EXT                      0x8230
  8.2153 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  8.2154 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  8.2155 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  8.2156 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  8.2157 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  8.2158 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  8.2159 +#ifdef GL_GLEXT_PROTOTYPES
  8.2160 +GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  8.2161 +GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  8.2162 +GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  8.2163 +GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  8.2164 +GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  8.2165 +GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  8.2166 +#endif
  8.2167 +#endif /* GL_EXT_texture_storage */
  8.2168 +
  8.2169 +#ifndef GL_EXT_texture_type_2_10_10_10_REV
  8.2170 +#define GL_EXT_texture_type_2_10_10_10_REV 1
  8.2171 +#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368
  8.2172 +#endif /* GL_EXT_texture_type_2_10_10_10_REV */
  8.2173 +
  8.2174 +#ifndef GL_EXT_texture_view
  8.2175 +#define GL_EXT_texture_view 1
  8.2176 +#define GL_TEXTURE_VIEW_MIN_LEVEL_EXT     0x82DB
  8.2177 +#define GL_TEXTURE_VIEW_NUM_LEVELS_EXT    0x82DC
  8.2178 +#define GL_TEXTURE_VIEW_MIN_LAYER_EXT     0x82DD
  8.2179 +#define GL_TEXTURE_VIEW_NUM_LAYERS_EXT    0x82DE
  8.2180 +typedef void (GL_APIENTRYP PFNGLTEXTUREVIEWEXTPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
  8.2181 +#ifdef GL_GLEXT_PROTOTYPES
  8.2182 +GL_APICALL void GL_APIENTRY glTextureViewEXT (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
  8.2183 +#endif
  8.2184 +#endif /* GL_EXT_texture_view */
  8.2185 +
  8.2186 +#ifndef GL_EXT_unpack_subimage
  8.2187 +#define GL_EXT_unpack_subimage 1
  8.2188 +#define GL_UNPACK_ROW_LENGTH_EXT          0x0CF2
  8.2189 +#define GL_UNPACK_SKIP_ROWS_EXT           0x0CF3
  8.2190 +#define GL_UNPACK_SKIP_PIXELS_EXT         0x0CF4
  8.2191 +#endif /* GL_EXT_unpack_subimage */
  8.2192 +
  8.2193 +#ifndef GL_EXT_win32_keyed_mutex
  8.2194 +#define GL_EXT_win32_keyed_mutex 1
  8.2195 +typedef GLboolean (GL_APIENTRYP PFNGLACQUIREKEYEDMUTEXWIN32EXTPROC) (GLuint memory, GLuint64 key, GLuint timeout);
  8.2196 +typedef GLboolean (GL_APIENTRYP PFNGLRELEASEKEYEDMUTEXWIN32EXTPROC) (GLuint memory, GLuint64 key);
  8.2197 +#ifdef GL_GLEXT_PROTOTYPES
  8.2198 +GL_APICALL GLboolean GL_APIENTRY glAcquireKeyedMutexWin32EXT (GLuint memory, GLuint64 key, GLuint timeout);
  8.2199 +GL_APICALL GLboolean GL_APIENTRY glReleaseKeyedMutexWin32EXT (GLuint memory, GLuint64 key);
  8.2200 +#endif
  8.2201 +#endif /* GL_EXT_win32_keyed_mutex */
  8.2202 +
  8.2203 +#ifndef GL_EXT_window_rectangles
  8.2204 +#define GL_EXT_window_rectangles 1
  8.2205 +#define GL_INCLUSIVE_EXT                  0x8F10
  8.2206 +#define GL_EXCLUSIVE_EXT                  0x8F11
  8.2207 +#define GL_WINDOW_RECTANGLE_EXT           0x8F12
  8.2208 +#define GL_WINDOW_RECTANGLE_MODE_EXT      0x8F13
  8.2209 +#define GL_MAX_WINDOW_RECTANGLES_EXT      0x8F14
  8.2210 +#define GL_NUM_WINDOW_RECTANGLES_EXT      0x8F15
  8.2211 +typedef void (GL_APIENTRYP PFNGLWINDOWRECTANGLESEXTPROC) (GLenum mode, GLsizei count, const GLint *box);
  8.2212 +#ifdef GL_GLEXT_PROTOTYPES
  8.2213 +GL_APICALL void GL_APIENTRY glWindowRectanglesEXT (GLenum mode, GLsizei count, const GLint *box);
  8.2214 +#endif
  8.2215 +#endif /* GL_EXT_window_rectangles */
  8.2216 +
  8.2217 +#ifndef GL_FJ_shader_binary_GCCSO
  8.2218 +#define GL_FJ_shader_binary_GCCSO 1
  8.2219 +#define GL_GCCSO_SHADER_BINARY_FJ         0x9260
  8.2220 +#endif /* GL_FJ_shader_binary_GCCSO */
  8.2221 +
  8.2222 +#ifndef GL_IMG_bindless_texture
  8.2223 +#define GL_IMG_bindless_texture 1
  8.2224 +typedef GLuint64 (GL_APIENTRYP PFNGLGETTEXTUREHANDLEIMGPROC) (GLuint texture);
  8.2225 +typedef GLuint64 (GL_APIENTRYP PFNGLGETTEXTURESAMPLERHANDLEIMGPROC) (GLuint texture, GLuint sampler);
  8.2226 +typedef void (GL_APIENTRYP PFNGLUNIFORMHANDLEUI64IMGPROC) (GLint location, GLuint64 value);
  8.2227 +typedef void (GL_APIENTRYP PFNGLUNIFORMHANDLEUI64VIMGPROC) (GLint location, GLsizei count, const GLuint64 *value);
  8.2228 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64IMGPROC) (GLuint program, GLint location, GLuint64 value);
  8.2229 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VIMGPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
  8.2230 +#ifdef GL_GLEXT_PROTOTYPES
  8.2231 +GL_APICALL GLuint64 GL_APIENTRY glGetTextureHandleIMG (GLuint texture);
  8.2232 +GL_APICALL GLuint64 GL_APIENTRY glGetTextureSamplerHandleIMG (GLuint texture, GLuint sampler);
  8.2233 +GL_APICALL void GL_APIENTRY glUniformHandleui64IMG (GLint location, GLuint64 value);
  8.2234 +GL_APICALL void GL_APIENTRY glUniformHandleui64vIMG (GLint location, GLsizei count, const GLuint64 *value);
  8.2235 +GL_APICALL void GL_APIENTRY glProgramUniformHandleui64IMG (GLuint program, GLint location, GLuint64 value);
  8.2236 +GL_APICALL void GL_APIENTRY glProgramUniformHandleui64vIMG (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
  8.2237 +#endif
  8.2238 +#endif /* GL_IMG_bindless_texture */
  8.2239 +
  8.2240 +#ifndef GL_IMG_framebuffer_downsample
  8.2241 +#define GL_IMG_framebuffer_downsample 1
  8.2242 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_AND_DOWNSAMPLE_IMG 0x913C
  8.2243 +#define GL_NUM_DOWNSAMPLE_SCALES_IMG      0x913D
  8.2244 +#define GL_DOWNSAMPLE_SCALES_IMG          0x913E
  8.2245 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SCALE_IMG 0x913F
  8.2246 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DDOWNSAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint xscale, GLint yscale);
  8.2247 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERDOWNSAMPLEIMGPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer, GLint xscale, GLint yscale);
  8.2248 +#ifdef GL_GLEXT_PROTOTYPES
  8.2249 +GL_APICALL void GL_APIENTRY glFramebufferTexture2DDownsampleIMG (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint xscale, GLint yscale);
  8.2250 +GL_APICALL void GL_APIENTRY glFramebufferTextureLayerDownsampleIMG (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer, GLint xscale, GLint yscale);
  8.2251 +#endif
  8.2252 +#endif /* GL_IMG_framebuffer_downsample */
  8.2253 +
  8.2254 +#ifndef GL_IMG_multisampled_render_to_texture
  8.2255 +#define GL_IMG_multisampled_render_to_texture 1
  8.2256 +#define GL_RENDERBUFFER_SAMPLES_IMG       0x9133
  8.2257 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134
  8.2258 +#define GL_MAX_SAMPLES_IMG                0x9135
  8.2259 +#define GL_TEXTURE_SAMPLES_IMG            0x9136
  8.2260 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  8.2261 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  8.2262 +#ifdef GL_GLEXT_PROTOTYPES
  8.2263 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  8.2264 +GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  8.2265 +#endif
  8.2266 +#endif /* GL_IMG_multisampled_render_to_texture */
  8.2267 +
  8.2268 +#ifndef GL_IMG_program_binary
  8.2269 +#define GL_IMG_program_binary 1
  8.2270 +#define GL_SGX_PROGRAM_BINARY_IMG         0x9130
  8.2271 +#endif /* GL_IMG_program_binary */
  8.2272 +
  8.2273 +#ifndef GL_IMG_read_format
  8.2274 +#define GL_IMG_read_format 1
  8.2275 +#define GL_BGRA_IMG                       0x80E1
  8.2276 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365
  8.2277 +#endif /* GL_IMG_read_format */
  8.2278 +
  8.2279 +#ifndef GL_IMG_shader_binary
  8.2280 +#define GL_IMG_shader_binary 1
  8.2281 +#define GL_SGX_BINARY_IMG                 0x8C0A
  8.2282 +#endif /* GL_IMG_shader_binary */
  8.2283 +
  8.2284 +#ifndef GL_IMG_texture_compression_pvrtc
  8.2285 +#define GL_IMG_texture_compression_pvrtc 1
  8.2286 +#define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
  8.2287 +#define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
  8.2288 +#define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
  8.2289 +#define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
  8.2290 +#endif /* GL_IMG_texture_compression_pvrtc */
  8.2291 +
  8.2292 +#ifndef GL_IMG_texture_compression_pvrtc2
  8.2293 +#define GL_IMG_texture_compression_pvrtc2 1
  8.2294 +#define GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG 0x9137
  8.2295 +#define GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG 0x9138
  8.2296 +#endif /* GL_IMG_texture_compression_pvrtc2 */
  8.2297 +
  8.2298 +#ifndef GL_IMG_texture_filter_cubic
  8.2299 +#define GL_IMG_texture_filter_cubic 1
  8.2300 +#define GL_CUBIC_IMG                      0x9139
  8.2301 +#define GL_CUBIC_MIPMAP_NEAREST_IMG       0x913A
  8.2302 +#define GL_CUBIC_MIPMAP_LINEAR_IMG        0x913B
  8.2303 +#endif /* GL_IMG_texture_filter_cubic */
  8.2304 +
  8.2305 +#ifndef GL_INTEL_conservative_rasterization
  8.2306 +#define GL_INTEL_conservative_rasterization 1
  8.2307 +#define GL_CONSERVATIVE_RASTERIZATION_INTEL 0x83FE
  8.2308 +#endif /* GL_INTEL_conservative_rasterization */
  8.2309 +
  8.2310 +#ifndef GL_INTEL_framebuffer_CMAA
  8.2311 +#define GL_INTEL_framebuffer_CMAA 1
  8.2312 +typedef void (GL_APIENTRYP PFNGLAPPLYFRAMEBUFFERATTACHMENTCMAAINTELPROC) (void);
  8.2313 +#ifdef GL_GLEXT_PROTOTYPES
  8.2314 +GL_APICALL void GL_APIENTRY glApplyFramebufferAttachmentCMAAINTEL (void);
  8.2315 +#endif
  8.2316 +#endif /* GL_INTEL_framebuffer_CMAA */
  8.2317 +
  8.2318 +#ifndef GL_INTEL_performance_query
  8.2319 +#define GL_INTEL_performance_query 1
  8.2320 +#define GL_PERFQUERY_SINGLE_CONTEXT_INTEL 0x00000000
  8.2321 +#define GL_PERFQUERY_GLOBAL_CONTEXT_INTEL 0x00000001
  8.2322 +#define GL_PERFQUERY_WAIT_INTEL           0x83FB
  8.2323 +#define GL_PERFQUERY_FLUSH_INTEL          0x83FA
  8.2324 +#define GL_PERFQUERY_DONOT_FLUSH_INTEL    0x83F9
  8.2325 +#define GL_PERFQUERY_COUNTER_EVENT_INTEL  0x94F0
  8.2326 +#define GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL 0x94F1
  8.2327 +#define GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL 0x94F2
  8.2328 +#define GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL 0x94F3
  8.2329 +#define GL_PERFQUERY_COUNTER_RAW_INTEL    0x94F4
  8.2330 +#define GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL 0x94F5
  8.2331 +#define GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL 0x94F8
  8.2332 +#define GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL 0x94F9
  8.2333 +#define GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL 0x94FA
  8.2334 +#define GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL 0x94FB
  8.2335 +#define GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL 0x94FC
  8.2336 +#define GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL 0x94FD
  8.2337 +#define GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL 0x94FE
  8.2338 +#define GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL 0x94FF
  8.2339 +#define GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL 0x9500
  8.2340 +typedef void (GL_APIENTRYP PFNGLBEGINPERFQUERYINTELPROC) (GLuint queryHandle);
  8.2341 +typedef void (GL_APIENTRYP PFNGLCREATEPERFQUERYINTELPROC) (GLuint queryId, GLuint *queryHandle);
  8.2342 +typedef void (GL_APIENTRYP PFNGLDELETEPERFQUERYINTELPROC) (GLuint queryHandle);
  8.2343 +typedef void (GL_APIENTRYP PFNGLENDPERFQUERYINTELPROC) (GLuint queryHandle);
  8.2344 +typedef void (GL_APIENTRYP PFNGLGETFIRSTPERFQUERYIDINTELPROC) (GLuint *queryId);
  8.2345 +typedef void (GL_APIENTRYP PFNGLGETNEXTPERFQUERYIDINTELPROC) (GLuint queryId, GLuint *nextQueryId);
  8.2346 +typedef void (GL_APIENTRYP PFNGLGETPERFCOUNTERINFOINTELPROC) (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
  8.2347 +typedef void (GL_APIENTRYP PFNGLGETPERFQUERYDATAINTELPROC) (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten);
  8.2348 +typedef void (GL_APIENTRYP PFNGLGETPERFQUERYIDBYNAMEINTELPROC) (GLchar *queryName, GLuint *queryId);
  8.2349 +typedef void (GL_APIENTRYP PFNGLGETPERFQUERYINFOINTELPROC) (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
  8.2350 +#ifdef GL_GLEXT_PROTOTYPES
  8.2351 +GL_APICALL void GL_APIENTRY glBeginPerfQueryINTEL (GLuint queryHandle);
  8.2352 +GL_APICALL void GL_APIENTRY glCreatePerfQueryINTEL (GLuint queryId, GLuint *queryHandle);
  8.2353 +GL_APICALL void GL_APIENTRY glDeletePerfQueryINTEL (GLuint queryHandle);
  8.2354 +GL_APICALL void GL_APIENTRY glEndPerfQueryINTEL (GLuint queryHandle);
  8.2355 +GL_APICALL void GL_APIENTRY glGetFirstPerfQueryIdINTEL (GLuint *queryId);
  8.2356 +GL_APICALL void GL_APIENTRY glGetNextPerfQueryIdINTEL (GLuint queryId, GLuint *nextQueryId);
  8.2357 +GL_APICALL void GL_APIENTRY glGetPerfCounterInfoINTEL (GLuint queryId, GLuint counterId, GLuint counterNameLength, GLchar *counterName, GLuint counterDescLength, GLchar *counterDesc, GLuint *counterOffset, GLuint *counterDataSize, GLuint *counterTypeEnum, GLuint *counterDataTypeEnum, GLuint64 *rawCounterMaxValue);
  8.2358 +GL_APICALL void GL_APIENTRY glGetPerfQueryDataINTEL (GLuint queryHandle, GLuint flags, GLsizei dataSize, GLvoid *data, GLuint *bytesWritten);
  8.2359 +GL_APICALL void GL_APIENTRY glGetPerfQueryIdByNameINTEL (GLchar *queryName, GLuint *queryId);
  8.2360 +GL_APICALL void GL_APIENTRY glGetPerfQueryInfoINTEL (GLuint queryId, GLuint queryNameLength, GLchar *queryName, GLuint *dataSize, GLuint *noCounters, GLuint *noInstances, GLuint *capsMask);
  8.2361 +#endif
  8.2362 +#endif /* GL_INTEL_performance_query */
  8.2363 +
  8.2364 +#ifndef GL_MESA_shader_integer_functions
  8.2365 +#define GL_MESA_shader_integer_functions 1
  8.2366 +#endif /* GL_MESA_shader_integer_functions */
  8.2367 +
  8.2368 +#ifndef GL_NVX_blend_equation_advanced_multi_draw_buffers
  8.2369 +#define GL_NVX_blend_equation_advanced_multi_draw_buffers 1
  8.2370 +#endif /* GL_NVX_blend_equation_advanced_multi_draw_buffers */
  8.2371 +
  8.2372 +#ifndef GL_NV_bindless_texture
  8.2373 +#define GL_NV_bindless_texture 1
  8.2374 +typedef GLuint64 (GL_APIENTRYP PFNGLGETTEXTUREHANDLENVPROC) (GLuint texture);
  8.2375 +typedef GLuint64 (GL_APIENTRYP PFNGLGETTEXTURESAMPLERHANDLENVPROC) (GLuint texture, GLuint sampler);
  8.2376 +typedef void (GL_APIENTRYP PFNGLMAKETEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
  8.2377 +typedef void (GL_APIENTRYP PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC) (GLuint64 handle);
  8.2378 +typedef GLuint64 (GL_APIENTRYP PFNGLGETIMAGEHANDLENVPROC) (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
  8.2379 +typedef void (GL_APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access);
  8.2380 +typedef void (GL_APIENTRYP PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC) (GLuint64 handle);
  8.2381 +typedef void (GL_APIENTRYP PFNGLUNIFORMHANDLEUI64NVPROC) (GLint location, GLuint64 value);
  8.2382 +typedef void (GL_APIENTRYP PFNGLUNIFORMHANDLEUI64VNVPROC) (GLint location, GLsizei count, const GLuint64 *value);
  8.2383 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC) (GLuint program, GLint location, GLuint64 value);
  8.2384 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
  8.2385 +typedef GLboolean (GL_APIENTRYP PFNGLISTEXTUREHANDLERESIDENTNVPROC) (GLuint64 handle);
  8.2386 +typedef GLboolean (GL_APIENTRYP PFNGLISIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle);
  8.2387 +#ifdef GL_GLEXT_PROTOTYPES
  8.2388 +GL_APICALL GLuint64 GL_APIENTRY glGetTextureHandleNV (GLuint texture);
  8.2389 +GL_APICALL GLuint64 GL_APIENTRY glGetTextureSamplerHandleNV (GLuint texture, GLuint sampler);
  8.2390 +GL_APICALL void GL_APIENTRY glMakeTextureHandleResidentNV (GLuint64 handle);
  8.2391 +GL_APICALL void GL_APIENTRY glMakeTextureHandleNonResidentNV (GLuint64 handle);
  8.2392 +GL_APICALL GLuint64 GL_APIENTRY glGetImageHandleNV (GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum format);
  8.2393 +GL_APICALL void GL_APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access);
  8.2394 +GL_APICALL void GL_APIENTRY glMakeImageHandleNonResidentNV (GLuint64 handle);
  8.2395 +GL_APICALL void GL_APIENTRY glUniformHandleui64NV (GLint location, GLuint64 value);
  8.2396 +GL_APICALL void GL_APIENTRY glUniformHandleui64vNV (GLint location, GLsizei count, const GLuint64 *value);
  8.2397 +GL_APICALL void GL_APIENTRY glProgramUniformHandleui64NV (GLuint program, GLint location, GLuint64 value);
  8.2398 +GL_APICALL void GL_APIENTRY glProgramUniformHandleui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64 *values);
  8.2399 +GL_APICALL GLboolean GL_APIENTRY glIsTextureHandleResidentNV (GLuint64 handle);
  8.2400 +GL_APICALL GLboolean GL_APIENTRY glIsImageHandleResidentNV (GLuint64 handle);
  8.2401 +#endif
  8.2402 +#endif /* GL_NV_bindless_texture */
  8.2403 +
  8.2404 +#ifndef GL_NV_blend_equation_advanced
  8.2405 +#define GL_NV_blend_equation_advanced 1
  8.2406 +#define GL_BLEND_OVERLAP_NV               0x9281
  8.2407 +#define GL_BLEND_PREMULTIPLIED_SRC_NV     0x9280
  8.2408 +#define GL_BLUE_NV                        0x1905
  8.2409 +#define GL_COLORBURN_NV                   0x929A
  8.2410 +#define GL_COLORDODGE_NV                  0x9299
  8.2411 +#define GL_CONJOINT_NV                    0x9284
  8.2412 +#define GL_CONTRAST_NV                    0x92A1
  8.2413 +#define GL_DARKEN_NV                      0x9297
  8.2414 +#define GL_DIFFERENCE_NV                  0x929E
  8.2415 +#define GL_DISJOINT_NV                    0x9283
  8.2416 +#define GL_DST_ATOP_NV                    0x928F
  8.2417 +#define GL_DST_IN_NV                      0x928B
  8.2418 +#define GL_DST_NV                         0x9287
  8.2419 +#define GL_DST_OUT_NV                     0x928D
  8.2420 +#define GL_DST_OVER_NV                    0x9289
  8.2421 +#define GL_EXCLUSION_NV                   0x92A0
  8.2422 +#define GL_GREEN_NV                       0x1904
  8.2423 +#define GL_HARDLIGHT_NV                   0x929B
  8.2424 +#define GL_HARDMIX_NV                     0x92A9
  8.2425 +#define GL_HSL_COLOR_NV                   0x92AF
  8.2426 +#define GL_HSL_HUE_NV                     0x92AD
  8.2427 +#define GL_HSL_LUMINOSITY_NV              0x92B0
  8.2428 +#define GL_HSL_SATURATION_NV              0x92AE
  8.2429 +#define GL_INVERT_OVG_NV                  0x92B4
  8.2430 +#define GL_INVERT_RGB_NV                  0x92A3
  8.2431 +#define GL_LIGHTEN_NV                     0x9298
  8.2432 +#define GL_LINEARBURN_NV                  0x92A5
  8.2433 +#define GL_LINEARDODGE_NV                 0x92A4
  8.2434 +#define GL_LINEARLIGHT_NV                 0x92A7
  8.2435 +#define GL_MINUS_CLAMPED_NV               0x92B3
  8.2436 +#define GL_MINUS_NV                       0x929F
  8.2437 +#define GL_MULTIPLY_NV                    0x9294
  8.2438 +#define GL_OVERLAY_NV                     0x9296
  8.2439 +#define GL_PINLIGHT_NV                    0x92A8
  8.2440 +#define GL_PLUS_CLAMPED_ALPHA_NV          0x92B2
  8.2441 +#define GL_PLUS_CLAMPED_NV                0x92B1
  8.2442 +#define GL_PLUS_DARKER_NV                 0x9292
  8.2443 +#define GL_PLUS_NV                        0x9291
  8.2444 +#define GL_RED_NV                         0x1903
  8.2445 +#define GL_SCREEN_NV                      0x9295
  8.2446 +#define GL_SOFTLIGHT_NV                   0x929C
  8.2447 +#define GL_SRC_ATOP_NV                    0x928E
  8.2448 +#define GL_SRC_IN_NV                      0x928A
  8.2449 +#define GL_SRC_NV                         0x9286
  8.2450 +#define GL_SRC_OUT_NV                     0x928C
  8.2451 +#define GL_SRC_OVER_NV                    0x9288
  8.2452 +#define GL_UNCORRELATED_NV                0x9282
  8.2453 +#define GL_VIVIDLIGHT_NV                  0x92A6
  8.2454 +#define GL_XOR_NV                         0x1506
  8.2455 +typedef void (GL_APIENTRYP PFNGLBLENDPARAMETERINVPROC) (GLenum pname, GLint value);
  8.2456 +typedef void (GL_APIENTRYP PFNGLBLENDBARRIERNVPROC) (void);
  8.2457 +#ifdef GL_GLEXT_PROTOTYPES
  8.2458 +GL_APICALL void GL_APIENTRY glBlendParameteriNV (GLenum pname, GLint value);
  8.2459 +GL_APICALL void GL_APIENTRY glBlendBarrierNV (void);
  8.2460 +#endif
  8.2461 +#endif /* GL_NV_blend_equation_advanced */
  8.2462 +
  8.2463 +#ifndef GL_NV_blend_equation_advanced_coherent
  8.2464 +#define GL_NV_blend_equation_advanced_coherent 1
  8.2465 +#define GL_BLEND_ADVANCED_COHERENT_NV     0x9285
  8.2466 +#endif /* GL_NV_blend_equation_advanced_coherent */
  8.2467 +
  8.2468 +#ifndef GL_NV_blend_minmax_factor
  8.2469 +#define GL_NV_blend_minmax_factor 1
  8.2470 +#define GL_FACTOR_MIN_AMD                 0x901C
  8.2471 +#define GL_FACTOR_MAX_AMD                 0x901D
  8.2472 +#endif /* GL_NV_blend_minmax_factor */
  8.2473 +
  8.2474 +#ifndef GL_NV_conditional_render
  8.2475 +#define GL_NV_conditional_render 1
  8.2476 +#define GL_QUERY_WAIT_NV                  0x8E13
  8.2477 +#define GL_QUERY_NO_WAIT_NV               0x8E14
  8.2478 +#define GL_QUERY_BY_REGION_WAIT_NV        0x8E15
  8.2479 +#define GL_QUERY_BY_REGION_NO_WAIT_NV     0x8E16
  8.2480 +typedef void (GL_APIENTRYP PFNGLBEGINCONDITIONALRENDERNVPROC) (GLuint id, GLenum mode);
  8.2481 +typedef void (GL_APIENTRYP PFNGLENDCONDITIONALRENDERNVPROC) (void);
  8.2482 +#ifdef GL_GLEXT_PROTOTYPES
  8.2483 +GL_APICALL void GL_APIENTRY glBeginConditionalRenderNV (GLuint id, GLenum mode);
  8.2484 +GL_APICALL void GL_APIENTRY glEndConditionalRenderNV (void);
  8.2485 +#endif
  8.2486 +#endif /* GL_NV_conditional_render */
  8.2487 +
  8.2488 +#ifndef GL_NV_conservative_raster
  8.2489 +#define GL_NV_conservative_raster 1
  8.2490 +#define GL_CONSERVATIVE_RASTERIZATION_NV  0x9346
  8.2491 +#define GL_SUBPIXEL_PRECISION_BIAS_X_BITS_NV 0x9347
  8.2492 +#define GL_SUBPIXEL_PRECISION_BIAS_Y_BITS_NV 0x9348
  8.2493 +#define GL_MAX_SUBPIXEL_PRECISION_BIAS_BITS_NV 0x9349
  8.2494 +typedef void (GL_APIENTRYP PFNGLSUBPIXELPRECISIONBIASNVPROC) (GLuint xbits, GLuint ybits);
  8.2495 +#ifdef GL_GLEXT_PROTOTYPES
  8.2496 +GL_APICALL void GL_APIENTRY glSubpixelPrecisionBiasNV (GLuint xbits, GLuint ybits);
  8.2497 +#endif
  8.2498 +#endif /* GL_NV_conservative_raster */
  8.2499 +
  8.2500 +#ifndef GL_NV_conservative_raster_pre_snap_triangles
  8.2501 +#define GL_NV_conservative_raster_pre_snap_triangles 1
  8.2502 +#define GL_CONSERVATIVE_RASTER_MODE_NV    0x954D
  8.2503 +#define GL_CONSERVATIVE_RASTER_MODE_POST_SNAP_NV 0x954E
  8.2504 +#define GL_CONSERVATIVE_RASTER_MODE_PRE_SNAP_TRIANGLES_NV 0x954F
  8.2505 +typedef void (GL_APIENTRYP PFNGLCONSERVATIVERASTERPARAMETERINVPROC) (GLenum pname, GLint param);
  8.2506 +#ifdef GL_GLEXT_PROTOTYPES
  8.2507 +GL_APICALL void GL_APIENTRY glConservativeRasterParameteriNV (GLenum pname, GLint param);
  8.2508 +#endif
  8.2509 +#endif /* GL_NV_conservative_raster_pre_snap_triangles */
  8.2510 +
  8.2511 +#ifndef GL_NV_copy_buffer
  8.2512 +#define GL_NV_copy_buffer 1
  8.2513 +#define GL_COPY_READ_BUFFER_NV            0x8F36
  8.2514 +#define GL_COPY_WRITE_BUFFER_NV           0x8F37
  8.2515 +typedef void (GL_APIENTRYP PFNGLCOPYBUFFERSUBDATANVPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  8.2516 +#ifdef GL_GLEXT_PROTOTYPES
  8.2517 +GL_APICALL void GL_APIENTRY glCopyBufferSubDataNV (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  8.2518 +#endif
  8.2519 +#endif /* GL_NV_copy_buffer */
  8.2520 +
  8.2521 +#ifndef GL_NV_coverage_sample
  8.2522 +#define GL_NV_coverage_sample 1
  8.2523 +#define GL_COVERAGE_COMPONENT_NV          0x8ED0
  8.2524 +#define GL_COVERAGE_COMPONENT4_NV         0x8ED1
  8.2525 +#define GL_COVERAGE_ATTACHMENT_NV         0x8ED2
  8.2526 +#define GL_COVERAGE_BUFFERS_NV            0x8ED3
  8.2527 +#define GL_COVERAGE_SAMPLES_NV            0x8ED4
  8.2528 +#define GL_COVERAGE_ALL_FRAGMENTS_NV      0x8ED5
  8.2529 +#define GL_COVERAGE_EDGE_FRAGMENTS_NV     0x8ED6
  8.2530 +#define GL_COVERAGE_AUTOMATIC_NV          0x8ED7
  8.2531 +#define GL_COVERAGE_BUFFER_BIT_NV         0x00008000
  8.2532 +typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
  8.2533 +typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
  8.2534 +#ifdef GL_GLEXT_PROTOTYPES
  8.2535 +GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
  8.2536 +GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
  8.2537 +#endif
  8.2538 +#endif /* GL_NV_coverage_sample */
  8.2539 +
  8.2540 +#ifndef GL_NV_depth_nonlinear
  8.2541 +#define GL_NV_depth_nonlinear 1
  8.2542 +#define GL_DEPTH_COMPONENT16_NONLINEAR_NV 0x8E2C
  8.2543 +#endif /* GL_NV_depth_nonlinear */
  8.2544 +
  8.2545 +#ifndef GL_NV_draw_buffers
  8.2546 +#define GL_NV_draw_buffers 1
  8.2547 +#define GL_MAX_DRAW_BUFFERS_NV            0x8824
  8.2548 +#define GL_DRAW_BUFFER0_NV                0x8825
  8.2549 +#define GL_DRAW_BUFFER1_NV                0x8826
  8.2550 +#define GL_DRAW_BUFFER2_NV                0x8827
  8.2551 +#define GL_DRAW_BUFFER3_NV                0x8828
  8.2552 +#define GL_DRAW_BUFFER4_NV                0x8829
  8.2553 +#define GL_DRAW_BUFFER5_NV                0x882A
  8.2554 +#define GL_DRAW_BUFFER6_NV                0x882B
  8.2555 +#define GL_DRAW_BUFFER7_NV                0x882C
  8.2556 +#define GL_DRAW_BUFFER8_NV                0x882D
  8.2557 +#define GL_DRAW_BUFFER9_NV                0x882E
  8.2558 +#define GL_DRAW_BUFFER10_NV               0x882F
  8.2559 +#define GL_DRAW_BUFFER11_NV               0x8830
  8.2560 +#define GL_DRAW_BUFFER12_NV               0x8831
  8.2561 +#define GL_DRAW_BUFFER13_NV               0x8832
  8.2562 +#define GL_DRAW_BUFFER14_NV               0x8833
  8.2563 +#define GL_DRAW_BUFFER15_NV               0x8834
  8.2564 +#define GL_COLOR_ATTACHMENT0_NV           0x8CE0
  8.2565 +#define GL_COLOR_ATTACHMENT1_NV           0x8CE1
  8.2566 +#define GL_COLOR_ATTACHMENT2_NV           0x8CE2
  8.2567 +#define GL_COLOR_ATTACHMENT3_NV           0x8CE3
  8.2568 +#define GL_COLOR_ATTACHMENT4_NV           0x8CE4
  8.2569 +#define GL_COLOR_ATTACHMENT5_NV           0x8CE5
  8.2570 +#define GL_COLOR_ATTACHMENT6_NV           0x8CE6
  8.2571 +#define GL_COLOR_ATTACHMENT7_NV           0x8CE7
  8.2572 +#define GL_COLOR_ATTACHMENT8_NV           0x8CE8
  8.2573 +#define GL_COLOR_ATTACHMENT9_NV           0x8CE9
  8.2574 +#define GL_COLOR_ATTACHMENT10_NV          0x8CEA
  8.2575 +#define GL_COLOR_ATTACHMENT11_NV          0x8CEB
  8.2576 +#define GL_COLOR_ATTACHMENT12_NV          0x8CEC
  8.2577 +#define GL_COLOR_ATTACHMENT13_NV          0x8CED
  8.2578 +#define GL_COLOR_ATTACHMENT14_NV          0x8CEE
  8.2579 +#define GL_COLOR_ATTACHMENT15_NV          0x8CEF
  8.2580 +typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
  8.2581 +#ifdef GL_GLEXT_PROTOTYPES
  8.2582 +GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
  8.2583 +#endif
  8.2584 +#endif /* GL_NV_draw_buffers */
  8.2585 +
  8.2586 +#ifndef GL_NV_draw_instanced
  8.2587 +#define GL_NV_draw_instanced 1
  8.2588 +typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDNVPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  8.2589 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDNVPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  8.2590 +#ifdef GL_GLEXT_PROTOTYPES
  8.2591 +GL_APICALL void GL_APIENTRY glDrawArraysInstancedNV (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  8.2592 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedNV (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  8.2593 +#endif
  8.2594 +#endif /* GL_NV_draw_instanced */
  8.2595 +
  8.2596 +#ifndef GL_NV_draw_vulkan_image
  8.2597 +#define GL_NV_draw_vulkan_image 1
  8.2598 +typedef void (GL_APIENTRY  *GLVULKANPROCNV)(void);
  8.2599 +typedef void (GL_APIENTRYP PFNGLDRAWVKIMAGENVPROC) (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
  8.2600 +typedef GLVULKANPROCNV (GL_APIENTRYP PFNGLGETVKPROCADDRNVPROC) (const GLchar *name);
  8.2601 +typedef void (GL_APIENTRYP PFNGLWAITVKSEMAPHORENVPROC) (GLuint64 vkSemaphore);
  8.2602 +typedef void (GL_APIENTRYP PFNGLSIGNALVKSEMAPHORENVPROC) (GLuint64 vkSemaphore);
  8.2603 +typedef void (GL_APIENTRYP PFNGLSIGNALVKFENCENVPROC) (GLuint64 vkFence);
  8.2604 +#ifdef GL_GLEXT_PROTOTYPES
  8.2605 +GL_APICALL void GL_APIENTRY glDrawVkImageNV (GLuint64 vkImage, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
  8.2606 +GL_APICALL GLVULKANPROCNV GL_APIENTRY glGetVkProcAddrNV (const GLchar *name);
  8.2607 +GL_APICALL void GL_APIENTRY glWaitVkSemaphoreNV (GLuint64 vkSemaphore);
  8.2608 +GL_APICALL void GL_APIENTRY glSignalVkSemaphoreNV (GLuint64 vkSemaphore);
  8.2609 +GL_APICALL void GL_APIENTRY glSignalVkFenceNV (GLuint64 vkFence);
  8.2610 +#endif
  8.2611 +#endif /* GL_NV_draw_vulkan_image */
  8.2612 +
  8.2613 +#ifndef GL_NV_explicit_attrib_location
  8.2614 +#define GL_NV_explicit_attrib_location 1
  8.2615 +#endif /* GL_NV_explicit_attrib_location */
  8.2616 +
  8.2617 +#ifndef GL_NV_fbo_color_attachments
  8.2618 +#define GL_NV_fbo_color_attachments 1
  8.2619 +#define GL_MAX_COLOR_ATTACHMENTS_NV       0x8CDF
  8.2620 +#endif /* GL_NV_fbo_color_attachments */
  8.2621 +
  8.2622 +#ifndef GL_NV_fence
  8.2623 +#define GL_NV_fence 1
  8.2624 +#define GL_ALL_COMPLETED_NV               0x84F2
  8.2625 +#define GL_FENCE_STATUS_NV                0x84F3
  8.2626 +#define GL_FENCE_CONDITION_NV             0x84F4
  8.2627 +typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
  8.2628 +typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
  8.2629 +typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
  8.2630 +typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
  8.2631 +typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
  8.2632 +typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
  8.2633 +typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
  8.2634 +#ifdef GL_GLEXT_PROTOTYPES
  8.2635 +GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei n, const GLuint *fences);
  8.2636 +GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei n, GLuint *fences);
  8.2637 +GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint fence);
  8.2638 +GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint fence);
  8.2639 +GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint fence, GLenum pname, GLint *params);
  8.2640 +GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint fence);
  8.2641 +GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint fence, GLenum condition);
  8.2642 +#endif
  8.2643 +#endif /* GL_NV_fence */
  8.2644 +
  8.2645 +#ifndef GL_NV_fill_rectangle
  8.2646 +#define GL_NV_fill_rectangle 1
  8.2647 +#define GL_FILL_RECTANGLE_NV              0x933C
  8.2648 +#endif /* GL_NV_fill_rectangle */
  8.2649 +
  8.2650 +#ifndef GL_NV_fragment_coverage_to_color
  8.2651 +#define GL_NV_fragment_coverage_to_color 1
  8.2652 +#define GL_FRAGMENT_COVERAGE_TO_COLOR_NV  0x92DD
  8.2653 +#define GL_FRAGMENT_COVERAGE_COLOR_NV     0x92DE
  8.2654 +typedef void (GL_APIENTRYP PFNGLFRAGMENTCOVERAGECOLORNVPROC) (GLuint color);
  8.2655 +#ifdef GL_GLEXT_PROTOTYPES
  8.2656 +GL_APICALL void GL_APIENTRY glFragmentCoverageColorNV (GLuint color);
  8.2657 +#endif
  8.2658 +#endif /* GL_NV_fragment_coverage_to_color */
  8.2659 +
  8.2660 +#ifndef GL_NV_fragment_shader_interlock
  8.2661 +#define GL_NV_fragment_shader_interlock 1
  8.2662 +#endif /* GL_NV_fragment_shader_interlock */
  8.2663 +
  8.2664 +#ifndef GL_NV_framebuffer_blit
  8.2665 +#define GL_NV_framebuffer_blit 1
  8.2666 +#define GL_READ_FRAMEBUFFER_NV            0x8CA8
  8.2667 +#define GL_DRAW_FRAMEBUFFER_NV            0x8CA9
  8.2668 +#define GL_DRAW_FRAMEBUFFER_BINDING_NV    0x8CA6
  8.2669 +#define GL_READ_FRAMEBUFFER_BINDING_NV    0x8CAA
  8.2670 +typedef void (GL_APIENTRYP PFNGLBLITFRAMEBUFFERNVPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  8.2671 +#ifdef GL_GLEXT_PROTOTYPES
  8.2672 +GL_APICALL void GL_APIENTRY glBlitFramebufferNV (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  8.2673 +#endif
  8.2674 +#endif /* GL_NV_framebuffer_blit */
  8.2675 +
  8.2676 +#ifndef GL_NV_framebuffer_mixed_samples
  8.2677 +#define GL_NV_framebuffer_mixed_samples 1
  8.2678 +#define GL_COVERAGE_MODULATION_TABLE_NV   0x9331
  8.2679 +#define GL_COLOR_SAMPLES_NV               0x8E20
  8.2680 +#define GL_DEPTH_SAMPLES_NV               0x932D
  8.2681 +#define GL_STENCIL_SAMPLES_NV             0x932E
  8.2682 +#define GL_MIXED_DEPTH_SAMPLES_SUPPORTED_NV 0x932F
  8.2683 +#define GL_MIXED_STENCIL_SAMPLES_SUPPORTED_NV 0x9330
  8.2684 +#define GL_COVERAGE_MODULATION_NV         0x9332
  8.2685 +#define GL_COVERAGE_MODULATION_TABLE_SIZE_NV 0x9333
  8.2686 +typedef void (GL_APIENTRYP PFNGLCOVERAGEMODULATIONTABLENVPROC) (GLsizei n, const GLfloat *v);
  8.2687 +typedef void (GL_APIENTRYP PFNGLGETCOVERAGEMODULATIONTABLENVPROC) (GLsizei bufsize, GLfloat *v);
  8.2688 +typedef void (GL_APIENTRYP PFNGLCOVERAGEMODULATIONNVPROC) (GLenum components);
  8.2689 +#ifdef GL_GLEXT_PROTOTYPES
  8.2690 +GL_APICALL void GL_APIENTRY glCoverageModulationTableNV (GLsizei n, const GLfloat *v);
  8.2691 +GL_APICALL void GL_APIENTRY glGetCoverageModulationTableNV (GLsizei bufsize, GLfloat *v);
  8.2692 +GL_APICALL void GL_APIENTRY glCoverageModulationNV (GLenum components);
  8.2693 +#endif
  8.2694 +#endif /* GL_NV_framebuffer_mixed_samples */
  8.2695 +
  8.2696 +#ifndef GL_NV_framebuffer_multisample
  8.2697 +#define GL_NV_framebuffer_multisample 1
  8.2698 +#define GL_RENDERBUFFER_SAMPLES_NV        0x8CAB
  8.2699 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_NV 0x8D56
  8.2700 +#define GL_MAX_SAMPLES_NV                 0x8D57
  8.2701 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLENVPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  8.2702 +#ifdef GL_GLEXT_PROTOTYPES
  8.2703 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleNV (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  8.2704 +#endif
  8.2705 +#endif /* GL_NV_framebuffer_multisample */
  8.2706 +
  8.2707 +#ifndef GL_NV_generate_mipmap_sRGB
  8.2708 +#define GL_NV_generate_mipmap_sRGB 1
  8.2709 +#endif /* GL_NV_generate_mipmap_sRGB */
  8.2710 +
  8.2711 +#ifndef GL_NV_geometry_shader_passthrough
  8.2712 +#define GL_NV_geometry_shader_passthrough 1
  8.2713 +#endif /* GL_NV_geometry_shader_passthrough */
  8.2714 +
  8.2715 +#ifndef GL_NV_gpu_shader5
  8.2716 +#define GL_NV_gpu_shader5 1
  8.2717 +typedef khronos_int64_t GLint64EXT;
  8.2718 +typedef khronos_uint64_t GLuint64EXT;
  8.2719 +#define GL_INT64_NV                       0x140E
  8.2720 +#define GL_UNSIGNED_INT64_NV              0x140F
  8.2721 +#define GL_INT8_NV                        0x8FE0
  8.2722 +#define GL_INT8_VEC2_NV                   0x8FE1
  8.2723 +#define GL_INT8_VEC3_NV                   0x8FE2
  8.2724 +#define GL_INT8_VEC4_NV                   0x8FE3
  8.2725 +#define GL_INT16_NV                       0x8FE4
  8.2726 +#define GL_INT16_VEC2_NV                  0x8FE5
  8.2727 +#define GL_INT16_VEC3_NV                  0x8FE6
  8.2728 +#define GL_INT16_VEC4_NV                  0x8FE7
  8.2729 +#define GL_INT64_VEC2_NV                  0x8FE9
  8.2730 +#define GL_INT64_VEC3_NV                  0x8FEA
  8.2731 +#define GL_INT64_VEC4_NV                  0x8FEB
  8.2732 +#define GL_UNSIGNED_INT8_NV               0x8FEC
  8.2733 +#define GL_UNSIGNED_INT8_VEC2_NV          0x8FED
  8.2734 +#define GL_UNSIGNED_INT8_VEC3_NV          0x8FEE
  8.2735 +#define GL_UNSIGNED_INT8_VEC4_NV          0x8FEF
  8.2736 +#define GL_UNSIGNED_INT16_NV              0x8FF0
  8.2737 +#define GL_UNSIGNED_INT16_VEC2_NV         0x8FF1
  8.2738 +#define GL_UNSIGNED_INT16_VEC3_NV         0x8FF2
  8.2739 +#define GL_UNSIGNED_INT16_VEC4_NV         0x8FF3
  8.2740 +#define GL_UNSIGNED_INT64_VEC2_NV         0x8FF5
  8.2741 +#define GL_UNSIGNED_INT64_VEC3_NV         0x8FF6
  8.2742 +#define GL_UNSIGNED_INT64_VEC4_NV         0x8FF7
  8.2743 +#define GL_FLOAT16_NV                     0x8FF8
  8.2744 +#define GL_FLOAT16_VEC2_NV                0x8FF9
  8.2745 +#define GL_FLOAT16_VEC3_NV                0x8FFA
  8.2746 +#define GL_FLOAT16_VEC4_NV                0x8FFB
  8.2747 +#define GL_PATCHES                        0x000E
  8.2748 +typedef void (GL_APIENTRYP PFNGLUNIFORM1I64NVPROC) (GLint location, GLint64EXT x);
  8.2749 +typedef void (GL_APIENTRYP PFNGLUNIFORM2I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y);
  8.2750 +typedef void (GL_APIENTRYP PFNGLUNIFORM3I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
  8.2751 +typedef void (GL_APIENTRYP PFNGLUNIFORM4I64NVPROC) (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
  8.2752 +typedef void (GL_APIENTRYP PFNGLUNIFORM1I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
  8.2753 +typedef void (GL_APIENTRYP PFNGLUNIFORM2I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
  8.2754 +typedef void (GL_APIENTRYP PFNGLUNIFORM3I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
  8.2755 +typedef void (GL_APIENTRYP PFNGLUNIFORM4I64VNVPROC) (GLint location, GLsizei count, const GLint64EXT *value);
  8.2756 +typedef void (GL_APIENTRYP PFNGLUNIFORM1UI64NVPROC) (GLint location, GLuint64EXT x);
  8.2757 +typedef void (GL_APIENTRYP PFNGLUNIFORM2UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y);
  8.2758 +typedef void (GL_APIENTRYP PFNGLUNIFORM3UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
  8.2759 +typedef void (GL_APIENTRYP PFNGLUNIFORM4UI64NVPROC) (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
  8.2760 +typedef void (GL_APIENTRYP PFNGLUNIFORM1UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
  8.2761 +typedef void (GL_APIENTRYP PFNGLUNIFORM2UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
  8.2762 +typedef void (GL_APIENTRYP PFNGLUNIFORM3UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
  8.2763 +typedef void (GL_APIENTRYP PFNGLUNIFORM4UI64VNVPROC) (GLint location, GLsizei count, const GLuint64EXT *value);
  8.2764 +typedef void (GL_APIENTRYP PFNGLGETUNIFORMI64VNVPROC) (GLuint program, GLint location, GLint64EXT *params);
  8.2765 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1I64NVPROC) (GLuint program, GLint location, GLint64EXT x);
  8.2766 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
  8.2767 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
  8.2768 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4I64NVPROC) (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
  8.2769 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  8.2770 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  8.2771 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  8.2772 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4I64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  8.2773 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x);
  8.2774 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
  8.2775 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
  8.2776 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UI64NVPROC) (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
  8.2777 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  8.2778 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  8.2779 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  8.2780 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4UI64VNVPROC) (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  8.2781 +#ifdef GL_GLEXT_PROTOTYPES
  8.2782 +GL_APICALL void GL_APIENTRY glUniform1i64NV (GLint location, GLint64EXT x);
  8.2783 +GL_APICALL void GL_APIENTRY glUniform2i64NV (GLint location, GLint64EXT x, GLint64EXT y);
  8.2784 +GL_APICALL void GL_APIENTRY glUniform3i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
  8.2785 +GL_APICALL void GL_APIENTRY glUniform4i64NV (GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
  8.2786 +GL_APICALL void GL_APIENTRY glUniform1i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
  8.2787 +GL_APICALL void GL_APIENTRY glUniform2i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
  8.2788 +GL_APICALL void GL_APIENTRY glUniform3i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
  8.2789 +GL_APICALL void GL_APIENTRY glUniform4i64vNV (GLint location, GLsizei count, const GLint64EXT *value);
  8.2790 +GL_APICALL void GL_APIENTRY glUniform1ui64NV (GLint location, GLuint64EXT x);
  8.2791 +GL_APICALL void GL_APIENTRY glUniform2ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y);
  8.2792 +GL_APICALL void GL_APIENTRY glUniform3ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
  8.2793 +GL_APICALL void GL_APIENTRY glUniform4ui64NV (GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
  8.2794 +GL_APICALL void GL_APIENTRY glUniform1ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
  8.2795 +GL_APICALL void GL_APIENTRY glUniform2ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
  8.2796 +GL_APICALL void GL_APIENTRY glUniform3ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
  8.2797 +GL_APICALL void GL_APIENTRY glUniform4ui64vNV (GLint location, GLsizei count, const GLuint64EXT *value);
  8.2798 +GL_APICALL void GL_APIENTRY glGetUniformi64vNV (GLuint program, GLint location, GLint64EXT *params);
  8.2799 +GL_APICALL void GL_APIENTRY glProgramUniform1i64NV (GLuint program, GLint location, GLint64EXT x);
  8.2800 +GL_APICALL void GL_APIENTRY glProgramUniform2i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y);
  8.2801 +GL_APICALL void GL_APIENTRY glProgramUniform3i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z);
  8.2802 +GL_APICALL void GL_APIENTRY glProgramUniform4i64NV (GLuint program, GLint location, GLint64EXT x, GLint64EXT y, GLint64EXT z, GLint64EXT w);
  8.2803 +GL_APICALL void GL_APIENTRY glProgramUniform1i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  8.2804 +GL_APICALL void GL_APIENTRY glProgramUniform2i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  8.2805 +GL_APICALL void GL_APIENTRY glProgramUniform3i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  8.2806 +GL_APICALL void GL_APIENTRY glProgramUniform4i64vNV (GLuint program, GLint location, GLsizei count, const GLint64EXT *value);
  8.2807 +GL_APICALL void GL_APIENTRY glProgramUniform1ui64NV (GLuint program, GLint location, GLuint64EXT x);
  8.2808 +GL_APICALL void GL_APIENTRY glProgramUniform2ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y);
  8.2809 +GL_APICALL void GL_APIENTRY glProgramUniform3ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z);
  8.2810 +GL_APICALL void GL_APIENTRY glProgramUniform4ui64NV (GLuint program, GLint location, GLuint64EXT x, GLuint64EXT y, GLuint64EXT z, GLuint64EXT w);
  8.2811 +GL_APICALL void GL_APIENTRY glProgramUniform1ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  8.2812 +GL_APICALL void GL_APIENTRY glProgramUniform2ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  8.2813 +GL_APICALL void GL_APIENTRY glProgramUniform3ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  8.2814 +GL_APICALL void GL_APIENTRY glProgramUniform4ui64vNV (GLuint program, GLint location, GLsizei count, const GLuint64EXT *value);
  8.2815 +#endif
  8.2816 +#endif /* GL_NV_gpu_shader5 */
  8.2817 +
  8.2818 +#ifndef GL_NV_image_formats
  8.2819 +#define GL_NV_image_formats 1
  8.2820 +#endif /* GL_NV_image_formats */
  8.2821 +
  8.2822 +#ifndef GL_NV_instanced_arrays
  8.2823 +#define GL_NV_instanced_arrays 1
  8.2824 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_NV 0x88FE
  8.2825 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORNVPROC) (GLuint index, GLuint divisor);
  8.2826 +#ifdef GL_GLEXT_PROTOTYPES
  8.2827 +GL_APICALL void GL_APIENTRY glVertexAttribDivisorNV (GLuint index, GLuint divisor);
  8.2828 +#endif
  8.2829 +#endif /* GL_NV_instanced_arrays */
  8.2830 +
  8.2831 +#ifndef GL_NV_internalformat_sample_query
  8.2832 +#define GL_NV_internalformat_sample_query 1
  8.2833 +#define GL_TEXTURE_2D_MULTISAMPLE         0x9100
  8.2834 +#define GL_TEXTURE_2D_MULTISAMPLE_ARRAY   0x9102
  8.2835 +#define GL_MULTISAMPLES_NV                0x9371
  8.2836 +#define GL_SUPERSAMPLE_SCALE_X_NV         0x9372
  8.2837 +#define GL_SUPERSAMPLE_SCALE_Y_NV         0x9373
  8.2838 +#define GL_CONFORMANT_NV                  0x9374
  8.2839 +typedef void (GL_APIENTRYP PFNGLGETINTERNALFORMATSAMPLEIVNVPROC) (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei bufSize, GLint *params);
  8.2840 +#ifdef GL_GLEXT_PROTOTYPES
  8.2841 +GL_APICALL void GL_APIENTRY glGetInternalformatSampleivNV (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei bufSize, GLint *params);
  8.2842 +#endif
  8.2843 +#endif /* GL_NV_internalformat_sample_query */
  8.2844 +
  8.2845 +#ifndef GL_NV_non_square_matrices
  8.2846 +#define GL_NV_non_square_matrices 1
  8.2847 +#define GL_FLOAT_MAT2x3_NV                0x8B65
  8.2848 +#define GL_FLOAT_MAT2x4_NV                0x8B66
  8.2849 +#define GL_FLOAT_MAT3x2_NV                0x8B67
  8.2850 +#define GL_FLOAT_MAT3x4_NV                0x8B68
  8.2851 +#define GL_FLOAT_MAT4x2_NV                0x8B69
  8.2852 +#define GL_FLOAT_MAT4x3_NV                0x8B6A
  8.2853 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2X3FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2854 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3X2FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2855 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2X4FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2856 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4X2FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2857 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3X4FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2858 +typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4X3FVNVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2859 +#ifdef GL_GLEXT_PROTOTYPES
  8.2860 +GL_APICALL void GL_APIENTRY glUniformMatrix2x3fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2861 +GL_APICALL void GL_APIENTRY glUniformMatrix3x2fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2862 +GL_APICALL void GL_APIENTRY glUniformMatrix2x4fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2863 +GL_APICALL void GL_APIENTRY glUniformMatrix4x2fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2864 +GL_APICALL void GL_APIENTRY glUniformMatrix3x4fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2865 +GL_APICALL void GL_APIENTRY glUniformMatrix4x3fvNV (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  8.2866 +#endif
  8.2867 +#endif /* GL_NV_non_square_matrices */
  8.2868 +
  8.2869 +#ifndef GL_NV_path_rendering
  8.2870 +#define GL_NV_path_rendering 1
  8.2871 +#define GL_PATH_FORMAT_SVG_NV             0x9070
  8.2872 +#define GL_PATH_FORMAT_PS_NV              0x9071
  8.2873 +#define GL_STANDARD_FONT_NAME_NV          0x9072
  8.2874 +#define GL_SYSTEM_FONT_NAME_NV            0x9073
  8.2875 +#define GL_FILE_NAME_NV                   0x9074
  8.2876 +#define GL_PATH_STROKE_WIDTH_NV           0x9075
  8.2877 +#define GL_PATH_END_CAPS_NV               0x9076
  8.2878 +#define GL_PATH_INITIAL_END_CAP_NV        0x9077
  8.2879 +#define GL_PATH_TERMINAL_END_CAP_NV       0x9078
  8.2880 +#define GL_PATH_JOIN_STYLE_NV             0x9079
  8.2881 +#define GL_PATH_MITER_LIMIT_NV            0x907A
  8.2882 +#define GL_PATH_DASH_CAPS_NV              0x907B
  8.2883 +#define GL_PATH_INITIAL_DASH_CAP_NV       0x907C
  8.2884 +#define GL_PATH_TERMINAL_DASH_CAP_NV      0x907D
  8.2885 +#define GL_PATH_DASH_OFFSET_NV            0x907E
  8.2886 +#define GL_PATH_CLIENT_LENGTH_NV          0x907F
  8.2887 +#define GL_PATH_FILL_MODE_NV              0x9080
  8.2888 +#define GL_PATH_FILL_MASK_NV              0x9081
  8.2889 +#define GL_PATH_FILL_COVER_MODE_NV        0x9082
  8.2890 +#define GL_PATH_STROKE_COVER_MODE_NV      0x9083
  8.2891 +#define GL_PATH_STROKE_MASK_NV            0x9084
  8.2892 +#define GL_COUNT_UP_NV                    0x9088
  8.2893 +#define GL_COUNT_DOWN_NV                  0x9089
  8.2894 +#define GL_PATH_OBJECT_BOUNDING_BOX_NV    0x908A
  8.2895 +#define GL_CONVEX_HULL_NV                 0x908B
  8.2896 +#define GL_BOUNDING_BOX_NV                0x908D
  8.2897 +#define GL_TRANSLATE_X_NV                 0x908E
  8.2898 +#define GL_TRANSLATE_Y_NV                 0x908F
  8.2899 +#define GL_TRANSLATE_2D_NV                0x9090
  8.2900 +#define GL_TRANSLATE_3D_NV                0x9091
  8.2901 +#define GL_AFFINE_2D_NV                   0x9092
  8.2902 +#define GL_AFFINE_3D_NV                   0x9094
  8.2903 +#define GL_TRANSPOSE_AFFINE_2D_NV         0x9096
  8.2904 +#define GL_TRANSPOSE_AFFINE_3D_NV         0x9098
  8.2905 +#define GL_UTF8_NV                        0x909A
  8.2906 +#define GL_UTF16_NV                       0x909B
  8.2907 +#define GL_BOUNDING_BOX_OF_BOUNDING_BOXES_NV 0x909C
  8.2908 +#define GL_PATH_COMMAND_COUNT_NV          0x909D
  8.2909 +#define GL_PATH_COORD_COUNT_NV            0x909E
  8.2910 +#define GL_PATH_DASH_ARRAY_COUNT_NV       0x909F
  8.2911 +#define GL_PATH_COMPUTED_LENGTH_NV        0x90A0
  8.2912 +#define GL_PATH_FILL_BOUNDING_BOX_NV      0x90A1
  8.2913 +#define GL_PATH_STROKE_BOUNDING_BOX_NV    0x90A2
  8.2914 +#define GL_SQUARE_NV                      0x90A3
  8.2915 +#define GL_ROUND_NV                       0x90A4
  8.2916 +#define GL_TRIANGULAR_NV                  0x90A5
  8.2917 +#define GL_BEVEL_NV                       0x90A6
  8.2918 +#define GL_MITER_REVERT_NV                0x90A7
  8.2919 +#define GL_MITER_TRUNCATE_NV              0x90A8
  8.2920 +#define GL_SKIP_MISSING_GLYPH_NV          0x90A9
  8.2921 +#define GL_USE_MISSING_GLYPH_NV           0x90AA
  8.2922 +#define GL_PATH_ERROR_POSITION_NV         0x90AB
  8.2923 +#define GL_ACCUM_ADJACENT_PAIRS_NV        0x90AD
  8.2924 +#define GL_ADJACENT_PAIRS_NV              0x90AE
  8.2925 +#define GL_FIRST_TO_REST_NV               0x90AF
  8.2926 +#define GL_PATH_GEN_MODE_NV               0x90B0
  8.2927 +#define GL_PATH_GEN_COEFF_NV              0x90B1
  8.2928 +#define GL_PATH_GEN_COMPONENTS_NV         0x90B3
  8.2929 +#define GL_PATH_STENCIL_FUNC_NV           0x90B7
  8.2930 +#define GL_PATH_STENCIL_REF_NV            0x90B8
  8.2931 +#define GL_PATH_STENCIL_VALUE_MASK_NV     0x90B9
  8.2932 +#define GL_PATH_STENCIL_DEPTH_OFFSET_FACTOR_NV 0x90BD
  8.2933 +#define GL_PATH_STENCIL_DEPTH_OFFSET_UNITS_NV 0x90BE
  8.2934 +#define GL_PATH_COVER_DEPTH_FUNC_NV       0x90BF
  8.2935 +#define GL_PATH_DASH_OFFSET_RESET_NV      0x90B4
  8.2936 +#define GL_MOVE_TO_RESETS_NV              0x90B5
  8.2937 +#define GL_MOVE_TO_CONTINUES_NV           0x90B6
  8.2938 +#define GL_CLOSE_PATH_NV                  0x00
  8.2939 +#define GL_MOVE_TO_NV                     0x02
  8.2940 +#define GL_RELATIVE_MOVE_TO_NV            0x03
  8.2941 +#define GL_LINE_TO_NV                     0x04
  8.2942 +#define GL_RELATIVE_LINE_TO_NV            0x05
  8.2943 +#define GL_HORIZONTAL_LINE_TO_NV          0x06
  8.2944 +#define GL_RELATIVE_HORIZONTAL_LINE_TO_NV 0x07
  8.2945 +#define GL_VERTICAL_LINE_TO_NV            0x08
  8.2946 +#define GL_RELATIVE_VERTICAL_LINE_TO_NV   0x09
  8.2947 +#define GL_QUADRATIC_CURVE_TO_NV          0x0A
  8.2948 +#define GL_RELATIVE_QUADRATIC_CURVE_TO_NV 0x0B
  8.2949 +#define GL_CUBIC_CURVE_TO_NV              0x0C
  8.2950 +#define GL_RELATIVE_CUBIC_CURVE_TO_NV     0x0D
  8.2951 +#define GL_SMOOTH_QUADRATIC_CURVE_TO_NV   0x0E
  8.2952 +#define GL_RELATIVE_SMOOTH_QUADRATIC_CURVE_TO_NV 0x0F
  8.2953 +#define GL_SMOOTH_CUBIC_CURVE_TO_NV       0x10
  8.2954 +#define GL_RELATIVE_SMOOTH_CUBIC_CURVE_TO_NV 0x11
  8.2955 +#define GL_SMALL_CCW_ARC_TO_NV            0x12
  8.2956 +#define GL_RELATIVE_SMALL_CCW_ARC_TO_NV   0x13
  8.2957 +#define GL_SMALL_CW_ARC_TO_NV             0x14
  8.2958 +#define GL_RELATIVE_SMALL_CW_ARC_TO_NV    0x15
  8.2959 +#define GL_LARGE_CCW_ARC_TO_NV            0x16
  8.2960 +#define GL_RELATIVE_LARGE_CCW_ARC_TO_NV   0x17
  8.2961 +#define GL_LARGE_CW_ARC_TO_NV             0x18
  8.2962 +#define GL_RELATIVE_LARGE_CW_ARC_TO_NV    0x19
  8.2963 +#define GL_RESTART_PATH_NV                0xF0
  8.2964 +#define GL_DUP_FIRST_CUBIC_CURVE_TO_NV    0xF2
  8.2965 +#define GL_DUP_LAST_CUBIC_CURVE_TO_NV     0xF4
  8.2966 +#define GL_RECT_NV                        0xF6
  8.2967 +#define GL_CIRCULAR_CCW_ARC_TO_NV         0xF8
  8.2968 +#define GL_CIRCULAR_CW_ARC_TO_NV          0xFA
  8.2969 +#define GL_CIRCULAR_TANGENT_ARC_TO_NV     0xFC
  8.2970 +#define GL_ARC_TO_NV                      0xFE
  8.2971 +#define GL_RELATIVE_ARC_TO_NV             0xFF
  8.2972 +#define GL_BOLD_BIT_NV                    0x01
  8.2973 +#define GL_ITALIC_BIT_NV                  0x02
  8.2974 +#define GL_GLYPH_WIDTH_BIT_NV             0x01
  8.2975 +#define GL_GLYPH_HEIGHT_BIT_NV            0x02
  8.2976 +#define GL_GLYPH_HORIZONTAL_BEARING_X_BIT_NV 0x04
  8.2977 +#define GL_GLYPH_HORIZONTAL_BEARING_Y_BIT_NV 0x08
  8.2978 +#define GL_GLYPH_HORIZONTAL_BEARING_ADVANCE_BIT_NV 0x10
  8.2979 +#define GL_GLYPH_VERTICAL_BEARING_X_BIT_NV 0x20
  8.2980 +#define GL_GLYPH_VERTICAL_BEARING_Y_BIT_NV 0x40
  8.2981 +#define GL_GLYPH_VERTICAL_BEARING_ADVANCE_BIT_NV 0x80
  8.2982 +#define GL_GLYPH_HAS_KERNING_BIT_NV       0x100
  8.2983 +#define GL_FONT_X_MIN_BOUNDS_BIT_NV       0x00010000
  8.2984 +#define GL_FONT_Y_MIN_BOUNDS_BIT_NV       0x00020000
  8.2985 +#define GL_FONT_X_MAX_BOUNDS_BIT_NV       0x00040000
  8.2986 +#define GL_FONT_Y_MAX_BOUNDS_BIT_NV       0x00080000
  8.2987 +#define GL_FONT_UNITS_PER_EM_BIT_NV       0x00100000
  8.2988 +#define GL_FONT_ASCENDER_BIT_NV           0x00200000
  8.2989 +#define GL_FONT_DESCENDER_BIT_NV          0x00400000
  8.2990 +#define GL_FONT_HEIGHT_BIT_NV             0x00800000
  8.2991 +#define GL_FONT_MAX_ADVANCE_WIDTH_BIT_NV  0x01000000
  8.2992 +#define GL_FONT_MAX_ADVANCE_HEIGHT_BIT_NV 0x02000000
  8.2993 +#define GL_FONT_UNDERLINE_POSITION_BIT_NV 0x04000000
  8.2994 +#define GL_FONT_UNDERLINE_THICKNESS_BIT_NV 0x08000000
  8.2995 +#define GL_FONT_HAS_KERNING_BIT_NV        0x10000000
  8.2996 +#define GL_ROUNDED_RECT_NV                0xE8
  8.2997 +#define GL_RELATIVE_ROUNDED_RECT_NV       0xE9
  8.2998 +#define GL_ROUNDED_RECT2_NV               0xEA
  8.2999 +#define GL_RELATIVE_ROUNDED_RECT2_NV      0xEB
  8.3000 +#define GL_ROUNDED_RECT4_NV               0xEC
  8.3001 +#define GL_RELATIVE_ROUNDED_RECT4_NV      0xED
  8.3002 +#define GL_ROUNDED_RECT8_NV               0xEE
  8.3003 +#define GL_RELATIVE_ROUNDED_RECT8_NV      0xEF
  8.3004 +#define GL_RELATIVE_RECT_NV               0xF7
  8.3005 +#define GL_FONT_GLYPHS_AVAILABLE_NV       0x9368
  8.3006 +#define GL_FONT_TARGET_UNAVAILABLE_NV     0x9369
  8.3007 +#define GL_FONT_UNAVAILABLE_NV            0x936A
  8.3008 +#define GL_FONT_UNINTELLIGIBLE_NV         0x936B
  8.3009 +#define GL_CONIC_CURVE_TO_NV              0x1A
  8.3010 +#define GL_RELATIVE_CONIC_CURVE_TO_NV     0x1B
  8.3011 +#define GL_FONT_NUM_GLYPH_INDICES_BIT_NV  0x20000000
  8.3012 +#define GL_STANDARD_FONT_FORMAT_NV        0x936C
  8.3013 +#define GL_PATH_PROJECTION_NV             0x1701
  8.3014 +#define GL_PATH_MODELVIEW_NV              0x1700
  8.3015 +#define GL_PATH_MODELVIEW_STACK_DEPTH_NV  0x0BA3
  8.3016 +#define GL_PATH_MODELVIEW_MATRIX_NV       0x0BA6
  8.3017 +#define GL_PATH_MAX_MODELVIEW_STACK_DEPTH_NV 0x0D36
  8.3018 +#define GL_PATH_TRANSPOSE_MODELVIEW_MATRIX_NV 0x84E3
  8.3019 +#define GL_PATH_PROJECTION_STACK_DEPTH_NV 0x0BA4
  8.3020 +#define GL_PATH_PROJECTION_MATRIX_NV      0x0BA7
  8.3021 +#define GL_PATH_MAX_PROJECTION_STACK_DEPTH_NV 0x0D38
  8.3022 +#define GL_PATH_TRANSPOSE_PROJECTION_MATRIX_NV 0x84E4
  8.3023 +#define GL_FRAGMENT_INPUT_NV              0x936D
  8.3024 +typedef GLuint (GL_APIENTRYP PFNGLGENPATHSNVPROC) (GLsizei range);
  8.3025 +typedef void (GL_APIENTRYP PFNGLDELETEPATHSNVPROC) (GLuint path, GLsizei range);
  8.3026 +typedef GLboolean (GL_APIENTRYP PFNGLISPATHNVPROC) (GLuint path);
  8.3027 +typedef void (GL_APIENTRYP PFNGLPATHCOMMANDSNVPROC) (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
  8.3028 +typedef void (GL_APIENTRYP PFNGLPATHCOORDSNVPROC) (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
  8.3029 +typedef void (GL_APIENTRYP PFNGLPATHSUBCOMMANDSNVPROC) (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
  8.3030 +typedef void (GL_APIENTRYP PFNGLPATHSUBCOORDSNVPROC) (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
  8.3031 +typedef void (GL_APIENTRYP PFNGLPATHSTRINGNVPROC) (GLuint path, GLenum format, GLsizei length, const void *pathString);
  8.3032 +typedef void (GL_APIENTRYP PFNGLPATHGLYPHSNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
  8.3033 +typedef void (GL_APIENTRYP PFNGLPATHGLYPHRANGENVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
  8.3034 +typedef void (GL_APIENTRYP PFNGLWEIGHTPATHSNVPROC) (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
  8.3035 +typedef void (GL_APIENTRYP PFNGLCOPYPATHNVPROC) (GLuint resultPath, GLuint srcPath);
  8.3036 +typedef void (GL_APIENTRYP PFNGLINTERPOLATEPATHSNVPROC) (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
  8.3037 +typedef void (GL_APIENTRYP PFNGLTRANSFORMPATHNVPROC) (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
  8.3038 +typedef void (GL_APIENTRYP PFNGLPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, const GLint *value);
  8.3039 +typedef void (GL_APIENTRYP PFNGLPATHPARAMETERINVPROC) (GLuint path, GLenum pname, GLint value);
  8.3040 +typedef void (GL_APIENTRYP PFNGLPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, const GLfloat *value);
  8.3041 +typedef void (GL_APIENTRYP PFNGLPATHPARAMETERFNVPROC) (GLuint path, GLenum pname, GLfloat value);
  8.3042 +typedef void (GL_APIENTRYP PFNGLPATHDASHARRAYNVPROC) (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
  8.3043 +typedef void (GL_APIENTRYP PFNGLPATHSTENCILFUNCNVPROC) (GLenum func, GLint ref, GLuint mask);
  8.3044 +typedef void (GL_APIENTRYP PFNGLPATHSTENCILDEPTHOFFSETNVPROC) (GLfloat factor, GLfloat units);
  8.3045 +typedef void (GL_APIENTRYP PFNGLSTENCILFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask);
  8.3046 +typedef void (GL_APIENTRYP PFNGLSTENCILSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask);
  8.3047 +typedef void (GL_APIENTRYP PFNGLSTENCILFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
  8.3048 +typedef void (GL_APIENTRYP PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
  8.3049 +typedef void (GL_APIENTRYP PFNGLPATHCOVERDEPTHFUNCNVPROC) (GLenum func);
  8.3050 +typedef void (GL_APIENTRYP PFNGLCOVERFILLPATHNVPROC) (GLuint path, GLenum coverMode);
  8.3051 +typedef void (GL_APIENTRYP PFNGLCOVERSTROKEPATHNVPROC) (GLuint path, GLenum coverMode);
  8.3052 +typedef void (GL_APIENTRYP PFNGLCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
  8.3053 +typedef void (GL_APIENTRYP PFNGLCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
  8.3054 +typedef void (GL_APIENTRYP PFNGLGETPATHPARAMETERIVNVPROC) (GLuint path, GLenum pname, GLint *value);
  8.3055 +typedef void (GL_APIENTRYP PFNGLGETPATHPARAMETERFVNVPROC) (GLuint path, GLenum pname, GLfloat *value);
  8.3056 +typedef void (GL_APIENTRYP PFNGLGETPATHCOMMANDSNVPROC) (GLuint path, GLubyte *commands);
  8.3057 +typedef void (GL_APIENTRYP PFNGLGETPATHCOORDSNVPROC) (GLuint path, GLfloat *coords);
  8.3058 +typedef void (GL_APIENTRYP PFNGLGETPATHDASHARRAYNVPROC) (GLuint path, GLfloat *dashArray);
  8.3059 +typedef void (GL_APIENTRYP PFNGLGETPATHMETRICSNVPROC) (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
  8.3060 +typedef void (GL_APIENTRYP PFNGLGETPATHMETRICRANGENVPROC) (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
  8.3061 +typedef void (GL_APIENTRYP PFNGLGETPATHSPACINGNVPROC) (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
  8.3062 +typedef GLboolean (GL_APIENTRYP PFNGLISPOINTINFILLPATHNVPROC) (GLuint path, GLuint mask, GLfloat x, GLfloat y);
  8.3063 +typedef GLboolean (GL_APIENTRYP PFNGLISPOINTINSTROKEPATHNVPROC) (GLuint path, GLfloat x, GLfloat y);
  8.3064 +typedef GLfloat (GL_APIENTRYP PFNGLGETPATHLENGTHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments);
  8.3065 +typedef GLboolean (GL_APIENTRYP PFNGLPOINTALONGPATHNVPROC) (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
  8.3066 +typedef void (GL_APIENTRYP PFNGLMATRIXLOAD3X2FNVPROC) (GLenum matrixMode, const GLfloat *m);
  8.3067 +typedef void (GL_APIENTRYP PFNGLMATRIXLOAD3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
  8.3068 +typedef void (GL_APIENTRYP PFNGLMATRIXLOADTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
  8.3069 +typedef void (GL_APIENTRYP PFNGLMATRIXMULT3X2FNVPROC) (GLenum matrixMode, const GLfloat *m);
  8.3070 +typedef void (GL_APIENTRYP PFNGLMATRIXMULT3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
  8.3071 +typedef void (GL_APIENTRYP PFNGLMATRIXMULTTRANSPOSE3X3FNVPROC) (GLenum matrixMode, const GLfloat *m);
  8.3072 +typedef void (GL_APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHNVPROC) (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode);
  8.3073 +typedef void (GL_APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHNVPROC) (GLuint path, GLint reference, GLuint mask, GLenum coverMode);
  8.3074 +typedef void (GL_APIENTRYP PFNGLSTENCILTHENCOVERFILLPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
  8.3075 +typedef void (GL_APIENTRYP PFNGLSTENCILTHENCOVERSTROKEPATHINSTANCEDNVPROC) (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
  8.3076 +typedef GLenum (GL_APIENTRYP PFNGLPATHGLYPHINDEXRANGENVPROC) (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount[2]);
  8.3077 +typedef GLenum (GL_APIENTRYP PFNGLPATHGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
  8.3078 +typedef GLenum (GL_APIENTRYP PFNGLPATHMEMORYGLYPHINDEXARRAYNVPROC) (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
  8.3079 +typedef void (GL_APIENTRYP PFNGLPROGRAMPATHFRAGMENTINPUTGENNVPROC) (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs);
  8.3080 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMRESOURCEFVNVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLfloat *params);
  8.3081 +#ifdef GL_GLEXT_PROTOTYPES
  8.3082 +GL_APICALL GLuint GL_APIENTRY glGenPathsNV (GLsizei range);
  8.3083 +GL_APICALL void GL_APIENTRY glDeletePathsNV (GLuint path, GLsizei range);
  8.3084 +GL_APICALL GLboolean GL_APIENTRY glIsPathNV (GLuint path);
  8.3085 +GL_APICALL void GL_APIENTRY glPathCommandsNV (GLuint path, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
  8.3086 +GL_APICALL void GL_APIENTRY glPathCoordsNV (GLuint path, GLsizei numCoords, GLenum coordType, const void *coords);
  8.3087 +GL_APICALL void GL_APIENTRY glPathSubCommandsNV (GLuint path, GLsizei commandStart, GLsizei commandsToDelete, GLsizei numCommands, const GLubyte *commands, GLsizei numCoords, GLenum coordType, const void *coords);
  8.3088 +GL_APICALL void GL_APIENTRY glPathSubCoordsNV (GLuint path, GLsizei coordStart, GLsizei numCoords, GLenum coordType, const void *coords);
  8.3089 +GL_APICALL void GL_APIENTRY glPathStringNV (GLuint path, GLenum format, GLsizei length, const void *pathString);
  8.3090 +GL_APICALL void GL_APIENTRY glPathGlyphsNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLsizei numGlyphs, GLenum type, const void *charcodes, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
  8.3091 +GL_APICALL void GL_APIENTRY glPathGlyphRangeNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyph, GLsizei numGlyphs, GLenum handleMissingGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
  8.3092 +GL_APICALL void GL_APIENTRY glWeightPathsNV (GLuint resultPath, GLsizei numPaths, const GLuint *paths, const GLfloat *weights);
  8.3093 +GL_APICALL void GL_APIENTRY glCopyPathNV (GLuint resultPath, GLuint srcPath);
  8.3094 +GL_APICALL void GL_APIENTRY glInterpolatePathsNV (GLuint resultPath, GLuint pathA, GLuint pathB, GLfloat weight);
  8.3095 +GL_APICALL void GL_APIENTRY glTransformPathNV (GLuint resultPath, GLuint srcPath, GLenum transformType, const GLfloat *transformValues);
  8.3096 +GL_APICALL void GL_APIENTRY glPathParameterivNV (GLuint path, GLenum pname, const GLint *value);
  8.3097 +GL_APICALL void GL_APIENTRY glPathParameteriNV (GLuint path, GLenum pname, GLint value);
  8.3098 +GL_APICALL void GL_APIENTRY glPathParameterfvNV (GLuint path, GLenum pname, const GLfloat *value);
  8.3099 +GL_APICALL void GL_APIENTRY glPathParameterfNV (GLuint path, GLenum pname, GLfloat value);
  8.3100 +GL_APICALL void GL_APIENTRY glPathDashArrayNV (GLuint path, GLsizei dashCount, const GLfloat *dashArray);
  8.3101 +GL_APICALL void GL_APIENTRY glPathStencilFuncNV (GLenum func, GLint ref, GLuint mask);
  8.3102 +GL_APICALL void GL_APIENTRY glPathStencilDepthOffsetNV (GLfloat factor, GLfloat units);
  8.3103 +GL_APICALL void GL_APIENTRY glStencilFillPathNV (GLuint path, GLenum fillMode, GLuint mask);
  8.3104 +GL_APICALL void GL_APIENTRY glStencilStrokePathNV (GLuint path, GLint reference, GLuint mask);
  8.3105 +GL_APICALL void GL_APIENTRY glStencilFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum transformType, const GLfloat *transformValues);
  8.3106 +GL_APICALL void GL_APIENTRY glStencilStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum transformType, const GLfloat *transformValues);
  8.3107 +GL_APICALL void GL_APIENTRY glPathCoverDepthFuncNV (GLenum func);
  8.3108 +GL_APICALL void GL_APIENTRY glCoverFillPathNV (GLuint path, GLenum coverMode);
  8.3109 +GL_APICALL void GL_APIENTRY glCoverStrokePathNV (GLuint path, GLenum coverMode);
  8.3110 +GL_APICALL void GL_APIENTRY glCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
  8.3111 +GL_APICALL void GL_APIENTRY glCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
  8.3112 +GL_APICALL void GL_APIENTRY glGetPathParameterivNV (GLuint path, GLenum pname, GLint *value);
  8.3113 +GL_APICALL void GL_APIENTRY glGetPathParameterfvNV (GLuint path, GLenum pname, GLfloat *value);
  8.3114 +GL_APICALL void GL_APIENTRY glGetPathCommandsNV (GLuint path, GLubyte *commands);
  8.3115 +GL_APICALL void GL_APIENTRY glGetPathCoordsNV (GLuint path, GLfloat *coords);
  8.3116 +GL_APICALL void GL_APIENTRY glGetPathDashArrayNV (GLuint path, GLfloat *dashArray);
  8.3117 +GL_APICALL void GL_APIENTRY glGetPathMetricsNV (GLbitfield metricQueryMask, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLsizei stride, GLfloat *metrics);
  8.3118 +GL_APICALL void GL_APIENTRY glGetPathMetricRangeNV (GLbitfield metricQueryMask, GLuint firstPathName, GLsizei numPaths, GLsizei stride, GLfloat *metrics);
  8.3119 +GL_APICALL void GL_APIENTRY glGetPathSpacingNV (GLenum pathListMode, GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLfloat advanceScale, GLfloat kerningScale, GLenum transformType, GLfloat *returnedSpacing);
  8.3120 +GL_APICALL GLboolean GL_APIENTRY glIsPointInFillPathNV (GLuint path, GLuint mask, GLfloat x, GLfloat y);
  8.3121 +GL_APICALL GLboolean GL_APIENTRY glIsPointInStrokePathNV (GLuint path, GLfloat x, GLfloat y);
  8.3122 +GL_APICALL GLfloat GL_APIENTRY glGetPathLengthNV (GLuint path, GLsizei startSegment, GLsizei numSegments);
  8.3123 +GL_APICALL GLboolean GL_APIENTRY glPointAlongPathNV (GLuint path, GLsizei startSegment, GLsizei numSegments, GLfloat distance, GLfloat *x, GLfloat *y, GLfloat *tangentX, GLfloat *tangentY);
  8.3124 +GL_APICALL void GL_APIENTRY glMatrixLoad3x2fNV (GLenum matrixMode, const GLfloat *m);
  8.3125 +GL_APICALL void GL_APIENTRY glMatrixLoad3x3fNV (GLenum matrixMode, const GLfloat *m);
  8.3126 +GL_APICALL void GL_APIENTRY glMatrixLoadTranspose3x3fNV (GLenum matrixMode, const GLfloat *m);
  8.3127 +GL_APICALL void GL_APIENTRY glMatrixMult3x2fNV (GLenum matrixMode, const GLfloat *m);
  8.3128 +GL_APICALL void GL_APIENTRY glMatrixMult3x3fNV (GLenum matrixMode, const GLfloat *m);
  8.3129 +GL_APICALL void GL_APIENTRY glMatrixMultTranspose3x3fNV (GLenum matrixMode, const GLfloat *m);
  8.3130 +GL_APICALL void GL_APIENTRY glStencilThenCoverFillPathNV (GLuint path, GLenum fillMode, GLuint mask, GLenum coverMode);
  8.3131 +GL_APICALL void GL_APIENTRY glStencilThenCoverStrokePathNV (GLuint path, GLint reference, GLuint mask, GLenum coverMode);
  8.3132 +GL_APICALL void GL_APIENTRY glStencilThenCoverFillPathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLenum fillMode, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
  8.3133 +GL_APICALL void GL_APIENTRY glStencilThenCoverStrokePathInstancedNV (GLsizei numPaths, GLenum pathNameType, const void *paths, GLuint pathBase, GLint reference, GLuint mask, GLenum coverMode, GLenum transformType, const GLfloat *transformValues);
  8.3134 +GL_APICALL GLenum GL_APIENTRY glPathGlyphIndexRangeNV (GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint pathParameterTemplate, GLfloat emScale, GLuint baseAndCount[2]);
  8.3135 +GL_APICALL GLenum GL_APIENTRY glPathGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, const void *fontName, GLbitfield fontStyle, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
  8.3136 +GL_APICALL GLenum GL_APIENTRY glPathMemoryGlyphIndexArrayNV (GLuint firstPathName, GLenum fontTarget, GLsizeiptr fontSize, const void *fontData, GLsizei faceIndex, GLuint firstGlyphIndex, GLsizei numGlyphs, GLuint pathParameterTemplate, GLfloat emScale);
  8.3137 +GL_APICALL void GL_APIENTRY glProgramPathFragmentInputGenNV (GLuint program, GLint location, GLenum genMode, GLint components, const GLfloat *coeffs);
  8.3138 +GL_APICALL void GL_APIENTRY glGetProgramResourcefvNV (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLfloat *params);
  8.3139 +#endif
  8.3140 +#endif /* GL_NV_path_rendering */
  8.3141 +
  8.3142 +#ifndef GL_NV_path_rendering_shared_edge
  8.3143 +#define GL_NV_path_rendering_shared_edge 1
  8.3144 +#define GL_SHARED_EDGE_NV                 0xC0
  8.3145 +#endif /* GL_NV_path_rendering_shared_edge */
  8.3146 +
  8.3147 +#ifndef GL_NV_pixel_buffer_object
  8.3148 +#define GL_NV_pixel_buffer_object 1
  8.3149 +#define GL_PIXEL_PACK_BUFFER_NV           0x88EB
  8.3150 +#define GL_PIXEL_UNPACK_BUFFER_NV         0x88EC
  8.3151 +#define GL_PIXEL_PACK_BUFFER_BINDING_NV   0x88ED
  8.3152 +#define GL_PIXEL_UNPACK_BUFFER_BINDING_NV 0x88EF
  8.3153 +#endif /* GL_NV_pixel_buffer_object */
  8.3154 +
  8.3155 +#ifndef GL_NV_polygon_mode
  8.3156 +#define GL_NV_polygon_mode 1
  8.3157 +#define GL_POLYGON_MODE_NV                0x0B40
  8.3158 +#define GL_POLYGON_OFFSET_POINT_NV        0x2A01
  8.3159 +#define GL_POLYGON_OFFSET_LINE_NV         0x2A02
  8.3160 +#define GL_POINT_NV                       0x1B00
  8.3161 +#define GL_LINE_NV                        0x1B01
  8.3162 +#define GL_FILL_NV                        0x1B02
  8.3163 +typedef void (GL_APIENTRYP PFNGLPOLYGONMODENVPROC) (GLenum face, GLenum mode);
  8.3164 +#ifdef GL_GLEXT_PROTOTYPES
  8.3165 +GL_APICALL void GL_APIENTRY glPolygonModeNV (GLenum face, GLenum mode);
  8.3166 +#endif
  8.3167 +#endif /* GL_NV_polygon_mode */
  8.3168 +
  8.3169 +#ifndef GL_NV_read_buffer
  8.3170 +#define GL_NV_read_buffer 1
  8.3171 +#define GL_READ_BUFFER_NV                 0x0C02
  8.3172 +typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
  8.3173 +#ifdef GL_GLEXT_PROTOTYPES
  8.3174 +GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
  8.3175 +#endif
  8.3176 +#endif /* GL_NV_read_buffer */
  8.3177 +
  8.3178 +#ifndef GL_NV_read_buffer_front
  8.3179 +#define GL_NV_read_buffer_front 1
  8.3180 +#endif /* GL_NV_read_buffer_front */
  8.3181 +
  8.3182 +#ifndef GL_NV_read_depth
  8.3183 +#define GL_NV_read_depth 1
  8.3184 +#endif /* GL_NV_read_depth */
  8.3185 +
  8.3186 +#ifndef GL_NV_read_depth_stencil
  8.3187 +#define GL_NV_read_depth_stencil 1
  8.3188 +#endif /* GL_NV_read_depth_stencil */
  8.3189 +
  8.3190 +#ifndef GL_NV_read_stencil
  8.3191 +#define GL_NV_read_stencil 1
  8.3192 +#endif /* GL_NV_read_stencil */
  8.3193 +
  8.3194 +#ifndef GL_NV_sRGB_formats
  8.3195 +#define GL_NV_sRGB_formats 1
  8.3196 +#define GL_SLUMINANCE_NV                  0x8C46
  8.3197 +#define GL_SLUMINANCE_ALPHA_NV            0x8C44
  8.3198 +#define GL_SRGB8_NV                       0x8C41
  8.3199 +#define GL_SLUMINANCE8_NV                 0x8C47
  8.3200 +#define GL_SLUMINANCE8_ALPHA8_NV          0x8C45
  8.3201 +#define GL_COMPRESSED_SRGB_S3TC_DXT1_NV   0x8C4C
  8.3202 +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_NV 0x8C4D
  8.3203 +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_NV 0x8C4E
  8.3204 +#define GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_NV 0x8C4F
  8.3205 +#define GL_ETC1_SRGB8_NV                  0x88EE
  8.3206 +#endif /* GL_NV_sRGB_formats */
  8.3207 +
  8.3208 +#ifndef GL_NV_sample_locations
  8.3209 +#define GL_NV_sample_locations 1
  8.3210 +#define GL_SAMPLE_LOCATION_SUBPIXEL_BITS_NV 0x933D
  8.3211 +#define GL_SAMPLE_LOCATION_PIXEL_GRID_WIDTH_NV 0x933E
  8.3212 +#define GL_SAMPLE_LOCATION_PIXEL_GRID_HEIGHT_NV 0x933F
  8.3213 +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_TABLE_SIZE_NV 0x9340
  8.3214 +#define GL_SAMPLE_LOCATION_NV             0x8E50
  8.3215 +#define GL_PROGRAMMABLE_SAMPLE_LOCATION_NV 0x9341
  8.3216 +#define GL_FRAMEBUFFER_PROGRAMMABLE_SAMPLE_LOCATIONS_NV 0x9342
  8.3217 +#define GL_FRAMEBUFFER_SAMPLE_LOCATION_PIXEL_GRID_NV 0x9343
  8.3218 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
  8.3219 +typedef void (GL_APIENTRYP PFNGLNAMEDFRAMEBUFFERSAMPLELOCATIONSFVNVPROC) (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
  8.3220 +typedef void (GL_APIENTRYP PFNGLRESOLVEDEPTHVALUESNVPROC) (void);
  8.3221 +#ifdef GL_GLEXT_PROTOTYPES
  8.3222 +GL_APICALL void GL_APIENTRY glFramebufferSampleLocationsfvNV (GLenum target, GLuint start, GLsizei count, const GLfloat *v);
  8.3223 +GL_APICALL void GL_APIENTRY glNamedFramebufferSampleLocationsfvNV (GLuint framebuffer, GLuint start, GLsizei count, const GLfloat *v);
  8.3224 +GL_APICALL void GL_APIENTRY glResolveDepthValuesNV (void);
  8.3225 +#endif
  8.3226 +#endif /* GL_NV_sample_locations */
  8.3227 +
  8.3228 +#ifndef GL_NV_sample_mask_override_coverage
  8.3229 +#define GL_NV_sample_mask_override_coverage 1
  8.3230 +#endif /* GL_NV_sample_mask_override_coverage */
  8.3231 +
  8.3232 +#ifndef GL_NV_shader_atomic_fp16_vector
  8.3233 +#define GL_NV_shader_atomic_fp16_vector 1
  8.3234 +#endif /* GL_NV_shader_atomic_fp16_vector */
  8.3235 +
  8.3236 +#ifndef GL_NV_shader_noperspective_interpolation
  8.3237 +#define GL_NV_shader_noperspective_interpolation 1
  8.3238 +#endif /* GL_NV_shader_noperspective_interpolation */
  8.3239 +
  8.3240 +#ifndef GL_NV_shadow_samplers_array
  8.3241 +#define GL_NV_shadow_samplers_array 1
  8.3242 +#define GL_SAMPLER_2D_ARRAY_SHADOW_NV     0x8DC4
  8.3243 +#endif /* GL_NV_shadow_samplers_array */
  8.3244 +
  8.3245 +#ifndef GL_NV_shadow_samplers_cube
  8.3246 +#define GL_NV_shadow_samplers_cube 1
  8.3247 +#define GL_SAMPLER_CUBE_SHADOW_NV         0x8DC5
  8.3248 +#endif /* GL_NV_shadow_samplers_cube */
  8.3249 +
  8.3250 +#ifndef GL_NV_texture_border_clamp
  8.3251 +#define GL_NV_texture_border_clamp 1
  8.3252 +#define GL_TEXTURE_BORDER_COLOR_NV        0x1004
  8.3253 +#define GL_CLAMP_TO_BORDER_NV             0x812D
  8.3254 +#endif /* GL_NV_texture_border_clamp */
  8.3255 +
  8.3256 +#ifndef GL_NV_texture_compression_s3tc_update
  8.3257 +#define GL_NV_texture_compression_s3tc_update 1
  8.3258 +#endif /* GL_NV_texture_compression_s3tc_update */
  8.3259 +
  8.3260 +#ifndef GL_NV_texture_npot_2D_mipmap
  8.3261 +#define GL_NV_texture_npot_2D_mipmap 1
  8.3262 +#endif /* GL_NV_texture_npot_2D_mipmap */
  8.3263 +
  8.3264 +#ifndef GL_NV_viewport_array
  8.3265 +#define GL_NV_viewport_array 1
  8.3266 +#define GL_MAX_VIEWPORTS_NV               0x825B
  8.3267 +#define GL_VIEWPORT_SUBPIXEL_BITS_NV      0x825C
  8.3268 +#define GL_VIEWPORT_BOUNDS_RANGE_NV       0x825D
  8.3269 +#define GL_VIEWPORT_INDEX_PROVOKING_VERTEX_NV 0x825F
  8.3270 +typedef void (GL_APIENTRYP PFNGLVIEWPORTARRAYVNVPROC) (GLuint first, GLsizei count, const GLfloat *v);
  8.3271 +typedef void (GL_APIENTRYP PFNGLVIEWPORTINDEXEDFNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
  8.3272 +typedef void (GL_APIENTRYP PFNGLVIEWPORTINDEXEDFVNVPROC) (GLuint index, const GLfloat *v);
  8.3273 +typedef void (GL_APIENTRYP PFNGLSCISSORARRAYVNVPROC) (GLuint first, GLsizei count, const GLint *v);
  8.3274 +typedef void (GL_APIENTRYP PFNGLSCISSORINDEXEDNVPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
  8.3275 +typedef void (GL_APIENTRYP PFNGLSCISSORINDEXEDVNVPROC) (GLuint index, const GLint *v);
  8.3276 +typedef void (GL_APIENTRYP PFNGLDEPTHRANGEARRAYFVNVPROC) (GLuint first, GLsizei count, const GLfloat *v);
  8.3277 +typedef void (GL_APIENTRYP PFNGLDEPTHRANGEINDEXEDFNVPROC) (GLuint index, GLfloat n, GLfloat f);
  8.3278 +typedef void (GL_APIENTRYP PFNGLGETFLOATI_VNVPROC) (GLenum target, GLuint index, GLfloat *data);
  8.3279 +typedef void (GL_APIENTRYP PFNGLENABLEINVPROC) (GLenum target, GLuint index);
  8.3280 +typedef void (GL_APIENTRYP PFNGLDISABLEINVPROC) (GLenum target, GLuint index);
  8.3281 +typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDINVPROC) (GLenum target, GLuint index);
  8.3282 +#ifdef GL_GLEXT_PROTOTYPES
  8.3283 +GL_APICALL void GL_APIENTRY glViewportArrayvNV (GLuint first, GLsizei count, const GLfloat *v);
  8.3284 +GL_APICALL void GL_APIENTRY glViewportIndexedfNV (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
  8.3285 +GL_APICALL void GL_APIENTRY glViewportIndexedfvNV (GLuint index, const GLfloat *v);
  8.3286 +GL_APICALL void GL_APIENTRY glScissorArrayvNV (GLuint first, GLsizei count, const GLint *v);
  8.3287 +GL_APICALL void GL_APIENTRY glScissorIndexedNV (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
  8.3288 +GL_APICALL void GL_APIENTRY glScissorIndexedvNV (GLuint index, const GLint *v);
  8.3289 +GL_APICALL void GL_APIENTRY glDepthRangeArrayfvNV (GLuint first, GLsizei count, const GLfloat *v);
  8.3290 +GL_APICALL void GL_APIENTRY glDepthRangeIndexedfNV (GLuint index, GLfloat n, GLfloat f);
  8.3291 +GL_APICALL void GL_APIENTRY glGetFloati_vNV (GLenum target, GLuint index, GLfloat *data);
  8.3292 +GL_APICALL void GL_APIENTRY glEnableiNV (GLenum target, GLuint index);
  8.3293 +GL_APICALL void GL_APIENTRY glDisableiNV (GLenum target, GLuint index);
  8.3294 +GL_APICALL GLboolean GL_APIENTRY glIsEnablediNV (GLenum target, GLuint index);
  8.3295 +#endif
  8.3296 +#endif /* GL_NV_viewport_array */
  8.3297 +
  8.3298 +#ifndef GL_NV_viewport_array2
  8.3299 +#define GL_NV_viewport_array2 1
  8.3300 +#endif /* GL_NV_viewport_array2 */
  8.3301 +
  8.3302 +#ifndef GL_NV_viewport_swizzle
  8.3303 +#define GL_NV_viewport_swizzle 1
  8.3304 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_X_NV 0x9350
  8.3305 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_X_NV 0x9351
  8.3306 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_Y_NV 0x9352
  8.3307 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Y_NV 0x9353
  8.3308 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_Z_NV 0x9354
  8.3309 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_Z_NV 0x9355
  8.3310 +#define GL_VIEWPORT_SWIZZLE_POSITIVE_W_NV 0x9356
  8.3311 +#define GL_VIEWPORT_SWIZZLE_NEGATIVE_W_NV 0x9357
  8.3312 +#define GL_VIEWPORT_SWIZZLE_X_NV          0x9358
  8.3313 +#define GL_VIEWPORT_SWIZZLE_Y_NV          0x9359
  8.3314 +#define GL_VIEWPORT_SWIZZLE_Z_NV          0x935A
  8.3315 +#define GL_VIEWPORT_SWIZZLE_W_NV          0x935B
  8.3316 +typedef void (GL_APIENTRYP PFNGLVIEWPORTSWIZZLENVPROC) (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew);
  8.3317 +#ifdef GL_GLEXT_PROTOTYPES
  8.3318 +GL_APICALL void GL_APIENTRY glViewportSwizzleNV (GLuint index, GLenum swizzlex, GLenum swizzley, GLenum swizzlez, GLenum swizzlew);
  8.3319 +#endif
  8.3320 +#endif /* GL_NV_viewport_swizzle */
  8.3321 +
  8.3322 +#ifndef GL_OVR_multiview
  8.3323 +#define GL_OVR_multiview 1
  8.3324 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR 0x9630
  8.3325 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR 0x9632
  8.3326 +#define GL_MAX_VIEWS_OVR                  0x9631
  8.3327 +#define GL_FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR 0x9633
  8.3328 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
  8.3329 +#ifdef GL_GLEXT_PROTOTYPES
  8.3330 +GL_APICALL void GL_APIENTRY glFramebufferTextureMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews);
  8.3331 +#endif
  8.3332 +#endif /* GL_OVR_multiview */
  8.3333 +
  8.3334 +#ifndef GL_OVR_multiview2
  8.3335 +#define GL_OVR_multiview2 1
  8.3336 +#endif /* GL_OVR_multiview2 */
  8.3337 +
  8.3338 +#ifndef GL_OVR_multiview_multisampled_render_to_texture
  8.3339 +#define GL_OVR_multiview_multisampled_render_to_texture 1
  8.3340 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTUREMULTISAMPLEMULTIVIEWOVRPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLsizei samples, GLint baseViewIndex, GLsizei numViews);
  8.3341 +#ifdef GL_GLEXT_PROTOTYPES
  8.3342 +GL_APICALL void GL_APIENTRY glFramebufferTextureMultisampleMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLsizei samples, GLint baseViewIndex, GLsizei numViews);
  8.3343 +#endif
  8.3344 +#endif /* GL_OVR_multiview_multisampled_render_to_texture */
  8.3345 +
  8.3346 +#ifndef GL_QCOM_alpha_test
  8.3347 +#define GL_QCOM_alpha_test 1
  8.3348 +#define GL_ALPHA_TEST_QCOM                0x0BC0
  8.3349 +#define GL_ALPHA_TEST_FUNC_QCOM           0x0BC1
  8.3350 +#define GL_ALPHA_TEST_REF_QCOM            0x0BC2
  8.3351 +typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
  8.3352 +#ifdef GL_GLEXT_PROTOTYPES
  8.3353 +GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
  8.3354 +#endif
  8.3355 +#endif /* GL_QCOM_alpha_test */
  8.3356 +
  8.3357 +#ifndef GL_QCOM_binning_control
  8.3358 +#define GL_QCOM_binning_control 1
  8.3359 +#define GL_BINNING_CONTROL_HINT_QCOM      0x8FB0
  8.3360 +#define GL_CPU_OPTIMIZED_QCOM             0x8FB1
  8.3361 +#define GL_GPU_OPTIMIZED_QCOM             0x8FB2
  8.3362 +#define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM 0x8FB3
  8.3363 +#endif /* GL_QCOM_binning_control */
  8.3364 +
  8.3365 +#ifndef GL_QCOM_driver_control
  8.3366 +#define GL_QCOM_driver_control 1
  8.3367 +typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
  8.3368 +typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  8.3369 +typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  8.3370 +typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  8.3371 +#ifdef GL_GLEXT_PROTOTYPES
  8.3372 +GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
  8.3373 +GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  8.3374 +GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
  8.3375 +GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
  8.3376 +#endif
  8.3377 +#endif /* GL_QCOM_driver_control */
  8.3378 +
  8.3379 +#ifndef GL_QCOM_extended_get
  8.3380 +#define GL_QCOM_extended_get 1
  8.3381 +#define GL_TEXTURE_WIDTH_QCOM             0x8BD2
  8.3382 +#define GL_TEXTURE_HEIGHT_QCOM            0x8BD3
  8.3383 +#define GL_TEXTURE_DEPTH_QCOM             0x8BD4
  8.3384 +#define GL_TEXTURE_INTERNAL_FORMAT_QCOM   0x8BD5
  8.3385 +#define GL_TEXTURE_FORMAT_QCOM            0x8BD6
  8.3386 +#define GL_TEXTURE_TYPE_QCOM              0x8BD7
  8.3387 +#define GL_TEXTURE_IMAGE_VALID_QCOM       0x8BD8
  8.3388 +#define GL_TEXTURE_NUM_LEVELS_QCOM        0x8BD9
  8.3389 +#define GL_TEXTURE_TARGET_QCOM            0x8BDA
  8.3390 +#define GL_TEXTURE_OBJECT_VALID_QCOM      0x8BDB
  8.3391 +#define GL_STATE_RESTORE                  0x8BDC
  8.3392 +typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
  8.3393 +typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  8.3394 +typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  8.3395 +typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  8.3396 +typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  8.3397 +typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
  8.3398 +typedef void (GL_APIENTRYP PFNGLEXTGETTEXSUBIMAGEQCOMPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void *texels);
  8.3399 +typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, void **params);
  8.3400 +#ifdef GL_GLEXT_PROTOTYPES
  8.3401 +GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
  8.3402 +GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  8.3403 +GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  8.3404 +GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  8.3405 +GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  8.3406 +GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
  8.3407 +GL_APICALL void GL_APIENTRY glExtGetTexSubImageQCOM (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void *texels);
  8.3408 +GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, void **params);
  8.3409 +#endif
  8.3410 +#endif /* GL_QCOM_extended_get */
  8.3411 +
  8.3412 +#ifndef GL_QCOM_extended_get2
  8.3413 +#define GL_QCOM_extended_get2 1
  8.3414 +typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  8.3415 +typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  8.3416 +typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
  8.3417 +typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  8.3418 +#ifdef GL_GLEXT_PROTOTYPES
  8.3419 +GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  8.3420 +GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  8.3421 +GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
  8.3422 +GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  8.3423 +#endif
  8.3424 +#endif /* GL_QCOM_extended_get2 */
  8.3425 +
  8.3426 +#ifndef GL_QCOM_framebuffer_foveated
  8.3427 +#define GL_QCOM_framebuffer_foveated 1
  8.3428 +#define GL_FOVEATION_ENABLE_BIT_QCOM      0x00000001
  8.3429 +#define GL_FOVEATION_SCALED_BIN_METHOD_BIT_QCOM 0x00000002
  8.3430 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERFOVEATIONCONFIGQCOMPROC) (GLuint framebuffer, GLuint numLayers, GLuint focalPointsPerLayer, GLuint requestedFeatures, GLuint *providedFeatures);
  8.3431 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERFOVEATIONPARAMETERSQCOMPROC) (GLuint framebuffer, GLuint layer, GLuint focalPoint, GLfloat focalX, GLfloat focalY, GLfloat gainX, GLfloat gainY, GLfloat foveaArea);
  8.3432 +#ifdef GL_GLEXT_PROTOTYPES
  8.3433 +GL_APICALL void GL_APIENTRY glFramebufferFoveationConfigQCOM (GLuint framebuffer, GLuint numLayers, GLuint focalPointsPerLayer, GLuint requestedFeatures, GLuint *providedFeatures);
  8.3434 +GL_APICALL void GL_APIENTRY glFramebufferFoveationParametersQCOM (GLuint framebuffer, GLuint layer, GLuint focalPoint, GLfloat focalX, GLfloat focalY, GLfloat gainX, GLfloat gainY, GLfloat foveaArea);
  8.3435 +#endif
  8.3436 +#endif /* GL_QCOM_framebuffer_foveated */
  8.3437 +
  8.3438 +#ifndef GL_QCOM_perfmon_global_mode
  8.3439 +#define GL_QCOM_perfmon_global_mode 1
  8.3440 +#define GL_PERFMON_GLOBAL_MODE_QCOM       0x8FA0
  8.3441 +#endif /* GL_QCOM_perfmon_global_mode */
  8.3442 +
  8.3443 +#ifndef GL_QCOM_shader_framebuffer_fetch_noncoherent
  8.3444 +#define GL_QCOM_shader_framebuffer_fetch_noncoherent 1
  8.3445 +#define GL_FRAMEBUFFER_FETCH_NONCOHERENT_QCOM 0x96A2
  8.3446 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERFETCHBARRIERQCOMPROC) (void);
  8.3447 +#ifdef GL_GLEXT_PROTOTYPES
  8.3448 +GL_APICALL void GL_APIENTRY glFramebufferFetchBarrierQCOM (void);
  8.3449 +#endif
  8.3450 +#endif /* GL_QCOM_shader_framebuffer_fetch_noncoherent */
  8.3451 +
  8.3452 +#ifndef GL_QCOM_tiled_rendering
  8.3453 +#define GL_QCOM_tiled_rendering 1
  8.3454 +#define GL_COLOR_BUFFER_BIT0_QCOM         0x00000001
  8.3455 +#define GL_COLOR_BUFFER_BIT1_QCOM         0x00000002
  8.3456 +#define GL_COLOR_BUFFER_BIT2_QCOM         0x00000004
  8.3457 +#define GL_COLOR_BUFFER_BIT3_QCOM         0x00000008
  8.3458 +#define GL_COLOR_BUFFER_BIT4_QCOM         0x00000010
  8.3459 +#define GL_COLOR_BUFFER_BIT5_QCOM         0x00000020
  8.3460 +#define GL_COLOR_BUFFER_BIT6_QCOM         0x00000040
  8.3461 +#define GL_COLOR_BUFFER_BIT7_QCOM         0x00000080
  8.3462 +#define GL_DEPTH_BUFFER_BIT0_QCOM         0x00000100
  8.3463 +#define GL_DEPTH_BUFFER_BIT1_QCOM         0x00000200
  8.3464 +#define GL_DEPTH_BUFFER_BIT2_QCOM         0x00000400
  8.3465 +#define GL_DEPTH_BUFFER_BIT3_QCOM         0x00000800
  8.3466 +#define GL_DEPTH_BUFFER_BIT4_QCOM         0x00001000
  8.3467 +#define GL_DEPTH_BUFFER_BIT5_QCOM         0x00002000
  8.3468 +#define GL_DEPTH_BUFFER_BIT6_QCOM         0x00004000
  8.3469 +#define GL_DEPTH_BUFFER_BIT7_QCOM         0x00008000
  8.3470 +#define GL_STENCIL_BUFFER_BIT0_QCOM       0x00010000
  8.3471 +#define GL_STENCIL_BUFFER_BIT1_QCOM       0x00020000
  8.3472 +#define GL_STENCIL_BUFFER_BIT2_QCOM       0x00040000
  8.3473 +#define GL_STENCIL_BUFFER_BIT3_QCOM       0x00080000
  8.3474 +#define GL_STENCIL_BUFFER_BIT4_QCOM       0x00100000
  8.3475 +#define GL_STENCIL_BUFFER_BIT5_QCOM       0x00200000
  8.3476 +#define GL_STENCIL_BUFFER_BIT6_QCOM       0x00400000
  8.3477 +#define GL_STENCIL_BUFFER_BIT7_QCOM       0x00800000
  8.3478 +#define GL_MULTISAMPLE_BUFFER_BIT0_QCOM   0x01000000
  8.3479 +#define GL_MULTISAMPLE_BUFFER_BIT1_QCOM   0x02000000
  8.3480 +#define GL_MULTISAMPLE_BUFFER_BIT2_QCOM   0x04000000
  8.3481 +#define GL_MULTISAMPLE_BUFFER_BIT3_QCOM   0x08000000
  8.3482 +#define GL_MULTISAMPLE_BUFFER_BIT4_QCOM   0x10000000
  8.3483 +#define GL_MULTISAMPLE_BUFFER_BIT5_QCOM   0x20000000
  8.3484 +#define GL_MULTISAMPLE_BUFFER_BIT6_QCOM   0x40000000
  8.3485 +#define GL_MULTISAMPLE_BUFFER_BIT7_QCOM   0x80000000
  8.3486 +typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  8.3487 +typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
  8.3488 +#ifdef GL_GLEXT_PROTOTYPES
  8.3489 +GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  8.3490 +GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
  8.3491 +#endif
  8.3492 +#endif /* GL_QCOM_tiled_rendering */
  8.3493 +
  8.3494 +#ifndef GL_QCOM_writeonly_rendering
  8.3495 +#define GL_QCOM_writeonly_rendering 1
  8.3496 +#define GL_WRITEONLY_RENDERING_QCOM       0x8823
  8.3497 +#endif /* GL_QCOM_writeonly_rendering */
  8.3498 +
  8.3499 +#ifndef GL_VIV_shader_binary
  8.3500 +#define GL_VIV_shader_binary 1
  8.3501 +#define GL_SHADER_BINARY_VIV              0x8FC4
  8.3502 +#endif /* GL_VIV_shader_binary */
  8.3503 +
  8.3504 +#ifdef __cplusplus
  8.3505 +}
  8.3506 +#endif
  8.3507 +
  8.3508 +#endif
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/src/video/khronos/GLES2/gl2platform.h	Tue Aug 29 22:04:43 2017 -0700
     9.3 @@ -0,0 +1,38 @@
     9.4 +#ifndef __gl2platform_h_
     9.5 +#define __gl2platform_h_
     9.6 +
     9.7 +/*
     9.8 +** Copyright (c) 2017 The Khronos Group Inc.
     9.9 +**
    9.10 +** Licensed under the Apache License, Version 2.0 (the "License");
    9.11 +** you may not use this file except in compliance with the License.
    9.12 +** You may obtain a copy of the License at
    9.13 +**
    9.14 +**     http://www.apache.org/licenses/LICENSE-2.0
    9.15 +**
    9.16 +** Unless required by applicable law or agreed to in writing, software
    9.17 +** distributed under the License is distributed on an "AS IS" BASIS,
    9.18 +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    9.19 +** See the License for the specific language governing permissions and
    9.20 +** limitations under the License.
    9.21 +*/
    9.22 +
    9.23 +/* Platform-specific types and definitions for OpenGL ES 2.X  gl2.h
    9.24 + *
    9.25 + * Adopters may modify khrplatform.h and this file to suit their platform.
    9.26 + * Please contribute modifications back to Khronos as pull requests on the
    9.27 + * public github repository:
    9.28 + *      https://github.com/KhronosGroup/OpenGL-Registry
    9.29 + */
    9.30 +
    9.31 +#include <KHR/khrplatform.h>
    9.32 +
    9.33 +#ifndef GL_APICALL
    9.34 +#define GL_APICALL  KHRONOS_APICALL
    9.35 +#endif
    9.36 +
    9.37 +#ifndef GL_APIENTRY
    9.38 +#define GL_APIENTRY KHRONOS_APIENTRY
    9.39 +#endif
    9.40 +
    9.41 +#endif /* __gl2platform_h_ */
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/src/video/khronos/KHR/khrplatform.h	Tue Aug 29 22:04:43 2017 -0700
    10.3 @@ -0,0 +1,284 @@
    10.4 +#ifndef __khrplatform_h_
    10.5 +#define __khrplatform_h_
    10.6 +
    10.7 +/*
    10.8 +** Copyright (c) 2008-2009 The Khronos Group Inc.
    10.9 +**
   10.10 +** Permission is hereby granted, free of charge, to any person obtaining a
   10.11 +** copy of this software and/or associated documentation files (the
   10.12 +** "Materials"), to deal in the Materials without restriction, including
   10.13 +** without limitation the rights to use, copy, modify, merge, publish,
   10.14 +** distribute, sublicense, and/or sell copies of the Materials, and to
   10.15 +** permit persons to whom the Materials are furnished to do so, subject to
   10.16 +** the following conditions:
   10.17 +**
   10.18 +** The above copyright notice and this permission notice shall be included
   10.19 +** in all copies or substantial portions of the Materials.
   10.20 +**
   10.21 +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
   10.22 +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   10.23 +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   10.24 +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
   10.25 +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   10.26 +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   10.27 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
   10.28 +*/
   10.29 +
   10.30 +/* Khronos platform-specific types and definitions.
   10.31 + *
   10.32 + * $Revision: 32517 $ on $Date: 2016-03-11 02:41:19 -0800 (Fri, 11 Mar 2016) $
   10.33 + *
   10.34 + * Adopters may modify this file to suit their platform. Adopters are
   10.35 + * encouraged to submit platform specific modifications to the Khronos
   10.36 + * group so that they can be included in future versions of this file.
   10.37 + * Please submit changes by sending them to the public Khronos Bugzilla
   10.38 + * (http://khronos.org/bugzilla) by filing a bug against product
   10.39 + * "Khronos (general)" component "Registry".
   10.40 + *
   10.41 + * A predefined template which fills in some of the bug fields can be
   10.42 + * reached using http://tinyurl.com/khrplatform-h-bugreport, but you
   10.43 + * must create a Bugzilla login first.
   10.44 + *
   10.45 + *
   10.46 + * See the Implementer's Guidelines for information about where this file
   10.47 + * should be located on your system and for more details of its use:
   10.48 + *    http://www.khronos.org/registry/implementers_guide.pdf
   10.49 + *
   10.50 + * This file should be included as
   10.51 + *        #include <KHR/khrplatform.h>
   10.52 + * by Khronos client API header files that use its types and defines.
   10.53 + *
   10.54 + * The types in khrplatform.h should only be used to define API-specific types.
   10.55 + *
   10.56 + * Types defined in khrplatform.h:
   10.57 + *    khronos_int8_t              signed   8  bit
   10.58 + *    khronos_uint8_t             unsigned 8  bit
   10.59 + *    khronos_int16_t             signed   16 bit
   10.60 + *    khronos_uint16_t            unsigned 16 bit
   10.61 + *    khronos_int32_t             signed   32 bit
   10.62 + *    khronos_uint32_t            unsigned 32 bit
   10.63 + *    khronos_int64_t             signed   64 bit
   10.64 + *    khronos_uint64_t            unsigned 64 bit
   10.65 + *    khronos_intptr_t            signed   same number of bits as a pointer
   10.66 + *    khronos_uintptr_t           unsigned same number of bits as a pointer
   10.67 + *    khronos_ssize_t             signed   size
   10.68 + *    khronos_usize_t             unsigned size
   10.69 + *    khronos_float_t             signed   32 bit floating point
   10.70 + *    khronos_time_ns_t           unsigned 64 bit time in nanoseconds
   10.71 + *    khronos_utime_nanoseconds_t unsigned time interval or absolute time in
   10.72 + *                                         nanoseconds
   10.73 + *    khronos_stime_nanoseconds_t signed time interval in nanoseconds
   10.74 + *    khronos_boolean_enum_t      enumerated boolean type. This should
   10.75 + *      only be used as a base type when a client API's boolean type is
   10.76 + *      an enum. Client APIs which use an integer or other type for
   10.77 + *      booleans cannot use this as the base type for their boolean.
   10.78 + *
   10.79 + * Tokens defined in khrplatform.h:
   10.80 + *
   10.81 + *    KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
   10.82 + *
   10.83 + *    KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
   10.84 + *    KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
   10.85 + *
   10.86 + * Calling convention macros defined in this file:
   10.87 + *    KHRONOS_APICALL
   10.88 + *    KHRONOS_APIENTRY
   10.89 + *    KHRONOS_APIATTRIBUTES
   10.90 + *
   10.91 + * These may be used in function prototypes as:
   10.92 + *
   10.93 + *      KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
   10.94 + *                                  int arg1,
   10.95 + *                                  int arg2) KHRONOS_APIATTRIBUTES;
   10.96 + */
   10.97 +
   10.98 +/*-------------------------------------------------------------------------
   10.99 + * Definition of KHRONOS_APICALL
  10.100 + *-------------------------------------------------------------------------
  10.101 + * This precedes the return type of the function in the function prototype.
  10.102 + */
  10.103 +#if defined(_WIN32) && !defined(__SCITECH_SNAP__)
  10.104 +#   define KHRONOS_APICALL __declspec(dllimport)
  10.105 +#elif defined (__SYMBIAN32__)
  10.106 +#   define KHRONOS_APICALL IMPORT_C
  10.107 +#elif defined(__ANDROID__)
  10.108 +#   define KHRONOS_APICALL __attribute__((visibility("default")))
  10.109 +#else
  10.110 +#   define KHRONOS_APICALL
  10.111 +#endif
  10.112 +
  10.113 +/*-------------------------------------------------------------------------
  10.114 + * Definition of KHRONOS_APIENTRY
  10.115 + *-------------------------------------------------------------------------
  10.116 + * This follows the return type of the function  and precedes the function
  10.117 + * name in the function prototype.
  10.118 + */
  10.119 +#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
  10.120 +    /* Win32 but not WinCE */
  10.121 +#   define KHRONOS_APIENTRY __stdcall
  10.122 +#else
  10.123 +#   define KHRONOS_APIENTRY
  10.124 +#endif
  10.125 +
  10.126 +/*-------------------------------------------------------------------------
  10.127 + * Definition of KHRONOS_APIATTRIBUTES
  10.128 + *-------------------------------------------------------------------------
  10.129 + * This follows the closing parenthesis of the function prototype arguments.
  10.130 + */
  10.131 +#if defined (__ARMCC_2__)
  10.132 +#define KHRONOS_APIATTRIBUTES __softfp
  10.133 +#else
  10.134 +#define KHRONOS_APIATTRIBUTES
  10.135 +#endif
  10.136 +
  10.137 +/*-------------------------------------------------------------------------
  10.138 + * basic type definitions
  10.139 + *-----------------------------------------------------------------------*/
  10.140 +#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
  10.141 +
  10.142 +
  10.143 +/*
  10.144 + * Using <stdint.h>
  10.145 + */
  10.146 +#include <stdint.h>
  10.147 +typedef int32_t                 khronos_int32_t;
  10.148 +typedef uint32_t                khronos_uint32_t;
  10.149 +typedef int64_t                 khronos_int64_t;
  10.150 +typedef uint64_t                khronos_uint64_t;
  10.151 +#define KHRONOS_SUPPORT_INT64   1
  10.152 +#define KHRONOS_SUPPORT_FLOAT   1
  10.153 +
  10.154 +#elif defined(__VMS ) || defined(__sgi)
  10.155 +
  10.156 +/*
  10.157 + * Using <inttypes.h>
  10.158 + */
  10.159 +#include <inttypes.h>
  10.160 +typedef int32_t                 khronos_int32_t;
  10.161 +typedef uint32_t                khronos_uint32_t;
  10.162 +typedef int64_t                 khronos_int64_t;
  10.163 +typedef uint64_t                khronos_uint64_t;
  10.164 +#define KHRONOS_SUPPORT_INT64   1
  10.165 +#define KHRONOS_SUPPORT_FLOAT   1
  10.166 +
  10.167 +#elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
  10.168 +
  10.169 +/*
  10.170 + * Win32
  10.171 + */
  10.172 +typedef __int32                 khronos_int32_t;
  10.173 +typedef unsigned __int32        khronos_uint32_t;
  10.174 +typedef __int64                 khronos_int64_t;
  10.175 +typedef unsigned __int64        khronos_uint64_t;
  10.176 +#define KHRONOS_SUPPORT_INT64   1
  10.177 +#define KHRONOS_SUPPORT_FLOAT   1
  10.178 +
  10.179 +#elif defined(__sun__) || defined(__digital__)
  10.180 +
  10.181 +/*
  10.182 + * Sun or Digital
  10.183 + */
  10.184 +typedef int                     khronos_int32_t;
  10.185 +typedef unsigned int            khronos_uint32_t;
  10.186 +#if defined(__arch64__) || defined(_LP64)
  10.187 +typedef long int                khronos_int64_t;
  10.188 +typedef unsigned long int       khronos_uint64_t;
  10.189 +#else
  10.190 +typedef long long int           khronos_int64_t;
  10.191 +typedef unsigned long long int  khronos_uint64_t;
  10.192 +#endif /* __arch64__ */
  10.193 +#define KHRONOS_SUPPORT_INT64   1
  10.194 +#define KHRONOS_SUPPORT_FLOAT   1
  10.195 +
  10.196 +#elif 0
  10.197 +
  10.198 +/*
  10.199 + * Hypothetical platform with no float or int64 support
  10.200 + */
  10.201 +typedef int                     khronos_int32_t;
  10.202 +typedef unsigned int            khronos_uint32_t;
  10.203 +#define KHRONOS_SUPPORT_INT64   0
  10.204 +#define KHRONOS_SUPPORT_FLOAT   0
  10.205 +
  10.206 +#else
  10.207 +
  10.208 +/*
  10.209 + * Generic fallback
  10.210 + */
  10.211 +#include <stdint.h>
  10.212 +typedef int32_t                 khronos_int32_t;
  10.213 +typedef uint32_t                khronos_uint32_t;
  10.214 +typedef int64_t                 khronos_int64_t;
  10.215 +typedef uint64_t                khronos_uint64_t;
  10.216 +#define KHRONOS_SUPPORT_INT64   1
  10.217 +#define KHRONOS_SUPPORT_FLOAT   1
  10.218 +
  10.219 +#endif
  10.220 +
  10.221 +
  10.222 +/*
  10.223 + * Types that are (so far) the same on all platforms
  10.224 + */
  10.225 +typedef signed   char          khronos_int8_t;
  10.226 +typedef unsigned char          khronos_uint8_t;
  10.227 +typedef signed   short int     khronos_int16_t;
  10.228 +typedef unsigned short int     khronos_uint16_t;
  10.229 +
  10.230 +/*
  10.231 + * Types that differ between LLP64 and LP64 architectures - in LLP64,
  10.232 + * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
  10.233 + * to be the only LLP64 architecture in current use.
  10.234 + */
  10.235 +#ifdef _WIN64
  10.236 +typedef signed   long long int khronos_intptr_t;
  10.237 +typedef unsigned long long int khronos_uintptr_t;
  10.238 +typedef signed   long long int khronos_ssize_t;
  10.239 +typedef unsigned long long int khronos_usize_t;
  10.240 +#else
  10.241 +typedef signed   long  int     khronos_intptr_t;
  10.242 +typedef unsigned long  int     khronos_uintptr_t;
  10.243 +typedef signed   long  int     khronos_ssize_t;
  10.244 +typedef unsigned long  int     khronos_usize_t;
  10.245 +#endif
  10.246 +
  10.247 +#if KHRONOS_SUPPORT_FLOAT
  10.248 +/*
  10.249 + * Float type
  10.250 + */
  10.251 +typedef          float         khronos_float_t;
  10.252 +#endif
  10.253 +
  10.254 +#if KHRONOS_SUPPORT_INT64
  10.255 +/* Time types
  10.256 + *
  10.257 + * These types can be used to represent a time interval in nanoseconds or
  10.258 + * an absolute Unadjusted System Time.  Unadjusted System Time is the number
  10.259 + * of nanoseconds since some arbitrary system event (e.g. since the last
  10.260 + * time the system booted).  The Unadjusted System Time is an unsigned
  10.261 + * 64 bit value that wraps back to 0 every 584 years.  Time intervals
  10.262 + * may be either signed or unsigned.
  10.263 + */
  10.264 +typedef khronos_uint64_t       khronos_utime_nanoseconds_t;
  10.265 +typedef khronos_int64_t        khronos_stime_nanoseconds_t;
  10.266 +#endif
  10.267 +
  10.268 +/*
  10.269 + * Dummy value used to pad enum types to 32 bits.
  10.270 + */
  10.271 +#ifndef KHRONOS_MAX_ENUM
  10.272 +#define KHRONOS_MAX_ENUM 0x7FFFFFFF
  10.273 +#endif
  10.274 +
  10.275 +/*
  10.276 + * Enumerated boolean type
  10.277 + *
  10.278 + * Values other than zero should be considered to be true.  Therefore
  10.279 + * comparisons should not be made against KHRONOS_TRUE.
  10.280 + */
  10.281 +typedef enum {
  10.282 +    KHRONOS_FALSE = 0,
  10.283 +    KHRONOS_TRUE  = 1,
  10.284 +    KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
  10.285 +} khronos_boolean_enum_t;
  10.286 +
  10.287 +#endif /* __khrplatform_h_ */