gfx/angle/include/GLES2/gl2ext.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/include/GLES2/gl2ext.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,1550 @@
     1.4 +#ifndef __gl2ext_h_
     1.5 +#define __gl2ext_h_
     1.6 +
     1.7 +/* $Revision: 16482 $ on $Date:: 2012-01-04 13:44:55 -0500 #$ */
     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_rgb8_rgba8 */
   1.100 +#ifndef GL_OES_rgb8_rgba8
   1.101 +#define GL_RGB8_OES                                             0x8051
   1.102 +#define GL_RGBA8_OES                                            0x8058
   1.103 +#endif
   1.104 +
   1.105 +/* GL_OES_standard_derivatives */
   1.106 +#ifndef GL_OES_standard_derivatives
   1.107 +#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES                  0x8B8B
   1.108 +#endif
   1.109 +
   1.110 +/* GL_OES_stencil1 */
   1.111 +#ifndef GL_OES_stencil1
   1.112 +#define GL_STENCIL_INDEX1_OES                                   0x8D46
   1.113 +#endif
   1.114 +
   1.115 +/* GL_OES_stencil4 */
   1.116 +#ifndef GL_OES_stencil4
   1.117 +#define GL_STENCIL_INDEX4_OES                                   0x8D47
   1.118 +#endif
   1.119 +
   1.120 +/* GL_OES_texture_3D */
   1.121 +#ifndef GL_OES_texture_3D
   1.122 +#define GL_TEXTURE_WRAP_R_OES                                   0x8072
   1.123 +#define GL_TEXTURE_3D_OES                                       0x806F
   1.124 +#define GL_TEXTURE_BINDING_3D_OES                               0x806A
   1.125 +#define GL_MAX_3D_TEXTURE_SIZE_OES                              0x8073
   1.126 +#define GL_SAMPLER_3D_OES                                       0x8B5F
   1.127 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES        0x8CD4
   1.128 +#endif
   1.129 +
   1.130 +/* GL_OES_texture_float */
   1.131 +/* No new tokens introduced by this extension. */
   1.132 +
   1.133 +/* GL_OES_texture_float_linear */
   1.134 +/* No new tokens introduced by this extension. */
   1.135 +
   1.136 +/* GL_OES_texture_half_float */
   1.137 +#ifndef GL_OES_texture_half_float
   1.138 +#define GL_HALF_FLOAT_OES                                       0x8D61
   1.139 +#endif
   1.140 +
   1.141 +/* GL_OES_texture_half_float_linear */
   1.142 +/* No new tokens introduced by this extension. */
   1.143 +
   1.144 +/* GL_OES_texture_npot */
   1.145 +/* No new tokens introduced by this extension. */
   1.146 +
   1.147 +/* GL_OES_vertex_array_object */
   1.148 +#ifndef GL_OES_vertex_array_object
   1.149 +#define GL_VERTEX_ARRAY_BINDING_OES                             0x85B5
   1.150 +#endif
   1.151 +
   1.152 +/* GL_OES_vertex_half_float */
   1.153 +/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
   1.154 +
   1.155 +/* GL_OES_vertex_type_10_10_10_2 */
   1.156 +#ifndef GL_OES_vertex_type_10_10_10_2
   1.157 +#define GL_UNSIGNED_INT_10_10_10_2_OES                          0x8DF6
   1.158 +#define GL_INT_10_10_10_2_OES                                   0x8DF7
   1.159 +#endif
   1.160 +
   1.161 +/*------------------------------------------------------------------------*
   1.162 + * AMD extension tokens
   1.163 + *------------------------------------------------------------------------*/
   1.164 +
   1.165 +/* GL_AMD_compressed_3DC_texture */
   1.166 +#ifndef GL_AMD_compressed_3DC_texture
   1.167 +#define GL_3DC_X_AMD                                            0x87F9
   1.168 +#define GL_3DC_XY_AMD                                           0x87FA
   1.169 +#endif
   1.170 +
   1.171 +/* GL_AMD_compressed_ATC_texture */
   1.172 +#ifndef GL_AMD_compressed_ATC_texture
   1.173 +#define GL_ATC_RGB_AMD                                          0x8C92
   1.174 +#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                          0x8C93
   1.175 +#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD                      0x87EE
   1.176 +#endif
   1.177 +
   1.178 +/* GL_AMD_performance_monitor */
   1.179 +#ifndef GL_AMD_performance_monitor
   1.180 +#define GL_COUNTER_TYPE_AMD                                     0x8BC0
   1.181 +#define GL_COUNTER_RANGE_AMD                                    0x8BC1
   1.182 +#define GL_UNSIGNED_INT64_AMD                                   0x8BC2
   1.183 +#define GL_PERCENTAGE_AMD                                       0x8BC3
   1.184 +#define GL_PERFMON_RESULT_AVAILABLE_AMD                         0x8BC4
   1.185 +#define GL_PERFMON_RESULT_SIZE_AMD                              0x8BC5
   1.186 +#define GL_PERFMON_RESULT_AMD                                   0x8BC6
   1.187 +#endif
   1.188 +
   1.189 +/* GL_AMD_program_binary_Z400 */
   1.190 +#ifndef GL_AMD_program_binary_Z400
   1.191 +#define GL_Z400_BINARY_AMD                                      0x8740
   1.192 +#endif
   1.193 +
   1.194 +/*------------------------------------------------------------------------*
   1.195 + * ANGLE extension tokens
   1.196 + *------------------------------------------------------------------------*/
   1.197 +
   1.198 +/* GL_ANGLE_framebuffer_blit */
   1.199 +#ifndef GL_ANGLE_framebuffer_blit
   1.200 +#define GL_READ_FRAMEBUFFER_ANGLE                               0x8CA8
   1.201 +#define GL_DRAW_FRAMEBUFFER_ANGLE                               0x8CA9
   1.202 +#define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE                       0x8CA6
   1.203 +#define GL_READ_FRAMEBUFFER_BINDING_ANGLE                       0x8CAA
   1.204 +#endif
   1.205 +
   1.206 +/* GL_ANGLE_framebuffer_multisample */
   1.207 +#ifndef GL_ANGLE_framebuffer_multisample
   1.208 +#define GL_RENDERBUFFER_SAMPLES_ANGLE                           0x8CAB
   1.209 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE             0x8D56
   1.210 +#define GL_MAX_SAMPLES_ANGLE                                    0x8D57
   1.211 +#endif
   1.212 +
   1.213 +/* GL_ANGLE_pack_reverse_row_order */
   1.214 +#ifndef GL_ANGLE_pack_reverse_row_order
   1.215 +#define GL_PACK_REVERSE_ROW_ORDER_ANGLE                         0x93A4
   1.216 +#endif
   1.217 +
   1.218 +/* GL_ANGLE_texture_compression_dxt3 */
   1.219 +#ifndef GL_ANGLE_texture_compression_dxt3
   1.220 +#define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE                      0x83F2
   1.221 +#endif
   1.222 +
   1.223 +/* GL_ANGLE_texture_compression_dxt5 */
   1.224 +#ifndef GL_ANGLE_texture_compression_dxt5
   1.225 +#define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE                      0x83F3
   1.226 +#endif
   1.227 +
   1.228 +/* GL_ANGLE_translated_shader_source */
   1.229 +#ifndef GL_ANGLE_translated_shader_source
   1.230 +#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE                0x93A0
   1.231 +#endif
   1.232 +
   1.233 +/* GL_ANGLE_texture_usage */
   1.234 +#ifndef GL_ANGLE_texture_usage
   1.235 +#define GL_TEXTURE_USAGE_ANGLE                                  0x93A2
   1.236 +#define GL_FRAMEBUFFER_ATTACHMENT_ANGLE                         0x93A3
   1.237 +#endif
   1.238 +
   1.239 +/* GL_ANGLE_instanced_arrays */
   1.240 +#ifndef GL_ANGLE_instanced_arrays
   1.241 +#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE                    0x88FE
   1.242 +#endif
   1.243 +
   1.244 +/* GL_ANGLE_program_binary */
   1.245 +#ifndef GL_ANGLE_program_binary
   1.246 +#define GL_PROGRAM_BINARY_ANGLE                                 0x93A6
   1.247 +#endif
   1.248 +
   1.249 +/*------------------------------------------------------------------------*
   1.250 + * APPLE extension tokens
   1.251 + *------------------------------------------------------------------------*/
   1.252 +
   1.253 +/* GL_APPLE_rgb_422 */
   1.254 +#ifndef GL_APPLE_rgb_422
   1.255 +#define GL_RGB_422_APPLE                                        0x8A1F
   1.256 +#define GL_UNSIGNED_SHORT_8_8_APPLE                             0x85BA
   1.257 +#define GL_UNSIGNED_SHORT_8_8_REV_APPLE                         0x85BB
   1.258 +#endif
   1.259 +
   1.260 +/* GL_APPLE_framebuffer_multisample */
   1.261 +#ifndef GL_APPLE_framebuffer_multisample
   1.262 +#define GL_RENDERBUFFER_SAMPLES_APPLE                           0x8CAB
   1.263 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE             0x8D56
   1.264 +#define GL_MAX_SAMPLES_APPLE                                    0x8D57
   1.265 +#define GL_READ_FRAMEBUFFER_APPLE                               0x8CA8
   1.266 +#define GL_DRAW_FRAMEBUFFER_APPLE                               0x8CA9
   1.267 +#define GL_DRAW_FRAMEBUFFER_BINDING_APPLE                       0x8CA6
   1.268 +#define GL_READ_FRAMEBUFFER_BINDING_APPLE                       0x8CAA
   1.269 +#endif
   1.270 +
   1.271 +/* GL_APPLE_texture_format_BGRA8888 */
   1.272 +#ifndef GL_APPLE_texture_format_BGRA8888
   1.273 +#define GL_BGRA_EXT                                             0x80E1
   1.274 +#endif
   1.275 +
   1.276 +/* GL_APPLE_texture_max_level */
   1.277 +#ifndef GL_APPLE_texture_max_level
   1.278 +#define GL_TEXTURE_MAX_LEVEL_APPLE                              0x813D
   1.279 +#endif
   1.280 +
   1.281 +/*------------------------------------------------------------------------*
   1.282 + * ARM extension tokens
   1.283 + *------------------------------------------------------------------------*/
   1.284 +
   1.285 +/* GL_ARM_mali_shader_binary */
   1.286 +#ifndef GL_ARM_mali_shader_binary
   1.287 +#define GL_MALI_SHADER_BINARY_ARM                               0x8F60
   1.288 +#endif
   1.289 +
   1.290 +/* GL_ARM_rgba8 */
   1.291 +/* No new tokens introduced by this extension. */
   1.292 +
   1.293 +/*------------------------------------------------------------------------*
   1.294 + * EXT extension tokens
   1.295 + *------------------------------------------------------------------------*/
   1.296 +
   1.297 +/* GL_EXT_blend_minmax */
   1.298 +#ifndef GL_EXT_blend_minmax
   1.299 +#define GL_MIN_EXT                                              0x8007
   1.300 +#define GL_MAX_EXT                                              0x8008
   1.301 +#endif
   1.302 +
   1.303 +/* GL_EXT_color_buffer_half_float */
   1.304 +#ifndef GL_EXT_color_buffer_half_float
   1.305 +#define GL_RGBA16F_EXT                                          0x881A
   1.306 +#define GL_RGB16F_EXT                                           0x881B
   1.307 +#define GL_RG16F_EXT                                            0x822F
   1.308 +#define GL_R16F_EXT                                             0x822D
   1.309 +#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT            0x8211
   1.310 +#define GL_UNSIGNED_NORMALIZED_EXT                              0x8C17
   1.311 +#endif
   1.312 +
   1.313 +/* GL_EXT_debug_label */
   1.314 +#ifndef GL_EXT_debug_label
   1.315 +#define GL_PROGRAM_PIPELINE_OBJECT_EXT                          0x8A4F
   1.316 +#define GL_PROGRAM_OBJECT_EXT                                   0x8B40
   1.317 +#define GL_SHADER_OBJECT_EXT                                    0x8B48
   1.318 +#define GL_BUFFER_OBJECT_EXT                                    0x9151
   1.319 +#define GL_QUERY_OBJECT_EXT                                     0x9153
   1.320 +#define GL_VERTEX_ARRAY_OBJECT_EXT                              0x9154
   1.321 +#endif
   1.322 +
   1.323 +/* GL_EXT_debug_marker */
   1.324 +/* No new tokens introduced by this extension. */
   1.325 +
   1.326 +/* GL_EXT_discard_framebuffer */
   1.327 +#ifndef GL_EXT_discard_framebuffer
   1.328 +#define GL_COLOR_EXT                                            0x1800
   1.329 +#define GL_DEPTH_EXT                                            0x1801
   1.330 +#define GL_STENCIL_EXT                                          0x1802
   1.331 +#endif
   1.332 +
   1.333 +/* GL_EXT_multisampled_render_to_texture */
   1.334 +#ifndef GL_EXT_multisampled_render_to_texture
   1.335 +#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT           0x8D6C
   1.336 +#define GL_RENDERBUFFER_SAMPLES_EXT                             0x9133
   1.337 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT               0x9134
   1.338 +#define GL_MAX_SAMPLES_EXT                                      0x9135
   1.339 +#endif
   1.340 +
   1.341 +/* GL_EXT_multi_draw_arrays */
   1.342 +/* No new tokens introduced by this extension. */
   1.343 +
   1.344 +/* GL_EXT_occlusion_query_boolean */
   1.345 +#ifndef GL_EXT_occlusion_query_boolean
   1.346 +#define GL_ANY_SAMPLES_PASSED_EXT                               0x8C2F
   1.347 +#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT                  0x8D6A
   1.348 +#define GL_CURRENT_QUERY_EXT                                    0x8865
   1.349 +#define GL_QUERY_RESULT_EXT                                     0x8866
   1.350 +#define GL_QUERY_RESULT_AVAILABLE_EXT                           0x8867
   1.351 +#endif
   1.352 +
   1.353 +/* GL_EXT_read_format_bgra */
   1.354 +#ifndef GL_EXT_read_format_bgra
   1.355 +#define GL_BGRA_EXT                                             0x80E1
   1.356 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT                       0x8365
   1.357 +#define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT                       0x8366
   1.358 +#endif
   1.359 +
   1.360 +/* GL_EXT_robustness */
   1.361 +#ifndef GL_EXT_robustness
   1.362 +/* reuse GL_NO_ERROR */
   1.363 +#define GL_GUILTY_CONTEXT_RESET_EXT                             0x8253
   1.364 +#define GL_INNOCENT_CONTEXT_RESET_EXT                           0x8254
   1.365 +#define GL_UNKNOWN_CONTEXT_RESET_EXT                            0x8255
   1.366 +#define GL_CONTEXT_ROBUST_ACCESS_EXT                            0x90F3
   1.367 +#define GL_RESET_NOTIFICATION_STRATEGY_EXT                      0x8256
   1.368 +#define GL_LOSE_CONTEXT_ON_RESET_EXT                            0x8252
   1.369 +#define GL_NO_RESET_NOTIFICATION_EXT                            0x8261
   1.370 +#endif
   1.371 +
   1.372 +/* GL_EXT_separate_shader_objects */
   1.373 +#ifndef GL_EXT_separate_shader_objects
   1.374 +#define GL_VERTEX_SHADER_BIT_EXT                                0x00000001
   1.375 +#define GL_FRAGMENT_SHADER_BIT_EXT                              0x00000002
   1.376 +#define GL_ALL_SHADER_BITS_EXT                                  0xFFFFFFFF
   1.377 +#define GL_PROGRAM_SEPARABLE_EXT                                0x8258
   1.378 +#define GL_ACTIVE_PROGRAM_EXT                                   0x8259
   1.379 +#define GL_PROGRAM_PIPELINE_BINDING_EXT                         0x825A
   1.380 +#endif
   1.381 +
   1.382 +/* GL_EXT_shader_texture_lod */
   1.383 +/* No new tokens introduced by this extension. */
   1.384 +
   1.385 +/* GL_EXT_shadow_samplers */
   1.386 +#ifndef GL_EXT_shadow_samplers
   1.387 +#define GL_TEXTURE_COMPARE_MODE_EXT                             0x884C
   1.388 +#define GL_TEXTURE_COMPARE_FUNC_EXT                             0x884D
   1.389 +#define GL_COMPARE_REF_TO_TEXTURE_EXT                           0x884E
   1.390 +#endif
   1.391 +
   1.392 +/* GL_EXT_sRGB */
   1.393 +#ifndef GL_EXT_sRGB
   1.394 +#define GL_SRGB_EXT                                             0x8C40
   1.395 +#define GL_SRGB_ALPHA_EXT                                       0x8C42
   1.396 +#define GL_SRGB8_ALPHA8_EXT                                     0x8C43
   1.397 +#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT            0x8210
   1.398 +#endif
   1.399 +
   1.400 +/* GL_EXT_texture_compression_dxt1 */
   1.401 +#ifndef GL_EXT_texture_compression_dxt1
   1.402 +#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT                         0x83F0
   1.403 +#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT                        0x83F1
   1.404 +#endif
   1.405 +
   1.406 +/* GL_EXT_texture_filter_anisotropic */
   1.407 +#ifndef GL_EXT_texture_filter_anisotropic
   1.408 +#define GL_TEXTURE_MAX_ANISOTROPY_EXT                           0x84FE
   1.409 +#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT                       0x84FF
   1.410 +#endif
   1.411 +
   1.412 +/* GL_EXT_texture_format_BGRA8888 */
   1.413 +#ifndef GL_EXT_texture_format_BGRA8888
   1.414 +#define GL_BGRA_EXT                                             0x80E1
   1.415 +#endif
   1.416 +
   1.417 +/* GL_EXT_texture_rg */
   1.418 +#ifndef GL_EXT_texture_rg
   1.419 +#define GL_RED_EXT                                              0x1903
   1.420 +#define GL_RG_EXT                                               0x8227
   1.421 +#define GL_R8_EXT                                               0x8229
   1.422 +#define GL_RG8_EXT                                              0x822B
   1.423 +#endif
   1.424 +
   1.425 +/* GL_EXT_texture_storage */
   1.426 +#ifndef GL_EXT_texture_storage
   1.427 +#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT                         0x912F
   1.428 +#define GL_ALPHA8_EXT                                           0x803C  
   1.429 +#define GL_LUMINANCE8_EXT                                       0x8040
   1.430 +#define GL_LUMINANCE8_ALPHA8_EXT                                0x8045
   1.431 +#define GL_RGBA32F_EXT                                          0x8814  
   1.432 +#define GL_RGB32F_EXT                                           0x8815
   1.433 +#define GL_ALPHA32F_EXT                                         0x8816
   1.434 +#define GL_LUMINANCE32F_EXT                                     0x8818
   1.435 +#define GL_LUMINANCE_ALPHA32F_EXT                               0x8819
   1.436 +/* reuse GL_RGBA16F_EXT */
   1.437 +#define GL_RGB16F_EXT                                           0x881B
   1.438 +#define GL_ALPHA16F_EXT                                         0x881C
   1.439 +#define GL_LUMINANCE16F_EXT                                     0x881E
   1.440 +#define GL_LUMINANCE_ALPHA16F_EXT                               0x881F
   1.441 +#define GL_RGB10_A2_EXT                                         0x8059  
   1.442 +#define GL_RGB10_EXT                                            0x8052
   1.443 +#define GL_BGRA8_EXT                                            0x93A1
   1.444 +#endif
   1.445 +
   1.446 +/* GL_EXT_texture_type_2_10_10_10_REV */
   1.447 +#ifndef GL_EXT_texture_type_2_10_10_10_REV
   1.448 +#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT                      0x8368
   1.449 +#endif
   1.450 +
   1.451 +/* GL_EXT_unpack_subimage */
   1.452 +#ifndef GL_EXT_unpack_subimage
   1.453 +#define GL_UNPACK_ROW_LENGTH                                    0x0CF2
   1.454 +#define GL_UNPACK_SKIP_ROWS                                     0x0CF3
   1.455 +#define GL_UNPACK_SKIP_PIXELS                                   0x0CF4
   1.456 +#endif
   1.457 +
   1.458 +/*------------------------------------------------------------------------*
   1.459 + * DMP extension tokens
   1.460 + *------------------------------------------------------------------------*/
   1.461 +
   1.462 +/* GL_DMP_shader_binary */
   1.463 +#ifndef GL_DMP_shader_binary
   1.464 +#define GL_SHADER_BINARY_DMP                                    0x9250
   1.465 +#endif
   1.466 +
   1.467 +/*------------------------------------------------------------------------*
   1.468 + * IMG extension tokens
   1.469 + *------------------------------------------------------------------------*/
   1.470 +
   1.471 +/* GL_IMG_program_binary */
   1.472 +#ifndef GL_IMG_program_binary
   1.473 +#define GL_SGX_PROGRAM_BINARY_IMG                               0x9130
   1.474 +#endif
   1.475 +
   1.476 +/* GL_IMG_read_format */
   1.477 +#ifndef GL_IMG_read_format
   1.478 +#define GL_BGRA_IMG                                             0x80E1
   1.479 +#define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG                       0x8365
   1.480 +#endif
   1.481 +
   1.482 +/* GL_IMG_shader_binary */
   1.483 +#ifndef GL_IMG_shader_binary
   1.484 +#define GL_SGX_BINARY_IMG                                       0x8C0A
   1.485 +#endif
   1.486 +
   1.487 +/* GL_IMG_texture_compression_pvrtc */
   1.488 +#ifndef GL_IMG_texture_compression_pvrtc
   1.489 +#define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG                      0x8C00
   1.490 +#define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG                      0x8C01
   1.491 +#define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG                     0x8C02
   1.492 +#define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG                     0x8C03
   1.493 +#endif
   1.494 +
   1.495 +/* GL_IMG_multisampled_render_to_texture */
   1.496 +#ifndef GL_IMG_multisampled_render_to_texture
   1.497 +#define GL_RENDERBUFFER_SAMPLES_IMG                             0x9133
   1.498 +#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG               0x9134
   1.499 +#define GL_MAX_SAMPLES_IMG                                      0x9135
   1.500 +#define GL_TEXTURE_SAMPLES_IMG                                  0x9136
   1.501 +#endif
   1.502 +
   1.503 +/*------------------------------------------------------------------------*
   1.504 + * NV extension tokens
   1.505 + *------------------------------------------------------------------------*/
   1.506 +
   1.507 +/* GL_NV_coverage_sample */
   1.508 +#ifndef GL_NV_coverage_sample
   1.509 +#define GL_COVERAGE_COMPONENT_NV                                0x8ED0
   1.510 +#define GL_COVERAGE_COMPONENT4_NV                               0x8ED1
   1.511 +#define GL_COVERAGE_ATTACHMENT_NV                               0x8ED2
   1.512 +#define GL_COVERAGE_BUFFERS_NV                                  0x8ED3
   1.513 +#define GL_COVERAGE_SAMPLES_NV                                  0x8ED4
   1.514 +#define GL_COVERAGE_ALL_FRAGMENTS_NV                            0x8ED5
   1.515 +#define GL_COVERAGE_EDGE_FRAGMENTS_NV                           0x8ED6
   1.516 +#define GL_COVERAGE_AUTOMATIC_NV                                0x8ED7
   1.517 +#define GL_COVERAGE_BUFFER_BIT_NV                               0x8000
   1.518 +#endif
   1.519 +
   1.520 +/* GL_NV_depth_nonlinear */
   1.521 +#ifndef GL_NV_depth_nonlinear
   1.522 +#define GL_DEPTH_COMPONENT16_NONLINEAR_NV                       0x8E2C
   1.523 +#endif
   1.524 +
   1.525 +/* GL_NV_draw_buffers */
   1.526 +#ifndef GL_NV_draw_buffers
   1.527 +#define GL_MAX_DRAW_BUFFERS_NV                                  0x8824
   1.528 +#define GL_DRAW_BUFFER0_NV                                      0x8825
   1.529 +#define GL_DRAW_BUFFER1_NV                                      0x8826
   1.530 +#define GL_DRAW_BUFFER2_NV                                      0x8827
   1.531 +#define GL_DRAW_BUFFER3_NV                                      0x8828
   1.532 +#define GL_DRAW_BUFFER4_NV                                      0x8829
   1.533 +#define GL_DRAW_BUFFER5_NV                                      0x882A
   1.534 +#define GL_DRAW_BUFFER6_NV                                      0x882B
   1.535 +#define GL_DRAW_BUFFER7_NV                                      0x882C
   1.536 +#define GL_DRAW_BUFFER8_NV                                      0x882D
   1.537 +#define GL_DRAW_BUFFER9_NV                                      0x882E
   1.538 +#define GL_DRAW_BUFFER10_NV                                     0x882F
   1.539 +#define GL_DRAW_BUFFER11_NV                                     0x8830
   1.540 +#define GL_DRAW_BUFFER12_NV                                     0x8831
   1.541 +#define GL_DRAW_BUFFER13_NV                                     0x8832
   1.542 +#define GL_DRAW_BUFFER14_NV                                     0x8833
   1.543 +#define GL_DRAW_BUFFER15_NV                                     0x8834
   1.544 +#define GL_COLOR_ATTACHMENT0_NV                                 0x8CE0
   1.545 +#define GL_COLOR_ATTACHMENT1_NV                                 0x8CE1
   1.546 +#define GL_COLOR_ATTACHMENT2_NV                                 0x8CE2
   1.547 +#define GL_COLOR_ATTACHMENT3_NV                                 0x8CE3
   1.548 +#define GL_COLOR_ATTACHMENT4_NV                                 0x8CE4
   1.549 +#define GL_COLOR_ATTACHMENT5_NV                                 0x8CE5
   1.550 +#define GL_COLOR_ATTACHMENT6_NV                                 0x8CE6
   1.551 +#define GL_COLOR_ATTACHMENT7_NV                                 0x8CE7
   1.552 +#define GL_COLOR_ATTACHMENT8_NV                                 0x8CE8
   1.553 +#define GL_COLOR_ATTACHMENT9_NV                                 0x8CE9
   1.554 +#define GL_COLOR_ATTACHMENT10_NV                                0x8CEA
   1.555 +#define GL_COLOR_ATTACHMENT11_NV                                0x8CEB
   1.556 +#define GL_COLOR_ATTACHMENT12_NV                                0x8CEC
   1.557 +#define GL_COLOR_ATTACHMENT13_NV                                0x8CED
   1.558 +#define GL_COLOR_ATTACHMENT14_NV                                0x8CEE
   1.559 +#define GL_COLOR_ATTACHMENT15_NV                                0x8CEF
   1.560 +#endif
   1.561 +
   1.562 +/* GL_EXT_draw_buffers */
   1.563 +#ifndef GL_EXT_draw_buffers
   1.564 +#define GL_MAX_DRAW_BUFFERS_EXT                                  0x8824
   1.565 +#define GL_DRAW_BUFFER0_EXT                                      0x8825
   1.566 +#define GL_DRAW_BUFFER1_EXT                                      0x8826
   1.567 +#define GL_DRAW_BUFFER2_EXT                                      0x8827
   1.568 +#define GL_DRAW_BUFFER3_EXT                                      0x8828
   1.569 +#define GL_DRAW_BUFFER4_EXT                                      0x8829
   1.570 +#define GL_DRAW_BUFFER5_EXT                                      0x882A
   1.571 +#define GL_DRAW_BUFFER6_EXT                                      0x882B
   1.572 +#define GL_DRAW_BUFFER7_EXT                                      0x882C
   1.573 +#define GL_DRAW_BUFFER8_EXT                                      0x882D
   1.574 +#define GL_DRAW_BUFFER9_EXT                                      0x882E
   1.575 +#define GL_DRAW_BUFFER10_EXT                                     0x882F
   1.576 +#define GL_DRAW_BUFFER11_EXT                                     0x8830
   1.577 +#define GL_DRAW_BUFFER12_EXT                                     0x8831
   1.578 +#define GL_DRAW_BUFFER13_EXT                                     0x8832
   1.579 +#define GL_DRAW_BUFFER14_EXT                                     0x8833
   1.580 +#define GL_DRAW_BUFFER15_EXT                                     0x8834
   1.581 +#define GL_COLOR_ATTACHMENT0_EXT                                 0x8CE0
   1.582 +#define GL_COLOR_ATTACHMENT1_EXT                                 0x8CE1
   1.583 +#define GL_COLOR_ATTACHMENT2_EXT                                 0x8CE2
   1.584 +#define GL_COLOR_ATTACHMENT3_EXT                                 0x8CE3
   1.585 +#define GL_COLOR_ATTACHMENT4_EXT                                 0x8CE4
   1.586 +#define GL_COLOR_ATTACHMENT5_EXT                                 0x8CE5
   1.587 +#define GL_COLOR_ATTACHMENT6_EXT                                 0x8CE6
   1.588 +#define GL_COLOR_ATTACHMENT7_EXT                                 0x8CE7
   1.589 +#define GL_COLOR_ATTACHMENT8_EXT                                 0x8CE8
   1.590 +#define GL_COLOR_ATTACHMENT9_EXT                                 0x8CE9
   1.591 +#define GL_COLOR_ATTACHMENT10_EXT                                0x8CEA
   1.592 +#define GL_COLOR_ATTACHMENT11_EXT                                0x8CEB
   1.593 +#define GL_COLOR_ATTACHMENT12_EXT                                0x8CEC
   1.594 +#define GL_COLOR_ATTACHMENT13_EXT                                0x8CED
   1.595 +#define GL_COLOR_ATTACHMENT14_EXT                                0x8CEE
   1.596 +#define GL_COLOR_ATTACHMENT15_EXT                                0x8CEF
   1.597 +#define GL_MAX_COLOR_ATTACHMENTS_EXT                             0x8CDF
   1.598 +#endif
   1.599 +
   1.600 +/* GL_NV_fbo_color_attachments */
   1.601 +#ifndef GL_NV_fbo_color_attachments
   1.602 +#define GL_MAX_COLOR_ATTACHMENTS_NV                             0x8CDF
   1.603 +/* GL_COLOR_ATTACHMENT{0-15}_NV defined in GL_NV_draw_buffers already. */
   1.604 +#endif
   1.605 +
   1.606 +/* GL_NV_fence */
   1.607 +#ifndef GL_NV_fence
   1.608 +#define GL_ALL_COMPLETED_NV                                     0x84F2
   1.609 +#define GL_FENCE_STATUS_NV                                      0x84F3
   1.610 +#define GL_FENCE_CONDITION_NV                                   0x84F4
   1.611 +#endif
   1.612 +
   1.613 +/* GL_NV_read_buffer */
   1.614 +#ifndef GL_NV_read_buffer
   1.615 +#define GL_READ_BUFFER_NV                                       0x0C02
   1.616 +#endif
   1.617 +
   1.618 +/* GL_NV_read_buffer_front */
   1.619 +/* No new tokens introduced by this extension. */
   1.620 +
   1.621 +/* GL_NV_read_depth */
   1.622 +/* No new tokens introduced by this extension. */
   1.623 +
   1.624 +/* GL_NV_read_depth_stencil */
   1.625 +/* No new tokens introduced by this extension. */
   1.626 +
   1.627 +/* GL_NV_read_stencil */
   1.628 +/* No new tokens introduced by this extension. */
   1.629 +
   1.630 +/* GL_NV_texture_compression_s3tc_update */
   1.631 +/* No new tokens introduced by this extension. */
   1.632 +
   1.633 +/* GL_NV_texture_npot_2D_mipmap */
   1.634 +/* No new tokens introduced by this extension. */
   1.635 +
   1.636 +/*------------------------------------------------------------------------*
   1.637 + * QCOM extension tokens
   1.638 + *------------------------------------------------------------------------*/
   1.639 +
   1.640 +/* GL_QCOM_alpha_test */
   1.641 +#ifndef GL_QCOM_alpha_test
   1.642 +#define GL_ALPHA_TEST_QCOM                                      0x0BC0
   1.643 +#define GL_ALPHA_TEST_FUNC_QCOM                                 0x0BC1
   1.644 +#define GL_ALPHA_TEST_REF_QCOM                                  0x0BC2
   1.645 +#endif
   1.646 +
   1.647 +/* GL_QCOM_driver_control */
   1.648 +/* No new tokens introduced by this extension. */
   1.649 +
   1.650 +/* GL_QCOM_extended_get */
   1.651 +#ifndef GL_QCOM_extended_get
   1.652 +#define GL_TEXTURE_WIDTH_QCOM                                   0x8BD2
   1.653 +#define GL_TEXTURE_HEIGHT_QCOM                                  0x8BD3
   1.654 +#define GL_TEXTURE_DEPTH_QCOM                                   0x8BD4
   1.655 +#define GL_TEXTURE_INTERNAL_FORMAT_QCOM                         0x8BD5
   1.656 +#define GL_TEXTURE_FORMAT_QCOM                                  0x8BD6
   1.657 +#define GL_TEXTURE_TYPE_QCOM                                    0x8BD7
   1.658 +#define GL_TEXTURE_IMAGE_VALID_QCOM                             0x8BD8
   1.659 +#define GL_TEXTURE_NUM_LEVELS_QCOM                              0x8BD9
   1.660 +#define GL_TEXTURE_TARGET_QCOM                                  0x8BDA
   1.661 +#define GL_TEXTURE_OBJECT_VALID_QCOM                            0x8BDB
   1.662 +#define GL_STATE_RESTORE                                        0x8BDC
   1.663 +#endif
   1.664 +
   1.665 +/* GL_QCOM_extended_get2 */
   1.666 +/* No new tokens introduced by this extension. */
   1.667 +
   1.668 +/* GL_QCOM_perfmon_global_mode */
   1.669 +#ifndef GL_QCOM_perfmon_global_mode
   1.670 +#define GL_PERFMON_GLOBAL_MODE_QCOM                             0x8FA0
   1.671 +#endif
   1.672 +
   1.673 +/* GL_QCOM_writeonly_rendering */
   1.674 +#ifndef GL_QCOM_writeonly_rendering
   1.675 +#define GL_WRITEONLY_RENDERING_QCOM                             0x8823
   1.676 +#endif
   1.677 +
   1.678 +/* GL_QCOM_tiled_rendering */
   1.679 +#ifndef GL_QCOM_tiled_rendering
   1.680 +#define GL_COLOR_BUFFER_BIT0_QCOM                               0x00000001
   1.681 +#define GL_COLOR_BUFFER_BIT1_QCOM                               0x00000002
   1.682 +#define GL_COLOR_BUFFER_BIT2_QCOM                               0x00000004
   1.683 +#define GL_COLOR_BUFFER_BIT3_QCOM                               0x00000008
   1.684 +#define GL_COLOR_BUFFER_BIT4_QCOM                               0x00000010
   1.685 +#define GL_COLOR_BUFFER_BIT5_QCOM                               0x00000020
   1.686 +#define GL_COLOR_BUFFER_BIT6_QCOM                               0x00000040
   1.687 +#define GL_COLOR_BUFFER_BIT7_QCOM                               0x00000080
   1.688 +#define GL_DEPTH_BUFFER_BIT0_QCOM                               0x00000100
   1.689 +#define GL_DEPTH_BUFFER_BIT1_QCOM                               0x00000200
   1.690 +#define GL_DEPTH_BUFFER_BIT2_QCOM                               0x00000400
   1.691 +#define GL_DEPTH_BUFFER_BIT3_QCOM                               0x00000800
   1.692 +#define GL_DEPTH_BUFFER_BIT4_QCOM                               0x00001000
   1.693 +#define GL_DEPTH_BUFFER_BIT5_QCOM                               0x00002000
   1.694 +#define GL_DEPTH_BUFFER_BIT6_QCOM                               0x00004000
   1.695 +#define GL_DEPTH_BUFFER_BIT7_QCOM                               0x00008000
   1.696 +#define GL_STENCIL_BUFFER_BIT0_QCOM                             0x00010000
   1.697 +#define GL_STENCIL_BUFFER_BIT1_QCOM                             0x00020000
   1.698 +#define GL_STENCIL_BUFFER_BIT2_QCOM                             0x00040000
   1.699 +#define GL_STENCIL_BUFFER_BIT3_QCOM                             0x00080000
   1.700 +#define GL_STENCIL_BUFFER_BIT4_QCOM                             0x00100000
   1.701 +#define GL_STENCIL_BUFFER_BIT5_QCOM                             0x00200000
   1.702 +#define GL_STENCIL_BUFFER_BIT6_QCOM                             0x00400000
   1.703 +#define GL_STENCIL_BUFFER_BIT7_QCOM                             0x00800000
   1.704 +#define GL_MULTISAMPLE_BUFFER_BIT0_QCOM                         0x01000000
   1.705 +#define GL_MULTISAMPLE_BUFFER_BIT1_QCOM                         0x02000000
   1.706 +#define GL_MULTISAMPLE_BUFFER_BIT2_QCOM                         0x04000000
   1.707 +#define GL_MULTISAMPLE_BUFFER_BIT3_QCOM                         0x08000000
   1.708 +#define GL_MULTISAMPLE_BUFFER_BIT4_QCOM                         0x10000000
   1.709 +#define GL_MULTISAMPLE_BUFFER_BIT5_QCOM                         0x20000000
   1.710 +#define GL_MULTISAMPLE_BUFFER_BIT6_QCOM                         0x40000000
   1.711 +#define GL_MULTISAMPLE_BUFFER_BIT7_QCOM                         0x80000000
   1.712 +#endif
   1.713 +
   1.714 +/*------------------------------------------------------------------------*
   1.715 + * VIV extension tokens
   1.716 + *------------------------------------------------------------------------*/
   1.717 +
   1.718 +/* GL_VIV_shader_binary */
   1.719 +#ifndef GL_VIV_shader_binary
   1.720 +#define GL_SHADER_BINARY_VIV                                    0x8FC4
   1.721 +#endif
   1.722 +
   1.723 +/*------------------------------------------------------------------------*
   1.724 + * End of extension tokens, start of corresponding extension functions
   1.725 + *------------------------------------------------------------------------*/
   1.726 +
   1.727 +/*------------------------------------------------------------------------*
   1.728 + * OES extension functions
   1.729 + *------------------------------------------------------------------------*/
   1.730 +
   1.731 +/* GL_OES_compressed_ETC1_RGB8_texture */
   1.732 +#ifndef GL_OES_compressed_ETC1_RGB8_texture
   1.733 +#define GL_OES_compressed_ETC1_RGB8_texture 1
   1.734 +#endif
   1.735 +
   1.736 +/* GL_OES_compressed_paletted_texture */
   1.737 +#ifndef GL_OES_compressed_paletted_texture
   1.738 +#define GL_OES_compressed_paletted_texture 1
   1.739 +#endif
   1.740 +
   1.741 +/* GL_OES_depth24 */
   1.742 +#ifndef GL_OES_depth24
   1.743 +#define GL_OES_depth24 1
   1.744 +#endif
   1.745 +
   1.746 +/* GL_OES_depth32 */
   1.747 +#ifndef GL_OES_depth32
   1.748 +#define GL_OES_depth32 1
   1.749 +#endif
   1.750 +
   1.751 +/* GL_OES_depth_texture */
   1.752 +#ifndef GL_OES_depth_texture
   1.753 +#define GL_OES_depth_texture 1
   1.754 +#endif
   1.755 +
   1.756 +/* GL_OES_EGL_image */
   1.757 +#ifndef GL_OES_EGL_image
   1.758 +#define GL_OES_EGL_image 1
   1.759 +#ifdef GL_GLEXT_PROTOTYPES
   1.760 +GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
   1.761 +GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
   1.762 +#endif
   1.763 +typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
   1.764 +typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
   1.765 +#endif
   1.766 +
   1.767 +/* GL_OES_EGL_image_external */
   1.768 +#ifndef GL_OES_EGL_image_external
   1.769 +#define GL_OES_EGL_image_external 1
   1.770 +/* glEGLImageTargetTexture2DOES defined in GL_OES_EGL_image already. */
   1.771 +#endif
   1.772 +
   1.773 +/* GL_OES_element_index_uint */
   1.774 +#ifndef GL_OES_element_index_uint
   1.775 +#define GL_OES_element_index_uint 1
   1.776 +#endif
   1.777 +
   1.778 +/* GL_OES_fbo_render_mipmap */
   1.779 +#ifndef GL_OES_fbo_render_mipmap
   1.780 +#define GL_OES_fbo_render_mipmap 1
   1.781 +#endif
   1.782 +
   1.783 +/* GL_OES_fragment_precision_high */
   1.784 +#ifndef GL_OES_fragment_precision_high
   1.785 +#define GL_OES_fragment_precision_high 1
   1.786 +#endif
   1.787 +
   1.788 +/* GL_OES_get_program_binary */
   1.789 +#ifndef GL_OES_get_program_binary
   1.790 +#define GL_OES_get_program_binary 1
   1.791 +#ifdef GL_GLEXT_PROTOTYPES
   1.792 +GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
   1.793 +GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
   1.794 +#endif
   1.795 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
   1.796 +typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
   1.797 +#endif
   1.798 +
   1.799 +/* GL_OES_mapbuffer */
   1.800 +#ifndef GL_OES_mapbuffer
   1.801 +#define GL_OES_mapbuffer 1
   1.802 +#ifdef GL_GLEXT_PROTOTYPES
   1.803 +GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
   1.804 +GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
   1.805 +GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, GLvoid** params);
   1.806 +#endif
   1.807 +typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
   1.808 +typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
   1.809 +typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, GLvoid** params);
   1.810 +#endif
   1.811 +
   1.812 +/* GL_OES_packed_depth_stencil */
   1.813 +#ifndef GL_OES_packed_depth_stencil
   1.814 +#define GL_OES_packed_depth_stencil 1
   1.815 +#endif
   1.816 +
   1.817 +/* GL_OES_rgb8_rgba8 */
   1.818 +#ifndef GL_OES_rgb8_rgba8
   1.819 +#define GL_OES_rgb8_rgba8 1
   1.820 +#endif
   1.821 +
   1.822 +/* GL_OES_standard_derivatives */
   1.823 +#ifndef GL_OES_standard_derivatives
   1.824 +#define GL_OES_standard_derivatives 1
   1.825 +#endif
   1.826 +
   1.827 +/* GL_OES_stencil1 */
   1.828 +#ifndef GL_OES_stencil1
   1.829 +#define GL_OES_stencil1 1
   1.830 +#endif
   1.831 +
   1.832 +/* GL_OES_stencil4 */
   1.833 +#ifndef GL_OES_stencil4
   1.834 +#define GL_OES_stencil4 1
   1.835 +#endif
   1.836 +
   1.837 +/* GL_OES_texture_3D */
   1.838 +#ifndef GL_OES_texture_3D
   1.839 +#define GL_OES_texture_3D 1
   1.840 +#ifdef GL_GLEXT_PROTOTYPES
   1.841 +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.842 +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.843 +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.844 +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.845 +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.846 +GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
   1.847 +#endif
   1.848 +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.849 +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.850 +typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   1.851 +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.852 +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.853 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
   1.854 +#endif
   1.855 +
   1.856 +/* GL_OES_texture_float */
   1.857 +#ifndef GL_OES_texture_float
   1.858 +#define GL_OES_texture_float 1
   1.859 +#endif
   1.860 +
   1.861 +/* GL_OES_texture_float_linear */
   1.862 +#ifndef GL_OES_texture_float_linear
   1.863 +#define GL_OES_texture_float_linear 1
   1.864 +#endif
   1.865 +
   1.866 +/* GL_OES_texture_half_float */
   1.867 +#ifndef GL_OES_texture_half_float
   1.868 +#define GL_OES_texture_half_float 1
   1.869 +#endif
   1.870 +
   1.871 +/* GL_OES_texture_half_float_linear */
   1.872 +#ifndef GL_OES_texture_half_float_linear
   1.873 +#define GL_OES_texture_half_float_linear 1
   1.874 +#endif
   1.875 +
   1.876 +/* GL_OES_texture_npot */
   1.877 +#ifndef GL_OES_texture_npot
   1.878 +#define GL_OES_texture_npot 1
   1.879 +#endif
   1.880 +
   1.881 +/* GL_OES_vertex_array_object */
   1.882 +#ifndef GL_OES_vertex_array_object
   1.883 +#define GL_OES_vertex_array_object 1
   1.884 +#ifdef GL_GLEXT_PROTOTYPES
   1.885 +GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
   1.886 +GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
   1.887 +GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
   1.888 +GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
   1.889 +#endif
   1.890 +typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
   1.891 +typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
   1.892 +typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
   1.893 +typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
   1.894 +#endif
   1.895 +
   1.896 +/* GL_OES_vertex_half_float */
   1.897 +#ifndef GL_OES_vertex_half_float
   1.898 +#define GL_OES_vertex_half_float 1
   1.899 +#endif
   1.900 +
   1.901 +/* GL_OES_vertex_type_10_10_10_2 */
   1.902 +#ifndef GL_OES_vertex_type_10_10_10_2
   1.903 +#define GL_OES_vertex_type_10_10_10_2 1
   1.904 +#endif
   1.905 +
   1.906 +/*------------------------------------------------------------------------*
   1.907 + * AMD extension functions
   1.908 + *------------------------------------------------------------------------*/
   1.909 +
   1.910 +/* GL_AMD_compressed_3DC_texture */
   1.911 +#ifndef GL_AMD_compressed_3DC_texture
   1.912 +#define GL_AMD_compressed_3DC_texture 1
   1.913 +#endif
   1.914 +
   1.915 +/* GL_AMD_compressed_ATC_texture */
   1.916 +#ifndef GL_AMD_compressed_ATC_texture
   1.917 +#define GL_AMD_compressed_ATC_texture 1
   1.918 +#endif
   1.919 +
   1.920 +/* AMD_performance_monitor */
   1.921 +#ifndef GL_AMD_performance_monitor
   1.922 +#define GL_AMD_performance_monitor 1
   1.923 +#ifdef GL_GLEXT_PROTOTYPES
   1.924 +GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
   1.925 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
   1.926 +GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
   1.927 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
   1.928 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
   1.929 +GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
   1.930 +GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
   1.931 +GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
   1.932 +GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
   1.933 +GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
   1.934 +GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
   1.935 +#endif
   1.936 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
   1.937 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
   1.938 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
   1.939 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
   1.940 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
   1.941 +typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
   1.942 +typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
   1.943 +typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
   1.944 +typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
   1.945 +typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
   1.946 +typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
   1.947 +#endif
   1.948 +
   1.949 +/* GL_AMD_program_binary_Z400 */
   1.950 +#ifndef GL_AMD_program_binary_Z400
   1.951 +#define GL_AMD_program_binary_Z400 1
   1.952 +#endif
   1.953 +
   1.954 +/*------------------------------------------------------------------------*
   1.955 + * ANGLE extension functions
   1.956 + *------------------------------------------------------------------------*/
   1.957 +
   1.958 +/* GL_ANGLE_framebuffer_blit */
   1.959 +#ifndef GL_ANGLE_framebuffer_blit
   1.960 +#define GL_ANGLE_framebuffer_blit 1
   1.961 +#ifdef GL_GLEXT_PROTOTYPES
   1.962 +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.963 +#endif
   1.964 +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.965 +#endif
   1.966 +
   1.967 +/* GL_ANGLE_framebuffer_multisample */
   1.968 +#ifndef GL_ANGLE_framebuffer_multisample
   1.969 +#define GL_ANGLE_framebuffer_multisample 1
   1.970 +#ifdef GL_GLEXT_PROTOTYPES
   1.971 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
   1.972 +#endif
   1.973 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
   1.974 +#endif
   1.975 +
   1.976 +/* GL_ANGLE_pack_reverse_row_order */
   1.977 +#ifndef GL_ANGLE_pack_reverse_row_order
   1.978 +#define GL_ANGLE_pack_reverse_row_order 1
   1.979 +#endif
   1.980 +
   1.981 +/* GL_ANGLE_texture_compression_dxt3 */
   1.982 +#ifndef GL_ANGLE_texture_compression_dxt3
   1.983 +#define GL_ANGLE_texture_compression_dxt3 1
   1.984 +#endif
   1.985 +
   1.986 +/* GL_ANGLE_texture_compression_dxt5 */
   1.987 +#ifndef GL_ANGLE_texture_compression_dxt5
   1.988 +#define GL_ANGLE_texture_compression_dxt5 1
   1.989 +#endif
   1.990 +
   1.991 +/* GL_ANGLE_translated_shader_source */
   1.992 +#ifndef GL_ANGLE_translated_shader_source
   1.993 +#define GL_ANGLE_translated_shader_source 1
   1.994 +#ifdef GL_GLEXT_PROTOTYPES
   1.995 +GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
   1.996 +#endif
   1.997 +typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
   1.998 +#endif
   1.999 +
  1.1000 +/* GL_ANGLE_texture_usage */
  1.1001 +#ifndef GL_ANGLE_texture_usage
  1.1002 +#define GL_ANGLE_texture_usage 1
  1.1003 +#endif
  1.1004 +
  1.1005 +/* GL_ANGLE_instanced_arrays */
  1.1006 +#ifndef GL_ANGLE_instanced_arrays
  1.1007 +#define GL_ANGLE_instanced_arrays 1
  1.1008 +#ifdef GL_GLEXT_PROTOTYPES
  1.1009 +GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor);
  1.1010 +GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  1.1011 +GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
  1.1012 +#endif
  1.1013 +typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
  1.1014 +typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  1.1015 +typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
  1.1016 +#endif
  1.1017 +
  1.1018 +/*------------------------------------------------------------------------*
  1.1019 + * APPLE extension functions
  1.1020 + *------------------------------------------------------------------------*/
  1.1021 +
  1.1022 +/* GL_APPLE_rgb_422 */
  1.1023 +#ifndef GL_APPLE_rgb_422
  1.1024 +#define GL_APPLE_rgb_422 1
  1.1025 +#endif
  1.1026 +
  1.1027 +/* GL_APPLE_framebuffer_multisample */
  1.1028 +#ifndef GL_APPLE_framebuffer_multisample
  1.1029 +#define GL_APPLE_framebuffer_multisample 1
  1.1030 +#ifdef GL_GLEXT_PROTOTYPES
  1.1031 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  1.1032 +GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
  1.1033 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1034 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1.1035 +typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
  1.1036 +#endif
  1.1037 +
  1.1038 +/* GL_APPLE_texture_format_BGRA8888 */
  1.1039 +#ifndef GL_APPLE_texture_format_BGRA8888
  1.1040 +#define GL_APPLE_texture_format_BGRA8888 1
  1.1041 +#endif
  1.1042 +
  1.1043 +/* GL_APPLE_texture_max_level */
  1.1044 +#ifndef GL_APPLE_texture_max_level
  1.1045 +#define GL_APPLE_texture_max_level 1
  1.1046 +#endif
  1.1047 +
  1.1048 +/*------------------------------------------------------------------------*
  1.1049 + * ARM extension functions
  1.1050 + *------------------------------------------------------------------------*/
  1.1051 +
  1.1052 +/* GL_ARM_mali_shader_binary */
  1.1053 +#ifndef GL_ARM_mali_shader_binary
  1.1054 +#define GL_ARM_mali_shader_binary 1
  1.1055 +#endif
  1.1056 +
  1.1057 +/* GL_ARM_rgba8 */
  1.1058 +#ifndef GL_ARM_rgba8
  1.1059 +#define GL_ARM_rgba8 1
  1.1060 +#endif
  1.1061 +
  1.1062 +/*------------------------------------------------------------------------*
  1.1063 + * EXT extension functions
  1.1064 + *------------------------------------------------------------------------*/
  1.1065 +
  1.1066 +/* GL_EXT_blend_minmax */
  1.1067 +#ifndef GL_EXT_blend_minmax
  1.1068 +#define GL_EXT_blend_minmax 1
  1.1069 +#endif
  1.1070 +
  1.1071 +/* GL_EXT_color_buffer_half_float */
  1.1072 +#ifndef GL_EXT_color_buffer_half_float
  1.1073 +#define GL_EXT_color_buffer_half_float 1
  1.1074 +#endif
  1.1075 +
  1.1076 +/* GL_EXT_debug_label */
  1.1077 +#ifndef GL_EXT_debug_label
  1.1078 +#define GL_EXT_debug_label 1
  1.1079 +#ifdef GL_GLEXT_PROTOTYPES
  1.1080 +GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
  1.1081 +GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
  1.1082 +#endif
  1.1083 +typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
  1.1084 +typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
  1.1085 +#endif
  1.1086 +
  1.1087 +/* GL_EXT_debug_marker */
  1.1088 +#ifndef GL_EXT_debug_marker
  1.1089 +#define GL_EXT_debug_marker 1
  1.1090 +#ifdef GL_GLEXT_PROTOTYPES
  1.1091 +GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
  1.1092 +GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
  1.1093 +GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
  1.1094 +#endif
  1.1095 +typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
  1.1096 +typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
  1.1097 +typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
  1.1098 +#endif
  1.1099 +
  1.1100 +/* GL_EXT_discard_framebuffer */
  1.1101 +#ifndef GL_EXT_discard_framebuffer
  1.1102 +#define GL_EXT_discard_framebuffer 1
  1.1103 +#ifdef GL_GLEXT_PROTOTYPES
  1.1104 +GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  1.1105 +#endif
  1.1106 +typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  1.1107 +#endif
  1.1108 +
  1.1109 +/* GL_EXT_multisampled_render_to_texture */
  1.1110 +#ifndef GL_EXT_multisampled_render_to_texture
  1.1111 +#define GL_EXT_multisampled_render_to_texture 1
  1.1112 +#ifdef GL_GLEXT_PROTOTYPES
  1.1113 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  1.1114 +GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
  1.1115 +#endif
  1.1116 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1.1117 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  1.1118 +#endif
  1.1119 +
  1.1120 +#ifndef GL_EXT_multi_draw_arrays
  1.1121 +#define GL_EXT_multi_draw_arrays 1
  1.1122 +#ifdef GL_GLEXT_PROTOTYPES
  1.1123 +GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei);
  1.1124 +GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
  1.1125 +#endif /* GL_GLEXT_PROTOTYPES */
  1.1126 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
  1.1127 +typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
  1.1128 +#endif
  1.1129 +
  1.1130 +/* GL_EXT_occlusion_query_boolean */
  1.1131 +#ifndef GL_EXT_occlusion_query_boolean
  1.1132 +#define GL_EXT_occlusion_query_boolean 1
  1.1133 +#ifdef GL_GLEXT_PROTOTYPES
  1.1134 +GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
  1.1135 +GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
  1.1136 +GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
  1.1137 +GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
  1.1138 +GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
  1.1139 +GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
  1.1140 +GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
  1.1141 +#endif
  1.1142 +typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
  1.1143 +typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
  1.1144 +typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
  1.1145 +typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
  1.1146 +typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
  1.1147 +typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
  1.1148 +typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
  1.1149 +#endif
  1.1150 +
  1.1151 +/* GL_EXT_read_format_bgra */
  1.1152 +#ifndef GL_EXT_read_format_bgra
  1.1153 +#define GL_EXT_read_format_bgra 1
  1.1154 +#endif
  1.1155 +
  1.1156 +/* GL_EXT_robustness */
  1.1157 +#ifndef GL_EXT_robustness
  1.1158 +#define GL_EXT_robustness 1
  1.1159 +#ifdef GL_GLEXT_PROTOTYPES
  1.1160 +GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
  1.1161 +GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  1.1162 +GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, float *params);
  1.1163 +GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  1.1164 +#endif
  1.1165 +typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
  1.1166 +typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
  1.1167 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, float *params);
  1.1168 +typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  1.1169 +#endif
  1.1170 +
  1.1171 +/* GL_EXT_separate_shader_objects */
  1.1172 +#ifndef GL_EXT_separate_shader_objects
  1.1173 +#define GL_EXT_separate_shader_objects 1
  1.1174 +#ifdef GL_GLEXT_PROTOTYPES
  1.1175 +GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
  1.1176 +GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
  1.1177 +GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
  1.1178 +GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
  1.1179 +GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
  1.1180 +GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
  1.1181 +GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
  1.1182 +GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
  1.1183 +GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
  1.1184 +GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint x);
  1.1185 +GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint x, GLint y);
  1.1186 +GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z);
  1.1187 +GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
  1.1188 +GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat x);
  1.1189 +GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat x, GLfloat y);
  1.1190 +GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
  1.1191 +GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1.1192 +GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1193 +GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1194 +GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1195 +GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1196 +GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1197 +GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1198 +GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1199 +GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1200 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1201 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1202 +GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1203 +GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
  1.1204 +GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  1.1205 +#endif
  1.1206 +typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
  1.1207 +typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
  1.1208 +typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
  1.1209 +typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1.1210 +typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
  1.1211 +typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
  1.1212 +typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1.1213 +typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
  1.1214 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
  1.1215 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint x);
  1.1216 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint x, GLint y);
  1.1217 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z);
  1.1218 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
  1.1219 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat x);
  1.1220 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y);
  1.1221 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
  1.1222 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1.1223 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1224 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1225 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1226 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  1.1227 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1228 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1229 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1230 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  1.1231 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1232 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1233 +typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  1.1234 +typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1.1235 +typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  1.1236 +#endif
  1.1237 +
  1.1238 +/* GL_EXT_shader_texture_lod */
  1.1239 +#ifndef GL_EXT_shader_texture_lod
  1.1240 +#define GL_EXT_shader_texture_lod 1
  1.1241 +#endif
  1.1242 +
  1.1243 +/* GL_EXT_shadow_samplers */
  1.1244 +#ifndef GL_EXT_shadow_samplers
  1.1245 +#define GL_EXT_shadow_samplers 1
  1.1246 +#endif
  1.1247 +
  1.1248 +/* GL_EXT_sRGB */
  1.1249 +#ifndef GL_EXT_sRGB
  1.1250 +#define GL_EXT_sRGB 1
  1.1251 +#endif
  1.1252 +
  1.1253 +/* GL_EXT_texture_compression_dxt1 */
  1.1254 +#ifndef GL_EXT_texture_compression_dxt1
  1.1255 +#define GL_EXT_texture_compression_dxt1 1
  1.1256 +#endif
  1.1257 +
  1.1258 +/* GL_EXT_texture_filter_anisotropic */
  1.1259 +#ifndef GL_EXT_texture_filter_anisotropic
  1.1260 +#define GL_EXT_texture_filter_anisotropic 1
  1.1261 +#endif
  1.1262 +
  1.1263 +/* GL_EXT_texture_format_BGRA8888 */
  1.1264 +#ifndef GL_EXT_texture_format_BGRA8888
  1.1265 +#define GL_EXT_texture_format_BGRA8888 1
  1.1266 +#endif
  1.1267 +
  1.1268 +/* GL_EXT_texture_rg */
  1.1269 +#ifndef GL_EXT_texture_rg
  1.1270 +#define GL_EXT_texture_rg 1
  1.1271 +#endif
  1.1272 +
  1.1273 +/* GL_EXT_texture_storage */
  1.1274 +#ifndef GL_EXT_texture_storage
  1.1275 +#define GL_EXT_texture_storage 1
  1.1276 +#ifdef GL_GLEXT_PROTOTYPES
  1.1277 +GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1.1278 +GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1.1279 +GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1.1280 +GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1.1281 +GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1.1282 +GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1.1283 +#endif
  1.1284 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1.1285 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1.1286 +typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1.1287 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1.1288 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1.1289 +typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1.1290 +#endif
  1.1291 +
  1.1292 +/* GL_EXT_texture_type_2_10_10_10_REV */
  1.1293 +#ifndef GL_EXT_texture_type_2_10_10_10_REV
  1.1294 +#define GL_EXT_texture_type_2_10_10_10_REV 1
  1.1295 +#endif
  1.1296 +
  1.1297 +/* GL_EXT_unpack_subimage */
  1.1298 +#ifndef GL_EXT_unpack_subimage
  1.1299 +#define GL_EXT_unpack_subimage 1
  1.1300 +#endif
  1.1301 +
  1.1302 +/*------------------------------------------------------------------------*
  1.1303 + * DMP extension functions
  1.1304 + *------------------------------------------------------------------------*/
  1.1305 +
  1.1306 +/* GL_DMP_shader_binary */
  1.1307 +#ifndef GL_DMP_shader_binary
  1.1308 +#define GL_DMP_shader_binary 1
  1.1309 +#endif
  1.1310 +
  1.1311 +/*------------------------------------------------------------------------*
  1.1312 + * IMG extension functions
  1.1313 + *------------------------------------------------------------------------*/
  1.1314 +
  1.1315 +/* GL_IMG_program_binary */
  1.1316 +#ifndef GL_IMG_program_binary
  1.1317 +#define GL_IMG_program_binary 1
  1.1318 +#endif
  1.1319 +
  1.1320 +/* GL_IMG_read_format */
  1.1321 +#ifndef GL_IMG_read_format
  1.1322 +#define GL_IMG_read_format 1
  1.1323 +#endif
  1.1324 +
  1.1325 +/* GL_IMG_shader_binary */
  1.1326 +#ifndef GL_IMG_shader_binary
  1.1327 +#define GL_IMG_shader_binary 1
  1.1328 +#endif
  1.1329 +
  1.1330 +/* GL_IMG_texture_compression_pvrtc */
  1.1331 +#ifndef GL_IMG_texture_compression_pvrtc
  1.1332 +#define GL_IMG_texture_compression_pvrtc 1
  1.1333 +#endif
  1.1334 +
  1.1335 +/* GL_IMG_multisampled_render_to_texture */
  1.1336 +#ifndef GL_IMG_multisampled_render_to_texture
  1.1337 +#define GL_IMG_multisampled_render_to_texture 1
  1.1338 +#ifdef GL_GLEXT_PROTOTYPES
  1.1339 +GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  1.1340 +GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
  1.1341 +#endif
  1.1342 +typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1.1343 +typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  1.1344 +#endif
  1.1345 +
  1.1346 +/*------------------------------------------------------------------------*
  1.1347 + * NV extension functions
  1.1348 + *------------------------------------------------------------------------*/
  1.1349 +
  1.1350 +/* GL_NV_coverage_sample */
  1.1351 +#ifndef GL_NV_coverage_sample
  1.1352 +#define GL_NV_coverage_sample 1
  1.1353 +#ifdef GL_GLEXT_PROTOTYPES
  1.1354 +GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
  1.1355 +GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
  1.1356 +#endif
  1.1357 +typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
  1.1358 +typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
  1.1359 +#endif
  1.1360 +
  1.1361 +/* GL_NV_depth_nonlinear */
  1.1362 +#ifndef GL_NV_depth_nonlinear
  1.1363 +#define GL_NV_depth_nonlinear 1
  1.1364 +#endif
  1.1365 +
  1.1366 +/* GL_NV_draw_buffers */
  1.1367 +#ifndef GL_NV_draw_buffers
  1.1368 +#define GL_NV_draw_buffers 1
  1.1369 +#ifdef GL_GLEXT_PROTOTYPES
  1.1370 +GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
  1.1371 +#endif
  1.1372 +typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
  1.1373 +#endif
  1.1374 +
  1.1375 +#ifndef GL_EXT_draw_buffers
  1.1376 +#define GL_EXT_draw_buffers 1
  1.1377 +#ifdef GL_GLEXT_PROTOTYPES
  1.1378 +GL_APICALL void GL_APIENTRY glDrawBuffersEXT (GLsizei n, const GLenum *bufs);
  1.1379 +#endif
  1.1380 +typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC) (GLsizei n, const GLenum *bufs);
  1.1381 +#endif
  1.1382 +
  1.1383 +/* GL_NV_fbo_color_attachments */
  1.1384 +#ifndef GL_NV_fbo_color_attachments
  1.1385 +#define GL_NV_fbo_color_attachments 1
  1.1386 +#endif
  1.1387 +
  1.1388 +/* GL_NV_fence */
  1.1389 +#ifndef GL_NV_fence
  1.1390 +#define GL_NV_fence 1
  1.1391 +#ifdef GL_GLEXT_PROTOTYPES
  1.1392 +GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei, const GLuint *);
  1.1393 +GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei, GLuint *);
  1.1394 +GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint);
  1.1395 +GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint);
  1.1396 +GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *);
  1.1397 +GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint);
  1.1398 +GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint, GLenum);
  1.1399 +#endif
  1.1400 +typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
  1.1401 +typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
  1.1402 +typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
  1.1403 +typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
  1.1404 +typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
  1.1405 +typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
  1.1406 +typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
  1.1407 +#endif
  1.1408 +
  1.1409 +/* GL_NV_read_buffer */
  1.1410 +#ifndef GL_NV_read_buffer
  1.1411 +#define GL_NV_read_buffer 1
  1.1412 +#ifdef GL_GLEXT_PROTOTYPES
  1.1413 +GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
  1.1414 +#endif
  1.1415 +typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
  1.1416 +#endif
  1.1417 +
  1.1418 +/* GL_NV_read_buffer_front */
  1.1419 +#ifndef GL_NV_read_buffer_front
  1.1420 +#define GL_NV_read_buffer_front 1
  1.1421 +#endif
  1.1422 +
  1.1423 +/* GL_NV_read_depth */
  1.1424 +#ifndef GL_NV_read_depth
  1.1425 +#define GL_NV_read_depth 1
  1.1426 +#endif
  1.1427 +
  1.1428 +/* GL_NV_read_depth_stencil */
  1.1429 +#ifndef GL_NV_read_depth_stencil
  1.1430 +#define GL_NV_read_depth_stencil 1
  1.1431 +#endif
  1.1432 +
  1.1433 +/* GL_NV_read_stencil */
  1.1434 +#ifndef GL_NV_read_stencil
  1.1435 +#define GL_NV_read_stencil 1
  1.1436 +#endif
  1.1437 +
  1.1438 +/* GL_NV_texture_compression_s3tc_update */
  1.1439 +#ifndef GL_NV_texture_compression_s3tc_update
  1.1440 +#define GL_NV_texture_compression_s3tc_update 1
  1.1441 +#endif
  1.1442 +
  1.1443 +/* GL_NV_texture_npot_2D_mipmap */
  1.1444 +#ifndef GL_NV_texture_npot_2D_mipmap
  1.1445 +#define GL_NV_texture_npot_2D_mipmap 1
  1.1446 +#endif
  1.1447 +
  1.1448 +/*------------------------------------------------------------------------*
  1.1449 + * QCOM extension functions
  1.1450 + *------------------------------------------------------------------------*/
  1.1451 +
  1.1452 +/* GL_QCOM_alpha_test */
  1.1453 +#ifndef GL_QCOM_alpha_test
  1.1454 +#define GL_QCOM_alpha_test 1
  1.1455 +#ifdef GL_GLEXT_PROTOTYPES
  1.1456 +GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
  1.1457 +#endif
  1.1458 +typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
  1.1459 +#endif
  1.1460 +
  1.1461 +/* GL_QCOM_driver_control */
  1.1462 +#ifndef GL_QCOM_driver_control
  1.1463 +#define GL_QCOM_driver_control 1
  1.1464 +#ifdef GL_GLEXT_PROTOTYPES
  1.1465 +GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
  1.1466 +GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  1.1467 +GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
  1.1468 +GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
  1.1469 +#endif
  1.1470 +typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
  1.1471 +typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
  1.1472 +typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  1.1473 +typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  1.1474 +#endif
  1.1475 +
  1.1476 +/* GL_QCOM_extended_get */
  1.1477 +#ifndef GL_QCOM_extended_get
  1.1478 +#define GL_QCOM_extended_get 1
  1.1479 +#ifdef GL_GLEXT_PROTOTYPES
  1.1480 +GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
  1.1481 +GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  1.1482 +GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  1.1483 +GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  1.1484 +GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  1.1485 +GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
  1.1486 +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.1487 +GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, GLvoid **params);
  1.1488 +#endif
  1.1489 +typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
  1.1490 +typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
  1.1491 +typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
  1.1492 +typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
  1.1493 +typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
  1.1494 +typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
  1.1495 +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.1496 +typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GLvoid **params);
  1.1497 +#endif
  1.1498 +
  1.1499 +/* GL_QCOM_extended_get2 */
  1.1500 +#ifndef GL_QCOM_extended_get2
  1.1501 +#define GL_QCOM_extended_get2 1
  1.1502 +#ifdef GL_GLEXT_PROTOTYPES
  1.1503 +GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  1.1504 +GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  1.1505 +GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
  1.1506 +GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  1.1507 +#endif
  1.1508 +typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
  1.1509 +typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
  1.1510 +typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
  1.1511 +typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
  1.1512 +#endif
  1.1513 +
  1.1514 +/* GL_QCOM_perfmon_global_mode */
  1.1515 +#ifndef GL_QCOM_perfmon_global_mode
  1.1516 +#define GL_QCOM_perfmon_global_mode 1
  1.1517 +#endif
  1.1518 +
  1.1519 +/* GL_QCOM_writeonly_rendering */
  1.1520 +#ifndef GL_QCOM_writeonly_rendering
  1.1521 +#define GL_QCOM_writeonly_rendering 1
  1.1522 +#endif
  1.1523 +
  1.1524 +/* GL_QCOM_tiled_rendering */
  1.1525 +#ifndef GL_QCOM_tiled_rendering
  1.1526 +#define GL_QCOM_tiled_rendering 1
  1.1527 +#ifdef GL_GLEXT_PROTOTYPES
  1.1528 +GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  1.1529 +GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
  1.1530 +#endif
  1.1531 +typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  1.1532 +typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
  1.1533 +#endif
  1.1534 +
  1.1535 +/*------------------------------------------------------------------------*
  1.1536 + * VIV extension tokens
  1.1537 + *------------------------------------------------------------------------*/
  1.1538 +
  1.1539 +/* GL_VIV_shader_binary */
  1.1540 +#ifndef GL_VIV_shader_binary
  1.1541 +#define GL_VIV_shader_binary 1
  1.1542 +#endif
  1.1543 +
  1.1544 +/* GL_ANGLE_program_binary */
  1.1545 +#ifndef GL_ANGLE_program_binary
  1.1546 +#define GL_ANGLE_program_binary 1
  1.1547 +#endif
  1.1548 +
  1.1549 +#ifdef __cplusplus
  1.1550 +}
  1.1551 +#endif
  1.1552 +
  1.1553 +#endif /* __gl2ext_h_ */

mercurial