include/SDL_opengles2_gl2ext.h
author David Ludwig <dludwig@pobox.com>
Sat, 29 Nov 2014 10:09:30 -0500
changeset 9247 eddb899239fe
parent 8808 da1e1d6e84c4
permissions -rw-r--r--
WinRT: bug and data-integrity fixes for SDL_GetPrefPath()

This change does a few things, all with regards to the WinRT implementation of
SDL_GetPrefPath():

1. it fixes a bug whereby SDL_GetPrefPath() did not create the directory it
returned. On other SDL platforms, SDL_GetPrefPath() will create separate
directories for its 'org' and 'app' folders. Without this, attempts to create
files in the pref-path would fail, unless those directories were first created
by the app, or by some other library the app used. This change makes sure
that these directories get created, before SDL_GetPrefPath() returns to its
caller(s).


2. it defaults to having SDL_GetPrefPath() return a WinRT 'Local' folder
on all platforms. Previously, for Windows Store apps, it would have used a
different, 'Roaming' folder. Files in Roaming folders can be automatically,
and synchronized across multiple devices by Windows. This synchronization can
happen while the app runs, with new files being copied into a running app's
pref-path. Unless an app is specifically designed to handle this scenario,
there is a chance that save-data could be overwritten in unwanted or
unexpected ways.

The default is now to use a Local folder, which does not get synchronized, and
which is arguably a bit safer to use. Apps that wish to use Roaming folders
can do so by setting SDL_HINT_WINRT_PREF_PATH_ROOT to "roaming", however it
is recommended that one first read Microsoft's documentation for Roaming
files, a link to which is provided in README-winrt.md.

To preserve older pref-path selection behavior (found in SDL 2.0.3, as well as
many pre-2.0.4 versions of SDL from hg.libsdl.org), which uses a Roaming path
in Windows Store apps, and a Local path in Windows Phone, set
SDL_HINT_WINRT_PREF_PATH_ROOT to "old".

Please note that Roaming paths are not supported on Windows Phone 8.0, due to
limitations in the OS itself. Attempts to use this will fail.
(Windows Phone 8.1 does not have this limitation, however.)


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