gfx/angle/include/GLES2/gl2ext.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 #ifndef __gl2ext_h_
michael@0 2 #define __gl2ext_h_
michael@0 3
michael@0 4 /* $Revision: 16482 $ on $Date:: 2012-01-04 13:44:55 -0500 #$ */
michael@0 5
michael@0 6 #ifdef __cplusplus
michael@0 7 extern "C" {
michael@0 8 #endif
michael@0 9
michael@0 10 /*
michael@0 11 * This document is licensed under the SGI Free Software B License Version
michael@0 12 * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
michael@0 13 */
michael@0 14
michael@0 15 #ifndef GL_APIENTRYP
michael@0 16 # define GL_APIENTRYP GL_APIENTRY*
michael@0 17 #endif
michael@0 18
michael@0 19 /*------------------------------------------------------------------------*
michael@0 20 * OES extension tokens
michael@0 21 *------------------------------------------------------------------------*/
michael@0 22
michael@0 23 /* GL_OES_compressed_ETC1_RGB8_texture */
michael@0 24 #ifndef GL_OES_compressed_ETC1_RGB8_texture
michael@0 25 #define GL_ETC1_RGB8_OES 0x8D64
michael@0 26 #endif
michael@0 27
michael@0 28 /* GL_OES_compressed_paletted_texture */
michael@0 29 #ifndef GL_OES_compressed_paletted_texture
michael@0 30 #define GL_PALETTE4_RGB8_OES 0x8B90
michael@0 31 #define GL_PALETTE4_RGBA8_OES 0x8B91
michael@0 32 #define GL_PALETTE4_R5_G6_B5_OES 0x8B92
michael@0 33 #define GL_PALETTE4_RGBA4_OES 0x8B93
michael@0 34 #define GL_PALETTE4_RGB5_A1_OES 0x8B94
michael@0 35 #define GL_PALETTE8_RGB8_OES 0x8B95
michael@0 36 #define GL_PALETTE8_RGBA8_OES 0x8B96
michael@0 37 #define GL_PALETTE8_R5_G6_B5_OES 0x8B97
michael@0 38 #define GL_PALETTE8_RGBA4_OES 0x8B98
michael@0 39 #define GL_PALETTE8_RGB5_A1_OES 0x8B99
michael@0 40 #endif
michael@0 41
michael@0 42 /* GL_OES_depth24 */
michael@0 43 #ifndef GL_OES_depth24
michael@0 44 #define GL_DEPTH_COMPONENT24_OES 0x81A6
michael@0 45 #endif
michael@0 46
michael@0 47 /* GL_OES_depth32 */
michael@0 48 #ifndef GL_OES_depth32
michael@0 49 #define GL_DEPTH_COMPONENT32_OES 0x81A7
michael@0 50 #endif
michael@0 51
michael@0 52 /* GL_OES_depth_texture */
michael@0 53 /* No new tokens introduced by this extension. */
michael@0 54
michael@0 55 /* GL_OES_EGL_image */
michael@0 56 #ifndef GL_OES_EGL_image
michael@0 57 typedef void* GLeglImageOES;
michael@0 58 #endif
michael@0 59
michael@0 60 /* GL_OES_EGL_image_external */
michael@0 61 #ifndef GL_OES_EGL_image_external
michael@0 62 /* GLeglImageOES defined in GL_OES_EGL_image already. */
michael@0 63 #define GL_TEXTURE_EXTERNAL_OES 0x8D65
michael@0 64 #define GL_SAMPLER_EXTERNAL_OES 0x8D66
michael@0 65 #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
michael@0 66 #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
michael@0 67 #endif
michael@0 68
michael@0 69 /* GL_OES_element_index_uint */
michael@0 70 #ifndef GL_OES_element_index_uint
michael@0 71 #define GL_UNSIGNED_INT 0x1405
michael@0 72 #endif
michael@0 73
michael@0 74 /* GL_OES_get_program_binary */
michael@0 75 #ifndef GL_OES_get_program_binary
michael@0 76 #define GL_PROGRAM_BINARY_LENGTH_OES 0x8741
michael@0 77 #define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE
michael@0 78 #define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF
michael@0 79 #endif
michael@0 80
michael@0 81 /* GL_OES_mapbuffer */
michael@0 82 #ifndef GL_OES_mapbuffer
michael@0 83 #define GL_WRITE_ONLY_OES 0x88B9
michael@0 84 #define GL_BUFFER_ACCESS_OES 0x88BB
michael@0 85 #define GL_BUFFER_MAPPED_OES 0x88BC
michael@0 86 #define GL_BUFFER_MAP_POINTER_OES 0x88BD
michael@0 87 #endif
michael@0 88
michael@0 89 /* GL_OES_packed_depth_stencil */
michael@0 90 #ifndef GL_OES_packed_depth_stencil
michael@0 91 #define GL_DEPTH_STENCIL_OES 0x84F9
michael@0 92 #define GL_UNSIGNED_INT_24_8_OES 0x84FA
michael@0 93 #define GL_DEPTH24_STENCIL8_OES 0x88F0
michael@0 94 #endif
michael@0 95
michael@0 96 /* GL_OES_rgb8_rgba8 */
michael@0 97 #ifndef GL_OES_rgb8_rgba8
michael@0 98 #define GL_RGB8_OES 0x8051
michael@0 99 #define GL_RGBA8_OES 0x8058
michael@0 100 #endif
michael@0 101
michael@0 102 /* GL_OES_standard_derivatives */
michael@0 103 #ifndef GL_OES_standard_derivatives
michael@0 104 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B
michael@0 105 #endif
michael@0 106
michael@0 107 /* GL_OES_stencil1 */
michael@0 108 #ifndef GL_OES_stencil1
michael@0 109 #define GL_STENCIL_INDEX1_OES 0x8D46
michael@0 110 #endif
michael@0 111
michael@0 112 /* GL_OES_stencil4 */
michael@0 113 #ifndef GL_OES_stencil4
michael@0 114 #define GL_STENCIL_INDEX4_OES 0x8D47
michael@0 115 #endif
michael@0 116
michael@0 117 /* GL_OES_texture_3D */
michael@0 118 #ifndef GL_OES_texture_3D
michael@0 119 #define GL_TEXTURE_WRAP_R_OES 0x8072
michael@0 120 #define GL_TEXTURE_3D_OES 0x806F
michael@0 121 #define GL_TEXTURE_BINDING_3D_OES 0x806A
michael@0 122 #define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073
michael@0 123 #define GL_SAMPLER_3D_OES 0x8B5F
michael@0 124 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
michael@0 125 #endif
michael@0 126
michael@0 127 /* GL_OES_texture_float */
michael@0 128 /* No new tokens introduced by this extension. */
michael@0 129
michael@0 130 /* GL_OES_texture_float_linear */
michael@0 131 /* No new tokens introduced by this extension. */
michael@0 132
michael@0 133 /* GL_OES_texture_half_float */
michael@0 134 #ifndef GL_OES_texture_half_float
michael@0 135 #define GL_HALF_FLOAT_OES 0x8D61
michael@0 136 #endif
michael@0 137
michael@0 138 /* GL_OES_texture_half_float_linear */
michael@0 139 /* No new tokens introduced by this extension. */
michael@0 140
michael@0 141 /* GL_OES_texture_npot */
michael@0 142 /* No new tokens introduced by this extension. */
michael@0 143
michael@0 144 /* GL_OES_vertex_array_object */
michael@0 145 #ifndef GL_OES_vertex_array_object
michael@0 146 #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5
michael@0 147 #endif
michael@0 148
michael@0 149 /* GL_OES_vertex_half_float */
michael@0 150 /* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
michael@0 151
michael@0 152 /* GL_OES_vertex_type_10_10_10_2 */
michael@0 153 #ifndef GL_OES_vertex_type_10_10_10_2
michael@0 154 #define GL_UNSIGNED_INT_10_10_10_2_OES 0x8DF6
michael@0 155 #define GL_INT_10_10_10_2_OES 0x8DF7
michael@0 156 #endif
michael@0 157
michael@0 158 /*------------------------------------------------------------------------*
michael@0 159 * AMD extension tokens
michael@0 160 *------------------------------------------------------------------------*/
michael@0 161
michael@0 162 /* GL_AMD_compressed_3DC_texture */
michael@0 163 #ifndef GL_AMD_compressed_3DC_texture
michael@0 164 #define GL_3DC_X_AMD 0x87F9
michael@0 165 #define GL_3DC_XY_AMD 0x87FA
michael@0 166 #endif
michael@0 167
michael@0 168 /* GL_AMD_compressed_ATC_texture */
michael@0 169 #ifndef GL_AMD_compressed_ATC_texture
michael@0 170 #define GL_ATC_RGB_AMD 0x8C92
michael@0 171 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
michael@0 172 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
michael@0 173 #endif
michael@0 174
michael@0 175 /* GL_AMD_performance_monitor */
michael@0 176 #ifndef GL_AMD_performance_monitor
michael@0 177 #define GL_COUNTER_TYPE_AMD 0x8BC0
michael@0 178 #define GL_COUNTER_RANGE_AMD 0x8BC1
michael@0 179 #define GL_UNSIGNED_INT64_AMD 0x8BC2
michael@0 180 #define GL_PERCENTAGE_AMD 0x8BC3
michael@0 181 #define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4
michael@0 182 #define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5
michael@0 183 #define GL_PERFMON_RESULT_AMD 0x8BC6
michael@0 184 #endif
michael@0 185
michael@0 186 /* GL_AMD_program_binary_Z400 */
michael@0 187 #ifndef GL_AMD_program_binary_Z400
michael@0 188 #define GL_Z400_BINARY_AMD 0x8740
michael@0 189 #endif
michael@0 190
michael@0 191 /*------------------------------------------------------------------------*
michael@0 192 * ANGLE extension tokens
michael@0 193 *------------------------------------------------------------------------*/
michael@0 194
michael@0 195 /* GL_ANGLE_framebuffer_blit */
michael@0 196 #ifndef GL_ANGLE_framebuffer_blit
michael@0 197 #define GL_READ_FRAMEBUFFER_ANGLE 0x8CA8
michael@0 198 #define GL_DRAW_FRAMEBUFFER_ANGLE 0x8CA9
michael@0 199 #define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE 0x8CA6
michael@0 200 #define GL_READ_FRAMEBUFFER_BINDING_ANGLE 0x8CAA
michael@0 201 #endif
michael@0 202
michael@0 203 /* GL_ANGLE_framebuffer_multisample */
michael@0 204 #ifndef GL_ANGLE_framebuffer_multisample
michael@0 205 #define GL_RENDERBUFFER_SAMPLES_ANGLE 0x8CAB
michael@0 206 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56
michael@0 207 #define GL_MAX_SAMPLES_ANGLE 0x8D57
michael@0 208 #endif
michael@0 209
michael@0 210 /* GL_ANGLE_pack_reverse_row_order */
michael@0 211 #ifndef GL_ANGLE_pack_reverse_row_order
michael@0 212 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
michael@0 213 #endif
michael@0 214
michael@0 215 /* GL_ANGLE_texture_compression_dxt3 */
michael@0 216 #ifndef GL_ANGLE_texture_compression_dxt3
michael@0 217 #define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
michael@0 218 #endif
michael@0 219
michael@0 220 /* GL_ANGLE_texture_compression_dxt5 */
michael@0 221 #ifndef GL_ANGLE_texture_compression_dxt5
michael@0 222 #define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
michael@0 223 #endif
michael@0 224
michael@0 225 /* GL_ANGLE_translated_shader_source */
michael@0 226 #ifndef GL_ANGLE_translated_shader_source
michael@0 227 #define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0
michael@0 228 #endif
michael@0 229
michael@0 230 /* GL_ANGLE_texture_usage */
michael@0 231 #ifndef GL_ANGLE_texture_usage
michael@0 232 #define GL_TEXTURE_USAGE_ANGLE 0x93A2
michael@0 233 #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
michael@0 234 #endif
michael@0 235
michael@0 236 /* GL_ANGLE_instanced_arrays */
michael@0 237 #ifndef GL_ANGLE_instanced_arrays
michael@0 238 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE
michael@0 239 #endif
michael@0 240
michael@0 241 /* GL_ANGLE_program_binary */
michael@0 242 #ifndef GL_ANGLE_program_binary
michael@0 243 #define GL_PROGRAM_BINARY_ANGLE 0x93A6
michael@0 244 #endif
michael@0 245
michael@0 246 /*------------------------------------------------------------------------*
michael@0 247 * APPLE extension tokens
michael@0 248 *------------------------------------------------------------------------*/
michael@0 249
michael@0 250 /* GL_APPLE_rgb_422 */
michael@0 251 #ifndef GL_APPLE_rgb_422
michael@0 252 #define GL_RGB_422_APPLE 0x8A1F
michael@0 253 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
michael@0 254 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
michael@0 255 #endif
michael@0 256
michael@0 257 /* GL_APPLE_framebuffer_multisample */
michael@0 258 #ifndef GL_APPLE_framebuffer_multisample
michael@0 259 #define GL_RENDERBUFFER_SAMPLES_APPLE 0x8CAB
michael@0 260 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56
michael@0 261 #define GL_MAX_SAMPLES_APPLE 0x8D57
michael@0 262 #define GL_READ_FRAMEBUFFER_APPLE 0x8CA8
michael@0 263 #define GL_DRAW_FRAMEBUFFER_APPLE 0x8CA9
michael@0 264 #define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6
michael@0 265 #define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA
michael@0 266 #endif
michael@0 267
michael@0 268 /* GL_APPLE_texture_format_BGRA8888 */
michael@0 269 #ifndef GL_APPLE_texture_format_BGRA8888
michael@0 270 #define GL_BGRA_EXT 0x80E1
michael@0 271 #endif
michael@0 272
michael@0 273 /* GL_APPLE_texture_max_level */
michael@0 274 #ifndef GL_APPLE_texture_max_level
michael@0 275 #define GL_TEXTURE_MAX_LEVEL_APPLE 0x813D
michael@0 276 #endif
michael@0 277
michael@0 278 /*------------------------------------------------------------------------*
michael@0 279 * ARM extension tokens
michael@0 280 *------------------------------------------------------------------------*/
michael@0 281
michael@0 282 /* GL_ARM_mali_shader_binary */
michael@0 283 #ifndef GL_ARM_mali_shader_binary
michael@0 284 #define GL_MALI_SHADER_BINARY_ARM 0x8F60
michael@0 285 #endif
michael@0 286
michael@0 287 /* GL_ARM_rgba8 */
michael@0 288 /* No new tokens introduced by this extension. */
michael@0 289
michael@0 290 /*------------------------------------------------------------------------*
michael@0 291 * EXT extension tokens
michael@0 292 *------------------------------------------------------------------------*/
michael@0 293
michael@0 294 /* GL_EXT_blend_minmax */
michael@0 295 #ifndef GL_EXT_blend_minmax
michael@0 296 #define GL_MIN_EXT 0x8007
michael@0 297 #define GL_MAX_EXT 0x8008
michael@0 298 #endif
michael@0 299
michael@0 300 /* GL_EXT_color_buffer_half_float */
michael@0 301 #ifndef GL_EXT_color_buffer_half_float
michael@0 302 #define GL_RGBA16F_EXT 0x881A
michael@0 303 #define GL_RGB16F_EXT 0x881B
michael@0 304 #define GL_RG16F_EXT 0x822F
michael@0 305 #define GL_R16F_EXT 0x822D
michael@0 306 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT 0x8211
michael@0 307 #define GL_UNSIGNED_NORMALIZED_EXT 0x8C17
michael@0 308 #endif
michael@0 309
michael@0 310 /* GL_EXT_debug_label */
michael@0 311 #ifndef GL_EXT_debug_label
michael@0 312 #define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F
michael@0 313 #define GL_PROGRAM_OBJECT_EXT 0x8B40
michael@0 314 #define GL_SHADER_OBJECT_EXT 0x8B48
michael@0 315 #define GL_BUFFER_OBJECT_EXT 0x9151
michael@0 316 #define GL_QUERY_OBJECT_EXT 0x9153
michael@0 317 #define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154
michael@0 318 #endif
michael@0 319
michael@0 320 /* GL_EXT_debug_marker */
michael@0 321 /* No new tokens introduced by this extension. */
michael@0 322
michael@0 323 /* GL_EXT_discard_framebuffer */
michael@0 324 #ifndef GL_EXT_discard_framebuffer
michael@0 325 #define GL_COLOR_EXT 0x1800
michael@0 326 #define GL_DEPTH_EXT 0x1801
michael@0 327 #define GL_STENCIL_EXT 0x1802
michael@0 328 #endif
michael@0 329
michael@0 330 /* GL_EXT_multisampled_render_to_texture */
michael@0 331 #ifndef GL_EXT_multisampled_render_to_texture
michael@0 332 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C
michael@0 333 #define GL_RENDERBUFFER_SAMPLES_EXT 0x9133
michael@0 334 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x9134
michael@0 335 #define GL_MAX_SAMPLES_EXT 0x9135
michael@0 336 #endif
michael@0 337
michael@0 338 /* GL_EXT_multi_draw_arrays */
michael@0 339 /* No new tokens introduced by this extension. */
michael@0 340
michael@0 341 /* GL_EXT_occlusion_query_boolean */
michael@0 342 #ifndef GL_EXT_occlusion_query_boolean
michael@0 343 #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F
michael@0 344 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A
michael@0 345 #define GL_CURRENT_QUERY_EXT 0x8865
michael@0 346 #define GL_QUERY_RESULT_EXT 0x8866
michael@0 347 #define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867
michael@0 348 #endif
michael@0 349
michael@0 350 /* GL_EXT_read_format_bgra */
michael@0 351 #ifndef GL_EXT_read_format_bgra
michael@0 352 #define GL_BGRA_EXT 0x80E1
michael@0 353 #define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365
michael@0 354 #define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366
michael@0 355 #endif
michael@0 356
michael@0 357 /* GL_EXT_robustness */
michael@0 358 #ifndef GL_EXT_robustness
michael@0 359 /* reuse GL_NO_ERROR */
michael@0 360 #define GL_GUILTY_CONTEXT_RESET_EXT 0x8253
michael@0 361 #define GL_INNOCENT_CONTEXT_RESET_EXT 0x8254
michael@0 362 #define GL_UNKNOWN_CONTEXT_RESET_EXT 0x8255
michael@0 363 #define GL_CONTEXT_ROBUST_ACCESS_EXT 0x90F3
michael@0 364 #define GL_RESET_NOTIFICATION_STRATEGY_EXT 0x8256
michael@0 365 #define GL_LOSE_CONTEXT_ON_RESET_EXT 0x8252
michael@0 366 #define GL_NO_RESET_NOTIFICATION_EXT 0x8261
michael@0 367 #endif
michael@0 368
michael@0 369 /* GL_EXT_separate_shader_objects */
michael@0 370 #ifndef GL_EXT_separate_shader_objects
michael@0 371 #define GL_VERTEX_SHADER_BIT_EXT 0x00000001
michael@0 372 #define GL_FRAGMENT_SHADER_BIT_EXT 0x00000002
michael@0 373 #define GL_ALL_SHADER_BITS_EXT 0xFFFFFFFF
michael@0 374 #define GL_PROGRAM_SEPARABLE_EXT 0x8258
michael@0 375 #define GL_ACTIVE_PROGRAM_EXT 0x8259
michael@0 376 #define GL_PROGRAM_PIPELINE_BINDING_EXT 0x825A
michael@0 377 #endif
michael@0 378
michael@0 379 /* GL_EXT_shader_texture_lod */
michael@0 380 /* No new tokens introduced by this extension. */
michael@0 381
michael@0 382 /* GL_EXT_shadow_samplers */
michael@0 383 #ifndef GL_EXT_shadow_samplers
michael@0 384 #define GL_TEXTURE_COMPARE_MODE_EXT 0x884C
michael@0 385 #define GL_TEXTURE_COMPARE_FUNC_EXT 0x884D
michael@0 386 #define GL_COMPARE_REF_TO_TEXTURE_EXT 0x884E
michael@0 387 #endif
michael@0 388
michael@0 389 /* GL_EXT_sRGB */
michael@0 390 #ifndef GL_EXT_sRGB
michael@0 391 #define GL_SRGB_EXT 0x8C40
michael@0 392 #define GL_SRGB_ALPHA_EXT 0x8C42
michael@0 393 #define GL_SRGB8_ALPHA8_EXT 0x8C43
michael@0 394 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT 0x8210
michael@0 395 #endif
michael@0 396
michael@0 397 /* GL_EXT_texture_compression_dxt1 */
michael@0 398 #ifndef GL_EXT_texture_compression_dxt1
michael@0 399 #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
michael@0 400 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
michael@0 401 #endif
michael@0 402
michael@0 403 /* GL_EXT_texture_filter_anisotropic */
michael@0 404 #ifndef GL_EXT_texture_filter_anisotropic
michael@0 405 #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
michael@0 406 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
michael@0 407 #endif
michael@0 408
michael@0 409 /* GL_EXT_texture_format_BGRA8888 */
michael@0 410 #ifndef GL_EXT_texture_format_BGRA8888
michael@0 411 #define GL_BGRA_EXT 0x80E1
michael@0 412 #endif
michael@0 413
michael@0 414 /* GL_EXT_texture_rg */
michael@0 415 #ifndef GL_EXT_texture_rg
michael@0 416 #define GL_RED_EXT 0x1903
michael@0 417 #define GL_RG_EXT 0x8227
michael@0 418 #define GL_R8_EXT 0x8229
michael@0 419 #define GL_RG8_EXT 0x822B
michael@0 420 #endif
michael@0 421
michael@0 422 /* GL_EXT_texture_storage */
michael@0 423 #ifndef GL_EXT_texture_storage
michael@0 424 #define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
michael@0 425 #define GL_ALPHA8_EXT 0x803C
michael@0 426 #define GL_LUMINANCE8_EXT 0x8040
michael@0 427 #define GL_LUMINANCE8_ALPHA8_EXT 0x8045
michael@0 428 #define GL_RGBA32F_EXT 0x8814
michael@0 429 #define GL_RGB32F_EXT 0x8815
michael@0 430 #define GL_ALPHA32F_EXT 0x8816
michael@0 431 #define GL_LUMINANCE32F_EXT 0x8818
michael@0 432 #define GL_LUMINANCE_ALPHA32F_EXT 0x8819
michael@0 433 /* reuse GL_RGBA16F_EXT */
michael@0 434 #define GL_RGB16F_EXT 0x881B
michael@0 435 #define GL_ALPHA16F_EXT 0x881C
michael@0 436 #define GL_LUMINANCE16F_EXT 0x881E
michael@0 437 #define GL_LUMINANCE_ALPHA16F_EXT 0x881F
michael@0 438 #define GL_RGB10_A2_EXT 0x8059
michael@0 439 #define GL_RGB10_EXT 0x8052
michael@0 440 #define GL_BGRA8_EXT 0x93A1
michael@0 441 #endif
michael@0 442
michael@0 443 /* GL_EXT_texture_type_2_10_10_10_REV */
michael@0 444 #ifndef GL_EXT_texture_type_2_10_10_10_REV
michael@0 445 #define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368
michael@0 446 #endif
michael@0 447
michael@0 448 /* GL_EXT_unpack_subimage */
michael@0 449 #ifndef GL_EXT_unpack_subimage
michael@0 450 #define GL_UNPACK_ROW_LENGTH 0x0CF2
michael@0 451 #define GL_UNPACK_SKIP_ROWS 0x0CF3
michael@0 452 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
michael@0 453 #endif
michael@0 454
michael@0 455 /*------------------------------------------------------------------------*
michael@0 456 * DMP extension tokens
michael@0 457 *------------------------------------------------------------------------*/
michael@0 458
michael@0 459 /* GL_DMP_shader_binary */
michael@0 460 #ifndef GL_DMP_shader_binary
michael@0 461 #define GL_SHADER_BINARY_DMP 0x9250
michael@0 462 #endif
michael@0 463
michael@0 464 /*------------------------------------------------------------------------*
michael@0 465 * IMG extension tokens
michael@0 466 *------------------------------------------------------------------------*/
michael@0 467
michael@0 468 /* GL_IMG_program_binary */
michael@0 469 #ifndef GL_IMG_program_binary
michael@0 470 #define GL_SGX_PROGRAM_BINARY_IMG 0x9130
michael@0 471 #endif
michael@0 472
michael@0 473 /* GL_IMG_read_format */
michael@0 474 #ifndef GL_IMG_read_format
michael@0 475 #define GL_BGRA_IMG 0x80E1
michael@0 476 #define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365
michael@0 477 #endif
michael@0 478
michael@0 479 /* GL_IMG_shader_binary */
michael@0 480 #ifndef GL_IMG_shader_binary
michael@0 481 #define GL_SGX_BINARY_IMG 0x8C0A
michael@0 482 #endif
michael@0 483
michael@0 484 /* GL_IMG_texture_compression_pvrtc */
michael@0 485 #ifndef GL_IMG_texture_compression_pvrtc
michael@0 486 #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
michael@0 487 #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
michael@0 488 #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
michael@0 489 #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
michael@0 490 #endif
michael@0 491
michael@0 492 /* GL_IMG_multisampled_render_to_texture */
michael@0 493 #ifndef GL_IMG_multisampled_render_to_texture
michael@0 494 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133
michael@0 495 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134
michael@0 496 #define GL_MAX_SAMPLES_IMG 0x9135
michael@0 497 #define GL_TEXTURE_SAMPLES_IMG 0x9136
michael@0 498 #endif
michael@0 499
michael@0 500 /*------------------------------------------------------------------------*
michael@0 501 * NV extension tokens
michael@0 502 *------------------------------------------------------------------------*/
michael@0 503
michael@0 504 /* GL_NV_coverage_sample */
michael@0 505 #ifndef GL_NV_coverage_sample
michael@0 506 #define GL_COVERAGE_COMPONENT_NV 0x8ED0
michael@0 507 #define GL_COVERAGE_COMPONENT4_NV 0x8ED1
michael@0 508 #define GL_COVERAGE_ATTACHMENT_NV 0x8ED2
michael@0 509 #define GL_COVERAGE_BUFFERS_NV 0x8ED3
michael@0 510 #define GL_COVERAGE_SAMPLES_NV 0x8ED4
michael@0 511 #define GL_COVERAGE_ALL_FRAGMENTS_NV 0x8ED5
michael@0 512 #define GL_COVERAGE_EDGE_FRAGMENTS_NV 0x8ED6
michael@0 513 #define GL_COVERAGE_AUTOMATIC_NV 0x8ED7
michael@0 514 #define GL_COVERAGE_BUFFER_BIT_NV 0x8000
michael@0 515 #endif
michael@0 516
michael@0 517 /* GL_NV_depth_nonlinear */
michael@0 518 #ifndef GL_NV_depth_nonlinear
michael@0 519 #define GL_DEPTH_COMPONENT16_NONLINEAR_NV 0x8E2C
michael@0 520 #endif
michael@0 521
michael@0 522 /* GL_NV_draw_buffers */
michael@0 523 #ifndef GL_NV_draw_buffers
michael@0 524 #define GL_MAX_DRAW_BUFFERS_NV 0x8824
michael@0 525 #define GL_DRAW_BUFFER0_NV 0x8825
michael@0 526 #define GL_DRAW_BUFFER1_NV 0x8826
michael@0 527 #define GL_DRAW_BUFFER2_NV 0x8827
michael@0 528 #define GL_DRAW_BUFFER3_NV 0x8828
michael@0 529 #define GL_DRAW_BUFFER4_NV 0x8829
michael@0 530 #define GL_DRAW_BUFFER5_NV 0x882A
michael@0 531 #define GL_DRAW_BUFFER6_NV 0x882B
michael@0 532 #define GL_DRAW_BUFFER7_NV 0x882C
michael@0 533 #define GL_DRAW_BUFFER8_NV 0x882D
michael@0 534 #define GL_DRAW_BUFFER9_NV 0x882E
michael@0 535 #define GL_DRAW_BUFFER10_NV 0x882F
michael@0 536 #define GL_DRAW_BUFFER11_NV 0x8830
michael@0 537 #define GL_DRAW_BUFFER12_NV 0x8831
michael@0 538 #define GL_DRAW_BUFFER13_NV 0x8832
michael@0 539 #define GL_DRAW_BUFFER14_NV 0x8833
michael@0 540 #define GL_DRAW_BUFFER15_NV 0x8834
michael@0 541 #define GL_COLOR_ATTACHMENT0_NV 0x8CE0
michael@0 542 #define GL_COLOR_ATTACHMENT1_NV 0x8CE1
michael@0 543 #define GL_COLOR_ATTACHMENT2_NV 0x8CE2
michael@0 544 #define GL_COLOR_ATTACHMENT3_NV 0x8CE3
michael@0 545 #define GL_COLOR_ATTACHMENT4_NV 0x8CE4
michael@0 546 #define GL_COLOR_ATTACHMENT5_NV 0x8CE5
michael@0 547 #define GL_COLOR_ATTACHMENT6_NV 0x8CE6
michael@0 548 #define GL_COLOR_ATTACHMENT7_NV 0x8CE7
michael@0 549 #define GL_COLOR_ATTACHMENT8_NV 0x8CE8
michael@0 550 #define GL_COLOR_ATTACHMENT9_NV 0x8CE9
michael@0 551 #define GL_COLOR_ATTACHMENT10_NV 0x8CEA
michael@0 552 #define GL_COLOR_ATTACHMENT11_NV 0x8CEB
michael@0 553 #define GL_COLOR_ATTACHMENT12_NV 0x8CEC
michael@0 554 #define GL_COLOR_ATTACHMENT13_NV 0x8CED
michael@0 555 #define GL_COLOR_ATTACHMENT14_NV 0x8CEE
michael@0 556 #define GL_COLOR_ATTACHMENT15_NV 0x8CEF
michael@0 557 #endif
michael@0 558
michael@0 559 /* GL_EXT_draw_buffers */
michael@0 560 #ifndef GL_EXT_draw_buffers
michael@0 561 #define GL_MAX_DRAW_BUFFERS_EXT 0x8824
michael@0 562 #define GL_DRAW_BUFFER0_EXT 0x8825
michael@0 563 #define GL_DRAW_BUFFER1_EXT 0x8826
michael@0 564 #define GL_DRAW_BUFFER2_EXT 0x8827
michael@0 565 #define GL_DRAW_BUFFER3_EXT 0x8828
michael@0 566 #define GL_DRAW_BUFFER4_EXT 0x8829
michael@0 567 #define GL_DRAW_BUFFER5_EXT 0x882A
michael@0 568 #define GL_DRAW_BUFFER6_EXT 0x882B
michael@0 569 #define GL_DRAW_BUFFER7_EXT 0x882C
michael@0 570 #define GL_DRAW_BUFFER8_EXT 0x882D
michael@0 571 #define GL_DRAW_BUFFER9_EXT 0x882E
michael@0 572 #define GL_DRAW_BUFFER10_EXT 0x882F
michael@0 573 #define GL_DRAW_BUFFER11_EXT 0x8830
michael@0 574 #define GL_DRAW_BUFFER12_EXT 0x8831
michael@0 575 #define GL_DRAW_BUFFER13_EXT 0x8832
michael@0 576 #define GL_DRAW_BUFFER14_EXT 0x8833
michael@0 577 #define GL_DRAW_BUFFER15_EXT 0x8834
michael@0 578 #define GL_COLOR_ATTACHMENT0_EXT 0x8CE0
michael@0 579 #define GL_COLOR_ATTACHMENT1_EXT 0x8CE1
michael@0 580 #define GL_COLOR_ATTACHMENT2_EXT 0x8CE2
michael@0 581 #define GL_COLOR_ATTACHMENT3_EXT 0x8CE3
michael@0 582 #define GL_COLOR_ATTACHMENT4_EXT 0x8CE4
michael@0 583 #define GL_COLOR_ATTACHMENT5_EXT 0x8CE5
michael@0 584 #define GL_COLOR_ATTACHMENT6_EXT 0x8CE6
michael@0 585 #define GL_COLOR_ATTACHMENT7_EXT 0x8CE7
michael@0 586 #define GL_COLOR_ATTACHMENT8_EXT 0x8CE8
michael@0 587 #define GL_COLOR_ATTACHMENT9_EXT 0x8CE9
michael@0 588 #define GL_COLOR_ATTACHMENT10_EXT 0x8CEA
michael@0 589 #define GL_COLOR_ATTACHMENT11_EXT 0x8CEB
michael@0 590 #define GL_COLOR_ATTACHMENT12_EXT 0x8CEC
michael@0 591 #define GL_COLOR_ATTACHMENT13_EXT 0x8CED
michael@0 592 #define GL_COLOR_ATTACHMENT14_EXT 0x8CEE
michael@0 593 #define GL_COLOR_ATTACHMENT15_EXT 0x8CEF
michael@0 594 #define GL_MAX_COLOR_ATTACHMENTS_EXT 0x8CDF
michael@0 595 #endif
michael@0 596
michael@0 597 /* GL_NV_fbo_color_attachments */
michael@0 598 #ifndef GL_NV_fbo_color_attachments
michael@0 599 #define GL_MAX_COLOR_ATTACHMENTS_NV 0x8CDF
michael@0 600 /* GL_COLOR_ATTACHMENT{0-15}_NV defined in GL_NV_draw_buffers already. */
michael@0 601 #endif
michael@0 602
michael@0 603 /* GL_NV_fence */
michael@0 604 #ifndef GL_NV_fence
michael@0 605 #define GL_ALL_COMPLETED_NV 0x84F2
michael@0 606 #define GL_FENCE_STATUS_NV 0x84F3
michael@0 607 #define GL_FENCE_CONDITION_NV 0x84F4
michael@0 608 #endif
michael@0 609
michael@0 610 /* GL_NV_read_buffer */
michael@0 611 #ifndef GL_NV_read_buffer
michael@0 612 #define GL_READ_BUFFER_NV 0x0C02
michael@0 613 #endif
michael@0 614
michael@0 615 /* GL_NV_read_buffer_front */
michael@0 616 /* No new tokens introduced by this extension. */
michael@0 617
michael@0 618 /* GL_NV_read_depth */
michael@0 619 /* No new tokens introduced by this extension. */
michael@0 620
michael@0 621 /* GL_NV_read_depth_stencil */
michael@0 622 /* No new tokens introduced by this extension. */
michael@0 623
michael@0 624 /* GL_NV_read_stencil */
michael@0 625 /* No new tokens introduced by this extension. */
michael@0 626
michael@0 627 /* GL_NV_texture_compression_s3tc_update */
michael@0 628 /* No new tokens introduced by this extension. */
michael@0 629
michael@0 630 /* GL_NV_texture_npot_2D_mipmap */
michael@0 631 /* No new tokens introduced by this extension. */
michael@0 632
michael@0 633 /*------------------------------------------------------------------------*
michael@0 634 * QCOM extension tokens
michael@0 635 *------------------------------------------------------------------------*/
michael@0 636
michael@0 637 /* GL_QCOM_alpha_test */
michael@0 638 #ifndef GL_QCOM_alpha_test
michael@0 639 #define GL_ALPHA_TEST_QCOM 0x0BC0
michael@0 640 #define GL_ALPHA_TEST_FUNC_QCOM 0x0BC1
michael@0 641 #define GL_ALPHA_TEST_REF_QCOM 0x0BC2
michael@0 642 #endif
michael@0 643
michael@0 644 /* GL_QCOM_driver_control */
michael@0 645 /* No new tokens introduced by this extension. */
michael@0 646
michael@0 647 /* GL_QCOM_extended_get */
michael@0 648 #ifndef GL_QCOM_extended_get
michael@0 649 #define GL_TEXTURE_WIDTH_QCOM 0x8BD2
michael@0 650 #define GL_TEXTURE_HEIGHT_QCOM 0x8BD3
michael@0 651 #define GL_TEXTURE_DEPTH_QCOM 0x8BD4
michael@0 652 #define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5
michael@0 653 #define GL_TEXTURE_FORMAT_QCOM 0x8BD6
michael@0 654 #define GL_TEXTURE_TYPE_QCOM 0x8BD7
michael@0 655 #define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8
michael@0 656 #define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9
michael@0 657 #define GL_TEXTURE_TARGET_QCOM 0x8BDA
michael@0 658 #define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB
michael@0 659 #define GL_STATE_RESTORE 0x8BDC
michael@0 660 #endif
michael@0 661
michael@0 662 /* GL_QCOM_extended_get2 */
michael@0 663 /* No new tokens introduced by this extension. */
michael@0 664
michael@0 665 /* GL_QCOM_perfmon_global_mode */
michael@0 666 #ifndef GL_QCOM_perfmon_global_mode
michael@0 667 #define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0
michael@0 668 #endif
michael@0 669
michael@0 670 /* GL_QCOM_writeonly_rendering */
michael@0 671 #ifndef GL_QCOM_writeonly_rendering
michael@0 672 #define GL_WRITEONLY_RENDERING_QCOM 0x8823
michael@0 673 #endif
michael@0 674
michael@0 675 /* GL_QCOM_tiled_rendering */
michael@0 676 #ifndef GL_QCOM_tiled_rendering
michael@0 677 #define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001
michael@0 678 #define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002
michael@0 679 #define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004
michael@0 680 #define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008
michael@0 681 #define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010
michael@0 682 #define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020
michael@0 683 #define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040
michael@0 684 #define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080
michael@0 685 #define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100
michael@0 686 #define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200
michael@0 687 #define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400
michael@0 688 #define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800
michael@0 689 #define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000
michael@0 690 #define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000
michael@0 691 #define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000
michael@0 692 #define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000
michael@0 693 #define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000
michael@0 694 #define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000
michael@0 695 #define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000
michael@0 696 #define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000
michael@0 697 #define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000
michael@0 698 #define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000
michael@0 699 #define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000
michael@0 700 #define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000
michael@0 701 #define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000
michael@0 702 #define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000
michael@0 703 #define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000
michael@0 704 #define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000
michael@0 705 #define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000
michael@0 706 #define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000
michael@0 707 #define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000
michael@0 708 #define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000
michael@0 709 #endif
michael@0 710
michael@0 711 /*------------------------------------------------------------------------*
michael@0 712 * VIV extension tokens
michael@0 713 *------------------------------------------------------------------------*/
michael@0 714
michael@0 715 /* GL_VIV_shader_binary */
michael@0 716 #ifndef GL_VIV_shader_binary
michael@0 717 #define GL_SHADER_BINARY_VIV 0x8FC4
michael@0 718 #endif
michael@0 719
michael@0 720 /*------------------------------------------------------------------------*
michael@0 721 * End of extension tokens, start of corresponding extension functions
michael@0 722 *------------------------------------------------------------------------*/
michael@0 723
michael@0 724 /*------------------------------------------------------------------------*
michael@0 725 * OES extension functions
michael@0 726 *------------------------------------------------------------------------*/
michael@0 727
michael@0 728 /* GL_OES_compressed_ETC1_RGB8_texture */
michael@0 729 #ifndef GL_OES_compressed_ETC1_RGB8_texture
michael@0 730 #define GL_OES_compressed_ETC1_RGB8_texture 1
michael@0 731 #endif
michael@0 732
michael@0 733 /* GL_OES_compressed_paletted_texture */
michael@0 734 #ifndef GL_OES_compressed_paletted_texture
michael@0 735 #define GL_OES_compressed_paletted_texture 1
michael@0 736 #endif
michael@0 737
michael@0 738 /* GL_OES_depth24 */
michael@0 739 #ifndef GL_OES_depth24
michael@0 740 #define GL_OES_depth24 1
michael@0 741 #endif
michael@0 742
michael@0 743 /* GL_OES_depth32 */
michael@0 744 #ifndef GL_OES_depth32
michael@0 745 #define GL_OES_depth32 1
michael@0 746 #endif
michael@0 747
michael@0 748 /* GL_OES_depth_texture */
michael@0 749 #ifndef GL_OES_depth_texture
michael@0 750 #define GL_OES_depth_texture 1
michael@0 751 #endif
michael@0 752
michael@0 753 /* GL_OES_EGL_image */
michael@0 754 #ifndef GL_OES_EGL_image
michael@0 755 #define GL_OES_EGL_image 1
michael@0 756 #ifdef GL_GLEXT_PROTOTYPES
michael@0 757 GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
michael@0 758 GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
michael@0 759 #endif
michael@0 760 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
michael@0 761 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
michael@0 762 #endif
michael@0 763
michael@0 764 /* GL_OES_EGL_image_external */
michael@0 765 #ifndef GL_OES_EGL_image_external
michael@0 766 #define GL_OES_EGL_image_external 1
michael@0 767 /* glEGLImageTargetTexture2DOES defined in GL_OES_EGL_image already. */
michael@0 768 #endif
michael@0 769
michael@0 770 /* GL_OES_element_index_uint */
michael@0 771 #ifndef GL_OES_element_index_uint
michael@0 772 #define GL_OES_element_index_uint 1
michael@0 773 #endif
michael@0 774
michael@0 775 /* GL_OES_fbo_render_mipmap */
michael@0 776 #ifndef GL_OES_fbo_render_mipmap
michael@0 777 #define GL_OES_fbo_render_mipmap 1
michael@0 778 #endif
michael@0 779
michael@0 780 /* GL_OES_fragment_precision_high */
michael@0 781 #ifndef GL_OES_fragment_precision_high
michael@0 782 #define GL_OES_fragment_precision_high 1
michael@0 783 #endif
michael@0 784
michael@0 785 /* GL_OES_get_program_binary */
michael@0 786 #ifndef GL_OES_get_program_binary
michael@0 787 #define GL_OES_get_program_binary 1
michael@0 788 #ifdef GL_GLEXT_PROTOTYPES
michael@0 789 GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
michael@0 790 GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
michael@0 791 #endif
michael@0 792 typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
michael@0 793 typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
michael@0 794 #endif
michael@0 795
michael@0 796 /* GL_OES_mapbuffer */
michael@0 797 #ifndef GL_OES_mapbuffer
michael@0 798 #define GL_OES_mapbuffer 1
michael@0 799 #ifdef GL_GLEXT_PROTOTYPES
michael@0 800 GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
michael@0 801 GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
michael@0 802 GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, GLvoid** params);
michael@0 803 #endif
michael@0 804 typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
michael@0 805 typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
michael@0 806 typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, GLvoid** params);
michael@0 807 #endif
michael@0 808
michael@0 809 /* GL_OES_packed_depth_stencil */
michael@0 810 #ifndef GL_OES_packed_depth_stencil
michael@0 811 #define GL_OES_packed_depth_stencil 1
michael@0 812 #endif
michael@0 813
michael@0 814 /* GL_OES_rgb8_rgba8 */
michael@0 815 #ifndef GL_OES_rgb8_rgba8
michael@0 816 #define GL_OES_rgb8_rgba8 1
michael@0 817 #endif
michael@0 818
michael@0 819 /* GL_OES_standard_derivatives */
michael@0 820 #ifndef GL_OES_standard_derivatives
michael@0 821 #define GL_OES_standard_derivatives 1
michael@0 822 #endif
michael@0 823
michael@0 824 /* GL_OES_stencil1 */
michael@0 825 #ifndef GL_OES_stencil1
michael@0 826 #define GL_OES_stencil1 1
michael@0 827 #endif
michael@0 828
michael@0 829 /* GL_OES_stencil4 */
michael@0 830 #ifndef GL_OES_stencil4
michael@0 831 #define GL_OES_stencil4 1
michael@0 832 #endif
michael@0 833
michael@0 834 /* GL_OES_texture_3D */
michael@0 835 #ifndef GL_OES_texture_3D
michael@0 836 #define GL_OES_texture_3D 1
michael@0 837 #ifdef GL_GLEXT_PROTOTYPES
michael@0 838 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);
michael@0 839 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);
michael@0 840 GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
michael@0 841 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);
michael@0 842 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);
michael@0 843 GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
michael@0 844 #endif
michael@0 845 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);
michael@0 846 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);
michael@0 847 typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
michael@0 848 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
michael@0 849 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);
michael@0 850 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
michael@0 851 #endif
michael@0 852
michael@0 853 /* GL_OES_texture_float */
michael@0 854 #ifndef GL_OES_texture_float
michael@0 855 #define GL_OES_texture_float 1
michael@0 856 #endif
michael@0 857
michael@0 858 /* GL_OES_texture_float_linear */
michael@0 859 #ifndef GL_OES_texture_float_linear
michael@0 860 #define GL_OES_texture_float_linear 1
michael@0 861 #endif
michael@0 862
michael@0 863 /* GL_OES_texture_half_float */
michael@0 864 #ifndef GL_OES_texture_half_float
michael@0 865 #define GL_OES_texture_half_float 1
michael@0 866 #endif
michael@0 867
michael@0 868 /* GL_OES_texture_half_float_linear */
michael@0 869 #ifndef GL_OES_texture_half_float_linear
michael@0 870 #define GL_OES_texture_half_float_linear 1
michael@0 871 #endif
michael@0 872
michael@0 873 /* GL_OES_texture_npot */
michael@0 874 #ifndef GL_OES_texture_npot
michael@0 875 #define GL_OES_texture_npot 1
michael@0 876 #endif
michael@0 877
michael@0 878 /* GL_OES_vertex_array_object */
michael@0 879 #ifndef GL_OES_vertex_array_object
michael@0 880 #define GL_OES_vertex_array_object 1
michael@0 881 #ifdef GL_GLEXT_PROTOTYPES
michael@0 882 GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
michael@0 883 GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
michael@0 884 GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
michael@0 885 GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
michael@0 886 #endif
michael@0 887 typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
michael@0 888 typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
michael@0 889 typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
michael@0 890 typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
michael@0 891 #endif
michael@0 892
michael@0 893 /* GL_OES_vertex_half_float */
michael@0 894 #ifndef GL_OES_vertex_half_float
michael@0 895 #define GL_OES_vertex_half_float 1
michael@0 896 #endif
michael@0 897
michael@0 898 /* GL_OES_vertex_type_10_10_10_2 */
michael@0 899 #ifndef GL_OES_vertex_type_10_10_10_2
michael@0 900 #define GL_OES_vertex_type_10_10_10_2 1
michael@0 901 #endif
michael@0 902
michael@0 903 /*------------------------------------------------------------------------*
michael@0 904 * AMD extension functions
michael@0 905 *------------------------------------------------------------------------*/
michael@0 906
michael@0 907 /* GL_AMD_compressed_3DC_texture */
michael@0 908 #ifndef GL_AMD_compressed_3DC_texture
michael@0 909 #define GL_AMD_compressed_3DC_texture 1
michael@0 910 #endif
michael@0 911
michael@0 912 /* GL_AMD_compressed_ATC_texture */
michael@0 913 #ifndef GL_AMD_compressed_ATC_texture
michael@0 914 #define GL_AMD_compressed_ATC_texture 1
michael@0 915 #endif
michael@0 916
michael@0 917 /* AMD_performance_monitor */
michael@0 918 #ifndef GL_AMD_performance_monitor
michael@0 919 #define GL_AMD_performance_monitor 1
michael@0 920 #ifdef GL_GLEXT_PROTOTYPES
michael@0 921 GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
michael@0 922 GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
michael@0 923 GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
michael@0 924 GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
michael@0 925 GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
michael@0 926 GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
michael@0 927 GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
michael@0 928 GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
michael@0 929 GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
michael@0 930 GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
michael@0 931 GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
michael@0 932 #endif
michael@0 933 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
michael@0 934 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
michael@0 935 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
michael@0 936 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
michael@0 937 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
michael@0 938 typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
michael@0 939 typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
michael@0 940 typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
michael@0 941 typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
michael@0 942 typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
michael@0 943 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
michael@0 944 #endif
michael@0 945
michael@0 946 /* GL_AMD_program_binary_Z400 */
michael@0 947 #ifndef GL_AMD_program_binary_Z400
michael@0 948 #define GL_AMD_program_binary_Z400 1
michael@0 949 #endif
michael@0 950
michael@0 951 /*------------------------------------------------------------------------*
michael@0 952 * ANGLE extension functions
michael@0 953 *------------------------------------------------------------------------*/
michael@0 954
michael@0 955 /* GL_ANGLE_framebuffer_blit */
michael@0 956 #ifndef GL_ANGLE_framebuffer_blit
michael@0 957 #define GL_ANGLE_framebuffer_blit 1
michael@0 958 #ifdef GL_GLEXT_PROTOTYPES
michael@0 959 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);
michael@0 960 #endif
michael@0 961 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);
michael@0 962 #endif
michael@0 963
michael@0 964 /* GL_ANGLE_framebuffer_multisample */
michael@0 965 #ifndef GL_ANGLE_framebuffer_multisample
michael@0 966 #define GL_ANGLE_framebuffer_multisample 1
michael@0 967 #ifdef GL_GLEXT_PROTOTYPES
michael@0 968 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 969 #endif
michael@0 970 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 971 #endif
michael@0 972
michael@0 973 /* GL_ANGLE_pack_reverse_row_order */
michael@0 974 #ifndef GL_ANGLE_pack_reverse_row_order
michael@0 975 #define GL_ANGLE_pack_reverse_row_order 1
michael@0 976 #endif
michael@0 977
michael@0 978 /* GL_ANGLE_texture_compression_dxt3 */
michael@0 979 #ifndef GL_ANGLE_texture_compression_dxt3
michael@0 980 #define GL_ANGLE_texture_compression_dxt3 1
michael@0 981 #endif
michael@0 982
michael@0 983 /* GL_ANGLE_texture_compression_dxt5 */
michael@0 984 #ifndef GL_ANGLE_texture_compression_dxt5
michael@0 985 #define GL_ANGLE_texture_compression_dxt5 1
michael@0 986 #endif
michael@0 987
michael@0 988 /* GL_ANGLE_translated_shader_source */
michael@0 989 #ifndef GL_ANGLE_translated_shader_source
michael@0 990 #define GL_ANGLE_translated_shader_source 1
michael@0 991 #ifdef GL_GLEXT_PROTOTYPES
michael@0 992 GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
michael@0 993 #endif
michael@0 994 typedef void (GL_APIENTRYP PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
michael@0 995 #endif
michael@0 996
michael@0 997 /* GL_ANGLE_texture_usage */
michael@0 998 #ifndef GL_ANGLE_texture_usage
michael@0 999 #define GL_ANGLE_texture_usage 1
michael@0 1000 #endif
michael@0 1001
michael@0 1002 /* GL_ANGLE_instanced_arrays */
michael@0 1003 #ifndef GL_ANGLE_instanced_arrays
michael@0 1004 #define GL_ANGLE_instanced_arrays 1
michael@0 1005 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1006 GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor);
michael@0 1007 GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
michael@0 1008 GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
michael@0 1009 #endif
michael@0 1010 typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
michael@0 1011 typedef void (GL_APIENTRYP PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
michael@0 1012 typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
michael@0 1013 #endif
michael@0 1014
michael@0 1015 /*------------------------------------------------------------------------*
michael@0 1016 * APPLE extension functions
michael@0 1017 *------------------------------------------------------------------------*/
michael@0 1018
michael@0 1019 /* GL_APPLE_rgb_422 */
michael@0 1020 #ifndef GL_APPLE_rgb_422
michael@0 1021 #define GL_APPLE_rgb_422 1
michael@0 1022 #endif
michael@0 1023
michael@0 1024 /* GL_APPLE_framebuffer_multisample */
michael@0 1025 #ifndef GL_APPLE_framebuffer_multisample
michael@0 1026 #define GL_APPLE_framebuffer_multisample 1
michael@0 1027 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1028 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
michael@0 1029 GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
michael@0 1030 #endif /* GL_GLEXT_PROTOTYPES */
michael@0 1031 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 1032 typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
michael@0 1033 #endif
michael@0 1034
michael@0 1035 /* GL_APPLE_texture_format_BGRA8888 */
michael@0 1036 #ifndef GL_APPLE_texture_format_BGRA8888
michael@0 1037 #define GL_APPLE_texture_format_BGRA8888 1
michael@0 1038 #endif
michael@0 1039
michael@0 1040 /* GL_APPLE_texture_max_level */
michael@0 1041 #ifndef GL_APPLE_texture_max_level
michael@0 1042 #define GL_APPLE_texture_max_level 1
michael@0 1043 #endif
michael@0 1044
michael@0 1045 /*------------------------------------------------------------------------*
michael@0 1046 * ARM extension functions
michael@0 1047 *------------------------------------------------------------------------*/
michael@0 1048
michael@0 1049 /* GL_ARM_mali_shader_binary */
michael@0 1050 #ifndef GL_ARM_mali_shader_binary
michael@0 1051 #define GL_ARM_mali_shader_binary 1
michael@0 1052 #endif
michael@0 1053
michael@0 1054 /* GL_ARM_rgba8 */
michael@0 1055 #ifndef GL_ARM_rgba8
michael@0 1056 #define GL_ARM_rgba8 1
michael@0 1057 #endif
michael@0 1058
michael@0 1059 /*------------------------------------------------------------------------*
michael@0 1060 * EXT extension functions
michael@0 1061 *------------------------------------------------------------------------*/
michael@0 1062
michael@0 1063 /* GL_EXT_blend_minmax */
michael@0 1064 #ifndef GL_EXT_blend_minmax
michael@0 1065 #define GL_EXT_blend_minmax 1
michael@0 1066 #endif
michael@0 1067
michael@0 1068 /* GL_EXT_color_buffer_half_float */
michael@0 1069 #ifndef GL_EXT_color_buffer_half_float
michael@0 1070 #define GL_EXT_color_buffer_half_float 1
michael@0 1071 #endif
michael@0 1072
michael@0 1073 /* GL_EXT_debug_label */
michael@0 1074 #ifndef GL_EXT_debug_label
michael@0 1075 #define GL_EXT_debug_label 1
michael@0 1076 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1077 GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
michael@0 1078 GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
michael@0 1079 #endif
michael@0 1080 typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
michael@0 1081 typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
michael@0 1082 #endif
michael@0 1083
michael@0 1084 /* GL_EXT_debug_marker */
michael@0 1085 #ifndef GL_EXT_debug_marker
michael@0 1086 #define GL_EXT_debug_marker 1
michael@0 1087 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1088 GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
michael@0 1089 GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
michael@0 1090 GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
michael@0 1091 #endif
michael@0 1092 typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
michael@0 1093 typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
michael@0 1094 typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
michael@0 1095 #endif
michael@0 1096
michael@0 1097 /* GL_EXT_discard_framebuffer */
michael@0 1098 #ifndef GL_EXT_discard_framebuffer
michael@0 1099 #define GL_EXT_discard_framebuffer 1
michael@0 1100 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1101 GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
michael@0 1102 #endif
michael@0 1103 typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
michael@0 1104 #endif
michael@0 1105
michael@0 1106 /* GL_EXT_multisampled_render_to_texture */
michael@0 1107 #ifndef GL_EXT_multisampled_render_to_texture
michael@0 1108 #define GL_EXT_multisampled_render_to_texture 1
michael@0 1109 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1110 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
michael@0 1111 GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
michael@0 1112 #endif
michael@0 1113 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 1114 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
michael@0 1115 #endif
michael@0 1116
michael@0 1117 #ifndef GL_EXT_multi_draw_arrays
michael@0 1118 #define GL_EXT_multi_draw_arrays 1
michael@0 1119 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1120 GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei);
michael@0 1121 GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
michael@0 1122 #endif /* GL_GLEXT_PROTOTYPES */
michael@0 1123 typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
michael@0 1124 typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
michael@0 1125 #endif
michael@0 1126
michael@0 1127 /* GL_EXT_occlusion_query_boolean */
michael@0 1128 #ifndef GL_EXT_occlusion_query_boolean
michael@0 1129 #define GL_EXT_occlusion_query_boolean 1
michael@0 1130 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1131 GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
michael@0 1132 GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
michael@0 1133 GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
michael@0 1134 GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
michael@0 1135 GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
michael@0 1136 GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
michael@0 1137 GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
michael@0 1138 #endif
michael@0 1139 typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
michael@0 1140 typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
michael@0 1141 typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
michael@0 1142 typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
michael@0 1143 typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
michael@0 1144 typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
michael@0 1145 typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
michael@0 1146 #endif
michael@0 1147
michael@0 1148 /* GL_EXT_read_format_bgra */
michael@0 1149 #ifndef GL_EXT_read_format_bgra
michael@0 1150 #define GL_EXT_read_format_bgra 1
michael@0 1151 #endif
michael@0 1152
michael@0 1153 /* GL_EXT_robustness */
michael@0 1154 #ifndef GL_EXT_robustness
michael@0 1155 #define GL_EXT_robustness 1
michael@0 1156 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1157 GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
michael@0 1158 GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
michael@0 1159 GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, float *params);
michael@0 1160 GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
michael@0 1161 #endif
michael@0 1162 typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
michael@0 1163 typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
michael@0 1164 typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, float *params);
michael@0 1165 typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
michael@0 1166 #endif
michael@0 1167
michael@0 1168 /* GL_EXT_separate_shader_objects */
michael@0 1169 #ifndef GL_EXT_separate_shader_objects
michael@0 1170 #define GL_EXT_separate_shader_objects 1
michael@0 1171 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1172 GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
michael@0 1173 GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
michael@0 1174 GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
michael@0 1175 GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
michael@0 1176 GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
michael@0 1177 GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
michael@0 1178 GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
michael@0 1179 GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
michael@0 1180 GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
michael@0 1181 GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint x);
michael@0 1182 GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint x, GLint y);
michael@0 1183 GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z);
michael@0 1184 GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
michael@0 1185 GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat x);
michael@0 1186 GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat x, GLfloat y);
michael@0 1187 GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
michael@0 1188 GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
michael@0 1189 GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
michael@0 1190 GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
michael@0 1191 GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
michael@0 1192 GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
michael@0 1193 GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
michael@0 1194 GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
michael@0 1195 GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
michael@0 1196 GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
michael@0 1197 GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
michael@0 1198 GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
michael@0 1199 GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
michael@0 1200 GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
michael@0 1201 GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
michael@0 1202 #endif
michael@0 1203 typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
michael@0 1204 typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
michael@0 1205 typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
michael@0 1206 typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
michael@0 1207 typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
michael@0 1208 typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
michael@0 1209 typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
michael@0 1210 typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
michael@0 1211 typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
michael@0 1212 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint x);
michael@0 1213 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint x, GLint y);
michael@0 1214 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z);
michael@0 1215 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
michael@0 1216 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat x);
michael@0 1217 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y);
michael@0 1218 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
michael@0 1219 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
michael@0 1220 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
michael@0 1221 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
michael@0 1222 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
michael@0 1223 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
michael@0 1224 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
michael@0 1225 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
michael@0 1226 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
michael@0 1227 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
michael@0 1228 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
michael@0 1229 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
michael@0 1230 typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
michael@0 1231 typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
michael@0 1232 typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
michael@0 1233 #endif
michael@0 1234
michael@0 1235 /* GL_EXT_shader_texture_lod */
michael@0 1236 #ifndef GL_EXT_shader_texture_lod
michael@0 1237 #define GL_EXT_shader_texture_lod 1
michael@0 1238 #endif
michael@0 1239
michael@0 1240 /* GL_EXT_shadow_samplers */
michael@0 1241 #ifndef GL_EXT_shadow_samplers
michael@0 1242 #define GL_EXT_shadow_samplers 1
michael@0 1243 #endif
michael@0 1244
michael@0 1245 /* GL_EXT_sRGB */
michael@0 1246 #ifndef GL_EXT_sRGB
michael@0 1247 #define GL_EXT_sRGB 1
michael@0 1248 #endif
michael@0 1249
michael@0 1250 /* GL_EXT_texture_compression_dxt1 */
michael@0 1251 #ifndef GL_EXT_texture_compression_dxt1
michael@0 1252 #define GL_EXT_texture_compression_dxt1 1
michael@0 1253 #endif
michael@0 1254
michael@0 1255 /* GL_EXT_texture_filter_anisotropic */
michael@0 1256 #ifndef GL_EXT_texture_filter_anisotropic
michael@0 1257 #define GL_EXT_texture_filter_anisotropic 1
michael@0 1258 #endif
michael@0 1259
michael@0 1260 /* GL_EXT_texture_format_BGRA8888 */
michael@0 1261 #ifndef GL_EXT_texture_format_BGRA8888
michael@0 1262 #define GL_EXT_texture_format_BGRA8888 1
michael@0 1263 #endif
michael@0 1264
michael@0 1265 /* GL_EXT_texture_rg */
michael@0 1266 #ifndef GL_EXT_texture_rg
michael@0 1267 #define GL_EXT_texture_rg 1
michael@0 1268 #endif
michael@0 1269
michael@0 1270 /* GL_EXT_texture_storage */
michael@0 1271 #ifndef GL_EXT_texture_storage
michael@0 1272 #define GL_EXT_texture_storage 1
michael@0 1273 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1274 GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
michael@0 1275 GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 1276 GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
michael@0 1277 GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
michael@0 1278 GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 1279 GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
michael@0 1280 #endif
michael@0 1281 typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
michael@0 1282 typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 1283 typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
michael@0 1284 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
michael@0 1285 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 1286 typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
michael@0 1287 #endif
michael@0 1288
michael@0 1289 /* GL_EXT_texture_type_2_10_10_10_REV */
michael@0 1290 #ifndef GL_EXT_texture_type_2_10_10_10_REV
michael@0 1291 #define GL_EXT_texture_type_2_10_10_10_REV 1
michael@0 1292 #endif
michael@0 1293
michael@0 1294 /* GL_EXT_unpack_subimage */
michael@0 1295 #ifndef GL_EXT_unpack_subimage
michael@0 1296 #define GL_EXT_unpack_subimage 1
michael@0 1297 #endif
michael@0 1298
michael@0 1299 /*------------------------------------------------------------------------*
michael@0 1300 * DMP extension functions
michael@0 1301 *------------------------------------------------------------------------*/
michael@0 1302
michael@0 1303 /* GL_DMP_shader_binary */
michael@0 1304 #ifndef GL_DMP_shader_binary
michael@0 1305 #define GL_DMP_shader_binary 1
michael@0 1306 #endif
michael@0 1307
michael@0 1308 /*------------------------------------------------------------------------*
michael@0 1309 * IMG extension functions
michael@0 1310 *------------------------------------------------------------------------*/
michael@0 1311
michael@0 1312 /* GL_IMG_program_binary */
michael@0 1313 #ifndef GL_IMG_program_binary
michael@0 1314 #define GL_IMG_program_binary 1
michael@0 1315 #endif
michael@0 1316
michael@0 1317 /* GL_IMG_read_format */
michael@0 1318 #ifndef GL_IMG_read_format
michael@0 1319 #define GL_IMG_read_format 1
michael@0 1320 #endif
michael@0 1321
michael@0 1322 /* GL_IMG_shader_binary */
michael@0 1323 #ifndef GL_IMG_shader_binary
michael@0 1324 #define GL_IMG_shader_binary 1
michael@0 1325 #endif
michael@0 1326
michael@0 1327 /* GL_IMG_texture_compression_pvrtc */
michael@0 1328 #ifndef GL_IMG_texture_compression_pvrtc
michael@0 1329 #define GL_IMG_texture_compression_pvrtc 1
michael@0 1330 #endif
michael@0 1331
michael@0 1332 /* GL_IMG_multisampled_render_to_texture */
michael@0 1333 #ifndef GL_IMG_multisampled_render_to_texture
michael@0 1334 #define GL_IMG_multisampled_render_to_texture 1
michael@0 1335 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1336 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
michael@0 1337 GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
michael@0 1338 #endif
michael@0 1339 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
michael@0 1340 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
michael@0 1341 #endif
michael@0 1342
michael@0 1343 /*------------------------------------------------------------------------*
michael@0 1344 * NV extension functions
michael@0 1345 *------------------------------------------------------------------------*/
michael@0 1346
michael@0 1347 /* GL_NV_coverage_sample */
michael@0 1348 #ifndef GL_NV_coverage_sample
michael@0 1349 #define GL_NV_coverage_sample 1
michael@0 1350 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1351 GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
michael@0 1352 GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
michael@0 1353 #endif
michael@0 1354 typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
michael@0 1355 typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
michael@0 1356 #endif
michael@0 1357
michael@0 1358 /* GL_NV_depth_nonlinear */
michael@0 1359 #ifndef GL_NV_depth_nonlinear
michael@0 1360 #define GL_NV_depth_nonlinear 1
michael@0 1361 #endif
michael@0 1362
michael@0 1363 /* GL_NV_draw_buffers */
michael@0 1364 #ifndef GL_NV_draw_buffers
michael@0 1365 #define GL_NV_draw_buffers 1
michael@0 1366 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1367 GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
michael@0 1368 #endif
michael@0 1369 typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
michael@0 1370 #endif
michael@0 1371
michael@0 1372 #ifndef GL_EXT_draw_buffers
michael@0 1373 #define GL_EXT_draw_buffers 1
michael@0 1374 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1375 GL_APICALL void GL_APIENTRY glDrawBuffersEXT (GLsizei n, const GLenum *bufs);
michael@0 1376 #endif
michael@0 1377 typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSEXTPROC) (GLsizei n, const GLenum *bufs);
michael@0 1378 #endif
michael@0 1379
michael@0 1380 /* GL_NV_fbo_color_attachments */
michael@0 1381 #ifndef GL_NV_fbo_color_attachments
michael@0 1382 #define GL_NV_fbo_color_attachments 1
michael@0 1383 #endif
michael@0 1384
michael@0 1385 /* GL_NV_fence */
michael@0 1386 #ifndef GL_NV_fence
michael@0 1387 #define GL_NV_fence 1
michael@0 1388 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1389 GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei, const GLuint *);
michael@0 1390 GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei, GLuint *);
michael@0 1391 GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint);
michael@0 1392 GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint);
michael@0 1393 GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *);
michael@0 1394 GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint);
michael@0 1395 GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint, GLenum);
michael@0 1396 #endif
michael@0 1397 typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
michael@0 1398 typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
michael@0 1399 typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
michael@0 1400 typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
michael@0 1401 typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
michael@0 1402 typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
michael@0 1403 typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
michael@0 1404 #endif
michael@0 1405
michael@0 1406 /* GL_NV_read_buffer */
michael@0 1407 #ifndef GL_NV_read_buffer
michael@0 1408 #define GL_NV_read_buffer 1
michael@0 1409 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1410 GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
michael@0 1411 #endif
michael@0 1412 typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
michael@0 1413 #endif
michael@0 1414
michael@0 1415 /* GL_NV_read_buffer_front */
michael@0 1416 #ifndef GL_NV_read_buffer_front
michael@0 1417 #define GL_NV_read_buffer_front 1
michael@0 1418 #endif
michael@0 1419
michael@0 1420 /* GL_NV_read_depth */
michael@0 1421 #ifndef GL_NV_read_depth
michael@0 1422 #define GL_NV_read_depth 1
michael@0 1423 #endif
michael@0 1424
michael@0 1425 /* GL_NV_read_depth_stencil */
michael@0 1426 #ifndef GL_NV_read_depth_stencil
michael@0 1427 #define GL_NV_read_depth_stencil 1
michael@0 1428 #endif
michael@0 1429
michael@0 1430 /* GL_NV_read_stencil */
michael@0 1431 #ifndef GL_NV_read_stencil
michael@0 1432 #define GL_NV_read_stencil 1
michael@0 1433 #endif
michael@0 1434
michael@0 1435 /* GL_NV_texture_compression_s3tc_update */
michael@0 1436 #ifndef GL_NV_texture_compression_s3tc_update
michael@0 1437 #define GL_NV_texture_compression_s3tc_update 1
michael@0 1438 #endif
michael@0 1439
michael@0 1440 /* GL_NV_texture_npot_2D_mipmap */
michael@0 1441 #ifndef GL_NV_texture_npot_2D_mipmap
michael@0 1442 #define GL_NV_texture_npot_2D_mipmap 1
michael@0 1443 #endif
michael@0 1444
michael@0 1445 /*------------------------------------------------------------------------*
michael@0 1446 * QCOM extension functions
michael@0 1447 *------------------------------------------------------------------------*/
michael@0 1448
michael@0 1449 /* GL_QCOM_alpha_test */
michael@0 1450 #ifndef GL_QCOM_alpha_test
michael@0 1451 #define GL_QCOM_alpha_test 1
michael@0 1452 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1453 GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
michael@0 1454 #endif
michael@0 1455 typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
michael@0 1456 #endif
michael@0 1457
michael@0 1458 /* GL_QCOM_driver_control */
michael@0 1459 #ifndef GL_QCOM_driver_control
michael@0 1460 #define GL_QCOM_driver_control 1
michael@0 1461 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1462 GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
michael@0 1463 GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
michael@0 1464 GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
michael@0 1465 GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
michael@0 1466 #endif
michael@0 1467 typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
michael@0 1468 typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
michael@0 1469 typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
michael@0 1470 typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
michael@0 1471 #endif
michael@0 1472
michael@0 1473 /* GL_QCOM_extended_get */
michael@0 1474 #ifndef GL_QCOM_extended_get
michael@0 1475 #define GL_QCOM_extended_get 1
michael@0 1476 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1477 GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
michael@0 1478 GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
michael@0 1479 GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
michael@0 1480 GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
michael@0 1481 GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
michael@0 1482 GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
michael@0 1483 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);
michael@0 1484 GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, GLvoid **params);
michael@0 1485 #endif
michael@0 1486 typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
michael@0 1487 typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
michael@0 1488 typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
michael@0 1489 typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
michael@0 1490 typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
michael@0 1491 typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
michael@0 1492 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);
michael@0 1493 typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GLvoid **params);
michael@0 1494 #endif
michael@0 1495
michael@0 1496 /* GL_QCOM_extended_get2 */
michael@0 1497 #ifndef GL_QCOM_extended_get2
michael@0 1498 #define GL_QCOM_extended_get2 1
michael@0 1499 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1500 GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
michael@0 1501 GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
michael@0 1502 GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
michael@0 1503 GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
michael@0 1504 #endif
michael@0 1505 typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
michael@0 1506 typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
michael@0 1507 typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
michael@0 1508 typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
michael@0 1509 #endif
michael@0 1510
michael@0 1511 /* GL_QCOM_perfmon_global_mode */
michael@0 1512 #ifndef GL_QCOM_perfmon_global_mode
michael@0 1513 #define GL_QCOM_perfmon_global_mode 1
michael@0 1514 #endif
michael@0 1515
michael@0 1516 /* GL_QCOM_writeonly_rendering */
michael@0 1517 #ifndef GL_QCOM_writeonly_rendering
michael@0 1518 #define GL_QCOM_writeonly_rendering 1
michael@0 1519 #endif
michael@0 1520
michael@0 1521 /* GL_QCOM_tiled_rendering */
michael@0 1522 #ifndef GL_QCOM_tiled_rendering
michael@0 1523 #define GL_QCOM_tiled_rendering 1
michael@0 1524 #ifdef GL_GLEXT_PROTOTYPES
michael@0 1525 GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
michael@0 1526 GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
michael@0 1527 #endif
michael@0 1528 typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
michael@0 1529 typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
michael@0 1530 #endif
michael@0 1531
michael@0 1532 /*------------------------------------------------------------------------*
michael@0 1533 * VIV extension tokens
michael@0 1534 *------------------------------------------------------------------------*/
michael@0 1535
michael@0 1536 /* GL_VIV_shader_binary */
michael@0 1537 #ifndef GL_VIV_shader_binary
michael@0 1538 #define GL_VIV_shader_binary 1
michael@0 1539 #endif
michael@0 1540
michael@0 1541 /* GL_ANGLE_program_binary */
michael@0 1542 #ifndef GL_ANGLE_program_binary
michael@0 1543 #define GL_ANGLE_program_binary 1
michael@0 1544 #endif
michael@0 1545
michael@0 1546 #ifdef __cplusplus
michael@0 1547 }
michael@0 1548 #endif
michael@0 1549
michael@0 1550 #endif /* __gl2ext_h_ */

mercurial