include/SDL_opengles2_gl2ext.h
author Jørgen P. Tjernø
Wed, 04 Jun 2014 01:27:13 -0700
changeset 8806 1a413cfc6ab7
child 8808 da1e1d6e84c4
permissions -rw-r--r--
SDL_opengles2: Separate out GLES2 headers.
jorgen@8806
     1
#ifndef __gl2ext_h_
jorgen@8806
     2
#define __gl2ext_h_
jorgen@8806
     3
jorgen@8806
     4
/* $Revision: 19436 $ on $Date:: 2012-10-10 10:37:04 -0700 #$ */
jorgen@8806
     5
jorgen@8806
     6
#ifdef __cplusplus
jorgen@8806
     7
extern "C" {
jorgen@8806
     8
#endif
jorgen@8806
     9
jorgen@8806
    10
/*
jorgen@8806
    11
 * This document is licensed under the SGI Free Software B License Version
jorgen@8806
    12
 * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
jorgen@8806
    13
 */
jorgen@8806
    14
jorgen@8806
    15
#ifndef GL_APIENTRYP
jorgen@8806
    16
#   define GL_APIENTRYP GL_APIENTRY*
jorgen@8806
    17
#endif
jorgen@8806
    18
jorgen@8806
    19
/*------------------------------------------------------------------------*
jorgen@8806
    20
 * OES extension tokens
jorgen@8806
    21
 *------------------------------------------------------------------------*/
jorgen@8806
    22
jorgen@8806
    23
/* GL_OES_compressed_ETC1_RGB8_texture */
jorgen@8806
    24
#ifndef GL_OES_compressed_ETC1_RGB8_texture
jorgen@8806
    25
#define GL_ETC1_RGB8_OES                                        0x8D64
jorgen@8806
    26
#endif
jorgen@8806
    27
jorgen@8806
    28
/* GL_OES_compressed_paletted_texture */
jorgen@8806
    29
#ifndef GL_OES_compressed_paletted_texture
jorgen@8806
    30
#define GL_PALETTE4_RGB8_OES                                    0x8B90
jorgen@8806
    31
#define GL_PALETTE4_RGBA8_OES                                   0x8B91
jorgen@8806
    32
#define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
jorgen@8806
    33
#define GL_PALETTE4_RGBA4_OES                                   0x8B93
jorgen@8806
    34
#define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
jorgen@8806
    35
#define GL_PALETTE8_RGB8_OES                                    0x8B95
jorgen@8806
    36
#define GL_PALETTE8_RGBA8_OES                                   0x8B96
jorgen@8806
    37
#define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
jorgen@8806
    38
#define GL_PALETTE8_RGBA4_OES                                   0x8B98
jorgen@8806
    39
#define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
jorgen@8806
    40
#endif
jorgen@8806
    41
jorgen@8806
    42
/* GL_OES_depth24 */
jorgen@8806
    43
#ifndef GL_OES_depth24
jorgen@8806
    44
#define GL_DEPTH_COMPONENT24_OES                                0x81A6
jorgen@8806
    45
#endif
jorgen@8806
    46
jorgen@8806
    47
/* GL_OES_depth32 */
jorgen@8806
    48
#ifndef GL_OES_depth32
jorgen@8806
    49
#define GL_DEPTH_COMPONENT32_OES                                0x81A7
jorgen@8806
    50
#endif
jorgen@8806
    51
jorgen@8806
    52
/* GL_OES_depth_texture */
jorgen@8806
    53
/* No new tokens introduced by this extension. */
jorgen@8806
    54
jorgen@8806
    55
/* GL_OES_EGL_image */
jorgen@8806
    56
#ifndef GL_OES_EGL_image
jorgen@8806
    57
typedef void* GLeglImageOES;
jorgen@8806
    58
#endif
jorgen@8806
    59
jorgen@8806
    60
/* GL_OES_EGL_image_external */
jorgen@8806
    61
#ifndef GL_OES_EGL_image_external
jorgen@8806
    62
/* GLeglImageOES defined in GL_OES_EGL_image already. */
jorgen@8806
    63
#define GL_TEXTURE_EXTERNAL_OES                                 0x8D65
jorgen@8806
    64
#define GL_SAMPLER_EXTERNAL_OES                                 0x8D66
jorgen@8806
    65
#define GL_TEXTURE_BINDING_EXTERNAL_OES                         0x8D67
jorgen@8806
    66
#define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES                     0x8D68
jorgen@8806
    67
#endif
jorgen@8806
    68
jorgen@8806
    69
/* GL_OES_element_index_uint */
jorgen@8806
    70
#ifndef GL_OES_element_index_uint
jorgen@8806
    71
#define GL_UNSIGNED_INT                                         0x1405
jorgen@8806
    72
#endif
jorgen@8806
    73
jorgen@8806
    74
/* GL_OES_get_program_binary */
jorgen@8806
    75
#ifndef GL_OES_get_program_binary
jorgen@8806
    76
#define GL_PROGRAM_BINARY_LENGTH_OES                            0x8741
jorgen@8806
    77
#define GL_NUM_PROGRAM_BINARY_FORMATS_OES                       0x87FE
jorgen@8806
    78
#define GL_PROGRAM_BINARY_FORMATS_OES                           0x87FF
jorgen@8806
    79
#endif
jorgen@8806
    80
jorgen@8806
    81
/* GL_OES_mapbuffer */
jorgen@8806
    82
#ifndef GL_OES_mapbuffer
jorgen@8806
    83
#define GL_WRITE_ONLY_OES                                       0x88B9
jorgen@8806
    84
#define GL_BUFFER_ACCESS_OES                                    0x88BB
jorgen@8806
    85
#define GL_BUFFER_MAPPED_OES                                    0x88BC
jorgen@8806
    86
#define GL_BUFFER_MAP_POINTER_OES                               0x88BD
jorgen@8806
    87
#endif
jorgen@8806
    88
jorgen@8806
    89
/* GL_OES_packed_depth_stencil */
jorgen@8806
    90
#ifndef GL_OES_packed_depth_stencil
jorgen@8806
    91
#define GL_DEPTH_STENCIL_OES                                    0x84F9
jorgen@8806
    92
#define GL_UNSIGNED_INT_24_8_OES                                0x84FA
jorgen@8806
    93
#define GL_DEPTH24_STENCIL8_OES                                 0x88F0
jorgen@8806
    94
#endif
jorgen@8806
    95
jorgen@8806
    96
/* GL_OES_required_internalformat */
jorgen@8806
    97
#ifndef GL_OES_required_internalformat 
jorgen@8806
    98
#define GL_ALPHA8_OES                                           0x803C
jorgen@8806
    99
#define GL_DEPTH_COMPONENT16_OES                                0x81A5
jorgen@8806
   100
/* reuse GL_DEPTH_COMPONENT24_OES */                            
jorgen@8806
   101
/* reuse GL_DEPTH24_STENCIL8_OES */                             
jorgen@8806
   102
/* reuse GL_DEPTH_COMPONENT32_OES */                            
jorgen@8806
   103
#define GL_LUMINANCE4_ALPHA4_OES                                0x8043
jorgen@8806
   104
#define GL_LUMINANCE8_ALPHA8_OES                                0x8045
jorgen@8806
   105
#define GL_LUMINANCE8_OES                                       0x8040
jorgen@8806
   106
#define GL_RGBA4_OES                                            0x8056
jorgen@8806
   107
#define GL_RGB5_A1_OES                                          0x8057
jorgen@8806
   108
#define GL_RGB565_OES                                           0x8D62
jorgen@8806
   109
/* reuse GL_RGB8_OES */                              
jorgen@8806
   110
/* reuse GL_RGBA8_OES */  
jorgen@8806
   111
/* reuse GL_RGB10_EXT */
jorgen@8806
   112
/* reuse GL_RGB10_A2_EXT */
jorgen@8806
   113
#endif 
jorgen@8806
   114
jorgen@8806
   115
/* GL_OES_rgb8_rgba8 */
jorgen@8806
   116
#ifndef GL_OES_rgb8_rgba8
jorgen@8806
   117
#define GL_RGB8_OES                                             0x8051
jorgen@8806
   118
#define GL_RGBA8_OES                                            0x8058
jorgen@8806
   119
#endif
jorgen@8806
   120
jorgen@8806
   121
/* GL_OES_standard_derivatives */
jorgen@8806
   122
#ifndef GL_OES_standard_derivatives
jorgen@8806
   123
#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES                  0x8B8B
jorgen@8806
   124
#endif
jorgen@8806
   125
jorgen@8806
   126
/* GL_OES_stencil1 */
jorgen@8806
   127
#ifndef GL_OES_stencil1
jorgen@8806
   128
#define GL_STENCIL_INDEX1_OES                                   0x8D46
jorgen@8806
   129
#endif
jorgen@8806
   130
jorgen@8806
   131
/* GL_OES_stencil4 */
jorgen@8806
   132
#ifndef GL_OES_stencil4
jorgen@8806
   133
#define GL_STENCIL_INDEX4_OES                                   0x8D47
jorgen@8806
   134
#endif
jorgen@8806
   135
jorgen@8806
   136
#ifndef GL_OES_surfaceless_context
jorgen@8806
   137
#define GL_FRAMEBUFFER_UNDEFINED_OES                            0x8219
jorgen@8806
   138
#endif
jorgen@8806
   139
jorgen@8806
   140
/* GL_OES_texture_3D */
jorgen@8806
   141
#ifndef GL_OES_texture_3D
jorgen@8806
   142
#define GL_TEXTURE_WRAP_R_OES                                   0x8072
jorgen@8806
   143
#define GL_TEXTURE_3D_OES                                       0x806F
jorgen@8806
   144
#define GL_TEXTURE_BINDING_3D_OES                               0x806A
jorgen@8806
   145
#define GL_MAX_3D_TEXTURE_SIZE_OES                              0x8073
jorgen@8806
   146
#define GL_SAMPLER_3D_OES                                       0x8B5F
jorgen@8806
   147
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES        0x8CD4
jorgen@8806
   148
#endif
jorgen@8806
   149
jorgen@8806
   150
/* GL_OES_texture_float */
jorgen@8806
   151
/* No new tokens introduced by this extension. */
jorgen@8806
   152
jorgen@8806
   153
/* GL_OES_texture_float_linear */
jorgen@8806
   154
/* No new tokens introduced by this extension. */
jorgen@8806
   155
jorgen@8806
   156
/* GL_OES_texture_half_float */
jorgen@8806
   157
#ifndef GL_OES_texture_half_float
jorgen@8806
   158
#define GL_HALF_FLOAT_OES                                       0x8D61
jorgen@8806
   159
#endif
jorgen@8806
   160
jorgen@8806
   161
/* GL_OES_texture_half_float_linear */
jorgen@8806
   162
/* No new tokens introduced by this extension. */
jorgen@8806
   163
jorgen@8806
   164
/* GL_OES_texture_npot */
jorgen@8806
   165
/* No new tokens introduced by this extension. */
jorgen@8806
   166
jorgen@8806
   167
/* GL_OES_vertex_array_object */
jorgen@8806
   168
#ifndef GL_OES_vertex_array_object
jorgen@8806
   169
#define GL_VERTEX_ARRAY_BINDING_OES                             0x85B5
jorgen@8806
   170
#endif
jorgen@8806
   171
jorgen@8806
   172
/* GL_OES_vertex_half_float */
jorgen@8806
   173
/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
jorgen@8806
   174
jorgen@8806
   175
/* GL_OES_vertex_type_10_10_10_2 */
jorgen@8806
   176
#ifndef GL_OES_vertex_type_10_10_10_2
jorgen@8806
   177
#define GL_UNSIGNED_INT_10_10_10_2_OES                          0x8DF6
jorgen@8806
   178
#define GL_INT_10_10_10_2_OES                                   0x8DF7
jorgen@8806
   179
#endif
jorgen@8806
   180
jorgen@8806
   181
/*------------------------------------------------------------------------*
jorgen@8806
   182
 * KHR extension tokens
jorgen@8806
   183
 *------------------------------------------------------------------------*/
jorgen@8806
   184
jorgen@8806
   185
#ifndef GL_KHR_debug
jorgen@8806
   186
typedef void (GL_APIENTRYP GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
jorgen@8806
   187
#define GL_DEBUG_OUTPUT_SYNCHRONOUS                             0x8242
jorgen@8806
   188
#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH                     0x8243
jorgen@8806
   189
#define GL_DEBUG_CALLBACK_FUNCTION                              0x8244
jorgen@8806
   190
#define GL_DEBUG_CALLBACK_USER_PARAM                            0x8245
jorgen@8806
   191
#define GL_DEBUG_SOURCE_API                                     0x8246
jorgen@8806
   192
#define GL_DEBUG_SOURCE_WINDOW_SYSTEM                           0x8247
jorgen@8806
   193
#define GL_DEBUG_SOURCE_SHADER_COMPILER                         0x8248
jorgen@8806
   194
#define GL_DEBUG_SOURCE_THIRD_PARTY                             0x8249
jorgen@8806
   195
#define GL_DEBUG_SOURCE_APPLICATION                             0x824A
jorgen@8806
   196
#define GL_DEBUG_SOURCE_OTHER                                   0x824B
jorgen@8806
   197
#define GL_DEBUG_TYPE_ERROR                                     0x824C
jorgen@8806
   198
#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR                       0x824D
jorgen@8806
   199
#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR                        0x824E
jorgen@8806
   200
#define GL_DEBUG_TYPE_PORTABILITY                               0x824F
jorgen@8806
   201
#define GL_DEBUG_TYPE_PERFORMANCE                               0x8250
jorgen@8806
   202
#define GL_DEBUG_TYPE_OTHER                                     0x8251
jorgen@8806
   203
#define GL_DEBUG_TYPE_MARKER                                    0x8268
jorgen@8806
   204
#define GL_DEBUG_TYPE_PUSH_GROUP                                0x8269
jorgen@8806
   205
#define GL_DEBUG_TYPE_POP_GROUP                                 0x826A
jorgen@8806
   206
#define GL_DEBUG_SEVERITY_NOTIFICATION                          0x826B
jorgen@8806
   207
#define GL_MAX_DEBUG_GROUP_STACK_DEPTH                          0x826C
jorgen@8806
   208
#define GL_DEBUG_GROUP_STACK_DEPTH                              0x826D
jorgen@8806
   209
#define GL_BUFFER                                               0x82E0
jorgen@8806
   210
#define GL_SHADER                                               0x82E1
jorgen@8806
   211
#define GL_PROGRAM                                              0x82E2
jorgen@8806
   212
#define GL_QUERY                                                0x82E3
jorgen@8806
   213
/* PROGRAM_PIPELINE only in GL */                               
jorgen@8806
   214
#define GL_SAMPLER                                              0x82E6
jorgen@8806
   215
/* DISPLAY_LIST only in GL */                                   
jorgen@8806
   216
#define GL_MAX_LABEL_LENGTH                                     0x82E8
jorgen@8806
   217
#define GL_MAX_DEBUG_MESSAGE_LENGTH                             0x9143
jorgen@8806
   218
#define GL_MAX_DEBUG_LOGGED_MESSAGES                            0x9144
jorgen@8806
   219
#define GL_DEBUG_LOGGED_MESSAGES                                0x9145
jorgen@8806
   220
#define GL_DEBUG_SEVERITY_HIGH                                  0x9146
jorgen@8806
   221
#define GL_DEBUG_SEVERITY_MEDIUM                                0x9147
jorgen@8806
   222
#define GL_DEBUG_SEVERITY_LOW                                   0x9148
jorgen@8806
   223
#define GL_DEBUG_OUTPUT                                         0x92E0
jorgen@8806
   224
#define GL_CONTEXT_FLAG_DEBUG_BIT                               0x00000002
jorgen@8806
   225
#define GL_STACK_OVERFLOW                                       0x0503
jorgen@8806
   226
#define GL_STACK_UNDERFLOW                                      0x0504
jorgen@8806
   227
#endif
jorgen@8806
   228
jorgen@8806
   229
#ifndef GL_KHR_texture_compression_astc_ldr
jorgen@8806
   230
#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR                         0x93B0
jorgen@8806
   231
#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR                         0x93B1
jorgen@8806
   232
#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR                         0x93B2
jorgen@8806
   233
#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR                         0x93B3
jorgen@8806
   234
#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR                         0x93B4
jorgen@8806
   235
#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR                         0x93B5
jorgen@8806
   236
#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR                         0x93B6
jorgen@8806
   237
#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR                         0x93B7
jorgen@8806
   238
#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR                        0x93B8
jorgen@8806
   239
#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR                        0x93B9
jorgen@8806
   240
#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR                        0x93BA
jorgen@8806
   241
#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR                       0x93BB
jorgen@8806
   242
#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR                       0x93BC
jorgen@8806
   243
#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR                       0x93BD
jorgen@8806
   244
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR                 0x93D0
jorgen@8806
   245
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR                 0x93D1
jorgen@8806
   246
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR                 0x93D2
jorgen@8806
   247
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR                 0x93D3
jorgen@8806
   248
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR                 0x93D4
jorgen@8806
   249
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR                 0x93D5
jorgen@8806
   250
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR                 0x93D6
jorgen@8806
   251
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR                 0x93D7
jorgen@8806
   252
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR                0x93D8
jorgen@8806
   253
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR                0x93D9
jorgen@8806
   254
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR                0x93DA
jorgen@8806
   255
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR               0x93DB
jorgen@8806
   256
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR               0x93DC
jorgen@8806
   257
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR               0x93DD
jorgen@8806
   258
#endif
jorgen@8806
   259
jorgen@8806
   260
/*------------------------------------------------------------------------*
jorgen@8806
   261
 * AMD extension tokens
jorgen@8806
   262
 *------------------------------------------------------------------------*/
jorgen@8806
   263
jorgen@8806
   264
/* GL_AMD_compressed_3DC_texture */
jorgen@8806
   265
#ifndef GL_AMD_compressed_3DC_texture
jorgen@8806
   266
#define GL_3DC_X_AMD                                            0x87F9
jorgen@8806
   267
#define GL_3DC_XY_AMD                                           0x87FA
jorgen@8806
   268
#endif
jorgen@8806
   269
jorgen@8806
   270
/* GL_AMD_compressed_ATC_texture */
jorgen@8806
   271
#ifndef GL_AMD_compressed_ATC_texture
jorgen@8806
   272
#define GL_ATC_RGB_AMD                                          0x8C92
jorgen@8806
   273
#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                          0x8C93
jorgen@8806
   274
#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD                      0x87EE
jorgen@8806
   275
#endif
jorgen@8806
   276
jorgen@8806
   277
/* GL_AMD_performance_monitor */
jorgen@8806
   278
#ifndef GL_AMD_performance_monitor
jorgen@8806
   279
#define GL_COUNTER_TYPE_AMD                                     0x8BC0
jorgen@8806
   280
#define GL_COUNTER_RANGE_AMD                                    0x8BC1
jorgen@8806
   281
#define GL_UNSIGNED_INT64_AMD                                   0x8BC2
jorgen@8806
   282
#define GL_PERCENTAGE_AMD                                       0x8BC3
jorgen@8806
   283
#define GL_PERFMON_RESULT_AVAILABLE_AMD                         0x8BC4
jorgen@8806
   284
#define GL_PERFMON_RESULT_SIZE_AMD                              0x8BC5
jorgen@8806
   285
#define GL_PERFMON_RESULT_AMD                                   0x8BC6
jorgen@8806
   286
#endif
jorgen@8806
   287
jorgen@8806
   288
/* GL_AMD_program_binary_Z400 */
jorgen@8806
   289
#ifndef GL_AMD_program_binary_Z400
jorgen@8806
   290
#define GL_Z400_BINARY_AMD                                      0x8740
jorgen@8806
   291
#endif
jorgen@8806
   292
jorgen@8806
   293
/*------------------------------------------------------------------------*
jorgen@8806
   294
 * ANGLE extension tokens
jorgen@8806
   295
 *------------------------------------------------------------------------*/
jorgen@8806
   296
jorgen@8806
   297
/* GL_ANGLE_framebuffer_blit */
jorgen@8806
   298
#ifndef GL_ANGLE_framebuffer_blit
jorgen@8806
   299
#define GL_READ_FRAMEBUFFER_ANGLE                               0x8CA8
jorgen@8806
   300
#define GL_DRAW_FRAMEBUFFER_ANGLE                               0x8CA9
jorgen@8806
   301
#define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE                       0x8CA6
jorgen@8806
   302
#define GL_READ_FRAMEBUFFER_BINDING_ANGLE                       0x8CAA
jorgen@8806
   303
#endif
jorgen@8806
   304
jorgen@8806
   305
/* GL_ANGLE_framebuffer_multisample */
jorgen@8806
   306
#ifndef GL_ANGLE_framebuffer_multisample
jorgen@8806
   307
#define GL_RENDERBUFFER_SAMPLES_ANGLE                           0x8CAB
jorgen@8806
   308
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE             0x8D56
jorgen@8806
   309
#define GL_MAX_SAMPLES_ANGLE                                    0x8D57
jorgen@8806
   310
#endif
jorgen@8806
   311
jorgen@8806
   312
/* GL_ANGLE_instanced_arrays */
jorgen@8806
   313
#ifndef GL_ANGLE_instanced_arrays 
jorgen@8806
   314
#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE                    0x88FE
jorgen@8806
   315
#endif
jorgen@8806
   316
jorgen@8806
   317
/* GL_ANGLE_pack_reverse_row_order */
jorgen@8806
   318
#ifndef GL_ANGLE_pack_reverse_row_order 
jorgen@8806
   319
#define GL_PACK_REVERSE_ROW_ORDER_ANGLE                         0x93A4
jorgen@8806
   320
#endif
jorgen@8806
   321
jorgen@8806
   322
/* GL_ANGLE_texture_compression_dxt3 */
jorgen@8806
   323
#ifndef GL_ANGLE_texture_compression_dxt3 
jorgen@8806
   324
#define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE                      0x83F2
jorgen@8806
   325
#endif
jorgen@8806
   326
jorgen@8806
   327
/* GL_ANGLE_texture_compression_dxt5 */
jorgen@8806
   328
#ifndef GL_ANGLE_texture_compression_dxt5 
jorgen@8806
   329
#define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE                      0x83F3
jorgen@8806
   330
#endif
jorgen@8806
   331
jorgen@8806
   332
/* GL_ANGLE_texture_usage */
jorgen@8806
   333
#ifndef GL_ANGLE_texture_usage 
jorgen@8806
   334
#define GL_TEXTURE_USAGE_ANGLE                                  0x93A2
jorgen@8806
   335
#define GL_FRAMEBUFFER_ATTACHMENT_ANGLE                         0x93A3
jorgen@8806
   336
#endif
jorgen@8806
   337
jorgen@8806
   338
/* GL_ANGLE_translated_shader_source */
jorgen@8806
   339
#ifndef GL_ANGLE_translated_shader_source 
jorgen@8806
   340
#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE                0x93A0
jorgen@8806
   341
#endif
jorgen@8806
   342
jorgen@8806
   343
/*------------------------------------------------------------------------*
jorgen@8806
   344
 * APPLE extension tokens
jorgen@8806
   345
 *------------------------------------------------------------------------*/
jorgen@8806
   346
jorgen@8806
   347
/* GL_APPLE_copy_texture_levels */
jorgen@8806
   348
/* No new tokens introduced by this extension. */
jorgen@8806
   349
    
jorgen@8806
   350
/* GL_APPLE_framebuffer_multisample */
jorgen@8806
   351
#ifndef GL_APPLE_framebuffer_multisample
jorgen@8806
   352
#define GL_RENDERBUFFER_SAMPLES_APPLE                           0x8CAB
jorgen@8806
   353
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE             0x8D56
jorgen@8806
   354
#define GL_MAX_SAMPLES_APPLE                                    0x8D57
jorgen@8806
   355
#define GL_READ_FRAMEBUFFER_APPLE                               0x8CA8
jorgen@8806
   356
#define GL_DRAW_FRAMEBUFFER_APPLE                               0x8CA9
jorgen@8806
   357
#define GL_DRAW_FRAMEBUFFER_BINDING_APPLE                       0x8CA6
jorgen@8806
   358
#define GL_READ_FRAMEBUFFER_BINDING_APPLE                       0x8CAA
jorgen@8806
   359
#endif
jorgen@8806
   360
jorgen@8806
   361
/* GL_APPLE_rgb_422 */
jorgen@8806
   362
#ifndef GL_APPLE_rgb_422
jorgen@8806
   363
#define GL_RGB_422_APPLE                                        0x8A1F
jorgen@8806
   364
#define GL_UNSIGNED_SHORT_8_8_APPLE                             0x85BA
jorgen@8806
   365
#define GL_UNSIGNED_SHORT_8_8_REV_APPLE                         0x85BB
jorgen@8806
   366
#endif
jorgen@8806
   367
jorgen@8806
   368
/* GL_APPLE_sync */
jorgen@8806
   369
#ifndef GL_APPLE_sync
jorgen@8806
   370
jorgen@8806
   371
#ifndef __gl3_h_
jorgen@8806
   372
/* These types are defined with reference to <inttypes.h>
jorgen@8806
   373
 * in the Apple extension spec, but here we use the Khronos
jorgen@8806
   374
 * portable types in khrplatform.h, and assume those types 
jorgen@8806
   375
 * are always defined.
jorgen@8806
   376
 * If any other extensions using these types are defined, 
jorgen@8806
   377
 * the typedefs must move out of this block and be shared.
jorgen@8806
   378
 */
jorgen@8806
   379
typedef khronos_int64_t GLint64;
jorgen@8806
   380
typedef khronos_uint64_t GLuint64;
jorgen@8806
   381
typedef struct __GLsync *GLsync;
jorgen@8806
   382
#endif
jorgen@8806
   383
jorgen@8806
   384
#define GL_SYNC_OBJECT_APPLE                                    0x8A53
jorgen@8806
   385
#define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE                        0x9111
jorgen@8806
   386
#define GL_OBJECT_TYPE_APPLE                                    0x9112
jorgen@8806
   387
#define GL_SYNC_CONDITION_APPLE                                 0x9113
jorgen@8806
   388
#define GL_SYNC_STATUS_APPLE                                    0x9114
jorgen@8806
   389
#define GL_SYNC_FLAGS_APPLE                                     0x9115
jorgen@8806
   390
#define GL_SYNC_FENCE_APPLE                                     0x9116
jorgen@8806
   391
#define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE                     0x9117
jorgen@8806
   392
#define GL_UNSIGNALED_APPLE                                     0x9118
jorgen@8806
   393
#define GL_SIGNALED_APPLE                                       0x9119
jorgen@8806
   394
#define GL_ALREADY_SIGNALED_APPLE                               0x911A
jorgen@8806
   395
#define GL_TIMEOUT_EXPIRED_APPLE                                0x911B
jorgen@8806
   396
#define GL_CONDITION_SATISFIED_APPLE                            0x911C
jorgen@8806
   397
#define GL_WAIT_FAILED_APPLE                                    0x911D
jorgen@8806
   398
#define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE                        0x00000001
jorgen@8806
   399
#define GL_TIMEOUT_IGNORED_APPLE                                0xFFFFFFFFFFFFFFFFull
jorgen@8806
   400
#endif
jorgen@8806
   401
jorgen@8806
   402
/* GL_APPLE_texture_format_BGRA8888 */
jorgen@8806
   403
#ifndef GL_APPLE_texture_format_BGRA8888
jorgen@8806
   404
#define GL_BGRA_EXT                                             0x80E1
jorgen@8806
   405
#endif
jorgen@8806
   406
jorgen@8806
   407
/* GL_APPLE_texture_max_level */
jorgen@8806
   408
#ifndef GL_APPLE_texture_max_level
jorgen@8806
   409
#define GL_TEXTURE_MAX_LEVEL_APPLE                              0x813D
jorgen@8806
   410
#endif
jorgen@8806
   411
jorgen@8806
   412
/*------------------------------------------------------------------------*
jorgen@8806
   413
 * ARM extension tokens
jorgen@8806
   414
 *------------------------------------------------------------------------*/
jorgen@8806
   415
jorgen@8806
   416
/* GL_ARM_mali_program_binary */
jorgen@8806
   417
#ifndef GL_ARM_mali_program_binary
jorgen@8806
   418
#define GL_MALI_PROGRAM_BINARY_ARM                              0x8F61
jorgen@8806
   419
#endif
jorgen@8806
   420
jorgen@8806
   421
/* GL_ARM_mali_shader_binary */
jorgen@8806
   422
#ifndef GL_ARM_mali_shader_binary
jorgen@8806
   423
#define GL_MALI_SHADER_BINARY_ARM                               0x8F60
jorgen@8806
   424
#endif
jorgen@8806
   425
jorgen@8806
   426
/* GL_ARM_rgba8 */
jorgen@8806
   427
/* No new tokens introduced by this extension. */
jorgen@8806
   428
jorgen@8806
   429
/*------------------------------------------------------------------------*
jorgen@8806
   430
 * EXT extension tokens
jorgen@8806
   431
 *------------------------------------------------------------------------*/
jorgen@8806
   432
jorgen@8806
   433
/* GL_EXT_blend_minmax */
jorgen@8806
   434
#ifndef GL_EXT_blend_minmax
jorgen@8806
   435
#define GL_MIN_EXT                                              0x8007
jorgen@8806
   436
#define GL_MAX_EXT                                              0x8008
jorgen@8806
   437
#endif
jorgen@8806
   438
jorgen@8806
   439
/* GL_EXT_color_buffer_half_float */
jorgen@8806
   440
#ifndef GL_EXT_color_buffer_half_float
jorgen@8806
   441
#define GL_RGBA16F_EXT                                          0x881A
jorgen@8806
   442
#define GL_RGB16F_EXT                                           0x881B
jorgen@8806
   443
#define GL_RG16F_EXT                                            0x822F
jorgen@8806
   444
#define GL_R16F_EXT                                             0x822D
jorgen@8806
   445
#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT            0x8211
jorgen@8806
   446
#define GL_UNSIGNED_NORMALIZED_EXT                              0x8C17
jorgen@8806
   447
#endif
jorgen@8806
   448
jorgen@8806
   449
/* GL_EXT_debug_label */
jorgen@8806
   450
#ifndef GL_EXT_debug_label
jorgen@8806
   451
#define GL_PROGRAM_PIPELINE_OBJECT_EXT                          0x8A4F
jorgen@8806
   452
#define GL_PROGRAM_OBJECT_EXT                                   0x8B40
jorgen@8806
   453
#define GL_SHADER_OBJECT_EXT                                    0x8B48
jorgen@8806
   454
#define GL_BUFFER_OBJECT_EXT                                    0x9151
jorgen@8806
   455
#define GL_QUERY_OBJECT_EXT                                     0x9153
jorgen@8806
   456
#define GL_VERTEX_ARRAY_OBJECT_EXT                              0x9154
jorgen@8806
   457
#endif
jorgen@8806
   458
jorgen@8806
   459
/* GL_EXT_debug_marker */
jorgen@8806
   460
/* No new tokens introduced by this extension. */
jorgen@8806
   461
jorgen@8806
   462
/* GL_EXT_discard_framebuffer */
jorgen@8806
   463
#ifndef GL_EXT_discard_framebuffer
jorgen@8806
   464
#define GL_COLOR_EXT                                            0x1800
jorgen@8806
   465
#define GL_DEPTH_EXT                                            0x1801
jorgen@8806
   466
#define GL_STENCIL_EXT                                          0x1802
jorgen@8806
   467
#endif
jorgen@8806
   468
jorgen@8806
   469
/* GL_EXT_map_buffer_range */
jorgen@8806
   470
#ifndef GL_EXT_map_buffer_range
jorgen@8806
   471
#define GL_MAP_READ_BIT_EXT                                     0x0001
jorgen@8806
   472
#define GL_MAP_WRITE_BIT_EXT                                    0x0002
jorgen@8806
   473
#define GL_MAP_INVALIDATE_RANGE_BIT_EXT                         0x0004
jorgen@8806
   474
#define GL_MAP_INVALIDATE_BUFFER_BIT_EXT                        0x0008
jorgen@8806
   475
#define GL_MAP_FLUSH_EXPLICIT_BIT_EXT                           0x0010
jorgen@8806
   476
#define GL_MAP_UNSYNCHRONIZED_BIT_EXT                           0x0020
jorgen@8806
   477
#endif
jorgen@8806
   478
jorgen@8806
   479
/* GL_EXT_multisampled_render_to_texture */
jorgen@8806
   480
#ifndef GL_EXT_multisampled_render_to_texture
jorgen@8806
   481
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT           0x8D6C
jorgen@8806
   482
/* reuse values from GL_EXT_framebuffer_multisample (desktop extension) */ 
jorgen@8806
   483
#define GL_RENDERBUFFER_SAMPLES_EXT                             0x8CAB
jorgen@8806
   484
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT               0x8D56
jorgen@8806
   485
#define GL_MAX_SAMPLES_EXT                                      0x8D57
jorgen@8806
   486
#endif
jorgen@8806
   487
jorgen@8806
   488
/* GL_EXT_multiview_draw_buffers */
jorgen@8806
   489
#ifndef GL_EXT_multiview_draw_buffers
jorgen@8806
   490
#define GL_COLOR_ATTACHMENT_EXT                                 0x90F0
jorgen@8806
   491
#define GL_MULTIVIEW_EXT                                        0x90F1
jorgen@8806
   492
#define GL_DRAW_BUFFER_EXT                                      0x0C01
jorgen@8806
   493
#define GL_READ_BUFFER_EXT                                      0x0C02
jorgen@8806
   494
#define GL_MAX_MULTIVIEW_BUFFERS_EXT                            0x90F2
jorgen@8806
   495
#endif
jorgen@8806
   496
jorgen@8806
   497
/* GL_EXT_multi_draw_arrays */
jorgen@8806
   498
/* No new tokens introduced by this extension. */
jorgen@8806
   499
jorgen@8806
   500
/* GL_EXT_occlusion_query_boolean */
jorgen@8806
   501
#ifndef GL_EXT_occlusion_query_boolean
jorgen@8806
   502
#define GL_ANY_SAMPLES_PASSED_EXT                               0x8C2F
jorgen@8806
   503
#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT                  0x8D6A
jorgen@8806
   504
#define GL_CURRENT_QUERY_EXT                                    0x8865
jorgen@8806
   505
#define GL_QUERY_RESULT_EXT                                     0x8866
jorgen@8806
   506
#define GL_QUERY_RESULT_AVAILABLE_EXT                           0x8867
jorgen@8806
   507
#endif
jorgen@8806
   508
jorgen@8806
   509
/* GL_EXT_read_format_bgra */
jorgen@8806
   510
#ifndef GL_EXT_read_format_bgra
jorgen@8806
   511
#define GL_BGRA_EXT                                             0x80E1
jorgen@8806
   512
#define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT                       0x8365
jorgen@8806
   513
#define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT                       0x8366
jorgen@8806
   514
#endif
jorgen@8806
   515
jorgen@8806
   516
/* GL_EXT_robustness */
jorgen@8806
   517
#ifndef GL_EXT_robustness
jorgen@8806
   518
/* reuse GL_NO_ERROR */
jorgen@8806
   519
#define GL_GUILTY_CONTEXT_RESET_EXT                             0x8253
jorgen@8806
   520
#define GL_INNOCENT_CONTEXT_RESET_EXT                           0x8254
jorgen@8806
   521
#define GL_UNKNOWN_CONTEXT_RESET_EXT                            0x8255
jorgen@8806
   522
#define GL_CONTEXT_ROBUST_ACCESS_EXT                            0x90F3
jorgen@8806
   523
#define GL_RESET_NOTIFICATION_STRATEGY_EXT                      0x8256
jorgen@8806
   524
#define GL_LOSE_CONTEXT_ON_RESET_EXT                            0x8252
jorgen@8806
   525
#define GL_NO_RESET_NOTIFICATION_EXT                            0x8261
jorgen@8806
   526
#endif
jorgen@8806
   527
jorgen@8806
   528
/* GL_EXT_separate_shader_objects */
jorgen@8806
   529
#ifndef GL_EXT_separate_shader_objects
jorgen@8806
   530
#define GL_VERTEX_SHADER_BIT_EXT                                0x00000001
jorgen@8806
   531
#define GL_FRAGMENT_SHADER_BIT_EXT                              0x00000002
jorgen@8806
   532
#define GL_ALL_SHADER_BITS_EXT                                  0xFFFFFFFF
jorgen@8806
   533
#define GL_PROGRAM_SEPARABLE_EXT                                0x8258
jorgen@8806
   534
#define GL_ACTIVE_PROGRAM_EXT                                   0x8259
jorgen@8806
   535
#define GL_PROGRAM_PIPELINE_BINDING_EXT                         0x825A
jorgen@8806
   536
#endif
jorgen@8806
   537
jorgen@8806
   538
/* GL_EXT_shader_framebuffer_fetch */
jorgen@8806
   539
#ifndef GL_EXT_shader_framebuffer_fetch
jorgen@8806
   540
#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT                 0x8A52
jorgen@8806
   541
#endif
jorgen@8806
   542
jorgen@8806
   543
/* GL_EXT_shader_texture_lod */
jorgen@8806
   544
/* No new tokens introduced by this extension. */
jorgen@8806
   545
jorgen@8806
   546
/* GL_EXT_shadow_samplers */
jorgen@8806
   547
#ifndef GL_EXT_shadow_samplers
jorgen@8806
   548
#define GL_TEXTURE_COMPARE_MODE_EXT                             0x884C
jorgen@8806
   549
#define GL_TEXTURE_COMPARE_FUNC_EXT                             0x884D
jorgen@8806
   550
#define GL_COMPARE_REF_TO_TEXTURE_EXT                           0x884E
jorgen@8806
   551
#define GL_SAMPLER_2D_SHADOW_EXT                                0x8B62
jorgen@8806
   552
#endif
jorgen@8806
   553
jorgen@8806
   554
/* GL_EXT_sRGB */
jorgen@8806
   555
#ifndef GL_EXT_sRGB
jorgen@8806
   556
#define GL_SRGB_EXT                                             0x8C40
jorgen@8806
   557
#define GL_SRGB_ALPHA_EXT                                       0x8C42
jorgen@8806
   558
#define GL_SRGB8_ALPHA8_EXT                                     0x8C43
jorgen@8806
   559
#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT            0x8210
jorgen@8806
   560
#endif
jorgen@8806
   561
jorgen@8806
   562
/* GL_EXT_texture_compression_dxt1 */
jorgen@8806
   563
#ifndef GL_EXT_texture_compression_dxt1
jorgen@8806
   564
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT                         0x83F0
jorgen@8806
   565
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT                        0x83F1
jorgen@8806
   566
#endif
jorgen@8806
   567
jorgen@8806
   568
/* GL_EXT_texture_filter_anisotropic */
jorgen@8806
   569
#ifndef GL_EXT_texture_filter_anisotropic
jorgen@8806
   570
#define GL_TEXTURE_MAX_ANISOTROPY_EXT                           0x84FE
jorgen@8806
   571
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT                       0x84FF
jorgen@8806
   572
#endif
jorgen@8806
   573
jorgen@8806
   574
/* GL_EXT_texture_format_BGRA8888 */
jorgen@8806
   575
#ifndef GL_EXT_texture_format_BGRA8888
jorgen@8806
   576
#define GL_BGRA_EXT                                             0x80E1
jorgen@8806
   577
#endif
jorgen@8806
   578
jorgen@8806
   579
/* GL_EXT_texture_rg */
jorgen@8806
   580
#ifndef GL_EXT_texture_rg
jorgen@8806
   581
#define GL_RED_EXT                                              0x1903
jorgen@8806
   582
#define GL_RG_EXT                                               0x8227
jorgen@8806
   583
#define GL_R8_EXT                                               0x8229
jorgen@8806
   584
#define GL_RG8_EXT                                              0x822B
jorgen@8806
   585
#endif
jorgen@8806
   586
jorgen@8806
   587
/* GL_EXT_texture_storage */
jorgen@8806
   588
#ifndef GL_EXT_texture_storage
jorgen@8806
   589
#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT                         0x912F
jorgen@8806
   590
#define GL_ALPHA8_EXT                                           0x803C  
jorgen@8806
   591
#define GL_LUMINANCE8_EXT                                       0x8040
jorgen@8806
   592
#define GL_LUMINANCE8_ALPHA8_EXT                                0x8045
jorgen@8806
   593
#define GL_RGBA32F_EXT                                          0x8814  
jorgen@8806
   594
#define GL_RGB32F_EXT                                           0x8815
jorgen@8806
   595
#define GL_ALPHA32F_EXT                                         0x8816
jorgen@8806
   596
#define GL_LUMINANCE32F_EXT                                     0x8818
jorgen@8806
   597
#define GL_LUMINANCE_ALPHA32F_EXT                               0x8819
jorgen@8806
   598
/* reuse GL_RGBA16F_EXT */
jorgen@8806
   599
/* reuse GL_RGB16F_EXT */
jorgen@8806
   600
#define GL_ALPHA16F_EXT                                         0x881C
jorgen@8806
   601
#define GL_LUMINANCE16F_EXT                                     0x881E
jorgen@8806
   602
#define GL_LUMINANCE_ALPHA16F_EXT                               0x881F
jorgen@8806
   603
#define GL_RGB10_A2_EXT                                         0x8059  
jorgen@8806
   604
#define GL_RGB10_EXT                                            0x8052
jorgen@8806
   605
#define GL_BGRA8_EXT                                            0x93A1
jorgen@8806
   606
#define GL_R8_EXT                                               0x8229
jorgen@8806
   607
#define GL_RG8_EXT                                              0x822B
jorgen@8806
   608
#define GL_R32F_EXT                                             0x822E  
jorgen@8806
   609
#define GL_RG32F_EXT                                            0x8230
jorgen@8806
   610
#define GL_R16F_EXT                                             0x822D
jorgen@8806
   611
#define GL_RG16F_EXT                                            0x822F
jorgen@8806
   612
#endif
jorgen@8806
   613
jorgen@8806
   614
/* GL_EXT_texture_type_2_10_10_10_REV */
jorgen@8806
   615
#ifndef GL_EXT_texture_type_2_10_10_10_REV
jorgen@8806
   616
#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT                      0x8368
jorgen@8806
   617
#endif
jorgen@8806
   618
jorgen@8806
   619
/* GL_EXT_unpack_subimage */
jorgen@8806
   620
#ifndef GL_EXT_unpack_subimage
jorgen@8806
   621
#define GL_UNPACK_ROW_LENGTH                                    0x0CF2
jorgen@8806
   622
#define GL_UNPACK_SKIP_ROWS                                     0x0CF3
jorgen@8806
   623
#define GL_UNPACK_SKIP_PIXELS                                   0x0CF4
jorgen@8806
   624
#endif
jorgen@8806
   625
jorgen@8806
   626
/*------------------------------------------------------------------------*
jorgen@8806
   627
 * DMP extension tokens
jorgen@8806
   628
 *------------------------------------------------------------------------*/
jorgen@8806
   629
jorgen@8806
   630
/* GL_DMP_shader_binary */
jorgen@8806
   631
#ifndef GL_DMP_shader_binary
jorgen@8806
   632
#define GL_SHADER_BINARY_DMP                                    0x9250
jorgen@8806
   633
#endif
jorgen@8806
   634
jorgen@8806
   635
/*------------------------------------------------------------------------*
jorgen@8806
   636
 * FJ extension tokens
jorgen@8806
   637
 *------------------------------------------------------------------------*/
jorgen@8806
   638
jorgen@8806
   639
/* GL_FJ_shader_binary_GCCSO */
jorgen@8806
   640
#ifndef GL_FJ_shader_binary_GCCSO
jorgen@8806
   641
#define GCCSO_SHADER_BINARY_FJ                                  0x9260
jorgen@8806
   642
#endif
jorgen@8806
   643
jorgen@8806
   644
/*------------------------------------------------------------------------*
jorgen@8806
   645
 * IMG extension tokens
jorgen@8806
   646
 *------------------------------------------------------------------------*/
jorgen@8806
   647
jorgen@8806
   648
/* GL_IMG_program_binary */
jorgen@8806
   649
#ifndef GL_IMG_program_binary
jorgen@8806
   650
#define GL_SGX_PROGRAM_BINARY_IMG                               0x9130
jorgen@8806
   651
#endif
jorgen@8806
   652
jorgen@8806
   653
/* GL_IMG_read_format */
jorgen@8806
   654
#ifndef GL_IMG_read_format
jorgen@8806
   655
#define GL_BGRA_IMG                                             0x80E1
jorgen@8806
   656
#define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG                       0x8365
jorgen@8806
   657
#endif
jorgen@8806
   658
jorgen@8806
   659
/* GL_IMG_shader_binary */
jorgen@8806
   660
#ifndef GL_IMG_shader_binary
jorgen@8806
   661
#define GL_SGX_BINARY_IMG                                       0x8C0A
jorgen@8806
   662
#endif
jorgen@8806
   663
jorgen@8806
   664
/* GL_IMG_texture_compression_pvrtc */
jorgen@8806
   665
#ifndef GL_IMG_texture_compression_pvrtc
jorgen@8806
   666
#define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG                      0x8C00
jorgen@8806
   667
#define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG                      0x8C01
jorgen@8806
   668
#define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG                     0x8C02
jorgen@8806
   669
#define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG                     0x8C03
jorgen@8806
   670
#endif
jorgen@8806
   671
jorgen@8806
   672
/* GL_IMG_multisampled_render_to_texture */
jorgen@8806
   673
#ifndef GL_IMG_multisampled_render_to_texture
jorgen@8806
   674
#define GL_RENDERBUFFER_SAMPLES_IMG                             0x9133
jorgen@8806
   675
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG               0x9134
jorgen@8806
   676
#define GL_MAX_SAMPLES_IMG                                      0x9135
jorgen@8806
   677
#define GL_TEXTURE_SAMPLES_IMG                                  0x9136
jorgen@8806
   678
#endif
jorgen@8806
   679
jorgen@8806
   680
/*------------------------------------------------------------------------*
jorgen@8806
   681
 * NV extension tokens
jorgen@8806
   682
 *------------------------------------------------------------------------*/
jorgen@8806
   683
jorgen@8806
   684
/* GL_NV_coverage_sample */
jorgen@8806
   685
#ifndef GL_NV_coverage_sample
jorgen@8806
   686
#define GL_COVERAGE_COMPONENT_NV                                0x8ED0
jorgen@8806
   687
#define GL_COVERAGE_COMPONENT4_NV                               0x8ED1
jorgen@8806
   688
#define GL_COVERAGE_ATTACHMENT_NV                               0x8ED2
jorgen@8806
   689
#define GL_COVERAGE_BUFFERS_NV                                  0x8ED3
jorgen@8806
   690
#define GL_COVERAGE_SAMPLES_NV                                  0x8ED4
jorgen@8806
   691
#define GL_COVERAGE_ALL_FRAGMENTS_NV                            0x8ED5
jorgen@8806
   692
#define GL_COVERAGE_EDGE_FRAGMENTS_NV                           0x8ED6
jorgen@8806
   693
#define GL_COVERAGE_AUTOMATIC_NV                                0x8ED7
jorgen@8806
   694
#define GL_COVERAGE_BUFFER_BIT_NV                               0x8000
jorgen@8806
   695
#endif
jorgen@8806
   696
jorgen@8806
   697
/* GL_NV_depth_nonlinear */
jorgen@8806
   698
#ifndef GL_NV_depth_nonlinear
jorgen@8806
   699
#define GL_DEPTH_COMPONENT16_NONLINEAR_NV                       0x8E2C
jorgen@8806
   700
#endif
jorgen@8806
   701
jorgen@8806
   702
/* GL_NV_draw_buffers */
jorgen@8806
   703
#ifndef GL_NV_draw_buffers
jorgen@8806
   704
#define GL_MAX_DRAW_BUFFERS_NV                                  0x8824
jorgen@8806
   705
#define GL_DRAW_BUFFER0_NV                                      0x8825
jorgen@8806
   706
#define GL_DRAW_BUFFER1_NV                                      0x8826
jorgen@8806
   707
#define GL_DRAW_BUFFER2_NV                                      0x8827
jorgen@8806
   708
#define GL_DRAW_BUFFER3_NV                                      0x8828
jorgen@8806
   709
#define GL_DRAW_BUFFER4_NV                                      0x8829
jorgen@8806
   710
#define GL_DRAW_BUFFER5_NV                                      0x882A
jorgen@8806
   711
#define GL_DRAW_BUFFER6_NV                                      0x882B
jorgen@8806
   712
#define GL_DRAW_BUFFER7_NV                                      0x882C
jorgen@8806
   713
#define GL_DRAW_BUFFER8_NV                                      0x882D
jorgen@8806
   714
#define GL_DRAW_BUFFER9_NV                                      0x882E
jorgen@8806
   715
#define GL_DRAW_BUFFER10_NV                                     0x882F
jorgen@8806
   716
#define GL_DRAW_BUFFER11_NV                                     0x8830
jorgen@8806
   717
#define GL_DRAW_BUFFER12_NV                                     0x8831
jorgen@8806
   718
#define GL_DRAW_BUFFER13_NV                                     0x8832
jorgen@8806
   719
#define GL_DRAW_BUFFER14_NV                                     0x8833
jorgen@8806
   720
#define GL_DRAW_BUFFER15_NV                                     0x8834
jorgen@8806
   721
#define GL_COLOR_ATTACHMENT0_NV                                 0x8CE0
jorgen@8806
   722
#define GL_COLOR_ATTACHMENT1_NV                                 0x8CE1
jorgen@8806
   723
#define GL_COLOR_ATTACHMENT2_NV                                 0x8CE2
jorgen@8806
   724
#define GL_COLOR_ATTACHMENT3_NV                                 0x8CE3
jorgen@8806
   725
#define GL_COLOR_ATTACHMENT4_NV                                 0x8CE4
jorgen@8806
   726
#define GL_COLOR_ATTACHMENT5_NV                                 0x8CE5
jorgen@8806
   727
#define GL_COLOR_ATTACHMENT6_NV                                 0x8CE6
jorgen@8806
   728
#define GL_COLOR_ATTACHMENT7_NV                                 0x8CE7
jorgen@8806
   729
#define GL_COLOR_ATTACHMENT8_NV                                 0x8CE8
jorgen@8806
   730
#define GL_COLOR_ATTACHMENT9_NV                                 0x8CE9
jorgen@8806
   731
#define GL_COLOR_ATTACHMENT10_NV                                0x8CEA
jorgen@8806
   732
#define GL_COLOR_ATTACHMENT11_NV                                0x8CEB
jorgen@8806
   733
#define GL_COLOR_ATTACHMENT12_NV                                0x8CEC
jorgen@8806
   734
#define GL_COLOR_ATTACHMENT13_NV                                0x8CED
jorgen@8806
   735
#define GL_COLOR_ATTACHMENT14_NV                                0x8CEE
jorgen@8806
   736
#define GL_COLOR_ATTACHMENT15_NV                                0x8CEF
jorgen@8806
   737
#endif
jorgen@8806
   738
jorgen@8806
   739
/* GL_NV_fbo_color_attachments */
jorgen@8806
   740
#ifndef GL_NV_fbo_color_attachments
jorgen@8806
   741
#define GL_MAX_COLOR_ATTACHMENTS_NV                             0x8CDF
jorgen@8806
   742
/* GL_COLOR_ATTACHMENT{0-15}_NV defined in GL_NV_draw_buffers already. */
jorgen@8806
   743
#endif
jorgen@8806
   744
jorgen@8806
   745
/* GL_NV_fence */
jorgen@8806
   746
#ifndef GL_NV_fence
jorgen@8806
   747
#define GL_ALL_COMPLETED_NV                                     0x84F2
jorgen@8806
   748
#define GL_FENCE_STATUS_NV                                      0x84F3
jorgen@8806
   749
#define GL_FENCE_CONDITION_NV                                   0x84F4
jorgen@8806
   750
#endif
jorgen@8806
   751
jorgen@8806
   752
/* GL_NV_read_buffer */
jorgen@8806
   753
#ifndef GL_NV_read_buffer
jorgen@8806
   754
#define GL_READ_BUFFER_NV                                       0x0C02
jorgen@8806
   755
#endif
jorgen@8806
   756
jorgen@8806
   757
/* GL_NV_read_buffer_front */
jorgen@8806
   758
/* No new tokens introduced by this extension. */
jorgen@8806
   759
jorgen@8806
   760
/* GL_NV_read_depth */
jorgen@8806
   761
/* No new tokens introduced by this extension. */
jorgen@8806
   762
jorgen@8806
   763
/* GL_NV_read_depth_stencil */
jorgen@8806
   764
/* No new tokens introduced by this extension. */
jorgen@8806
   765
jorgen@8806
   766
/* GL_NV_read_stencil */
jorgen@8806
   767
/* No new tokens introduced by this extension. */
jorgen@8806
   768
jorgen@8806
   769
/* GL_NV_texture_compression_s3tc_update */
jorgen@8806
   770
/* No new tokens introduced by this extension. */
jorgen@8806
   771
jorgen@8806
   772
/* GL_NV_texture_npot_2D_mipmap */
jorgen@8806
   773
/* No new tokens introduced by this extension. */
jorgen@8806
   774
jorgen@8806
   775
/*------------------------------------------------------------------------*
jorgen@8806
   776
 * QCOM extension tokens
jorgen@8806
   777
 *------------------------------------------------------------------------*/
jorgen@8806
   778
jorgen@8806
   779
/* GL_QCOM_alpha_test */
jorgen@8806
   780
#ifndef GL_QCOM_alpha_test
jorgen@8806
   781
#define GL_ALPHA_TEST_QCOM                                      0x0BC0
jorgen@8806
   782
#define GL_ALPHA_TEST_FUNC_QCOM                                 0x0BC1
jorgen@8806
   783
#define GL_ALPHA_TEST_REF_QCOM                                  0x0BC2
jorgen@8806
   784
#endif
jorgen@8806
   785
jorgen@8806
   786
/* GL_QCOM_binning_control */
jorgen@8806
   787
#ifndef GL_QCOM_binning_control
jorgen@8806
   788
#define GL_BINNING_CONTROL_HINT_QCOM                            0x8FB0
jorgen@8806
   789
#define GL_CPU_OPTIMIZED_QCOM                                   0x8FB1
jorgen@8806
   790
#define GL_GPU_OPTIMIZED_QCOM                                   0x8FB2
jorgen@8806
   791
#define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM                    0x8FB3
jorgen@8806
   792
#endif
jorgen@8806
   793
jorgen@8806
   794
/* GL_QCOM_driver_control */
jorgen@8806
   795
/* No new tokens introduced by this extension. */
jorgen@8806
   796
jorgen@8806
   797
/* GL_QCOM_extended_get */
jorgen@8806
   798
#ifndef GL_QCOM_extended_get
jorgen@8806
   799
#define GL_TEXTURE_WIDTH_QCOM                                   0x8BD2
jorgen@8806
   800
#define GL_TEXTURE_HEIGHT_QCOM                                  0x8BD3
jorgen@8806
   801
#define GL_TEXTURE_DEPTH_QCOM                                   0x8BD4
jorgen@8806
   802
#define GL_TEXTURE_INTERNAL_FORMAT_QCOM                         0x8BD5
jorgen@8806
   803
#define GL_TEXTURE_FORMAT_QCOM                                  0x8BD6
jorgen@8806
   804
#define GL_TEXTURE_TYPE_QCOM                                    0x8BD7
jorgen@8806
   805
#define GL_TEXTURE_IMAGE_VALID_QCOM                             0x8BD8
jorgen@8806
   806
#define GL_TEXTURE_NUM_LEVELS_QCOM                              0x8BD9
jorgen@8806
   807
#define GL_TEXTURE_TARGET_QCOM                                  0x8BDA
jorgen@8806
   808
#define GL_TEXTURE_OBJECT_VALID_QCOM                            0x8BDB
jorgen@8806
   809
#define GL_STATE_RESTORE                                        0x8BDC
jorgen@8806
   810
#endif
jorgen@8806
   811
jorgen@8806
   812
/* GL_QCOM_extended_get2 */
jorgen@8806
   813
/* No new tokens introduced by this extension. */
jorgen@8806
   814
jorgen@8806
   815
/* GL_QCOM_perfmon_global_mode */
jorgen@8806
   816
#ifndef GL_QCOM_perfmon_global_mode
jorgen@8806
   817
#define GL_PERFMON_GLOBAL_MODE_QCOM                             0x8FA0
jorgen@8806
   818
#endif
jorgen@8806
   819
jorgen@8806
   820
/* GL_QCOM_writeonly_rendering */
jorgen@8806
   821
#ifndef GL_QCOM_writeonly_rendering
jorgen@8806
   822
#define GL_WRITEONLY_RENDERING_QCOM                             0x8823
jorgen@8806
   823
#endif
jorgen@8806
   824
jorgen@8806
   825
/* GL_QCOM_tiled_rendering */
jorgen@8806
   826
#ifndef GL_QCOM_tiled_rendering
jorgen@8806
   827
#define GL_COLOR_BUFFER_BIT0_QCOM                               0x00000001
jorgen@8806
   828
#define GL_COLOR_BUFFER_BIT1_QCOM                               0x00000002
jorgen@8806
   829
#define GL_COLOR_BUFFER_BIT2_QCOM                               0x00000004
jorgen@8806
   830
#define GL_COLOR_BUFFER_BIT3_QCOM                               0x00000008
jorgen@8806
   831
#define GL_COLOR_BUFFER_BIT4_QCOM                               0x00000010
jorgen@8806
   832
#define GL_COLOR_BUFFER_BIT5_QCOM                               0x00000020
jorgen@8806
   833
#define GL_COLOR_BUFFER_BIT6_QCOM                               0x00000040
jorgen@8806
   834
#define GL_COLOR_BUFFER_BIT7_QCOM                               0x00000080
jorgen@8806
   835
#define GL_DEPTH_BUFFER_BIT0_QCOM                               0x00000100
jorgen@8806
   836
#define GL_DEPTH_BUFFER_BIT1_QCOM                               0x00000200
jorgen@8806
   837
#define GL_DEPTH_BUFFER_BIT2_QCOM                               0x00000400
jorgen@8806
   838
#define GL_DEPTH_BUFFER_BIT3_QCOM                               0x00000800
jorgen@8806
   839
#define GL_DEPTH_BUFFER_BIT4_QCOM                               0x00001000
jorgen@8806
   840
#define GL_DEPTH_BUFFER_BIT5_QCOM                               0x00002000
jorgen@8806
   841
#define GL_DEPTH_BUFFER_BIT6_QCOM                               0x00004000
jorgen@8806
   842
#define GL_DEPTH_BUFFER_BIT7_QCOM                               0x00008000
jorgen@8806
   843
#define GL_STENCIL_BUFFER_BIT0_QCOM                             0x00010000
jorgen@8806
   844
#define GL_STENCIL_BUFFER_BIT1_QCOM                             0x00020000
jorgen@8806
   845
#define GL_STENCIL_BUFFER_BIT2_QCOM                             0x00040000
jorgen@8806
   846
#define GL_STENCIL_BUFFER_BIT3_QCOM                             0x00080000
jorgen@8806
   847
#define GL_STENCIL_BUFFER_BIT4_QCOM                             0x00100000
jorgen@8806
   848
#define GL_STENCIL_BUFFER_BIT5_QCOM                             0x00200000
jorgen@8806
   849
#define GL_STENCIL_BUFFER_BIT6_QCOM                             0x00400000
jorgen@8806
   850
#define GL_STENCIL_BUFFER_BIT7_QCOM                             0x00800000
jorgen@8806
   851
#define GL_MULTISAMPLE_BUFFER_BIT0_QCOM                         0x01000000
jorgen@8806
   852
#define GL_MULTISAMPLE_BUFFER_BIT1_QCOM                         0x02000000
jorgen@8806
   853
#define GL_MULTISAMPLE_BUFFER_BIT2_QCOM                         0x04000000
jorgen@8806
   854
#define GL_MULTISAMPLE_BUFFER_BIT3_QCOM                         0x08000000
jorgen@8806
   855
#define GL_MULTISAMPLE_BUFFER_BIT4_QCOM                         0x10000000
jorgen@8806
   856
#define GL_MULTISAMPLE_BUFFER_BIT5_QCOM                         0x20000000
jorgen@8806
   857
#define GL_MULTISAMPLE_BUFFER_BIT6_QCOM                         0x40000000
jorgen@8806
   858
#define GL_MULTISAMPLE_BUFFER_BIT7_QCOM                         0x80000000
jorgen@8806
   859
#endif
jorgen@8806
   860
jorgen@8806
   861
/*------------------------------------------------------------------------*
jorgen@8806
   862
 * VIV extension tokens
jorgen@8806
   863
 *------------------------------------------------------------------------*/
jorgen@8806
   864
jorgen@8806
   865
/* GL_VIV_shader_binary */
jorgen@8806
   866
#ifndef GL_VIV_shader_binary
jorgen@8806
   867
#define GL_SHADER_BINARY_VIV                                    0x8FC4
jorgen@8806
   868
#endif
jorgen@8806
   869
jorgen@8806
   870
/*------------------------------------------------------------------------*
jorgen@8806
   871
 * End of extension tokens, start of corresponding extension functions
jorgen@8806
   872
 *------------------------------------------------------------------------*/
jorgen@8806
   873
jorgen@8806
   874
/*------------------------------------------------------------------------*
jorgen@8806
   875
 * OES extension functions
jorgen@8806
   876
 *------------------------------------------------------------------------*/
jorgen@8806
   877
jorgen@8806
   878
/* GL_OES_compressed_ETC1_RGB8_texture */
jorgen@8806
   879
#ifndef GL_OES_compressed_ETC1_RGB8_texture
jorgen@8806
   880
#define GL_OES_compressed_ETC1_RGB8_texture 1
jorgen@8806
   881
#endif
jorgen@8806
   882
jorgen@8806
   883
/* GL_OES_compressed_paletted_texture */
jorgen@8806
   884
#ifndef GL_OES_compressed_paletted_texture
jorgen@8806
   885
#define GL_OES_compressed_paletted_texture 1
jorgen@8806
   886
#endif
jorgen@8806
   887
jorgen@8806
   888
/* GL_OES_depth24 */
jorgen@8806
   889
#ifndef GL_OES_depth24
jorgen@8806
   890
#define GL_OES_depth24 1
jorgen@8806
   891
#endif
jorgen@8806
   892
jorgen@8806
   893
/* GL_OES_depth32 */
jorgen@8806
   894
#ifndef GL_OES_depth32
jorgen@8806
   895
#define GL_OES_depth32 1
jorgen@8806
   896
#endif
jorgen@8806
   897
jorgen@8806
   898
/* GL_OES_depth_texture */
jorgen@8806
   899
#ifndef GL_OES_depth_texture
jorgen@8806
   900
#define GL_OES_depth_texture 1
jorgen@8806
   901
#endif
jorgen@8806
   902
jorgen@8806
   903
/* GL_OES_EGL_image */
jorgen@8806
   904
#ifndef GL_OES_EGL_image
jorgen@8806
   905
#define GL_OES_EGL_image 1
jorgen@8806
   906
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
   907
GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
jorgen@8806
   908
GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
jorgen@8806
   909
#endif
jorgen@8806
   910
typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
jorgen@8806
   911
typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
jorgen@8806
   912
#endif
jorgen@8806
   913
jorgen@8806
   914
/* GL_OES_EGL_image_external */
jorgen@8806
   915
#ifndef GL_OES_EGL_image_external
jorgen@8806
   916
#define GL_OES_EGL_image_external 1
jorgen@8806
   917
/* glEGLImageTargetTexture2DOES defined in GL_OES_EGL_image already. */
jorgen@8806
   918
#endif
jorgen@8806
   919
jorgen@8806
   920
/* GL_OES_element_index_uint */
jorgen@8806
   921
#ifndef GL_OES_element_index_uint
jorgen@8806
   922
#define GL_OES_element_index_uint 1
jorgen@8806
   923
#endif
jorgen@8806
   924
jorgen@8806
   925
/* GL_OES_fbo_render_mipmap */
jorgen@8806
   926
#ifndef GL_OES_fbo_render_mipmap
jorgen@8806
   927
#define GL_OES_fbo_render_mipmap 1
jorgen@8806
   928
#endif
jorgen@8806
   929
jorgen@8806
   930
/* GL_OES_fragment_precision_high */
jorgen@8806
   931
#ifndef GL_OES_fragment_precision_high
jorgen@8806
   932
#define GL_OES_fragment_precision_high 1
jorgen@8806
   933
#endif
jorgen@8806
   934
jorgen@8806
   935
/* GL_OES_get_program_binary */
jorgen@8806
   936
#ifndef GL_OES_get_program_binary
jorgen@8806
   937
#define GL_OES_get_program_binary 1
jorgen@8806
   938
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
   939
GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
jorgen@8806
   940
GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
jorgen@8806
   941
#endif
jorgen@8806
   942
typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
jorgen@8806
   943
typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
jorgen@8806
   944
#endif
jorgen@8806
   945
jorgen@8806
   946
/* GL_OES_mapbuffer */
jorgen@8806
   947
#ifndef GL_OES_mapbuffer
jorgen@8806
   948
#define GL_OES_mapbuffer 1
jorgen@8806
   949
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
   950
GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
jorgen@8806
   951
GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
jorgen@8806
   952
GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, GLvoid** params);
jorgen@8806
   953
#endif
jorgen@8806
   954
typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
jorgen@8806
   955
typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
jorgen@8806
   956
typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, GLvoid** params);
jorgen@8806
   957
#endif
jorgen@8806
   958
jorgen@8806
   959
/* GL_OES_packed_depth_stencil */
jorgen@8806
   960
#ifndef GL_OES_packed_depth_stencil
jorgen@8806
   961
#define GL_OES_packed_depth_stencil 1
jorgen@8806
   962
#endif
jorgen@8806
   963
jorgen@8806
   964
/* GL_OES_required_internalformat */
jorgen@8806
   965
#ifndef GL_OES_required_internalformat
jorgen@8806
   966
#define GL_OES_required_internalformat 1
jorgen@8806
   967
#endif
jorgen@8806
   968
jorgen@8806
   969
/* GL_OES_rgb8_rgba8 */
jorgen@8806
   970
#ifndef GL_OES_rgb8_rgba8
jorgen@8806
   971
#define GL_OES_rgb8_rgba8 1
jorgen@8806
   972
#endif
jorgen@8806
   973
jorgen@8806
   974
/* GL_OES_standard_derivatives */
jorgen@8806
   975
#ifndef GL_OES_standard_derivatives
jorgen@8806
   976
#define GL_OES_standard_derivatives 1
jorgen@8806
   977
#endif
jorgen@8806
   978
jorgen@8806
   979
/* GL_OES_stencil1 */
jorgen@8806
   980
#ifndef GL_OES_stencil1
jorgen@8806
   981
#define GL_OES_stencil1 1
jorgen@8806
   982
#endif
jorgen@8806
   983
jorgen@8806
   984
/* GL_OES_stencil4 */
jorgen@8806
   985
#ifndef GL_OES_stencil4
jorgen@8806
   986
#define GL_OES_stencil4 1
jorgen@8806
   987
#endif
jorgen@8806
   988
jorgen@8806
   989
#ifndef GL_OES_surfaceless_context
jorgen@8806
   990
#define GL_OES_surfaceless_context 1
jorgen@8806
   991
#endif
jorgen@8806
   992
jorgen@8806
   993
/* GL_OES_texture_3D */
jorgen@8806
   994
#ifndef GL_OES_texture_3D
jorgen@8806
   995
#define GL_OES_texture_3D 1
jorgen@8806
   996
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
   997
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);
jorgen@8806
   998
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);
jorgen@8806
   999
GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
jorgen@8806
  1000
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);
jorgen@8806
  1001
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);
jorgen@8806
  1002
GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
jorgen@8806
  1003
#endif
jorgen@8806
  1004
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);
jorgen@8806
  1005
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);
jorgen@8806
  1006
typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
jorgen@8806
  1007
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
jorgen@8806
  1008
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);
jorgen@8806
  1009
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
jorgen@8806
  1010
#endif
jorgen@8806
  1011
jorgen@8806
  1012
/* GL_OES_texture_float */
jorgen@8806
  1013
#ifndef GL_OES_texture_float
jorgen@8806
  1014
#define GL_OES_texture_float 1
jorgen@8806
  1015
#endif
jorgen@8806
  1016
jorgen@8806
  1017
/* GL_OES_texture_float_linear */
jorgen@8806
  1018
#ifndef GL_OES_texture_float_linear
jorgen@8806
  1019
#define GL_OES_texture_float_linear 1
jorgen@8806
  1020
#endif
jorgen@8806
  1021
jorgen@8806
  1022
/* GL_OES_texture_half_float */
jorgen@8806
  1023
#ifndef GL_OES_texture_half_float
jorgen@8806
  1024
#define GL_OES_texture_half_float 1
jorgen@8806
  1025
#endif
jorgen@8806
  1026
jorgen@8806
  1027
/* GL_OES_texture_half_float_linear */
jorgen@8806
  1028
#ifndef GL_OES_texture_half_float_linear
jorgen@8806
  1029
#define GL_OES_texture_half_float_linear 1
jorgen@8806
  1030
#endif
jorgen@8806
  1031
jorgen@8806
  1032
/* GL_OES_texture_npot */
jorgen@8806
  1033
#ifndef GL_OES_texture_npot
jorgen@8806
  1034
#define GL_OES_texture_npot 1
jorgen@8806
  1035
#endif
jorgen@8806
  1036
jorgen@8806
  1037
/* GL_OES_vertex_array_object */
jorgen@8806
  1038
#ifndef GL_OES_vertex_array_object
jorgen@8806
  1039
#define GL_OES_vertex_array_object 1
jorgen@8806
  1040
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1041
GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
jorgen@8806
  1042
GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
jorgen@8806
  1043
GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
jorgen@8806
  1044
GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
jorgen@8806
  1045
#endif
jorgen@8806
  1046
typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
jorgen@8806
  1047
typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
jorgen@8806
  1048
typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
jorgen@8806
  1049
typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
jorgen@8806
  1050
#endif
jorgen@8806
  1051
jorgen@8806
  1052
/* GL_OES_vertex_half_float */
jorgen@8806
  1053
#ifndef GL_OES_vertex_half_float
jorgen@8806
  1054
#define GL_OES_vertex_half_float 1
jorgen@8806
  1055
#endif
jorgen@8806
  1056
jorgen@8806
  1057
/* GL_OES_vertex_type_10_10_10_2 */
jorgen@8806
  1058
#ifndef GL_OES_vertex_type_10_10_10_2
jorgen@8806
  1059
#define GL_OES_vertex_type_10_10_10_2 1
jorgen@8806
  1060
#endif
jorgen@8806
  1061
jorgen@8806
  1062
/*------------------------------------------------------------------------*
jorgen@8806
  1063
 * KHR extension functions
jorgen@8806
  1064
 *------------------------------------------------------------------------*/
jorgen@8806
  1065
jorgen@8806
  1066
#ifndef GL_KHR_debug
jorgen@8806
  1067
#define GL_KHR_debug 1
jorgen@8806
  1068
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1069
GL_APICALL void GL_APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
jorgen@8806
  1070
GL_APICALL void GL_APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
jorgen@8806
  1071
GL_APICALL void GL_APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
jorgen@8806
  1072
GL_APICALL GLuint GL_APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
jorgen@8806
  1073
GL_APICALL void GL_APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
jorgen@8806
  1074
GL_APICALL void GL_APIENTRY glPopDebugGroup (void);
jorgen@8806
  1075
GL_APICALL void GL_APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
jorgen@8806
  1076
GL_APICALL void GL_APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
jorgen@8806
  1077
GL_APICALL void GL_APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
jorgen@8806
  1078
GL_APICALL void GL_APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
jorgen@8806
  1079
GL_APICALL void GL_APIENTRY glGetPointerv (GLenum pname, void **params);
jorgen@8806
  1080
#endif 
jorgen@8806
  1081
typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
jorgen@8806
  1082
typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
jorgen@8806
  1083
typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
jorgen@8806
  1084
typedef GLuint (GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
jorgen@8806
  1085
typedef void (GL_APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
jorgen@8806
  1086
typedef void (GL_APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
jorgen@8806
  1087
typedef void (GL_APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
jorgen@8806
  1088
typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
jorgen@8806
  1089
typedef void (GL_APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
jorgen@8806
  1090
typedef void (GL_APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
jorgen@8806
  1091
typedef void (GL_APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, void **params);
jorgen@8806
  1092
#endif
jorgen@8806
  1093
jorgen@8806
  1094
#ifndef GL_KHR_texture_compression_astc_ldr
jorgen@8806
  1095
#define GL_KHR_texture_compression_astc_ldr 1
jorgen@8806
  1096
#endif
jorgen@8806
  1097
jorgen@8806
  1098
jorgen@8806
  1099
/*------------------------------------------------------------------------*
jorgen@8806
  1100
 * AMD extension functions
jorgen@8806
  1101
 *------------------------------------------------------------------------*/
jorgen@8806
  1102
jorgen@8806
  1103
/* GL_AMD_compressed_3DC_texture */
jorgen@8806
  1104
#ifndef GL_AMD_compressed_3DC_texture
jorgen@8806
  1105
#define GL_AMD_compressed_3DC_texture 1
jorgen@8806
  1106
#endif
jorgen@8806
  1107
jorgen@8806
  1108
/* GL_AMD_compressed_ATC_texture */
jorgen@8806
  1109
#ifndef GL_AMD_compressed_ATC_texture
jorgen@8806
  1110
#define GL_AMD_compressed_ATC_texture 1
jorgen@8806
  1111
#endif
jorgen@8806
  1112
jorgen@8806
  1113
/* AMD_performance_monitor */
jorgen@8806
  1114
#ifndef GL_AMD_performance_monitor
jorgen@8806
  1115
#define GL_AMD_performance_monitor 1
jorgen@8806
  1116
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1117
GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
jorgen@8806
  1118
GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
jorgen@8806
  1119
GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
jorgen@8806
  1120
GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
jorgen@8806
  1121
GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
jorgen@8806
  1122
GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
jorgen@8806
  1123
GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
jorgen@8806
  1124
GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
jorgen@8806
  1125
GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
jorgen@8806
  1126
GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
jorgen@8806
  1127
GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
jorgen@8806
  1128
#endif
jorgen@8806
  1129
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
jorgen@8806
  1130
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
jorgen@8806
  1131
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
jorgen@8806
  1132
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
jorgen@8806
  1133
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
jorgen@8806
  1134
typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
jorgen@8806
  1135
typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
jorgen@8806
  1136
typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
jorgen@8806
  1137
typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
jorgen@8806
  1138
typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
jorgen@8806
  1139
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
jorgen@8806
  1140
#endif
jorgen@8806
  1141
jorgen@8806
  1142
/* GL_AMD_program_binary_Z400 */
jorgen@8806
  1143
#ifndef GL_AMD_program_binary_Z400
jorgen@8806
  1144
#define GL_AMD_program_binary_Z400 1
jorgen@8806
  1145
#endif
jorgen@8806
  1146
jorgen@8806
  1147
/*------------------------------------------------------------------------*
jorgen@8806
  1148
 * ANGLE extension functions
jorgen@8806
  1149
 *------------------------------------------------------------------------*/
jorgen@8806
  1150
jorgen@8806
  1151
/* GL_ANGLE_framebuffer_blit */
jorgen@8806
  1152
#ifndef GL_ANGLE_framebuffer_blit
jorgen@8806
  1153
#define GL_ANGLE_framebuffer_blit 1
jorgen@8806
  1154
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1155
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);
jorgen@8806
  1156
#endif
jorgen@8806
  1157
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);
jorgen@8806
  1158
#endif
jorgen@8806
  1159
jorgen@8806
  1160
/* GL_ANGLE_framebuffer_multisample */
jorgen@8806
  1161
#ifndef GL_ANGLE_framebuffer_multisample
jorgen@8806
  1162
#define GL_ANGLE_framebuffer_multisample 1
jorgen@8806
  1163
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1164
GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1165
#endif
jorgen@8806
  1166
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1167
#endif
jorgen@8806
  1168
jorgen@8806
  1169
#ifndef GL_ANGLE_instanced_arrays 
jorgen@8806
  1170
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1171
GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
jorgen@8806
  1172
GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
jorgen@8806
  1173
GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE (GLuint index, GLuint divisor);
jorgen@8806
  1174
#endif
jorgen@8806
  1175
typedef void (GL_APIENTRYP PFLGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
jorgen@8806
  1176
typedef void (GL_APIENTRYP PFLGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
jorgen@8806
  1177
typedef void (GL_APIENTRYP PFLGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
jorgen@8806
  1178
#endif
jorgen@8806
  1179
jorgen@8806
  1180
/* GL_ANGLE_pack_reverse_row_order */
jorgen@8806
  1181
#ifndef GL_ANGLE_pack_reverse_row_order 
jorgen@8806
  1182
#define GL_ANGLE_pack_reverse_row_order 1
jorgen@8806
  1183
#endif
jorgen@8806
  1184
jorgen@8806
  1185
/* GL_ANGLE_texture_compression_dxt3 */
jorgen@8806
  1186
#ifndef GL_ANGLE_texture_compression_dxt3 
jorgen@8806
  1187
#define GL_ANGLE_texture_compression_dxt3 1
jorgen@8806
  1188
#endif
jorgen@8806
  1189
jorgen@8806
  1190
/* GL_ANGLE_texture_compression_dxt5 */
jorgen@8806
  1191
#ifndef GL_ANGLE_texture_compression_dxt5 
jorgen@8806
  1192
#define GL_ANGLE_texture_compression_dxt5 1
jorgen@8806
  1193
#endif
jorgen@8806
  1194
jorgen@8806
  1195
/* GL_ANGLE_texture_usage */
jorgen@8806
  1196
#ifndef GL_ANGLE_texture_usage 
jorgen@8806
  1197
#define GL_ANGLE_texture_usage 1
jorgen@8806
  1198
#endif
jorgen@8806
  1199
jorgen@8806
  1200
#ifndef GL_ANGLE_translated_shader_source 
jorgen@8806
  1201
#define GL_ANGLE_translated_shader_source 1
jorgen@8806
  1202
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1203
GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
jorgen@8806
  1204
#endif
jorgen@8806
  1205
typedef void (GL_APIENTRYP PFLGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
jorgen@8806
  1206
#endif
jorgen@8806
  1207
jorgen@8806
  1208
/*------------------------------------------------------------------------*
jorgen@8806
  1209
 * APPLE extension functions
jorgen@8806
  1210
 *------------------------------------------------------------------------*/
jorgen@8806
  1211
jorgen@8806
  1212
/* GL_APPLE_copy_texture_levels */
jorgen@8806
  1213
#ifndef GL_APPLE_copy_texture_levels
jorgen@8806
  1214
#define GL_APPLE_copy_texture_levels 1
jorgen@8806
  1215
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1216
GL_APICALL void GL_APIENTRY glCopyTextureLevelsAPPLE (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
jorgen@8806
  1217
#endif
jorgen@8806
  1218
typedef void (GL_APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
jorgen@8806
  1219
#endif
jorgen@8806
  1220
jorgen@8806
  1221
/* GL_APPLE_framebuffer_multisample */
jorgen@8806
  1222
#ifndef GL_APPLE_framebuffer_multisample
jorgen@8806
  1223
#define GL_APPLE_framebuffer_multisample 1
jorgen@8806
  1224
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1225
GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
jorgen@8806
  1226
GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
jorgen@8806
  1227
#endif /* GL_GLEXT_PROTOTYPES */
jorgen@8806
  1228
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1229
typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
jorgen@8806
  1230
#endif
jorgen@8806
  1231
jorgen@8806
  1232
/* GL_APPLE_rgb_422 */
jorgen@8806
  1233
#ifndef GL_APPLE_rgb_422
jorgen@8806
  1234
#define GL_APPLE_rgb_422 1
jorgen@8806
  1235
#endif
jorgen@8806
  1236
jorgen@8806
  1237
/* GL_APPLE_sync */
jorgen@8806
  1238
#ifndef GL_APPLE_sync
jorgen@8806
  1239
#define GL_APPLE_sync 1
jorgen@8806
  1240
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1241
GL_APICALL GLsync GL_APIENTRY glFenceSyncAPPLE (GLenum condition, GLbitfield flags);
jorgen@8806
  1242
GL_APICALL GLboolean GL_APIENTRY glIsSyncAPPLE (GLsync sync);
jorgen@8806
  1243
GL_APICALL void GL_APIENTRY glDeleteSyncAPPLE (GLsync sync);
jorgen@8806
  1244
GL_APICALL GLenum GL_APIENTRY glClientWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
jorgen@8806
  1245
GL_APICALL void GL_APIENTRY glWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
jorgen@8806
  1246
GL_APICALL void GL_APIENTRY glGetInteger64vAPPLE (GLenum pname, GLint64 *params);
jorgen@8806
  1247
GL_APICALL void GL_APIENTRY glGetSyncivAPPLE (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
jorgen@8806
  1248
#endif
jorgen@8806
  1249
typedef GLsync (GL_APIENTRYP PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
jorgen@8806
  1250
typedef GLboolean (GL_APIENTRYP PFNGLISSYNCAPPLEPROC) (GLsync sync);
jorgen@8806
  1251
typedef void (GL_APIENTRYP PFNGLDELETESYNCAPPLEPROC) (GLsync sync);
jorgen@8806
  1252
typedef GLenum (GL_APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
jorgen@8806
  1253
typedef void (GL_APIENTRYP PFNGLWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
jorgen@8806
  1254
typedef void (GL_APIENTRYP PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64 *params);
jorgen@8806
  1255
typedef void (GL_APIENTRYP PFNGLGETSYNCIVAPPLEPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
jorgen@8806
  1256
#endif
jorgen@8806
  1257
jorgen@8806
  1258
/* GL_APPLE_texture_format_BGRA8888 */
jorgen@8806
  1259
#ifndef GL_APPLE_texture_format_BGRA8888
jorgen@8806
  1260
#define GL_APPLE_texture_format_BGRA8888 1
jorgen@8806
  1261
#endif
jorgen@8806
  1262
jorgen@8806
  1263
/* GL_APPLE_texture_max_level */
jorgen@8806
  1264
#ifndef GL_APPLE_texture_max_level
jorgen@8806
  1265
#define GL_APPLE_texture_max_level 1
jorgen@8806
  1266
#endif
jorgen@8806
  1267
jorgen@8806
  1268
/*------------------------------------------------------------------------*
jorgen@8806
  1269
 * ARM extension functions
jorgen@8806
  1270
 *------------------------------------------------------------------------*/
jorgen@8806
  1271
jorgen@8806
  1272
/* GL_ARM_mali_program_binary */
jorgen@8806
  1273
#ifndef GL_ARM_mali_program_binary
jorgen@8806
  1274
#define GL_ARM_mali_program_binary 1
jorgen@8806
  1275
#endif
jorgen@8806
  1276
jorgen@8806
  1277
/* GL_ARM_mali_shader_binary */
jorgen@8806
  1278
#ifndef GL_ARM_mali_shader_binary
jorgen@8806
  1279
#define GL_ARM_mali_shader_binary 1
jorgen@8806
  1280
#endif
jorgen@8806
  1281
jorgen@8806
  1282
/* GL_ARM_rgba8 */
jorgen@8806
  1283
#ifndef GL_ARM_rgba8
jorgen@8806
  1284
#define GL_ARM_rgba8 1
jorgen@8806
  1285
#endif
jorgen@8806
  1286
jorgen@8806
  1287
/*------------------------------------------------------------------------*
jorgen@8806
  1288
 * EXT extension functions
jorgen@8806
  1289
 *------------------------------------------------------------------------*/
jorgen@8806
  1290
jorgen@8806
  1291
/* GL_EXT_blend_minmax */
jorgen@8806
  1292
#ifndef GL_EXT_blend_minmax
jorgen@8806
  1293
#define GL_EXT_blend_minmax 1
jorgen@8806
  1294
#endif
jorgen@8806
  1295
jorgen@8806
  1296
/* GL_EXT_color_buffer_half_float */
jorgen@8806
  1297
#ifndef GL_EXT_color_buffer_half_float
jorgen@8806
  1298
#define GL_EXT_color_buffer_half_float 1
jorgen@8806
  1299
#endif
jorgen@8806
  1300
jorgen@8806
  1301
/* GL_EXT_debug_label */
jorgen@8806
  1302
#ifndef GL_EXT_debug_label
jorgen@8806
  1303
#define GL_EXT_debug_label 1
jorgen@8806
  1304
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1305
GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
jorgen@8806
  1306
GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
jorgen@8806
  1307
#endif
jorgen@8806
  1308
typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
jorgen@8806
  1309
typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
jorgen@8806
  1310
#endif
jorgen@8806
  1311
jorgen@8806
  1312
/* GL_EXT_debug_marker */
jorgen@8806
  1313
#ifndef GL_EXT_debug_marker
jorgen@8806
  1314
#define GL_EXT_debug_marker 1
jorgen@8806
  1315
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1316
GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
jorgen@8806
  1317
GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
jorgen@8806
  1318
GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
jorgen@8806
  1319
#endif
jorgen@8806
  1320
typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
jorgen@8806
  1321
typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
jorgen@8806
  1322
typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
jorgen@8806
  1323
#endif
jorgen@8806
  1324
jorgen@8806
  1325
/* GL_EXT_discard_framebuffer */
jorgen@8806
  1326
#ifndef GL_EXT_discard_framebuffer
jorgen@8806
  1327
#define GL_EXT_discard_framebuffer 1
jorgen@8806
  1328
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1329
GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
jorgen@8806
  1330
#endif
jorgen@8806
  1331
typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
jorgen@8806
  1332
#endif
jorgen@8806
  1333
jorgen@8806
  1334
/* GL_EXT_map_buffer_range */
jorgen@8806
  1335
#ifndef GL_EXT_map_buffer_range
jorgen@8806
  1336
#define GL_EXT_map_buffer_range 1
jorgen@8806
  1337
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1338
GL_APICALL void* GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
jorgen@8806
  1339
GL_APICALL void GL_APIENTRY glFlushMappedBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length);
jorgen@8806
  1340
#endif
jorgen@8806
  1341
typedef void* (GL_APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
jorgen@8806
  1342
typedef void (GL_APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
jorgen@8806
  1343
#endif
jorgen@8806
  1344
jorgen@8806
  1345
/* GL_EXT_multisampled_render_to_texture */
jorgen@8806
  1346
#ifndef GL_EXT_multisampled_render_to_texture
jorgen@8806
  1347
#define GL_EXT_multisampled_render_to_texture 1
jorgen@8806
  1348
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1349
GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
jorgen@8806
  1350
GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
jorgen@8806
  1351
#endif
jorgen@8806
  1352
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1353
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
jorgen@8806
  1354
#endif
jorgen@8806
  1355
jorgen@8806
  1356
/* GL_EXT_multiview_draw_buffers */
jorgen@8806
  1357
#ifndef GL_EXT_multiview_draw_buffers
jorgen@8806
  1358
#define GL_EXT_multiview_draw_buffers 1
jorgen@8806
  1359
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1360
GL_APICALL void GL_APIENTRY glReadBufferIndexedEXT (GLenum src, GLint index);
jorgen@8806
  1361
GL_APICALL void GL_APIENTRY glDrawBuffersIndexedEXT (GLint n, const GLenum *location, const GLint *indices);
jorgen@8806
  1362
GL_APICALL void GL_APIENTRY glGetIntegeri_vEXT (GLenum target, GLuint index, GLint *data);
jorgen@8806
  1363
#endif
jorgen@8806
  1364
typedef void (GL_APIENTRYP PFNGLREADBUFFERINDEXEDEXTPROC) (GLenum src, GLint index);
jorgen@8806
  1365
typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSINDEXEDEXTPROC) (GLint n, const GLenum *location, const GLint *indices);
jorgen@8806
  1366
typedef void (GL_APIENTRYP PFNGLGETINTEGERI_VEXTPROC) (GLenum target, GLuint index, GLint *data);
jorgen@8806
  1367
#endif
jorgen@8806
  1368
jorgen@8806
  1369
#ifndef GL_EXT_multi_draw_arrays
jorgen@8806
  1370
#define GL_EXT_multi_draw_arrays 1
jorgen@8806
  1371
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1372
GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei);
jorgen@8806
  1373
GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
jorgen@8806
  1374
#endif /* GL_GLEXT_PROTOTYPES */
jorgen@8806
  1375
typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
jorgen@8806
  1376
typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
jorgen@8806
  1377
#endif
jorgen@8806
  1378
jorgen@8806
  1379
/* GL_EXT_occlusion_query_boolean */
jorgen@8806
  1380
#ifndef GL_EXT_occlusion_query_boolean
jorgen@8806
  1381
#define GL_EXT_occlusion_query_boolean 1
jorgen@8806
  1382
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1383
GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
jorgen@8806
  1384
GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
jorgen@8806
  1385
GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
jorgen@8806
  1386
GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
jorgen@8806
  1387
GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
jorgen@8806
  1388
GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
jorgen@8806
  1389
GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
jorgen@8806
  1390
#endif
jorgen@8806
  1391
typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
jorgen@8806
  1392
typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
jorgen@8806
  1393
typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
jorgen@8806
  1394
typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
jorgen@8806
  1395
typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
jorgen@8806
  1396
typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
jorgen@8806
  1397
typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
jorgen@8806
  1398
#endif
jorgen@8806
  1399
jorgen@8806
  1400
/* GL_EXT_read_format_bgra */
jorgen@8806
  1401
#ifndef GL_EXT_read_format_bgra
jorgen@8806
  1402
#define GL_EXT_read_format_bgra 1
jorgen@8806
  1403
#endif
jorgen@8806
  1404
jorgen@8806
  1405
/* GL_EXT_robustness */
jorgen@8806
  1406
#ifndef GL_EXT_robustness
jorgen@8806
  1407
#define GL_EXT_robustness 1
jorgen@8806
  1408
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1409
GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
jorgen@8806
  1410
GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
jorgen@8806
  1411
GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, float *params);
jorgen@8806
  1412
GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
jorgen@8806
  1413
#endif
jorgen@8806
  1414
typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
jorgen@8806
  1415
typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
jorgen@8806
  1416
typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, float *params);
jorgen@8806
  1417
typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
jorgen@8806
  1418
#endif
jorgen@8806
  1419
jorgen@8806
  1420
/* GL_EXT_separate_shader_objects */
jorgen@8806
  1421
#ifndef GL_EXT_separate_shader_objects
jorgen@8806
  1422
#define GL_EXT_separate_shader_objects 1
jorgen@8806
  1423
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1424
GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
jorgen@8806
  1425
GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
jorgen@8806
  1426
GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
jorgen@8806
  1427
GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
jorgen@8806
  1428
GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
jorgen@8806
  1429
GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
jorgen@8806
  1430
GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
jorgen@8806
  1431
GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
jorgen@8806
  1432
GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
jorgen@8806
  1433
GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint x);
jorgen@8806
  1434
GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint x, GLint y);
jorgen@8806
  1435
GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z);
jorgen@8806
  1436
GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
jorgen@8806
  1437
GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat x);
jorgen@8806
  1438
GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat x, GLfloat y);
jorgen@8806
  1439
GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
jorgen@8806
  1440
GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
jorgen@8806
  1441
GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
jorgen@8806
  1442
GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
jorgen@8806
  1443
GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
jorgen@8806
  1444
GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
jorgen@8806
  1445
GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
jorgen@8806
  1446
GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
jorgen@8806
  1447
GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
jorgen@8806
  1448
GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
jorgen@8806
  1449
GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
jorgen@8806
  1450
GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
jorgen@8806
  1451
GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
jorgen@8806
  1452
GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
jorgen@8806
  1453
GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
jorgen@8806
  1454
#endif
jorgen@8806
  1455
typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
jorgen@8806
  1456
typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
jorgen@8806
  1457
typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
jorgen@8806
  1458
typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
jorgen@8806
  1459
typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
jorgen@8806
  1460
typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
jorgen@8806
  1461
typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
jorgen@8806
  1462
typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
jorgen@8806
  1463
typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
jorgen@8806
  1464
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint x);
jorgen@8806
  1465
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint x, GLint y);
jorgen@8806
  1466
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z);
jorgen@8806
  1467
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
jorgen@8806
  1468
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat x);
jorgen@8806
  1469
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y);
jorgen@8806
  1470
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
jorgen@8806
  1471
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
jorgen@8806
  1472
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
jorgen@8806
  1473
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
jorgen@8806
  1474
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
jorgen@8806
  1475
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
jorgen@8806
  1476
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
jorgen@8806
  1477
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
jorgen@8806
  1478
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
jorgen@8806
  1479
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
jorgen@8806
  1480
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
jorgen@8806
  1481
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
jorgen@8806
  1482
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
jorgen@8806
  1483
typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
jorgen@8806
  1484
typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
jorgen@8806
  1485
#endif
jorgen@8806
  1486
jorgen@8806
  1487
/* GL_EXT_shader_framebuffer_fetch */
jorgen@8806
  1488
#ifndef GL_EXT_shader_framebuffer_fetch
jorgen@8806
  1489
#define GL_EXT_shader_framebuffer_fetch 1
jorgen@8806
  1490
#endif
jorgen@8806
  1491
jorgen@8806
  1492
/* GL_EXT_shader_texture_lod */
jorgen@8806
  1493
#ifndef GL_EXT_shader_texture_lod
jorgen@8806
  1494
#define GL_EXT_shader_texture_lod 1
jorgen@8806
  1495
#endif
jorgen@8806
  1496
jorgen@8806
  1497
/* GL_EXT_shadow_samplers */
jorgen@8806
  1498
#ifndef GL_EXT_shadow_samplers
jorgen@8806
  1499
#define GL_EXT_shadow_samplers 1
jorgen@8806
  1500
#endif
jorgen@8806
  1501
jorgen@8806
  1502
/* GL_EXT_sRGB */
jorgen@8806
  1503
#ifndef GL_EXT_sRGB
jorgen@8806
  1504
#define GL_EXT_sRGB 1
jorgen@8806
  1505
#endif
jorgen@8806
  1506
jorgen@8806
  1507
/* GL_EXT_texture_compression_dxt1 */
jorgen@8806
  1508
#ifndef GL_EXT_texture_compression_dxt1
jorgen@8806
  1509
#define GL_EXT_texture_compression_dxt1 1
jorgen@8806
  1510
#endif
jorgen@8806
  1511
jorgen@8806
  1512
/* GL_EXT_texture_filter_anisotropic */
jorgen@8806
  1513
#ifndef GL_EXT_texture_filter_anisotropic
jorgen@8806
  1514
#define GL_EXT_texture_filter_anisotropic 1
jorgen@8806
  1515
#endif
jorgen@8806
  1516
jorgen@8806
  1517
/* GL_EXT_texture_format_BGRA8888 */
jorgen@8806
  1518
#ifndef GL_EXT_texture_format_BGRA8888
jorgen@8806
  1519
#define GL_EXT_texture_format_BGRA8888 1
jorgen@8806
  1520
#endif
jorgen@8806
  1521
jorgen@8806
  1522
/* GL_EXT_texture_rg */
jorgen@8806
  1523
#ifndef GL_EXT_texture_rg
jorgen@8806
  1524
#define GL_EXT_texture_rg 1
jorgen@8806
  1525
#endif
jorgen@8806
  1526
jorgen@8806
  1527
/* GL_EXT_texture_storage */
jorgen@8806
  1528
#ifndef GL_EXT_texture_storage
jorgen@8806
  1529
#define GL_EXT_texture_storage 1
jorgen@8806
  1530
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1531
GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
jorgen@8806
  1532
GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1533
GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
jorgen@8806
  1534
GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
jorgen@8806
  1535
GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1536
GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
jorgen@8806
  1537
#endif
jorgen@8806
  1538
typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
jorgen@8806
  1539
typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1540
typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
jorgen@8806
  1541
typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
jorgen@8806
  1542
typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1543
typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
jorgen@8806
  1544
#endif
jorgen@8806
  1545
jorgen@8806
  1546
/* GL_EXT_texture_type_2_10_10_10_REV */
jorgen@8806
  1547
#ifndef GL_EXT_texture_type_2_10_10_10_REV
jorgen@8806
  1548
#define GL_EXT_texture_type_2_10_10_10_REV 1
jorgen@8806
  1549
#endif
jorgen@8806
  1550
jorgen@8806
  1551
/* GL_EXT_unpack_subimage */
jorgen@8806
  1552
#ifndef GL_EXT_unpack_subimage
jorgen@8806
  1553
#define GL_EXT_unpack_subimage 1
jorgen@8806
  1554
#endif
jorgen@8806
  1555
jorgen@8806
  1556
/*------------------------------------------------------------------------*
jorgen@8806
  1557
 * DMP extension functions
jorgen@8806
  1558
 *------------------------------------------------------------------------*/
jorgen@8806
  1559
jorgen@8806
  1560
/* GL_DMP_shader_binary */
jorgen@8806
  1561
#ifndef GL_DMP_shader_binary
jorgen@8806
  1562
#define GL_DMP_shader_binary 1
jorgen@8806
  1563
#endif
jorgen@8806
  1564
jorgen@8806
  1565
/*------------------------------------------------------------------------*
jorgen@8806
  1566
 * FJ extension functions
jorgen@8806
  1567
 *------------------------------------------------------------------------*/
jorgen@8806
  1568
jorgen@8806
  1569
/* GL_FJ_shader_binary_GCCSO */
jorgen@8806
  1570
#ifndef GL_FJ_shader_binary_GCCSO
jorgen@8806
  1571
#define GL_FJ_shader_binary_GCCSO 1
jorgen@8806
  1572
#endif
jorgen@8806
  1573
jorgen@8806
  1574
/*------------------------------------------------------------------------*
jorgen@8806
  1575
 * IMG extension functions
jorgen@8806
  1576
 *------------------------------------------------------------------------*/
jorgen@8806
  1577
jorgen@8806
  1578
/* GL_IMG_program_binary */
jorgen@8806
  1579
#ifndef GL_IMG_program_binary
jorgen@8806
  1580
#define GL_IMG_program_binary 1
jorgen@8806
  1581
#endif
jorgen@8806
  1582
jorgen@8806
  1583
/* GL_IMG_read_format */
jorgen@8806
  1584
#ifndef GL_IMG_read_format
jorgen@8806
  1585
#define GL_IMG_read_format 1
jorgen@8806
  1586
#endif
jorgen@8806
  1587
jorgen@8806
  1588
/* GL_IMG_shader_binary */
jorgen@8806
  1589
#ifndef GL_IMG_shader_binary
jorgen@8806
  1590
#define GL_IMG_shader_binary 1
jorgen@8806
  1591
#endif
jorgen@8806
  1592
jorgen@8806
  1593
/* GL_IMG_texture_compression_pvrtc */
jorgen@8806
  1594
#ifndef GL_IMG_texture_compression_pvrtc
jorgen@8806
  1595
#define GL_IMG_texture_compression_pvrtc 1
jorgen@8806
  1596
#endif
jorgen@8806
  1597
jorgen@8806
  1598
/* GL_IMG_multisampled_render_to_texture */
jorgen@8806
  1599
#ifndef GL_IMG_multisampled_render_to_texture
jorgen@8806
  1600
#define GL_IMG_multisampled_render_to_texture 1
jorgen@8806
  1601
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1602
GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
jorgen@8806
  1603
GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
jorgen@8806
  1604
#endif
jorgen@8806
  1605
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
jorgen@8806
  1606
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
jorgen@8806
  1607
#endif
jorgen@8806
  1608
jorgen@8806
  1609
/*------------------------------------------------------------------------*
jorgen@8806
  1610
 * NV extension functions
jorgen@8806
  1611
 *------------------------------------------------------------------------*/
jorgen@8806
  1612
jorgen@8806
  1613
/* GL_NV_coverage_sample */
jorgen@8806
  1614
#ifndef GL_NV_coverage_sample
jorgen@8806
  1615
#define GL_NV_coverage_sample 1
jorgen@8806
  1616
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1617
GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
jorgen@8806
  1618
GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
jorgen@8806
  1619
#endif
jorgen@8806
  1620
typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
jorgen@8806
  1621
typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
jorgen@8806
  1622
#endif
jorgen@8806
  1623
jorgen@8806
  1624
/* GL_NV_depth_nonlinear */
jorgen@8806
  1625
#ifndef GL_NV_depth_nonlinear
jorgen@8806
  1626
#define GL_NV_depth_nonlinear 1
jorgen@8806
  1627
#endif
jorgen@8806
  1628
jorgen@8806
  1629
/* GL_NV_draw_buffers */
jorgen@8806
  1630
#ifndef GL_NV_draw_buffers
jorgen@8806
  1631
#define GL_NV_draw_buffers 1
jorgen@8806
  1632
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1633
GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
jorgen@8806
  1634
#endif
jorgen@8806
  1635
typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
jorgen@8806
  1636
#endif
jorgen@8806
  1637
jorgen@8806
  1638
/* GL_NV_fbo_color_attachments */
jorgen@8806
  1639
#ifndef GL_NV_fbo_color_attachments
jorgen@8806
  1640
#define GL_NV_fbo_color_attachments 1
jorgen@8806
  1641
#endif
jorgen@8806
  1642
jorgen@8806
  1643
/* GL_NV_fence */
jorgen@8806
  1644
#ifndef GL_NV_fence
jorgen@8806
  1645
#define GL_NV_fence 1
jorgen@8806
  1646
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1647
GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei, const GLuint *);
jorgen@8806
  1648
GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei, GLuint *);
jorgen@8806
  1649
GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint);
jorgen@8806
  1650
GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint);
jorgen@8806
  1651
GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *);
jorgen@8806
  1652
GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint);
jorgen@8806
  1653
GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint, GLenum);
jorgen@8806
  1654
#endif
jorgen@8806
  1655
typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
jorgen@8806
  1656
typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
jorgen@8806
  1657
typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
jorgen@8806
  1658
typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
jorgen@8806
  1659
typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
jorgen@8806
  1660
typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
jorgen@8806
  1661
typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
jorgen@8806
  1662
#endif
jorgen@8806
  1663
jorgen@8806
  1664
/* GL_NV_read_buffer */
jorgen@8806
  1665
#ifndef GL_NV_read_buffer
jorgen@8806
  1666
#define GL_NV_read_buffer 1
jorgen@8806
  1667
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1668
GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
jorgen@8806
  1669
#endif
jorgen@8806
  1670
typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
jorgen@8806
  1671
#endif
jorgen@8806
  1672
jorgen@8806
  1673
/* GL_NV_read_buffer_front */
jorgen@8806
  1674
#ifndef GL_NV_read_buffer_front
jorgen@8806
  1675
#define GL_NV_read_buffer_front 1
jorgen@8806
  1676
#endif
jorgen@8806
  1677
jorgen@8806
  1678
/* GL_NV_read_depth */
jorgen@8806
  1679
#ifndef GL_NV_read_depth
jorgen@8806
  1680
#define GL_NV_read_depth 1
jorgen@8806
  1681
#endif
jorgen@8806
  1682
jorgen@8806
  1683
/* GL_NV_read_depth_stencil */
jorgen@8806
  1684
#ifndef GL_NV_read_depth_stencil
jorgen@8806
  1685
#define GL_NV_read_depth_stencil 1
jorgen@8806
  1686
#endif
jorgen@8806
  1687
jorgen@8806
  1688
/* GL_NV_read_stencil */
jorgen@8806
  1689
#ifndef GL_NV_read_stencil
jorgen@8806
  1690
#define GL_NV_read_stencil 1
jorgen@8806
  1691
#endif
jorgen@8806
  1692
jorgen@8806
  1693
/* GL_NV_texture_compression_s3tc_update */
jorgen@8806
  1694
#ifndef GL_NV_texture_compression_s3tc_update
jorgen@8806
  1695
#define GL_NV_texture_compression_s3tc_update 1
jorgen@8806
  1696
#endif
jorgen@8806
  1697
jorgen@8806
  1698
/* GL_NV_texture_npot_2D_mipmap */
jorgen@8806
  1699
#ifndef GL_NV_texture_npot_2D_mipmap
jorgen@8806
  1700
#define GL_NV_texture_npot_2D_mipmap 1
jorgen@8806
  1701
#endif
jorgen@8806
  1702
jorgen@8806
  1703
/*------------------------------------------------------------------------*
jorgen@8806
  1704
 * QCOM extension functions
jorgen@8806
  1705
 *------------------------------------------------------------------------*/
jorgen@8806
  1706
jorgen@8806
  1707
/* GL_QCOM_alpha_test */
jorgen@8806
  1708
#ifndef GL_QCOM_alpha_test
jorgen@8806
  1709
#define GL_QCOM_alpha_test 1
jorgen@8806
  1710
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1711
GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
jorgen@8806
  1712
#endif
jorgen@8806
  1713
typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
jorgen@8806
  1714
#endif
jorgen@8806
  1715
jorgen@8806
  1716
/* GL_QCOM_binning_control */
jorgen@8806
  1717
#ifndef GL_QCOM_binning_control
jorgen@8806
  1718
#define GL_QCOM_binning_control 1
jorgen@8806
  1719
#endif
jorgen@8806
  1720
jorgen@8806
  1721
/* GL_QCOM_driver_control */
jorgen@8806
  1722
#ifndef GL_QCOM_driver_control
jorgen@8806
  1723
#define GL_QCOM_driver_control 1
jorgen@8806
  1724
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1725
GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);
jorgen@8806
  1726
GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
jorgen@8806
  1727
GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl);
jorgen@8806
  1728
GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl);
jorgen@8806
  1729
#endif
jorgen@8806
  1730
typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei size, GLuint *driverControls);
jorgen@8806
  1731
typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei *length, GLchar *driverControlString);
jorgen@8806
  1732
typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
jorgen@8806
  1733
typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
jorgen@8806
  1734
#endif
jorgen@8806
  1735
jorgen@8806
  1736
/* GL_QCOM_extended_get */
jorgen@8806
  1737
#ifndef GL_QCOM_extended_get
jorgen@8806
  1738
#define GL_QCOM_extended_get 1
jorgen@8806
  1739
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1740
GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTextures, GLint *numTextures);
jorgen@8806
  1741
GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
jorgen@8806
  1742
GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
jorgen@8806
  1743
GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
jorgen@8806
  1744
GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
jorgen@8806
  1745
GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLenum pname, GLint param);
jorgen@8806
  1746
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);
jorgen@8806
  1747
GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, GLvoid **params);
jorgen@8806
  1748
#endif
jorgen@8806
  1749
typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint maxTextures, GLint *numTextures);
jorgen@8806
  1750
typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint maxBuffers, GLint *numBuffers);
jorgen@8806
  1751
typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuffers, GLint maxRenderbuffers, GLint *numRenderbuffers);
jorgen@8806
  1752
typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffers, GLint maxFramebuffers, GLint *numFramebuffers);
jorgen@8806
  1753
typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint *params);
jorgen@8806
  1754
typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
jorgen@8806
  1755
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);
jorgen@8806
  1756
typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GLvoid **params);
jorgen@8806
  1757
#endif
jorgen@8806
  1758
jorgen@8806
  1759
/* GL_QCOM_extended_get2 */
jorgen@8806
  1760
#ifndef GL_QCOM_extended_get2
jorgen@8806
  1761
#define GL_QCOM_extended_get2 1
jorgen@8806
  1762
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1763
GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShaders, GLint *numShaders);
jorgen@8806
  1764
GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
jorgen@8806
  1765
GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program);
jorgen@8806
  1766
GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
jorgen@8806
  1767
#endif
jorgen@8806
  1768
typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint maxShaders, GLint *numShaders);
jorgen@8806
  1769
typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint maxPrograms, GLint *numPrograms);
jorgen@8806
  1770
typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
jorgen@8806
  1771
typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, GLchar *source, GLint *length);
jorgen@8806
  1772
#endif
jorgen@8806
  1773
jorgen@8806
  1774
/* GL_QCOM_perfmon_global_mode */
jorgen@8806
  1775
#ifndef GL_QCOM_perfmon_global_mode
jorgen@8806
  1776
#define GL_QCOM_perfmon_global_mode 1
jorgen@8806
  1777
#endif
jorgen@8806
  1778
jorgen@8806
  1779
/* GL_QCOM_writeonly_rendering */
jorgen@8806
  1780
#ifndef GL_QCOM_writeonly_rendering
jorgen@8806
  1781
#define GL_QCOM_writeonly_rendering 1
jorgen@8806
  1782
#endif
jorgen@8806
  1783
jorgen@8806
  1784
/* GL_QCOM_tiled_rendering */
jorgen@8806
  1785
#ifndef GL_QCOM_tiled_rendering
jorgen@8806
  1786
#define GL_QCOM_tiled_rendering 1
jorgen@8806
  1787
#ifdef GL_GLEXT_PROTOTYPES
jorgen@8806
  1788
GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
jorgen@8806
  1789
GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask);
jorgen@8806
  1790
#endif
jorgen@8806
  1791
typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
jorgen@8806
  1792
typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
jorgen@8806
  1793
#endif
jorgen@8806
  1794
jorgen@8806
  1795
/*------------------------------------------------------------------------*
jorgen@8806
  1796
 * VIV extension tokens
jorgen@8806
  1797
 *------------------------------------------------------------------------*/
jorgen@8806
  1798
jorgen@8806
  1799
/* GL_VIV_shader_binary */
jorgen@8806
  1800
#ifndef GL_VIV_shader_binary
jorgen@8806
  1801
#define GL_VIV_shader_binary 1
jorgen@8806
  1802
#endif
jorgen@8806
  1803
jorgen@8806
  1804
#ifdef __cplusplus
jorgen@8806
  1805
}
jorgen@8806
  1806
#endif
jorgen@8806
  1807
jorgen@8806
  1808
#endif /* __gl2ext_h_ */
jorgen@8806
  1809