include/SDL_opengles2_gl2ext.h
changeset 8806 1a413cfc6ab7
child 8808 da1e1d6e84c4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/include/SDL_opengles2_gl2ext.h	Wed Jun 04 01:27:13 2014 -0700
     1.3 @@ -0,0 +1,1809 @@
     1.4 +#ifndef __gl2ext_h_
     1.5 +#define __gl2ext_h_
     1.6 +
     1.7 +/* $Revision: 19436 $ on $Date:: 2012-10-10 10:37:04 -0700 #$ */
     1.8 +
     1.9 +#ifdef __cplusplus
    1.10 +extern "C" {
    1.11 +#endif
    1.12 +
    1.13 +/*
    1.14 + * This document is licensed under the SGI Free Software B License Version
    1.15 + * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
    1.16 + */
    1.17 +
    1.18 +#ifndef GL_APIENTRYP
    1.19 +#   define GL_APIENTRYP GL_APIENTRY*
    1.20 +#endif
    1.21 +
    1.22 +/*------------------------------------------------------------------------*
    1.23 + * OES extension tokens
    1.24 + *------------------------------------------------------------------------*/
    1.25 +
    1.26 +/* GL_OES_compressed_ETC1_RGB8_texture */
    1.27 +#ifndef GL_OES_compressed_ETC1_RGB8_texture
    1.28 +#define GL_ETC1_RGB8_OES                                        0x8D64
    1.29 +#endif
    1.30 +
    1.31 +/* GL_OES_compressed_paletted_texture */
    1.32 +#ifndef GL_OES_compressed_paletted_texture
    1.33 +#define GL_PALETTE4_RGB8_OES                                    0x8B90
    1.34 +#define GL_PALETTE4_RGBA8_OES                                   0x8B91
    1.35 +#define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
    1.36 +#define GL_PALETTE4_RGBA4_OES                                   0x8B93
    1.37 +#define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
    1.38 +#define GL_PALETTE8_RGB8_OES                                    0x8B95
    1.39 +#define GL_PALETTE8_RGBA8_OES                                   0x8B96
    1.40 +#define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
    1.41 +#define GL_PALETTE8_RGBA4_OES                                   0x8B98
    1.42 +#define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
    1.43 +#endif
    1.44 +
    1.45 +/* GL_OES_depth24 */
    1.46 +#ifndef GL_OES_depth24
    1.47 +#define GL_DEPTH_COMPONENT24_OES                                0x81A6
    1.48 +#endif
    1.49 +
    1.50 +/* GL_OES_depth32 */
    1.51 +#ifndef GL_OES_depth32
    1.52 +#define GL_DEPTH_COMPONENT32_OES                                0x81A7
    1.53 +#endif
    1.54 +
    1.55 +/* GL_OES_depth_texture */
    1.56 +/* No new tokens introduced by this extension. */
    1.57 +
    1.58 +/* GL_OES_EGL_image */
    1.59 +#ifndef GL_OES_EGL_image
    1.60 +typedef void* GLeglImageOES;
    1.61 +#endif
    1.62 +
    1.63 +/* GL_OES_EGL_image_external */
    1.64 +#ifndef GL_OES_EGL_image_external
    1.65 +/* GLeglImageOES defined in GL_OES_EGL_image already. */
    1.66 +#define GL_TEXTURE_EXTERNAL_OES                                 0x8D65
    1.67 +#define GL_SAMPLER_EXTERNAL_OES                                 0x8D66
    1.68 +#define GL_TEXTURE_BINDING_EXTERNAL_OES                         0x8D67
    1.69 +#define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES                     0x8D68
    1.70 +#endif
    1.71 +
    1.72 +/* GL_OES_element_index_uint */
    1.73 +#ifndef GL_OES_element_index_uint
    1.74 +#define GL_UNSIGNED_INT                                         0x1405
    1.75 +#endif
    1.76 +
    1.77 +/* GL_OES_get_program_binary */
    1.78 +#ifndef GL_OES_get_program_binary
    1.79 +#define GL_PROGRAM_BINARY_LENGTH_OES                            0x8741
    1.80 +#define GL_NUM_PROGRAM_BINARY_FORMATS_OES                       0x87FE
    1.81 +#define GL_PROGRAM_BINARY_FORMATS_OES                           0x87FF
    1.82 +#endif
    1.83 +
    1.84 +/* GL_OES_mapbuffer */
    1.85 +#ifndef GL_OES_mapbuffer
    1.86 +#define GL_WRITE_ONLY_OES                                       0x88B9
    1.87 +#define GL_BUFFER_ACCESS_OES                                    0x88BB
    1.88 +#define GL_BUFFER_MAPPED_OES                                    0x88BC
    1.89 +#define GL_BUFFER_MAP_POINTER_OES                               0x88BD
    1.90 +#endif
    1.91 +
    1.92 +/* GL_OES_packed_depth_stencil */
    1.93 +#ifndef GL_OES_packed_depth_stencil
    1.94 +#define GL_DEPTH_STENCIL_OES                                    0x84F9
    1.95 +#define GL_UNSIGNED_INT_24_8_OES                                0x84FA
    1.96 +#define GL_DEPTH24_STENCIL8_OES                                 0x88F0
    1.97 +#endif
    1.98 +
    1.99 +/* GL_OES_required_internalformat */
   1.100 +#ifndef GL_OES_required_internalformat 
   1.101 +#define GL_ALPHA8_OES                                           0x803C
   1.102 +#define GL_DEPTH_COMPONENT16_OES                                0x81A5
   1.103 +/* reuse GL_DEPTH_COMPONENT24_OES */                            
   1.104 +/* reuse GL_DEPTH24_STENCIL8_OES */                             
   1.105 +/* reuse GL_DEPTH_COMPONENT32_OES */                            
   1.106 +#define GL_LUMINANCE4_ALPHA4_OES                                0x8043
   1.107 +#define GL_LUMINANCE8_ALPHA8_OES                                0x8045
   1.108 +#define GL_LUMINANCE8_OES                                       0x8040
   1.109 +#define GL_RGBA4_OES                                            0x8056
   1.110 +#define GL_RGB5_A1_OES                                          0x8057
   1.111 +#define GL_RGB565_OES                                           0x8D62
   1.112 +/* reuse GL_RGB8_OES */                              
   1.113 +/* reuse GL_RGBA8_OES */  
   1.114 +/* reuse GL_RGB10_EXT */
   1.115 +/* reuse GL_RGB10_A2_EXT */
   1.116 +#endif 
   1.117 +
   1.118 +/* GL_OES_rgb8_rgba8 */
   1.119 +#ifndef GL_OES_rgb8_rgba8
   1.120 +#define GL_RGB8_OES                                             0x8051
   1.121 +#define GL_RGBA8_OES                                            0x8058
   1.122 +#endif
   1.123 +
   1.124 +/* GL_OES_standard_derivatives */
   1.125 +#ifndef GL_OES_standard_derivatives
   1.126 +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES                  0x8B8B
   1.127 +#endif
   1.128 +
   1.129 +/* GL_OES_stencil1 */
   1.130 +#ifndef GL_OES_stencil1
   1.131 +#define GL_STENCIL_INDEX1_OES                                   0x8D46
   1.132 +#endif
   1.133 +
   1.134 +/* GL_OES_stencil4 */
   1.135 +#ifndef GL_OES_stencil4
   1.136 +#define GL_STENCIL_INDEX4_OES                                   0x8D47
   1.137 +#endif
   1.138 +
   1.139 +#ifndef GL_OES_surfaceless_context
   1.140 +#define GL_FRAMEBUFFER_UNDEFINED_OES                            0x8219
   1.141 +#endif
   1.142 +
   1.143 +/* GL_OES_texture_3D */
   1.144 +#ifndef GL_OES_texture_3D
   1.145 +#define GL_TEXTURE_WRAP_R_OES                                   0x8072
   1.146 +#define GL_TEXTURE_3D_OES                                       0x806F
   1.147 +#define GL_TEXTURE_BINDING_3D_OES                               0x806A
   1.148 +#define GL_MAX_3D_TEXTURE_SIZE_OES                              0x8073
   1.149 +#define GL_SAMPLER_3D_OES                                       0x8B5F
   1.150 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES        0x8CD4
   1.151 +#endif
   1.152 +
   1.153 +/* GL_OES_texture_float */
   1.154 +/* No new tokens introduced by this extension. */
   1.155 +
   1.156 +/* GL_OES_texture_float_linear */
   1.157 +/* No new tokens introduced by this extension. */
   1.158 +
   1.159 +/* GL_OES_texture_half_float */
   1.160 +#ifndef GL_OES_texture_half_float
   1.161 +#define GL_HALF_FLOAT_OES                                       0x8D61
   1.162 +#endif
   1.163 +
   1.164 +/* GL_OES_texture_half_float_linear */
   1.165 +/* No new tokens introduced by this extension. */
   1.166 +
   1.167 +/* GL_OES_texture_npot */
   1.168 +/* No new tokens introduced by this extension. */
   1.169 +
   1.170 +/* GL_OES_vertex_array_object */
   1.171 +#ifndef GL_OES_vertex_array_object
   1.172 +#define GL_VERTEX_ARRAY_BINDING_OES                             0x85B5
   1.173 +#endif
   1.174 +
   1.175 +/* GL_OES_vertex_half_float */
   1.176 +/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
   1.177 +
   1.178 +/* GL_OES_vertex_type_10_10_10_2 */
   1.179 +#ifndef GL_OES_vertex_type_10_10_10_2
   1.180 +#define GL_UNSIGNED_INT_10_10_10_2_OES                          0x8DF6
   1.181 +#define GL_INT_10_10_10_2_OES                                   0x8DF7
   1.182 +#endif
   1.183 +
   1.184 +/*------------------------------------------------------------------------*
   1.185 + * KHR extension tokens
   1.186 + *------------------------------------------------------------------------*/
   1.187 +
   1.188 +#ifndef GL_KHR_debug
   1.189 +typedef void (GL_APIENTRYP GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
   1.190 +#define GL_DEBUG_OUTPUT_SYNCHRONOUS                             0x8242
   1.191 +#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH                     0x8243
   1.192 +#define GL_DEBUG_CALLBACK_FUNCTION                              0x8244
   1.193 +#define GL_DEBUG_CALLBACK_USER_PARAM                            0x8245
   1.194 +#define GL_DEBUG_SOURCE_API                                     0x8246
   1.195 +#define GL_DEBUG_SOURCE_WINDOW_SYSTEM                           0x8247
   1.196 +#define GL_DEBUG_SOURCE_SHADER_COMPILER                         0x8248
   1.197 +#define GL_DEBUG_SOURCE_THIRD_PARTY                             0x8249
   1.198 +#define GL_DEBUG_SOURCE_APPLICATION                             0x824A
   1.199 +#define GL_DEBUG_SOURCE_OTHER                                   0x824B
   1.200 +#define GL_DEBUG_TYPE_ERROR                                     0x824C
   1.201 +#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR                       0x824D
   1.202 +#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR                        0x824E
   1.203 +#define GL_DEBUG_TYPE_PORTABILITY                               0x824F
   1.204 +#define GL_DEBUG_TYPE_PERFORMANCE                               0x8250
   1.205 +#define GL_DEBUG_TYPE_OTHER                                     0x8251
   1.206 +#define GL_DEBUG_TYPE_MARKER                                    0x8268
   1.207 +#define GL_DEBUG_TYPE_PUSH_GROUP                                0x8269
   1.208 +#define GL_DEBUG_TYPE_POP_GROUP                                 0x826A
   1.209 +#define GL_DEBUG_SEVERITY_NOTIFICATION                          0x826B
   1.210 +#define GL_MAX_DEBUG_GROUP_STACK_DEPTH                          0x826C
   1.211 +#define GL_DEBUG_GROUP_STACK_DEPTH                              0x826D
   1.212 +#define GL_BUFFER                                               0x82E0
   1.213 +#define GL_SHADER                                               0x82E1
   1.214 +#define GL_PROGRAM                                              0x82E2
   1.215 +#define GL_QUERY                                                0x82E3
   1.216 +/* PROGRAM_PIPELINE only in GL */                               
   1.217 +#define GL_SAMPLER                                              0x82E6
   1.218 +/* DISPLAY_LIST only in GL */                                   
   1.219 +#define GL_MAX_LABEL_LENGTH                                     0x82E8
   1.220 +#define GL_MAX_DEBUG_MESSAGE_LENGTH                             0x9143
   1.221 +#define GL_MAX_DEBUG_LOGGED_MESSAGES                            0x9144
   1.222 +#define GL_DEBUG_LOGGED_MESSAGES                                0x9145
   1.223 +#define GL_DEBUG_SEVERITY_HIGH                                  0x9146
   1.224 +#define GL_DEBUG_SEVERITY_MEDIUM                                0x9147
   1.225 +#define GL_DEBUG_SEVERITY_LOW                                   0x9148
   1.226 +#define GL_DEBUG_OUTPUT                                         0x92E0
   1.227 +#define GL_CONTEXT_FLAG_DEBUG_BIT                               0x00000002
   1.228 +#define GL_STACK_OVERFLOW                                       0x0503
   1.229 +#define GL_STACK_UNDERFLOW                                      0x0504
   1.230 +#endif
   1.231 +
   1.232 +#ifndef GL_KHR_texture_compression_astc_ldr
   1.233 +#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR                         0x93B0
   1.234 +#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR                         0x93B1
   1.235 +#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR                         0x93B2
   1.236 +#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR                         0x93B3
   1.237 +#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR                         0x93B4
   1.238 +#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR                         0x93B5
   1.239 +#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR                         0x93B6
   1.240 +#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR                         0x93B7
   1.241 +#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR                        0x93B8
   1.242 +#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR                        0x93B9
   1.243 +#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR                        0x93BA
   1.244 +#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR                       0x93BB
   1.245 +#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR                       0x93BC
   1.246 +#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR                       0x93BD
   1.247 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR                 0x93D0
   1.248 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR                 0x93D1
   1.249 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR                 0x93D2
   1.250 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR                 0x93D3
   1.251 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR                 0x93D4
   1.252 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR                 0x93D5
   1.253 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR                 0x93D6
   1.254 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR                 0x93D7
   1.255 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR                0x93D8
   1.256 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR                0x93D9
   1.257 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR                0x93DA
   1.258 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR               0x93DB
   1.259 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR               0x93DC
   1.260 +#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR               0x93DD
   1.261 +#endif
   1.262 +
   1.263 +/*------------------------------------------------------------------------*
   1.264 + * AMD extension tokens
   1.265 + *------------------------------------------------------------------------*/
   1.266 +
   1.267 +/* GL_AMD_compressed_3DC_texture */
   1.268 +#ifndef GL_AMD_compressed_3DC_texture
   1.269 +#define GL_3DC_X_AMD                                            0x87F9
   1.270 +#define GL_3DC_XY_AMD                                           0x87FA
   1.271 +#endif
   1.272 +
   1.273 +/* GL_AMD_compressed_ATC_texture */
   1.274 +#ifndef GL_AMD_compressed_ATC_texture
   1.275 +#define GL_ATC_RGB_AMD                                          0x8C92
   1.276 +#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                          0x8C93
   1.277 +#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD                      0x87EE
   1.278 +#endif
   1.279 +
   1.280 +/* GL_AMD_performance_monitor */
   1.281 +#ifndef GL_AMD_performance_monitor
   1.282 +#define GL_COUNTER_TYPE_AMD                                     0x8BC0
   1.283 +#define GL_COUNTER_RANGE_AMD                                    0x8BC1
   1.284 +#define GL_UNSIGNED_INT64_AMD                                   0x8BC2
   1.285 +#define GL_PERCENTAGE_AMD                                       0x8BC3
   1.286 +#define GL_PERFMON_RESULT_AVAILABLE_AMD                         0x8BC4
   1.287 +#define GL_PERFMON_RESULT_SIZE_AMD                              0x8BC5
   1.288 +#define GL_PERFMON_RESULT_AMD                                   0x8BC6
   1.289 +#endif
   1.290 +
   1.291 +/* GL_AMD_program_binary_Z400 */
   1.292 +#ifndef GL_AMD_program_binary_Z400
   1.293 +#define GL_Z400_BINARY_AMD                                      0x8740
   1.294 +#endif
   1.295 +
   1.296 +/*------------------------------------------------------------------------*
   1.297 + * ANGLE extension tokens
   1.298 + *------------------------------------------------------------------------*/
   1.299 +
   1.300 +/* GL_ANGLE_framebuffer_blit */
   1.301 +#ifndef GL_ANGLE_framebuffer_blit
   1.302 +#define GL_READ_FRAMEBUFFER_ANGLE                               0x8CA8
   1.303 +#define GL_DRAW_FRAMEBUFFER_ANGLE                               0x8CA9
   1.304 +#define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE                       0x8CA6
   1.305 +#define GL_READ_FRAMEBUFFER_BINDING_ANGLE                       0x8CAA
   1.306 +#endif
   1.307 +
   1.308 +/* GL_ANGLE_framebuffer_multisample */
   1.309 +#ifndef GL_ANGLE_framebuffer_multisample
   1.310 +#define GL_RENDERBUFFER_SAMPLES_ANGLE                           0x8CAB
   1.311 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE             0x8D56
   1.312 +#define GL_MAX_SAMPLES_ANGLE                                    0x8D57
   1.313 +#endif
   1.314 +
   1.315 +/* GL_ANGLE_instanced_arrays */
   1.316 +#ifndef GL_ANGLE_instanced_arrays 
   1.317 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE                    0x88FE
   1.318 +#endif
   1.319 +
   1.320 +/* GL_ANGLE_pack_reverse_row_order */
   1.321 +#ifndef GL_ANGLE_pack_reverse_row_order 
   1.322 +#define GL_PACK_REVERSE_ROW_ORDER_ANGLE                         0x93A4
   1.323 +#endif
   1.324 +
   1.325 +/* GL_ANGLE_texture_compression_dxt3 */
   1.326 +#ifndef GL_ANGLE_texture_compression_dxt3 
   1.327 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE                      0x83F2
   1.328 +#endif
   1.329 +
   1.330 +/* GL_ANGLE_texture_compression_dxt5 */
   1.331 +#ifndef GL_ANGLE_texture_compression_dxt5 
   1.332 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE                      0x83F3
   1.333 +#endif
   1.334 +
   1.335 +/* GL_ANGLE_texture_usage */
   1.336 +#ifndef GL_ANGLE_texture_usage 
   1.337 +#define GL_TEXTURE_USAGE_ANGLE                                  0x93A2
   1.338 +#define GL_FRAMEBUFFER_ATTACHMENT_ANGLE                         0x93A3
   1.339 +#endif
   1.340 +
   1.341 +/* GL_ANGLE_translated_shader_source */
   1.342 +#ifndef GL_ANGLE_translated_shader_source 
   1.343 +#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE                0x93A0
   1.344 +#endif
   1.345 +
   1.346 +/*------------------------------------------------------------------------*
   1.347 + * APPLE extension tokens
   1.348 + *------------------------------------------------------------------------*/
   1.349 +
   1.350 +/* GL_APPLE_copy_texture_levels */
   1.351 +/* No new tokens introduced by this extension. */
   1.352 +    
   1.353 +/* GL_APPLE_framebuffer_multisample */
   1.354 +#ifndef GL_APPLE_framebuffer_multisample
   1.355 +#define GL_RENDERBUFFER_SAMPLES_APPLE                           0x8CAB
   1.356 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE             0x8D56
   1.357 +#define GL_MAX_SAMPLES_APPLE                                    0x8D57
   1.358 +#define GL_READ_FRAMEBUFFER_APPLE                               0x8CA8
   1.359 +#define GL_DRAW_FRAMEBUFFER_APPLE                               0x8CA9
   1.360 +#define GL_DRAW_FRAMEBUFFER_BINDING_APPLE                       0x8CA6
   1.361 +#define GL_READ_FRAMEBUFFER_BINDING_APPLE                       0x8CAA
   1.362 +#endif
   1.363 +
   1.364 +/* GL_APPLE_rgb_422 */
   1.365 +#ifndef GL_APPLE_rgb_422
   1.366 +#define GL_RGB_422_APPLE                                        0x8A1F
   1.367 +#define GL_UNSIGNED_SHORT_8_8_APPLE                             0x85BA
   1.368 +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE                         0x85BB
   1.369 +#endif
   1.370 +
   1.371 +/* GL_APPLE_sync */
   1.372 +#ifndef GL_APPLE_sync
   1.373 +
   1.374 +#ifndef __gl3_h_
   1.375 +/* These types are defined with reference to <inttypes.h>
   1.376 + * in the Apple extension spec, but here we use the Khronos
   1.377 + * portable types in khrplatform.h, and assume those types 
   1.378 + * are always defined.
   1.379 + * If any other extensions using these types are defined, 
   1.380 + * the typedefs must move out of this block and be shared.
   1.381 + */
   1.382 +typedef khronos_int64_t GLint64;
   1.383 +typedef khronos_uint64_t GLuint64;
   1.384 +typedef struct __GLsync *GLsync;
   1.385 +#endif
   1.386 +
   1.387 +#define GL_SYNC_OBJECT_APPLE                                    0x8A53
   1.388 +#define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE                        0x9111
   1.389 +#define GL_OBJECT_TYPE_APPLE                                    0x9112
   1.390 +#define GL_SYNC_CONDITION_APPLE                                 0x9113
   1.391 +#define GL_SYNC_STATUS_APPLE                                    0x9114
   1.392 +#define GL_SYNC_FLAGS_APPLE                                     0x9115
   1.393 +#define GL_SYNC_FENCE_APPLE                                     0x9116
   1.394 +#define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE                     0x9117
   1.395 +#define GL_UNSIGNALED_APPLE                                     0x9118
   1.396 +#define GL_SIGNALED_APPLE                                       0x9119
   1.397 +#define GL_ALREADY_SIGNALED_APPLE                               0x911A
   1.398 +#define GL_TIMEOUT_EXPIRED_APPLE                                0x911B
   1.399 +#define GL_CONDITION_SATISFIED_APPLE                            0x911C
   1.400 +#define GL_WAIT_FAILED_APPLE                                    0x911D
   1.401 +#define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE                        0x00000001
   1.402 +#define GL_TIMEOUT_IGNORED_APPLE                                0xFFFFFFFFFFFFFFFFull
   1.403 +#endif
   1.404 +
   1.405 +/* GL_APPLE_texture_format_BGRA8888 */
   1.406 +#ifndef GL_APPLE_texture_format_BGRA8888
   1.407 +#define GL_BGRA_EXT                                             0x80E1
   1.408 +#endif
   1.409 +
   1.410 +/* GL_APPLE_texture_max_level */
   1.411 +#ifndef GL_APPLE_texture_max_level
   1.412 +#define GL_TEXTURE_MAX_LEVEL_APPLE                              0x813D
   1.413 +#endif
   1.414 +
   1.415 +/*------------------------------------------------------------------------*
   1.416 + * ARM extension tokens
   1.417 + *------------------------------------------------------------------------*/
   1.418 +
   1.419 +/* GL_ARM_mali_program_binary */
   1.420 +#ifndef GL_ARM_mali_program_binary
   1.421 +#define GL_MALI_PROGRAM_BINARY_ARM                              0x8F61
   1.422 +#endif
   1.423 +
   1.424 +/* GL_ARM_mali_shader_binary */
   1.425 +#ifndef GL_ARM_mali_shader_binary
   1.426 +#define GL_MALI_SHADER_BINARY_ARM                               0x8F60
   1.427 +#endif
   1.428 +
   1.429 +/* GL_ARM_rgba8 */
   1.430 +/* No new tokens introduced by this extension. */
   1.431 +
   1.432 +/*------------------------------------------------------------------------*
   1.433 + * EXT extension tokens
   1.434 + *------------------------------------------------------------------------*/
   1.435 +
   1.436 +/* GL_EXT_blend_minmax */
   1.437 +#ifndef GL_EXT_blend_minmax
   1.438 +#define GL_MIN_EXT                                              0x8007
   1.439 +#define GL_MAX_EXT                                              0x8008
   1.440 +#endif
   1.441 +
   1.442 +/* GL_EXT_color_buffer_half_float */
   1.443 +#ifndef GL_EXT_color_buffer_half_float
   1.444 +#define GL_RGBA16F_EXT                                          0x881A
   1.445 +#define GL_RGB16F_EXT                                           0x881B
   1.446 +#define GL_RG16F_EXT                                            0x822F
   1.447 +#define GL_R16F_EXT                                             0x822D
   1.448 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT            0x8211
   1.449 +#define GL_UNSIGNED_NORMALIZED_EXT                              0x8C17
   1.450 +#endif
   1.451 +
   1.452 +/* GL_EXT_debug_label */
   1.453 +#ifndef GL_EXT_debug_label
   1.454 +#define GL_PROGRAM_PIPELINE_OBJECT_EXT                          0x8A4F
   1.455 +#define GL_PROGRAM_OBJECT_EXT                                   0x8B40
   1.456 +#define GL_SHADER_OBJECT_EXT                                    0x8B48
   1.457 +#define GL_BUFFER_OBJECT_EXT                                    0x9151
   1.458 +#define GL_QUERY_OBJECT_EXT                                     0x9153
   1.459 +#define GL_VERTEX_ARRAY_OBJECT_EXT                              0x9154
   1.460 +#endif
   1.461 +
   1.462 +/* GL_EXT_debug_marker */
   1.463 +/* No new tokens introduced by this extension. */
   1.464 +
   1.465 +/* GL_EXT_discard_framebuffer */
   1.466 +#ifndef GL_EXT_discard_framebuffer
   1.467 +#define GL_COLOR_EXT                                            0x1800
   1.468 +#define GL_DEPTH_EXT                                            0x1801
   1.469 +#define GL_STENCIL_EXT                                          0x1802
   1.470 +#endif
   1.471 +
   1.472 +/* GL_EXT_map_buffer_range */
   1.473 +#ifndef GL_EXT_map_buffer_range
   1.474 +#define GL_MAP_READ_BIT_EXT                                     0x0001
   1.475 +#define GL_MAP_WRITE_BIT_EXT                                    0x0002
   1.476 +#define GL_MAP_INVALIDATE_RANGE_BIT_EXT                         0x0004
   1.477 +#define GL_MAP_INVALIDATE_BUFFER_BIT_EXT                        0x0008
   1.478 +#define GL_MAP_FLUSH_EXPLICIT_BIT_EXT                           0x0010
   1.479 +#define GL_MAP_UNSYNCHRONIZED_BIT_EXT                           0x0020
   1.480 +#endif
   1.481 +
   1.482 +/* GL_EXT_multisampled_render_to_texture */
   1.483 +#ifndef GL_EXT_multisampled_render_to_texture
   1.484 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT           0x8D6C
   1.485 +/* reuse values from GL_EXT_framebuffer_multisample (desktop extension) */ 
   1.486 +#define GL_RENDERBUFFER_SAMPLES_EXT                             0x8CAB
   1.487 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT               0x8D56
   1.488 +#define GL_MAX_SAMPLES_EXT                                      0x8D57
   1.489 +#endif
   1.490 +
   1.491 +/* GL_EXT_multiview_draw_buffers */
   1.492 +#ifndef GL_EXT_multiview_draw_buffers
   1.493 +#define GL_COLOR_ATTACHMENT_EXT                                 0x90F0
   1.494 +#define GL_MULTIVIEW_EXT                                        0x90F1
   1.495 +#define GL_DRAW_BUFFER_EXT                                      0x0C01
   1.496 +#define GL_READ_BUFFER_EXT                                      0x0C02
   1.497 +#define GL_MAX_MULTIVIEW_BUFFERS_EXT                            0x90F2
   1.498 +#endif
   1.499 +
   1.500 +/* GL_EXT_multi_draw_arrays */
   1.501 +/* No new tokens introduced by this extension. */
   1.502 +
   1.503 +/* GL_EXT_occlusion_query_boolean */
   1.504 +#ifndef GL_EXT_occlusion_query_boolean
   1.505 +#define GL_ANY_SAMPLES_PASSED_EXT                               0x8C2F
   1.506 +#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT                  0x8D6A
   1.507 +#define GL_CURRENT_QUERY_EXT                                    0x8865
   1.508 +#define GL_QUERY_RESULT_EXT                                     0x8866
   1.509 +#define GL_QUERY_RESULT_AVAILABLE_EXT                           0x8867
   1.510 +#endif
   1.511 +
   1.512 +/* GL_EXT_read_format_bgra */
   1.513 +#ifndef GL_EXT_read_format_bgra
   1.514 +#define GL_BGRA_EXT                                             0x80E1
   1.515 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT                       0x8365
   1.516 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT                       0x8366
   1.517 +#endif
   1.518 +
   1.519 +/* GL_EXT_robustness */
   1.520 +#ifndef GL_EXT_robustness
   1.521 +/* reuse GL_NO_ERROR */
   1.522 +#define GL_GUILTY_CONTEXT_RESET_EXT                             0x8253
   1.523 +#define GL_INNOCENT_CONTEXT_RESET_EXT                           0x8254
   1.524 +#define GL_UNKNOWN_CONTEXT_RESET_EXT                            0x8255
   1.525 +#define GL_CONTEXT_ROBUST_ACCESS_EXT                            0x90F3
   1.526 +#define GL_RESET_NOTIFICATION_STRATEGY_EXT                      0x8256
   1.527 +#define GL_LOSE_CONTEXT_ON_RESET_EXT                            0x8252
   1.528 +#define GL_NO_RESET_NOTIFICATION_EXT                            0x8261
   1.529 +#endif
   1.530 +
   1.531 +/* GL_EXT_separate_shader_objects */
   1.532 +#ifndef GL_EXT_separate_shader_objects
   1.533 +#define GL_VERTEX_SHADER_BIT_EXT                                0x00000001
   1.534 +#define GL_FRAGMENT_SHADER_BIT_EXT                              0x00000002
   1.535 +#define GL_ALL_SHADER_BITS_EXT                                  0xFFFFFFFF
   1.536 +#define GL_PROGRAM_SEPARABLE_EXT                                0x8258
   1.537 +#define GL_ACTIVE_PROGRAM_EXT                                   0x8259
   1.538 +#define GL_PROGRAM_PIPELINE_BINDING_EXT                         0x825A
   1.539 +#endif
   1.540 +
   1.541 +/* GL_EXT_shader_framebuffer_fetch */
   1.542 +#ifndef GL_EXT_shader_framebuffer_fetch
   1.543 +#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT                 0x8A52
   1.544 +#endif
   1.545 +
   1.546 +/* GL_EXT_shader_texture_lod */
   1.547 +/* No new tokens introduced by this extension. */
   1.548 +
   1.549 +/* GL_EXT_shadow_samplers */
   1.550 +#ifndef GL_EXT_shadow_samplers
   1.551 +#define GL_TEXTURE_COMPARE_MODE_EXT                             0x884C
   1.552 +#define GL_TEXTURE_COMPARE_FUNC_EXT                             0x884D
   1.553 +#define GL_COMPARE_REF_TO_TEXTURE_EXT                           0x884E
   1.554 +#define GL_SAMPLER_2D_SHADOW_EXT                                0x8B62
   1.555 +#endif
   1.556 +
   1.557 +/* GL_EXT_sRGB */
   1.558 +#ifndef GL_EXT_sRGB
   1.559 +#define GL_SRGB_EXT                                             0x8C40
   1.560 +#define GL_SRGB_ALPHA_EXT                                       0x8C42
   1.561 +#define GL_SRGB8_ALPHA8_EXT                                     0x8C43
   1.562 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT            0x8210
   1.563 +#endif
   1.564 +
   1.565 +/* GL_EXT_texture_compression_dxt1 */
   1.566 +#ifndef GL_EXT_texture_compression_dxt1
   1.567 +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT                         0x83F0
   1.568 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT                        0x83F1
   1.569 +#endif
   1.570 +
   1.571 +/* GL_EXT_texture_filter_anisotropic */
   1.572 +#ifndef GL_EXT_texture_filter_anisotropic
   1.573 +#define GL_TEXTURE_MAX_ANISOTROPY_EXT                           0x84FE
   1.574 +#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT                       0x84FF
   1.575 +#endif
   1.576 +
   1.577 +/* GL_EXT_texture_format_BGRA8888 */
   1.578 +#ifndef GL_EXT_texture_format_BGRA8888
   1.579 +#define GL_BGRA_EXT                                             0x80E1
   1.580 +#endif
   1.581 +
   1.582 +/* GL_EXT_texture_rg */
   1.583 +#ifndef GL_EXT_texture_rg
   1.584 +#define GL_RED_EXT                                              0x1903
   1.585 +#define GL_RG_EXT                                               0x8227
   1.586 +#define GL_R8_EXT                                               0x8229
   1.587 +#define GL_RG8_EXT                                              0x822B
   1.588 +#endif
   1.589 +
   1.590 +/* GL_EXT_texture_storage */
   1.591 +#ifndef GL_EXT_texture_storage
   1.592 +#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT                         0x912F
   1.593 +#define GL_ALPHA8_EXT                                           0x803C  
   1.594 +#define GL_LUMINANCE8_EXT                                       0x8040
   1.595 +#define GL_LUMINANCE8_ALPHA8_EXT                                0x8045
   1.596 +#define GL_RGBA32F_EXT                                          0x8814  
   1.597 +#define GL_RGB32F_EXT                                           0x8815
   1.598 +#define GL_ALPHA32F_EXT                                         0x8816
   1.599 +#define GL_LUMINANCE32F_EXT                                     0x8818
   1.600 +#define GL_LUMINANCE_ALPHA32F_EXT                               0x8819
   1.601 +/* reuse GL_RGBA16F_EXT */
   1.602 +/* reuse GL_RGB16F_EXT */
   1.603 +#define GL_ALPHA16F_EXT                                         0x881C
   1.604 +#define GL_LUMINANCE16F_EXT                                     0x881E
   1.605 +#define GL_LUMINANCE_ALPHA16F_EXT                               0x881F
   1.606 +#define GL_RGB10_A2_EXT                                         0x8059  
   1.607 +#define GL_RGB10_EXT                                            0x8052
   1.608 +#define GL_BGRA8_EXT                                            0x93A1
   1.609 +#define GL_R8_EXT                                               0x8229
   1.610 +#define GL_RG8_EXT                                              0x822B
   1.611 +#define GL_R32F_EXT                                             0x822E  
   1.612 +#define GL_RG32F_EXT                                            0x8230
   1.613 +#define GL_R16F_EXT                                             0x822D
   1.614 +#define GL_RG16F_EXT                                            0x822F
   1.615 +#endif
   1.616 +
   1.617 +/* GL_EXT_texture_type_2_10_10_10_REV */
   1.618 +#ifndef GL_EXT_texture_type_2_10_10_10_REV
   1.619 +#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT                      0x8368
   1.620 +#endif
   1.621 +
   1.622 +/* GL_EXT_unpack_subimage */
   1.623 +#ifndef GL_EXT_unpack_subimage
   1.624 +#define GL_UNPACK_ROW_LENGTH                                    0x0CF2
   1.625 +#define GL_UNPACK_SKIP_ROWS                                     0x0CF3
   1.626 +#define GL_UNPACK_SKIP_PIXELS                                   0x0CF4
   1.627 +#endif
   1.628 +
   1.629 +/*------------------------------------------------------------------------*
   1.630 + * DMP extension tokens
   1.631 + *------------------------------------------------------------------------*/
   1.632 +
   1.633 +/* GL_DMP_shader_binary */
   1.634 +#ifndef GL_DMP_shader_binary
   1.635 +#define GL_SHADER_BINARY_DMP                                    0x9250
   1.636 +#endif
   1.637 +
   1.638 +/*------------------------------------------------------------------------*
   1.639 + * FJ extension tokens
   1.640 + *------------------------------------------------------------------------*/
   1.641 +
   1.642 +/* GL_FJ_shader_binary_GCCSO */
   1.643 +#ifndef GL_FJ_shader_binary_GCCSO
   1.644 +#define GCCSO_SHADER_BINARY_FJ                                  0x9260
   1.645 +#endif
   1.646 +
   1.647 +/*------------------------------------------------------------------------*
   1.648 + * IMG extension tokens
   1.649 + *------------------------------------------------------------------------*/
   1.650 +
   1.651 +/* GL_IMG_program_binary */
   1.652 +#ifndef GL_IMG_program_binary
   1.653 +#define GL_SGX_PROGRAM_BINARY_IMG                               0x9130
   1.654 +#endif
   1.655 +
   1.656 +/* GL_IMG_read_format */
   1.657 +#ifndef GL_IMG_read_format
   1.658 +#define GL_BGRA_IMG                                             0x80E1
   1.659 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG                       0x8365
   1.660 +#endif
   1.661 +
   1.662 +/* GL_IMG_shader_binary */
   1.663 +#ifndef GL_IMG_shader_binary
   1.664 +#define GL_SGX_BINARY_IMG                                       0x8C0A
   1.665 +#endif
   1.666 +
   1.667 +/* GL_IMG_texture_compression_pvrtc */
   1.668 +#ifndef GL_IMG_texture_compression_pvrtc
   1.669 +#define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG                      0x8C00
   1.670 +#define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG                      0x8C01
   1.671 +#define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG                     0x8C02
   1.672 +#define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG                     0x8C03
   1.673 +#endif
   1.674 +
   1.675 +/* GL_IMG_multisampled_render_to_texture */
   1.676 +#ifndef GL_IMG_multisampled_render_to_texture
   1.677 +#define GL_RENDERBUFFER_SAMPLES_IMG                             0x9133
   1.678 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG               0x9134
   1.679 +#define GL_MAX_SAMPLES_IMG                                      0x9135
   1.680 +#define GL_TEXTURE_SAMPLES_IMG                                  0x9136
   1.681 +#endif
   1.682 +
   1.683 +/*------------------------------------------------------------------------*
   1.684 + * NV extension tokens
   1.685 + *------------------------------------------------------------------------*/
   1.686 +
   1.687 +/* GL_NV_coverage_sample */
   1.688 +#ifndef GL_NV_coverage_sample
   1.689 +#define GL_COVERAGE_COMPONENT_NV                                0x8ED0
   1.690 +#define GL_COVERAGE_COMPONENT4_NV                               0x8ED1
   1.691 +#define GL_COVERAGE_ATTACHMENT_NV                               0x8ED2
   1.692 +#define GL_COVERAGE_BUFFERS_NV                                  0x8ED3
   1.693 +#define GL_COVERAGE_SAMPLES_NV                                  0x8ED4
   1.694 +#define GL_COVERAGE_ALL_FRAGMENTS_NV                            0x8ED5
   1.695 +#define GL_COVERAGE_EDGE_FRAGMENTS_NV                           0x8ED6
   1.696 +#define GL_COVERAGE_AUTOMATIC_NV                                0x8ED7
   1.697 +#define GL_COVERAGE_BUFFER_BIT_NV                               0x8000
   1.698 +#endif
   1.699 +
   1.700 +/* GL_NV_depth_nonlinear */
   1.701 +#ifndef GL_NV_depth_nonlinear
   1.702 +#define GL_DEPTH_COMPONENT16_NONLINEAR_NV                       0x8E2C
   1.703 +#endif
   1.704 +
   1.705 +/* GL_NV_draw_buffers */
   1.706 +#ifndef GL_NV_draw_buffers
   1.707 +#define GL_MAX_DRAW_BUFFERS_NV                                  0x8824
   1.708 +#define GL_DRAW_BUFFER0_NV                                      0x8825
   1.709 +#define GL_DRAW_BUFFER1_NV                                      0x8826
   1.710 +#define GL_DRAW_BUFFER2_NV                                      0x8827
   1.711 +#define GL_DRAW_BUFFER3_NV                                      0x8828
   1.712 +#define GL_DRAW_BUFFER4_NV                                      0x8829
   1.713 +#define GL_DRAW_BUFFER5_NV                                      0x882A
   1.714 +#define GL_DRAW_BUFFER6_NV                                      0x882B
   1.715 +#define GL_DRAW_BUFFER7_NV                                      0x882C
   1.716 +#define GL_DRAW_BUFFER8_NV                                      0x882D
   1.717 +#define GL_DRAW_BUFFER9_NV                                      0x882E
   1.718 +#define GL_DRAW_BUFFER10_NV                                     0x882F
   1.719 +#define GL_DRAW_BUFFER11_NV                                     0x8830
   1.720 +#define GL_DRAW_BUFFER12_NV                                     0x8831
   1.721 +#define GL_DRAW_BUFFER13_NV                                     0x8832
   1.722 +#define GL_DRAW_BUFFER14_NV                                     0x8833
   1.723 +#define GL_DRAW_BUFFER15_NV                                     0x8834
   1.724 +#define GL_COLOR_ATTACHMENT0_NV                                 0x8CE0
   1.725 +#define GL_COLOR_ATTACHMENT1_NV                                 0x8CE1
   1.726 +#define GL_COLOR_ATTACHMENT2_NV                                 0x8CE2
   1.727 +#define GL_COLOR_ATTACHMENT3_NV                                 0x8CE3
   1.728 +#define GL_COLOR_ATTACHMENT4_NV                                 0x8CE4
   1.729 +#define GL_COLOR_ATTACHMENT5_NV                                 0x8CE5
   1.730 +#define GL_COLOR_ATTACHMENT6_NV                                 0x8CE6
   1.731 +#define GL_COLOR_ATTACHMENT7_NV                                 0x8CE7
   1.732 +#define GL_COLOR_ATTACHMENT8_NV                                 0x8CE8
   1.733 +#define GL_COLOR_ATTACHMENT9_NV                                 0x8CE9
   1.734 +#define GL_COLOR_ATTACHMENT10_NV                                0x8CEA
   1.735 +#define GL_COLOR_ATTACHMENT11_NV                                0x8CEB
   1.736 +#define GL_COLOR_ATTACHMENT12_NV                                0x8CEC
   1.737 +#define GL_COLOR_ATTACHMENT13_NV                                0x8CED
   1.738 +#define GL_COLOR_ATTACHMENT14_NV                                0x8CEE
   1.739 +#define GL_COLOR_ATTACHMENT15_NV                                0x8CEF
   1.740 +#endif
   1.741 +
   1.742 +/* GL_NV_fbo_color_attachments */
   1.743 +#ifndef GL_NV_fbo_color_attachments
   1.744 +#define GL_MAX_COLOR_ATTACHMENTS_NV                             0x8CDF
   1.745 +/* GL_COLOR_ATTACHMENT{0-15}_NV defined in GL_NV_draw_buffers already. */
   1.746 +#endif
   1.747 +
   1.748 +/* GL_NV_fence */
   1.749 +#ifndef GL_NV_fence
   1.750 +#define GL_ALL_COMPLETED_NV                                     0x84F2
   1.751 +#define GL_FENCE_STATUS_NV                                      0x84F3
   1.752 +#define GL_FENCE_CONDITION_NV                                   0x84F4
   1.753 +#endif
   1.754 +
   1.755 +/* GL_NV_read_buffer */
   1.756 +#ifndef GL_NV_read_buffer
   1.757 +#define GL_READ_BUFFER_NV                                       0x0C02
   1.758 +#endif
   1.759 +
   1.760 +/* GL_NV_read_buffer_front */
   1.761 +/* No new tokens introduced by this extension. */
   1.762 +
   1.763 +/* GL_NV_read_depth */
   1.764 +/* No new tokens introduced by this extension. */
   1.765 +
   1.766 +/* GL_NV_read_depth_stencil */
   1.767 +/* No new tokens introduced by this extension. */
   1.768 +
   1.769 +/* GL_NV_read_stencil */
   1.770 +/* No new tokens introduced by this extension. */
   1.771 +
   1.772 +/* GL_NV_texture_compression_s3tc_update */
   1.773 +/* No new tokens introduced by this extension. */
   1.774 +
   1.775 +/* GL_NV_texture_npot_2D_mipmap */
   1.776 +/* No new tokens introduced by this extension. */
   1.777 +
   1.778 +/*------------------------------------------------------------------------*
   1.779 + * QCOM extension tokens
   1.780 + *------------------------------------------------------------------------*/
   1.781 +
   1.782 +/* GL_QCOM_alpha_test */
   1.783 +#ifndef GL_QCOM_alpha_test
   1.784 +#define GL_ALPHA_TEST_QCOM                                      0x0BC0
   1.785 +#define GL_ALPHA_TEST_FUNC_QCOM                                 0x0BC1
   1.786 +#define GL_ALPHA_TEST_REF_QCOM                                  0x0BC2
   1.787 +#endif
   1.788 +
   1.789 +/* GL_QCOM_binning_control */
   1.790 +#ifndef GL_QCOM_binning_control
   1.791 +#define GL_BINNING_CONTROL_HINT_QCOM                            0x8FB0
   1.792 +#define GL_CPU_OPTIMIZED_QCOM                                   0x8FB1
   1.793 +#define GL_GPU_OPTIMIZED_QCOM                                   0x8FB2
   1.794 +#define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM                    0x8FB3
   1.795 +#endif
   1.796 +
   1.797 +/* GL_QCOM_driver_control */
   1.798 +/* No new tokens introduced by this extension. */
   1.799 +
   1.800 +/* GL_QCOM_extended_get */
   1.801 +#ifndef GL_QCOM_extended_get
   1.802 +#define GL_TEXTURE_WIDTH_QCOM                                   0x8BD2
   1.803 +#define GL_TEXTURE_HEIGHT_QCOM                                  0x8BD3
   1.804 +#define GL_TEXTURE_DEPTH_QCOM                                   0x8BD4
   1.805 +#define GL_TEXTURE_INTERNAL_FORMAT_QCOM                         0x8BD5
   1.806 +#define GL_TEXTURE_FORMAT_QCOM                                  0x8BD6
   1.807 +#define GL_TEXTURE_TYPE_QCOM                                    0x8BD7
   1.808 +#define GL_TEXTURE_IMAGE_VALID_QCOM                             0x8BD8
   1.809 +#define GL_TEXTURE_NUM_LEVELS_QCOM                              0x8BD9
   1.810 +#define GL_TEXTURE_TARGET_QCOM                                  0x8BDA
   1.811 +#define GL_TEXTURE_OBJECT_VALID_QCOM                            0x8BDB
   1.812 +#define GL_STATE_RESTORE                                        0x8BDC
   1.813 +#endif
   1.814 +
   1.815 +/* GL_QCOM_extended_get2 */
   1.816 +/* No new tokens introduced by this extension. */
   1.817 +
   1.818 +/* GL_QCOM_perfmon_global_mode */
   1.819 +#ifndef GL_QCOM_perfmon_global_mode
   1.820 +#define GL_PERFMON_GLOBAL_MODE_QCOM                             0x8FA0
   1.821 +#endif
   1.822 +
   1.823 +/* GL_QCOM_writeonly_rendering */
   1.824 +#ifndef GL_QCOM_writeonly_rendering
   1.825 +#define GL_WRITEONLY_RENDERING_QCOM                             0x8823
   1.826 +#endif
   1.827 +
   1.828 +/* GL_QCOM_tiled_rendering */
   1.829 +#ifndef GL_QCOM_tiled_rendering
   1.830 +#define GL_COLOR_BUFFER_BIT0_QCOM                               0x00000001
   1.831 +#define GL_COLOR_BUFFER_BIT1_QCOM                               0x00000002
   1.832 +#define GL_COLOR_BUFFER_BIT2_QCOM                               0x00000004
   1.833 +#define GL_COLOR_BUFFER_BIT3_QCOM                               0x00000008
   1.834 +#define GL_COLOR_BUFFER_BIT4_QCOM                               0x00000010
   1.835 +#define GL_COLOR_BUFFER_BIT5_QCOM                               0x00000020
   1.836 +#define GL_COLOR_BUFFER_BIT6_QCOM                               0x00000040
   1.837 +#define GL_COLOR_BUFFER_BIT7_QCOM                               0x00000080
   1.838 +#define GL_DEPTH_BUFFER_BIT0_QCOM                               0x00000100
   1.839 +#define GL_DEPTH_BUFFER_BIT1_QCOM                               0x00000200
   1.840 +#define GL_DEPTH_BUFFER_BIT2_QCOM                               0x00000400
   1.841 +#define GL_DEPTH_BUFFER_BIT3_QCOM                               0x00000800
   1.842 +#define GL_DEPTH_BUFFER_BIT4_QCOM                               0x00001000
   1.843 +#define GL_DEPTH_BUFFER_BIT5_QCOM                               0x00002000
   1.844 +#define GL_DEPTH_BUFFER_BIT6_QCOM                               0x00004000
   1.845 +#define GL_DEPTH_BUFFER_BIT7_QCOM                               0x00008000
   1.846 +#define GL_STENCIL_BUFFER_BIT0_QCOM                             0x00010000
   1.847 +#define GL_STENCIL_BUFFER_BIT1_QCOM                             0x00020000
   1.848 +#define GL_STENCIL_BUFFER_BIT2_QCOM                             0x00040000
   1.849 +#define GL_STENCIL_BUFFER_BIT3_QCOM                             0x00080000
   1.850 +#define GL_STENCIL_BUFFER_BIT4_QCOM                             0x00100000
   1.851 +#define GL_STENCIL_BUFFER_BIT5_QCOM                             0x00200000
   1.852 +#define GL_STENCIL_BUFFER_BIT6_QCOM                             0x00400000
   1.853 +#define GL_STENCIL_BUFFER_BIT7_QCOM                             0x00800000
   1.854 +#define GL_MULTISAMPLE_BUFFER_BIT0_QCOM                         0x01000000
   1.855 +#define GL_MULTISAMPLE_BUFFER_BIT1_QCOM                         0x02000000
   1.856 +#define GL_MULTISAMPLE_BUFFER_BIT2_QCOM                         0x04000000
   1.857 +#define GL_MULTISAMPLE_BUFFER_BIT3_QCOM                         0x08000000
   1.858 +#define GL_MULTISAMPLE_BUFFER_BIT4_QCOM                         0x10000000
   1.859 +#define GL_MULTISAMPLE_BUFFER_BIT5_QCOM                         0x20000000
   1.860 +#define GL_MULTISAMPLE_BUFFER_BIT6_QCOM                         0x40000000
   1.861 +#define GL_MULTISAMPLE_BUFFER_BIT7_QCOM                         0x80000000
   1.862 +#endif
   1.863 +
   1.864 +/*------------------------------------------------------------------------*
   1.865 + * VIV extension tokens
   1.866 + *------------------------------------------------------------------------*/
   1.867 +
   1.868 +/* GL_VIV_shader_binary */
   1.869 +#ifndef GL_VIV_shader_binary
   1.870 +#define GL_SHADER_BINARY_VIV                                    0x8FC4
   1.871 +#endif
   1.872 +
   1.873 +/*------------------------------------------------------------------------*
   1.874 + * End of extension tokens, start of corresponding extension functions
   1.875 + *------------------------------------------------------------------------*/
   1.876 +
   1.877 +/*------------------------------------------------------------------------*
   1.878 + * OES extension functions
   1.879 + *------------------------------------------------------------------------*/
   1.880 +
   1.881 +/* GL_OES_compressed_ETC1_RGB8_texture */
   1.882 +#ifndef GL_OES_compressed_ETC1_RGB8_texture
   1.883 +#define GL_OES_compressed_ETC1_RGB8_texture 1
   1.884 +#endif
   1.885 +
   1.886 +/* GL_OES_compressed_paletted_texture */
   1.887 +#ifndef GL_OES_compressed_paletted_texture
   1.888 +#define GL_OES_compressed_paletted_texture 1
   1.889 +#endif
   1.890 +
   1.891 +/* GL_OES_depth24 */
   1.892 +#ifndef GL_OES_depth24
   1.893 +#define GL_OES_depth24 1
   1.894 +#endif
   1.895 +
   1.896 +/* GL_OES_depth32 */
   1.897 +#ifndef GL_OES_depth32
   1.898 +#define GL_OES_depth32 1
   1.899 +#endif
   1.900 +
   1.901 +/* GL_OES_depth_texture */
   1.902 +#ifndef GL_OES_depth_texture
   1.903 +#define GL_OES_depth_texture 1
   1.904 +#endif
   1.905 +
   1.906 +/* GL_OES_EGL_image */
   1.907 +#ifndef GL_OES_EGL_image
   1.908 +#define GL_OES_EGL_image 1
   1.909 +#ifdef GL_GLEXT_PROTOTYPES
   1.910 +GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
   1.911 +GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
   1.912 +#endif
   1.913 +typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
   1.914 +typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
   1.915 +#endif
   1.916 +
   1.917 +/* GL_OES_EGL_image_external */
   1.918 +#ifndef GL_OES_EGL_image_external
   1.919 +#define GL_OES_EGL_image_external 1
   1.920 +/* glEGLImageTargetTexture2DOES defined in GL_OES_EGL_image already. */
   1.921 +#endif
   1.922 +
   1.923 +/* GL_OES_element_index_uint */
   1.924 +#ifndef GL_OES_element_index_uint
   1.925 +#define GL_OES_element_index_uint 1
   1.926 +#endif
   1.927 +
   1.928 +/* GL_OES_fbo_render_mipmap */
   1.929 +#ifndef GL_OES_fbo_render_mipmap
   1.930 +#define GL_OES_fbo_render_mipmap 1
   1.931 +#endif
   1.932 +
   1.933 +/* GL_OES_fragment_precision_high */
   1.934 +#ifndef GL_OES_fragment_precision_high
   1.935 +#define GL_OES_fragment_precision_high 1
   1.936 +#endif
   1.937 +
   1.938 +/* GL_OES_get_program_binary */
   1.939 +#ifndef GL_OES_get_program_binary
   1.940 +#define GL_OES_get_program_binary 1
   1.941 +#ifdef GL_GLEXT_PROTOTYPES
   1.942 +GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
   1.943 +GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
   1.944 +#endif
   1.945 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
   1.946 +typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
   1.947 +#endif
   1.948 +
   1.949 +/* GL_OES_mapbuffer */
   1.950 +#ifndef GL_OES_mapbuffer
   1.951 +#define GL_OES_mapbuffer 1
   1.952 +#ifdef GL_GLEXT_PROTOTYPES
   1.953 +GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
   1.954 +GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
   1.955 +GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, GLvoid** params);
   1.956 +#endif
   1.957 +typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
   1.958 +typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
   1.959 +typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, GLvoid** params);
   1.960 +#endif
   1.961 +
   1.962 +/* GL_OES_packed_depth_stencil */
   1.963 +#ifndef GL_OES_packed_depth_stencil
   1.964 +#define GL_OES_packed_depth_stencil 1
   1.965 +#endif
   1.966 +
   1.967 +/* GL_OES_required_internalformat */
   1.968 +#ifndef GL_OES_required_internalformat
   1.969 +#define GL_OES_required_internalformat 1
   1.970 +#endif
   1.971 +
   1.972 +/* GL_OES_rgb8_rgba8 */
   1.973 +#ifndef GL_OES_rgb8_rgba8
   1.974 +#define GL_OES_rgb8_rgba8 1
   1.975 +#endif
   1.976 +
   1.977 +/* GL_OES_standard_derivatives */
   1.978 +#ifndef GL_OES_standard_derivatives
   1.979 +#define GL_OES_standard_derivatives 1
   1.980 +#endif
   1.981 +
   1.982 +/* GL_OES_stencil1 */
   1.983 +#ifndef GL_OES_stencil1
   1.984 +#define GL_OES_stencil1 1
   1.985 +#endif
   1.986 +
   1.987 +/* GL_OES_stencil4 */
   1.988 +#ifndef GL_OES_stencil4
   1.989 +#define GL_OES_stencil4 1
   1.990 +#endif
   1.991 +
   1.992 +#ifndef GL_OES_surfaceless_context
   1.993 +#define GL_OES_surfaceless_context 1
   1.994 +#endif
   1.995 +
   1.996 +/* GL_OES_texture_3D */
   1.997 +#ifndef GL_OES_texture_3D
   1.998 +#define GL_OES_texture_3D 1
   1.999 +#ifdef GL_GLEXT_PROTOTYPES
  1.1000 +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 GLvoid* pixels);
  1.1001 +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 GLvoid* pixels);
  1.1002 +GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  1.1003 +GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
  1.1004 +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 GLvoid* data);
  1.1005 +GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  1.1006 +#endif
  1.1007 +typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
  1.1008 +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 GLvoid* pixels);
  1.1009 +typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  1.1010 +typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
  1.1011 +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 GLvoid* data);
  1.1012 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  1.1013 +#endif
  1.1014 +
  1.1015 +/* GL_OES_texture_float */
  1.1016 +#ifndef GL_OES_texture_float
  1.1017 +#define GL_OES_texture_float 1
  1.1018 +#endif
  1.1019 +
  1.1020 +/* GL_OES_texture_float_linear */
  1.1021 +#ifndef GL_OES_texture_float_linear
  1.1022 +#define GL_OES_texture_float_linear 1
  1.1023 +#endif
  1.1024 +
  1.1025 +/* GL_OES_texture_half_float */
  1.1026 +#ifndef GL_OES_texture_half_float
  1.1027 +#define GL_OES_texture_half_float 1
  1.1028 +#endif
  1.1029 +
  1.1030 +/* GL_OES_texture_half_float_linear */
  1.1031 +#ifndef GL_OES_texture_half_float_linear
  1.1032 +#define GL_OES_texture_half_float_linear 1
  1.1033 +#endif
  1.1034 +
  1.1035 +/* GL_OES_texture_npot */
  1.1036 +#ifndef GL_OES_texture_npot
  1.1037 +#define GL_OES_texture_npot 1
  1.1038 +#endif
  1.1039 +
  1.1040 +/* GL_OES_vertex_array_object */
  1.1041 +#ifndef GL_OES_vertex_array_object
  1.1042 +#define GL_OES_vertex_array_object 1
  1.1043 +#ifdef GL_GLEXT_PROTOTYPES
  1.1044 +GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
  1.1045 +GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
  1.1046 +GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
  1.1047 +GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
  1.1048 +#endif
  1.1049 +typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
  1.1050 +typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
  1.1051 +typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
  1.1052 +typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
  1.1053 +#endif
  1.1054 +
  1.1055 +/* GL_OES_vertex_half_float */
  1.1056 +#ifndef GL_OES_vertex_half_float
  1.1057 +#define GL_OES_vertex_half_float 1
  1.1058 +#endif
  1.1059 +
  1.1060 +/* GL_OES_vertex_type_10_10_10_2 */
  1.1061 +#ifndef GL_OES_vertex_type_10_10_10_2
  1.1062 +#define GL_OES_vertex_type_10_10_10_2 1
  1.1063 +#endif
  1.1064 +
  1.1065 +/*------------------------------------------------------------------------*
  1.1066 + * KHR extension functions
  1.1067 + *------------------------------------------------------------------------*/
  1.1068 +
  1.1069 +#ifndef GL_KHR_debug
  1.1070 +#define GL_KHR_debug 1
  1.1071 +#ifdef GL_GLEXT_PROTOTYPES
  1.1072 +GL_APICALL void GL_APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  1.1073 +GL_APICALL void GL_APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  1.1074 +GL_APICALL void GL_APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
  1.1075 +GL_APICALL GLuint GL_APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  1.1076 +GL_APICALL void GL_APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
  1.1077 +GL_APICALL void GL_APIENTRY glPopDebugGroup (void);
  1.1078 +GL_APICALL void GL_APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
  1.1079 +GL_APICALL void GL_APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
  1.1080 +GL_APICALL void GL_APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
  1.1081 +GL_APICALL void GL_APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
  1.1082 +GL_APICALL void GL_APIENTRY glGetPointerv (GLenum pname, void **params);
  1.1083 +#endif 
  1.1084 +typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  1.1085 +typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  1.1086 +typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
  1.1087 +typedef GLuint (GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  1.1088 +typedef void (GL_APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
  1.1089 +typedef void (GL_APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
  1.1090 +typedef void (GL_APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
  1.1091 +typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
  1.1092 +typedef void (GL_APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
  1.1093 +typedef void (GL_APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
  1.1094 +typedef void (GL_APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, void **params);
  1.1095 +#endif
  1.1096 +
  1.1097 +#ifndef GL_KHR_texture_compression_astc_ldr
  1.1098 +#define GL_KHR_texture_compression_astc_ldr 1
  1.1099 +#endif
  1.1100 +
  1.1101 +
  1.1102 +/*------------------------------------------------------------------------*
  1.1103 + * AMD extension functions
  1.1104 + *------------------------------------------------------------------------*/
  1.1105 +
  1.1106 +/* GL_AMD_compressed_3DC_texture */
  1.1107 +#ifndef GL_AMD_compressed_3DC_texture
  1.1108 +#define GL_AMD_compressed_3DC_texture 1
  1.1109 +#endif
  1.1110 +
  1.1111 +/* GL_AMD_compressed_ATC_texture */
  1.1112 +#ifndef GL_AMD_compressed_ATC_texture
  1.1113 +#define GL_AMD_compressed_ATC_texture 1
  1.1114 +#endif
  1.1115 +
  1.1116 +/* AMD_performance_monitor */
  1.1117 +#ifndef GL_AMD_performance_monitor
  1.1118 +#define GL_AMD_performance_monitor 1
  1.1119 +#ifdef GL_GLEXT_PROTOTYPES
  1.1120 +GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
  1.1121 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
  1.1122 +GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
  1.1123 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
  1.1124 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
  1.1125 +GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
  1.1126 +GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
  1.1127 +GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
  1.1128 +GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
  1.1129 +GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
  1.1130 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
  1.1131 +#endif
  1.1132 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
  1.1133 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
  1.1134 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
  1.1135 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
  1.1136 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
  1.1137 +typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
  1.1138 +typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
  1.1139 +typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
  1.1140 +typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
  1.1141 +typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
  1.1142 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
  1.1143 +#endif
  1.1144 +
  1.1145 +/* GL_AMD_program_binary_Z400 */
  1.1146 +#ifndef GL_AMD_program_binary_Z400
  1.1147 +#define GL_AMD_program_binary_Z400 1
  1.1148 +#endif
  1.1149 +
  1.1150 +/*------------------------------------------------------------------------*
  1.1151 + * ANGLE extension functions
  1.1152 + *------------------------------------------------------------------------*/
  1.1153 +
  1.1154 +/* GL_ANGLE_framebuffer_blit */
  1.1155 +#ifndef GL_ANGLE_framebuffer_blit
  1.1156 +#define GL_ANGLE_framebuffer_blit 1
  1.1157 +#ifdef GL_GLEXT_PROTOTYPES
  1.1158 +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);
  1.1159 +#endif
  1.1160 +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);
  1.1161 +#endif
  1.1162 +
  1.1163 +/* GL_ANGLE_framebuffer_multisample */
  1.1164 +#ifndef GL_ANGLE_framebuffer_multisample
  1.1165 +#define GL_ANGLE_framebuffer_multisample 1
  1.1166 +#ifdef GL_GLEXT_PROTOTYPES
  1.1167 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1.1168 +#endif
  1.1169 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1.1170 +#endif
  1.1171 +
  1.1172 +#ifndef GL_ANGLE_instanced_arrays 
  1.1173 +#ifdef GL_GLEXT_PROTOTYPES
  1.1174 +GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  1.1175 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  1.1176 +GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE (GLuint index, GLuint divisor);
  1.1177 +#endif
  1.1178 +typedef void (GL_APIENTRYP PFLGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  1.1179 +typedef void (GL_APIENTRYP PFLGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
  1.1180 +typedef void (GL_APIENTRYP PFLGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
  1.1181 +#endif
  1.1182 +
  1.1183 +/* GL_ANGLE_pack_reverse_row_order */
  1.1184 +#ifndef GL_ANGLE_pack_reverse_row_order 
  1.1185 +#define GL_ANGLE_pack_reverse_row_order 1
  1.1186 +#endif
  1.1187 +
  1.1188 +/* GL_ANGLE_texture_compression_dxt3 */
  1.1189 +#ifndef GL_ANGLE_texture_compression_dxt3 
  1.1190 +#define GL_ANGLE_texture_compression_dxt3 1
  1.1191 +#endif
  1.1192 +
  1.1193 +/* GL_ANGLE_texture_compression_dxt5 */
  1.1194 +#ifndef GL_ANGLE_texture_compression_dxt5 
  1.1195 +#define GL_ANGLE_texture_compression_dxt5 1
  1.1196 +#endif
  1.1197 +
  1.1198 +/* GL_ANGLE_texture_usage */
  1.1199 +#ifndef GL_ANGLE_texture_usage 
  1.1200 +#define GL_ANGLE_texture_usage 1
  1.1201 +#endif
  1.1202 +
  1.1203 +#ifndef GL_ANGLE_translated_shader_source 
  1.1204 +#define GL_ANGLE_translated_shader_source 1
  1.1205 +#ifdef GL_GLEXT_PROTOTYPES
  1.1206 +GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
  1.1207 +#endif
  1.1208 +typedef void (GL_APIENTRYP PFLGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
  1.1209 +#endif
  1.1210 +
  1.1211 +/*------------------------------------------------------------------------*
  1.1212 + * APPLE extension functions
  1.1213 + *------------------------------------------------------------------------*/
  1.1214 +
  1.1215 +/* GL_APPLE_copy_texture_levels */
  1.1216 +#ifndef GL_APPLE_copy_texture_levels
  1.1217 +#define GL_APPLE_copy_texture_levels 1
  1.1218 +#ifdef GL_GLEXT_PROTOTYPES
  1.1219 +GL_APICALL void GL_APIENTRY glCopyTextureLevelsAPPLE (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
  1.1220 +#endif
  1.1221 +typedef void (GL_APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
  1.1222 +#endif
  1.1223 +
  1.1224 +/* GL_APPLE_framebuffer_multisample */
  1.1225 +#ifndef GL_APPLE_framebuffer_multisample
  1.1226 +#define GL_APPLE_framebuffer_multisample 1
  1.1227 +#ifdef GL_GLEXT_PROTOTYPES
  1.1228 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  1.1229 +GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
  1.1230 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1231 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1.1232 +typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
  1.1233 +#endif
  1.1234 +
  1.1235 +/* GL_APPLE_rgb_422 */
  1.1236 +#ifndef GL_APPLE_rgb_422
  1.1237 +#define GL_APPLE_rgb_422 1
  1.1238 +#endif
  1.1239 +
  1.1240 +/* GL_APPLE_sync */
  1.1241 +#ifndef GL_APPLE_sync
  1.1242 +#define GL_APPLE_sync 1
  1.1243 +#ifdef GL_GLEXT_PROTOTYPES
  1.1244 +GL_APICALL GLsync GL_APIENTRY glFenceSyncAPPLE (GLenum condition, GLbitfield flags);
  1.1245 +GL_APICALL GLboolean GL_APIENTRY glIsSyncAPPLE (GLsync sync);
  1.1246 +GL_APICALL void GL_APIENTRY glDeleteSyncAPPLE (GLsync sync);
  1.1247 +GL_APICALL GLenum GL_APIENTRY glClientWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1.1248 +GL_APICALL void GL_APIENTRY glWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1.1249 +GL_APICALL void GL_APIENTRY glGetInteger64vAPPLE (GLenum pname, GLint64 *params);
  1.1250 +GL_APICALL void GL_APIENTRY glGetSyncivAPPLE (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  1.1251 +#endif
  1.1252 +typedef GLsync (GL_APIENTRYP PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
  1.1253 +typedef GLboolean (GL_APIENTRYP PFNGLISSYNCAPPLEPROC) (GLsync sync);
  1.1254 +typedef void (GL_APIENTRYP PFNGLDELETESYNCAPPLEPROC) (GLsync sync);
  1.1255 +typedef GLenum (GL_APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1.1256 +typedef void (GL_APIENTRYP PFNGLWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  1.1257 +typedef void (GL_APIENTRYP PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64 *params);
  1.1258 +typedef void (GL_APIENTRYP PFNGLGETSYNCIVAPPLEPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  1.1259 +#endif
  1.1260 +
  1.1261 +/* GL_APPLE_texture_format_BGRA8888 */
  1.1262 +#ifndef GL_APPLE_texture_format_BGRA8888
  1.1263 +#define GL_APPLE_texture_format_BGRA8888 1
  1.1264 +#endif
  1.1265 +
  1.1266 +/* GL_APPLE_texture_max_level */
  1.1267 +#ifndef GL_APPLE_texture_max_level
  1.1268 +#define GL_APPLE_texture_max_level 1
  1.1269 +#endif
  1.1270 +
  1.1271 +/*------------------------------------------------------------------------*
  1.1272 + * ARM extension functions
  1.1273 + *------------------------------------------------------------------------*/
  1.1274 +
  1.1275 +/* GL_ARM_mali_program_binary */
  1.1276 +#ifndef GL_ARM_mali_program_binary
  1.1277 +#define GL_ARM_mali_program_binary 1
  1.1278 +#endif
  1.1279 +
  1.1280 +/* GL_ARM_mali_shader_binary */
  1.1281 +#ifndef GL_ARM_mali_shader_binary
  1.1282 +#define GL_ARM_mali_shader_binary 1
  1.1283 +#endif
  1.1284 +
  1.1285 +/* GL_ARM_rgba8 */
  1.1286 +#ifndef GL_ARM_rgba8
  1.1287 +#define GL_ARM_rgba8 1
  1.1288 +#endif
  1.1289 +
  1.1290 +/*------------------------------------------------------------------------*
  1.1291 + * EXT extension functions
  1.1292 + *------------------------------------------------------------------------*/
  1.1293 +
  1.1294 +/* GL_EXT_blend_minmax */
  1.1295 +#ifndef GL_EXT_blend_minmax
  1.1296 +#define GL_EXT_blend_minmax 1
  1.1297 +#endif
  1.1298 +
  1.1299 +/* GL_EXT_color_buffer_half_float */
  1.1300 +#ifndef GL_EXT_color_buffer_half_float
  1.1301 +#define GL_EXT_color_buffer_half_float 1
  1.1302 +#endif
  1.1303 +
  1.1304 +/* GL_EXT_debug_label */
  1.1305 +#ifndef GL_EXT_debug_label
  1.1306 +#define GL_EXT_debug_label 1
  1.1307 +#ifdef GL_GLEXT_PROTOTYPES
  1.1308 +GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
  1.1309 +GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
  1.1310 +#endif
  1.1311 +typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
  1.1312 +typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
  1.1313 +#endif
  1.1314 +
  1.1315 +/* GL_EXT_debug_marker */
  1.1316 +#ifndef GL_EXT_debug_marker
  1.1317 +#define GL_EXT_debug_marker 1
  1.1318 +#ifdef GL_GLEXT_PROTOTYPES
  1.1319 +GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
  1.1320 +GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
  1.1321 +GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
  1.1322 +#endif
  1.1323 +typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
  1.1324 +typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
  1.1325 +typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
  1.1326 +#endif
  1.1327 +
  1.1328 +/* GL_EXT_discard_framebuffer */
  1.1329 +#ifndef GL_EXT_discard_framebuffer
  1.1330 +#define GL_EXT_discard_framebuffer 1
  1.1331 +#ifdef GL_GLEXT_PROTOTYPES
  1.1332 +GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  1.1333 +#endif
  1.1334 +typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  1.1335 +#endif
  1.1336 +
  1.1337 +/* GL_EXT_map_buffer_range */
  1.1338 +#ifndef GL_EXT_map_buffer_range
  1.1339 +#define GL_EXT_map_buffer_range 1
  1.1340 +#ifdef GL_GLEXT_PROTOTYPES
  1.1341 +GL_APICALL void* GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  1.1342 +GL_APICALL void GL_APIENTRY glFlushMappedBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length);
  1.1343 +#endif
  1.1344 +typedef void* (GL_APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  1.1345 +typedef void (GL_APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  1.1346 +#endif
  1.1347 +
  1.1348 +/* GL_EXT_multisampled_render_to_texture */
  1.1349 +#ifndef GL_EXT_multisampled_render_to_texture
  1.1350 +#define GL_EXT_multisampled_render_to_texture 1
  1.1351 +#ifdef GL_GLEXT_PROTOTYPES
  1.1352 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  1.1353 +GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
  1.1354 +#endif
  1.1355 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1.1356 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  1.1357 +#endif
  1.1358 +
  1.1359 +/* GL_EXT_multiview_draw_buffers */
  1.1360 +#ifndef GL_EXT_multiview_draw_buffers
  1.1361 +#define GL_EXT_multiview_draw_buffers 1
  1.1362 +#ifdef GL_GLEXT_PROTOTYPES
  1.1363 +GL_APICALL void GL_APIENTRY glReadBufferIndexedEXT (GLenum src, GLint index);
  1.1364 +GL_APICALL void GL_APIENTRY glDrawBuffersIndexedEXT (GLint n, const GLenum *location, const GLint *indices);
  1.1365 +GL_APICALL void GL_APIENTRY glGetIntegeri_vEXT (GLenum target, GLuint index, GLint *data);
  1.1366 +#endif
  1.1367 +typedef void (GL_APIENTRYP PFNGLREADBUFFERINDEXEDEXTPROC) (GLenum src, GLint index);
  1.1368 +typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSINDEXEDEXTPROC) (GLint n, const GLenum *location, const GLint *indices);
  1.1369 +typedef void (GL_APIENTRYP PFNGLGETINTEGERI_VEXTPROC) (GLenum target, GLuint index, GLint *data);
  1.1370 +#endif
  1.1371 +
  1.1372 +#ifndef GL_EXT_multi_draw_arrays
  1.1373 +#define GL_EXT_multi_draw_arrays 1
  1.1374 +#ifdef GL_GLEXT_PROTOTYPES
  1.1375 +GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei);
  1.1376 +GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
  1.1377 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1378 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
  1.1379 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
  1.1380 +#endif
  1.1381 +
  1.1382 +/* GL_EXT_occlusion_query_boolean */
  1.1383 +#ifndef GL_EXT_occlusion_query_boolean
  1.1384 +#define GL_EXT_occlusion_query_boolean 1
  1.1385 +#ifdef GL_GLEXT_PROTOTYPES
  1.1386 +GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
  1.1387 +GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
  1.1388 +GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
  1.1389 +GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
  1.1390 +GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
  1.1391 +GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
  1.1392 +GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
  1.1393 +#endif
  1.1394 +typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
  1.1395 +typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
  1.1396 +typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
  1.1397 +typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
  1.1398 +typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
  1.1399 +typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
  1.1400 +typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
  1.1401 +#endif
  1.1402 +
  1.1403 +/* GL_EXT_read_format_bgra */
  1.1404 +#ifndef GL_EXT_read_format_bgra
  1.1405 +#define GL_EXT_read_format_bgra 1
  1.1406 +#endif
  1.1407 +
  1.1408 +/* GL_EXT_robustness */
  1.1409 +#ifndef GL_EXT_robustness
  1.1410 +#define GL_EXT_robustness 1
  1.1411 +#ifdef GL_GLEXT_PROTOTYPES
  1.1412 +GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
  1.1413 +GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  1.1414 +GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, float *params);
  1.1415 +GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  1.1416 +#endif
  1.1417 +typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
  1.1418 +typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  1.1419 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, float *params);
  1.1420 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  1.1421 +#endif
  1.1422 +
  1.1423 +/* GL_EXT_separate_shader_objects */
  1.1424 +#ifndef GL_EXT_separate_shader_objects
  1.1425 +#define GL_EXT_separate_shader_objects 1
  1.1426 +#ifdef GL_GLEXT_PROTOTYPES
  1.1427 +GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
  1.1428 +GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
  1.1429 +GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
  1.1430 +GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
  1.1431 +GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
  1.1432 +GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
  1.1433 +GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
  1.1434 +GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
  1.1435 +GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
  1.1436 +GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint x);
  1.1437 +GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint x, GLint y);
  1.1438 +GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z);
  1.1439 +GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
  1.1440 +GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat x);
  1.1441 +GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat x, GLfloat y);
  1.1442 +GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
  1.1443 +GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1.1444 +GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1445 +GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1446 +GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1447 +GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1448 +GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1449 +GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1450 +GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1451 +GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1452 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1453 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1454 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1455 +GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
  1.1456 +GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  1.1457 +#endif
  1.1458 +typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
  1.1459 +typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
  1.1460 +typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
  1.1461 +typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1.1462 +typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
  1.1463 +typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
  1.1464 +typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1.1465 +typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
  1.1466 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
  1.1467 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint x);
  1.1468 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint x, GLint y);
  1.1469 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z);
  1.1470 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
  1.1471 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat x);
  1.1472 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y);
  1.1473 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
  1.1474 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1.1475 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1476 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1477 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1478 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1479 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1480 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1481 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1482 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1483 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1484 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1485 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1486 +typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1.1487 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  1.1488 +#endif
  1.1489 +
  1.1490 +/* GL_EXT_shader_framebuffer_fetch */
  1.1491 +#ifndef GL_EXT_shader_framebuffer_fetch
  1.1492 +#define GL_EXT_shader_framebuffer_fetch 1
  1.1493 +#endif
  1.1494 +
  1.1495 +/* GL_EXT_shader_texture_lod */
  1.1496 +#ifndef GL_EXT_shader_texture_lod
  1.1497 +#define GL_EXT_shader_texture_lod 1
  1.1498 +#endif
  1.1499 +
  1.1500 +/* GL_EXT_shadow_samplers */
  1.1501 +#ifndef GL_EXT_shadow_samplers
  1.1502 +#define GL_EXT_shadow_samplers 1
  1.1503 +#endif
  1.1504 +
  1.1505 +/* GL_EXT_sRGB */
  1.1506 +#ifndef GL_EXT_sRGB
  1.1507 +#define GL_EXT_sRGB 1
  1.1508 +#endif
  1.1509 +
  1.1510 +/* GL_EXT_texture_compression_dxt1 */
  1.1511 +#ifndef GL_EXT_texture_compression_dxt1
  1.1512 +#define GL_EXT_texture_compression_dxt1 1
  1.1513 +#endif
  1.1514 +
  1.1515 +/* GL_EXT_texture_filter_anisotropic */
  1.1516 +#ifndef GL_EXT_texture_filter_anisotropic
  1.1517 +#define GL_EXT_texture_filter_anisotropic 1
  1.1518 +#endif
  1.1519 +
  1.1520 +/* GL_EXT_texture_format_BGRA8888 */
  1.1521 +#ifndef GL_EXT_texture_format_BGRA8888
  1.1522 +#define GL_EXT_texture_format_BGRA8888 1
  1.1523 +#endif
  1.1524 +
  1.1525 +/* GL_EXT_texture_rg */
  1.1526 +#ifndef GL_EXT_texture_rg
  1.1527 +#define GL_EXT_texture_rg 1
  1.1528 +#endif
  1.1529 +
  1.1530 +/* GL_EXT_texture_storage */
  1.1531 +#ifndef GL_EXT_texture_storage
  1.1532 +#define GL_EXT_texture_storage 1
  1.1533 +#ifdef GL_GLEXT_PROTOTYPES
  1.1534 +GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1.1535 +GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1.1536 +GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1.1537 +GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1.1538 +GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1.1539 +GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1.1540 +#endif
  1.1541 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1.1542 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1.1543 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1.1544 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1.1545 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1.1546 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1.1547 +#endif
  1.1548 +
  1.1549 +/* GL_EXT_texture_type_2_10_10_10_REV */
  1.1550 +#ifndef GL_EXT_texture_type_2_10_10_10_REV
  1.1551 +#define GL_EXT_texture_type_2_10_10_10_REV 1
  1.1552 +#endif
  1.1553 +
  1.1554 +/* GL_EXT_unpack_subimage */
  1.1555 +#ifndef GL_EXT_unpack_subimage
  1.1556 +#define GL_EXT_unpack_subimage 1
  1.1557 +#endif
  1.1558 +
  1.1559 +/*------------------------------------------------------------------------*
  1.1560 + * DMP extension functions
  1.1561 + *------------------------------------------------------------------------*/
  1.1562 +
  1.1563 +/* GL_DMP_shader_binary */
  1.1564 +#ifndef GL_DMP_shader_binary
  1.1565 +#define GL_DMP_shader_binary 1
  1.1566 +#endif
  1.1567 +
  1.1568 +/*------------------------------------------------------------------------*
  1.1569 + * FJ extension functions
  1.1570 + *------------------------------------------------------------------------*/
  1.1571 +
  1.1572 +/* GL_FJ_shader_binary_GCCSO */
  1.1573 +#ifndef GL_FJ_shader_binary_GCCSO
  1.1574 +#define GL_FJ_shader_binary_GCCSO 1
  1.1575 +#endif
  1.1576 +
  1.1577 +/*------------------------------------------------------------------------*
  1.1578 + * IMG extension functions
  1.1579 + *------------------------------------------------------------------------*/
  1.1580 +
  1.1581 +/* GL_IMG_program_binary */
  1.1582 +#ifndef GL_IMG_program_binary
  1.1583 +#define GL_IMG_program_binary 1
  1.1584 +#endif
  1.1585 +
  1.1586 +/* GL_IMG_read_format */
  1.1587 +#ifndef GL_IMG_read_format
  1.1588 +#define GL_IMG_read_format 1
  1.1589 +#endif
  1.1590 +
  1.1591 +/* GL_IMG_shader_binary */
  1.1592 +#ifndef GL_IMG_shader_binary
  1.1593 +#define GL_IMG_shader_binary 1
  1.1594 +#endif
  1.1595 +
  1.1596 +/* GL_IMG_texture_compression_pvrtc */
  1.1597 +#ifndef GL_IMG_texture_compression_pvrtc
  1.1598 +#define GL_IMG_texture_compression_pvrtc 1
  1.1599 +#endif
  1.1600 +
  1.1601 +/* GL_IMG_multisampled_render_to_texture */
  1.1602 +#ifndef GL_IMG_multisampled_render_to_texture
  1.1603 +#define GL_IMG_multisampled_render_to_texture 1
  1.1604 +#ifdef GL_GLEXT_PROTOTYPES
  1.1605 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  1.1606 +GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
  1.1607 +#endif
  1.1608 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1.1609 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  1.1610 +#endif
  1.1611 +
  1.1612 +/*------------------------------------------------------------------------*
  1.1613 + * NV extension functions
  1.1614 + *------------------------------------------------------------------------*/
  1.1615 +
  1.1616 +/* GL_NV_coverage_sample */
  1.1617 +#ifndef GL_NV_coverage_sample
  1.1618 +#define GL_NV_coverage_sample 1
  1.1619 +#ifdef GL_GLEXT_PROTOTYPES
  1.1620 +GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
  1.1621 +GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
  1.1622 +#endif
  1.1623 +typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
  1.1624 +typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
  1.1625 +#endif
  1.1626 +
  1.1627 +/* GL_NV_depth_nonlinear */
  1.1628 +#ifndef GL_NV_depth_nonlinear
  1.1629 +#define GL_NV_depth_nonlinear 1
  1.1630 +#endif
  1.1631 +
  1.1632 +/* GL_NV_draw_buffers */
  1.1633 +#ifndef GL_NV_draw_buffers
  1.1634 +#define GL_NV_draw_buffers 1
  1.1635 +#ifdef GL_GLEXT_PROTOTYPES
  1.1636 +GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
  1.1637 +#endif
  1.1638 +typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
  1.1639 +#endif
  1.1640 +
  1.1641 +/* GL_NV_fbo_color_attachments */
  1.1642 +#ifndef GL_NV_fbo_color_attachments
  1.1643 +#define GL_NV_fbo_color_attachments 1
  1.1644 +#endif
  1.1645 +
  1.1646 +/* GL_NV_fence */
  1.1647 +#ifndef GL_NV_fence
  1.1648 +#define GL_NV_fence 1
  1.1649 +#ifdef GL_GLEXT_PROTOTYPES
  1.1650 +GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei, const GLuint *);
  1.1651 +GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei, GLuint *);
  1.1652 +GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint);
  1.1653 +GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint);
  1.1654 +GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *);
  1.1655 +GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint);
  1.1656 +GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint, GLenum);
  1.1657 +#endif
  1.1658 +typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
  1.1659 +typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
  1.1660 +typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
  1.1661 +typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
  1.1662 +typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
  1.1663 +typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
  1.1664 +typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
  1.1665 +#endif
  1.1666 +
  1.1667 +/* GL_NV_read_buffer */
  1.1668 +#ifndef GL_NV_read_buffer
  1.1669 +#define GL_NV_read_buffer 1
  1.1670 +#ifdef GL_GLEXT_PROTOTYPES
  1.1671 +GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
  1.1672 +#endif
  1.1673 +typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
  1.1674 +#endif
  1.1675 +
  1.1676 +/* GL_NV_read_buffer_front */
  1.1677 +#ifndef GL_NV_read_buffer_front
  1.1678 +#define GL_NV_read_buffer_front 1
  1.1679 +#endif
  1.1680 +
  1.1681 +/* GL_NV_read_depth */
  1.1682 +#ifndef GL_NV_read_depth
  1.1683 +#define GL_NV_read_depth 1
  1.1684 +#endif
  1.1685 +
  1.1686 +/* GL_NV_read_depth_stencil */
  1.1687 +#ifndef GL_NV_read_depth_stencil
  1.1688 +#define GL_NV_read_depth_stencil 1
  1.1689 +#endif
  1.1690 +
  1.1691 +/* GL_NV_read_stencil */
  1.1692 +#ifndef GL_NV_read_stencil
  1.1693 +#define GL_NV_read_stencil 1
  1.1694 +#endif
  1.1695 +
  1.1696 +/* GL_NV_texture_compression_s3tc_update */
  1.1697 +#ifndef GL_NV_texture_compression_s3tc_update
  1.1698 +#define GL_NV_texture_compression_s3tc_update 1
  1.1699 +#endif
  1.1700 +
  1.1701 +/* GL_NV_texture_npot_2D_mipmap */
  1.1702 +#ifndef GL_NV_texture_npot_2D_mipmap
  1.1703 +#define GL_NV_texture_npot_2D_mipmap 1
  1.1704 +#endif
  1.1705 +
  1.1706 +/*------------------------------------------------------------------------*
  1.1707 + * QCOM extension functions
  1.1708 + *------------------------------------------------------------------------*/
  1.1709 +
  1.1710 +/* GL_QCOM_alpha_test */
  1.1711 +#ifndef GL_QCOM_alpha_test
  1.1712 +#define GL_QCOM_alpha_test 1
  1.1713 +#ifdef GL_GLEXT_PROTOTYPES
  1.1714 +GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
  1.1715 +#endif
  1.1716 +typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
  1.1717 +#endif
  1.1718 +
  1.1719 +/* GL_QCOM_binning_control */
  1.1720 +#ifndef GL_QCOM_binning_control
  1.1721 +#define GL_QCOM_binning_control 1
  1.1722 +#endif
  1.1723 +
  1.1724 +/* GL_QCOM_driver_control */
  1.1725 +#ifndef GL_QCOM_driver_control
  1.1726 +#define GL_QCOM_driver_control 1
  1.1727 +#ifdef GL_GLEXT_PROTOTYPES
  1.1728 +GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
  1.1729 +GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  1.1730 +GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
  1.1731 +GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
  1.1732 +#endif
  1.1733 +typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
  1.1734 +typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  1.1735 +typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  1.1736 +typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  1.1737 +#endif
  1.1738 +
  1.1739 +/* GL_QCOM_extended_get */
  1.1740 +#ifndef GL_QCOM_extended_get
  1.1741 +#define GL_QCOM_extended_get 1
  1.1742 +#ifdef GL_GLEXT_PROTOTYPES
  1.1743 +GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
  1.1744 +GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  1.1745 +GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  1.1746 +GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  1.1747 +GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  1.1748 +GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
  1.1749 +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, GLvoid *texels);
  1.1750 +GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, GLvoid **params);
  1.1751 +#endif
  1.1752 +typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
  1.1753 +typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  1.1754 +typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  1.1755 +typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  1.1756 +typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  1.1757 +typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
  1.1758 +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, GLvoid *texels);
  1.1759 +typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GLvoid **params);
  1.1760 +#endif
  1.1761 +
  1.1762 +/* GL_QCOM_extended_get2 */
  1.1763 +#ifndef GL_QCOM_extended_get2
  1.1764 +#define GL_QCOM_extended_get2 1
  1.1765 +#ifdef GL_GLEXT_PROTOTYPES
  1.1766 +GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  1.1767 +GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  1.1768 +GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
  1.1769 +GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  1.1770 +#endif
  1.1771 +typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  1.1772 +typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  1.1773 +typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
  1.1774 +typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  1.1775 +#endif
  1.1776 +
  1.1777 +/* GL_QCOM_perfmon_global_mode */
  1.1778 +#ifndef GL_QCOM_perfmon_global_mode
  1.1779 +#define GL_QCOM_perfmon_global_mode 1
  1.1780 +#endif
  1.1781 +
  1.1782 +/* GL_QCOM_writeonly_rendering */
  1.1783 +#ifndef GL_QCOM_writeonly_rendering
  1.1784 +#define GL_QCOM_writeonly_rendering 1
  1.1785 +#endif
  1.1786 +
  1.1787 +/* GL_QCOM_tiled_rendering */
  1.1788 +#ifndef GL_QCOM_tiled_rendering
  1.1789 +#define GL_QCOM_tiled_rendering 1
  1.1790 +#ifdef GL_GLEXT_PROTOTYPES
  1.1791 +GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  1.1792 +GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
  1.1793 +#endif
  1.1794 +typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  1.1795 +typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
  1.1796 +#endif
  1.1797 +
  1.1798 +/*------------------------------------------------------------------------*
  1.1799 + * VIV extension tokens
  1.1800 + *------------------------------------------------------------------------*/
  1.1801 +
  1.1802 +/* GL_VIV_shader_binary */
  1.1803 +#ifndef GL_VIV_shader_binary
  1.1804 +#define GL_VIV_shader_binary 1
  1.1805 +#endif
  1.1806 +
  1.1807 +#ifdef __cplusplus
  1.1808 +}
  1.1809 +#endif
  1.1810 +
  1.1811 +#endif /* __gl2ext_h_ */
  1.1812 +