include/SDL_opengles2.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 02 Feb 2014 00:53:27 -0800
changeset 8149 681eb46b8ac4
parent 8021 f96e12e0ade9
child 8583 fb2933ca805f
permissions -rw-r--r--
Fixed bug 2374 - Update copyright for 2014...

Is it that time already??
slouken@5204
     1
/*
slouken@5535
     2
  Simple DirectMedia Layer
slouken@8149
     3
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
slouken@5204
     4
slouken@5535
     5
  This software is provided 'as-is', without any express or implied
slouken@5535
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@5535
     7
  arising from the use of this software.
slouken@5204
     8
slouken@5535
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@5535
    10
  including commercial applications, and to alter it and redistribute it
slouken@5535
    11
  freely, subject to the following restrictions:
slouken@5204
    12
slouken@5535
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@5535
    14
     claim that you wrote the original software. If you use this software
slouken@5535
    15
     in a product, an acknowledgment in the product documentation would be
slouken@5535
    16
     appreciated but is not required.
slouken@5535
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@5535
    18
     misrepresented as being the original software.
slouken@5535
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@5204
    20
*/
slouken@5204
    21
slouken@5204
    22
/**
slouken@5204
    23
 *  \file SDL_opengles.h
slouken@7191
    24
 *
slouken@5204
    25
 *  This is a simple file to encapsulate the OpenGL ES 2.0 API headers.
slouken@5204
    26
 */
gabomdq@8021
    27
#ifndef _MSC_VER
slouken@5204
    28
#ifdef __IPHONEOS__
slouken@5204
    29
#include <OpenGLES/ES2/gl.h>
slouken@5204
    30
#include <OpenGLES/ES2/glext.h>
slouken@5204
    31
#else
slouken@5204
    32
#include <GLES2/gl2.h>
slouken@5204
    33
#include <GLES2/gl2ext.h>
slouken@5204
    34
#endif
slouken@5204
    35
gabomdq@8021
    36
#else /* _MSC_VER */
gabomdq@8021
    37
gabomdq@8021
    38
/* OpenGL ES2 headers for Visual Studio */
gabomdq@8021
    39
gabomdq@8021
    40
#ifndef __khrplatform_h_
gabomdq@8021
    41
#define __khrplatform_h_
gabomdq@8021
    42
gabomdq@8021
    43
/*
gabomdq@8021
    44
** Copyright (c) 2008-2009 The Khronos Group Inc.
gabomdq@8021
    45
**
gabomdq@8021
    46
** Permission is hereby granted, free of charge, to any person obtaining a
gabomdq@8021
    47
** copy of this software and/or associated documentation files (the
gabomdq@8021
    48
** "Materials"), to deal in the Materials without restriction, including
gabomdq@8021
    49
** without limitation the rights to use, copy, modify, merge, publish,
gabomdq@8021
    50
** distribute, sublicense, and/or sell copies of the Materials, and to
gabomdq@8021
    51
** permit persons to whom the Materials are furnished to do so, subject to
gabomdq@8021
    52
** the following conditions:
gabomdq@8021
    53
**
gabomdq@8021
    54
** The above copyright notice and this permission notice shall be included
gabomdq@8021
    55
** in all copies or substantial portions of the Materials.
gabomdq@8021
    56
**
gabomdq@8021
    57
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
gabomdq@8021
    58
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
gabomdq@8021
    59
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
gabomdq@8021
    60
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
gabomdq@8021
    61
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
gabomdq@8021
    62
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
gabomdq@8021
    63
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
gabomdq@8021
    64
*/
gabomdq@8021
    65
gabomdq@8021
    66
/* Khronos platform-specific types and definitions.
gabomdq@8021
    67
*
gabomdq@8021
    68
* $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $
gabomdq@8021
    69
*
gabomdq@8021
    70
* Adopters may modify this file to suit their platform. Adopters are
gabomdq@8021
    71
* encouraged to submit platform specific modifications to the Khronos
gabomdq@8021
    72
* group so that they can be included in future versions of this file.
gabomdq@8021
    73
* Please submit changes by sending them to the public Khronos Bugzilla
gabomdq@8021
    74
* (http://khronos.org/bugzilla) by filing a bug against product
gabomdq@8021
    75
* "Khronos (general)" component "Registry".
gabomdq@8021
    76
*
gabomdq@8021
    77
* A predefined template which fills in some of the bug fields can be
gabomdq@8021
    78
* reached using http://tinyurl.com/khrplatform-h-bugreport, but you
gabomdq@8021
    79
* must create a Bugzilla login first.
gabomdq@8021
    80
*
gabomdq@8021
    81
*
gabomdq@8021
    82
* See the Implementer's Guidelines for information about where this file
gabomdq@8021
    83
* should be located on your system and for more details of its use:
gabomdq@8021
    84
*    http://www.khronos.org/registry/implementers_guide.pdf
gabomdq@8021
    85
*
gabomdq@8021
    86
* This file should be included as
gabomdq@8021
    87
*        #include <KHR/khrplatform.h>
gabomdq@8021
    88
* by Khronos client API header files that use its types and defines.
gabomdq@8021
    89
*
gabomdq@8021
    90
* The types in khrplatform.h should only be used to define API-specific types.
gabomdq@8021
    91
*
gabomdq@8021
    92
* Types defined in khrplatform.h:
gabomdq@8021
    93
*    khronos_int8_t              signed   8  bit
gabomdq@8021
    94
*    khronos_uint8_t             unsigned 8  bit
gabomdq@8021
    95
*    khronos_int16_t             signed   16 bit
gabomdq@8021
    96
*    khronos_uint16_t            unsigned 16 bit
gabomdq@8021
    97
*    khronos_int32_t             signed   32 bit
gabomdq@8021
    98
*    khronos_uint32_t            unsigned 32 bit
gabomdq@8021
    99
*    khronos_int64_t             signed   64 bit
gabomdq@8021
   100
*    khronos_uint64_t            unsigned 64 bit
gabomdq@8021
   101
*    khronos_intptr_t            signed   same number of bits as a pointer
gabomdq@8021
   102
*    khronos_uintptr_t           unsigned same number of bits as a pointer
gabomdq@8021
   103
*    khronos_ssize_t             signed   size
gabomdq@8021
   104
*    khronos_usize_t             unsigned size
gabomdq@8021
   105
*    khronos_float_t             signed   32 bit floating point
gabomdq@8021
   106
*    khronos_time_ns_t           unsigned 64 bit time in nanoseconds
gabomdq@8021
   107
*    khronos_utime_nanoseconds_t unsigned time interval or absolute time in
gabomdq@8021
   108
*                                         nanoseconds
gabomdq@8021
   109
*    khronos_stime_nanoseconds_t signed time interval in nanoseconds
gabomdq@8021
   110
*    khronos_boolean_enum_t      enumerated boolean type. This should
gabomdq@8021
   111
*      only be used as a base type when a client API's boolean type is
gabomdq@8021
   112
*      an enum. Client APIs which use an integer or other type for
gabomdq@8021
   113
*      booleans cannot use this as the base type for their boolean.
gabomdq@8021
   114
*
gabomdq@8021
   115
* Tokens defined in khrplatform.h:
gabomdq@8021
   116
*
gabomdq@8021
   117
*    KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
gabomdq@8021
   118
*
gabomdq@8021
   119
*    KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
gabomdq@8021
   120
*    KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
gabomdq@8021
   121
*
gabomdq@8021
   122
* Calling convention macros defined in this file:
gabomdq@8021
   123
*    KHRONOS_APICALL
gabomdq@8021
   124
*    KHRONOS_APIENTRY
gabomdq@8021
   125
*    KHRONOS_APIATTRIBUTES
gabomdq@8021
   126
*
gabomdq@8021
   127
* These may be used in function prototypes as:
gabomdq@8021
   128
*
gabomdq@8021
   129
*      KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
gabomdq@8021
   130
*                                  int arg1,
gabomdq@8021
   131
*                                  int arg2) KHRONOS_APIATTRIBUTES;
gabomdq@8021
   132
*/
gabomdq@8021
   133
gabomdq@8021
   134
/*-------------------------------------------------------------------------
gabomdq@8021
   135
* Definition of KHRONOS_APICALL
gabomdq@8021
   136
*-------------------------------------------------------------------------
gabomdq@8021
   137
* This precedes the return type of the function in the function prototype.
gabomdq@8021
   138
*/
gabomdq@8021
   139
#if defined(_WIN32) && !defined(__SCITECH_SNAP__)
gabomdq@8021
   140
#   define KHRONOS_APICALL __declspec(dllimport)
gabomdq@8021
   141
#elif defined (__SYMBIAN32__)
gabomdq@8021
   142
#   define KHRONOS_APICALL IMPORT_C
gabomdq@8021
   143
#else
gabomdq@8021
   144
#   define KHRONOS_APICALL
gabomdq@8021
   145
#endif
gabomdq@8021
   146
gabomdq@8021
   147
/*-------------------------------------------------------------------------
gabomdq@8021
   148
* Definition of KHRONOS_APIENTRY
gabomdq@8021
   149
*-------------------------------------------------------------------------
gabomdq@8021
   150
* This follows the return type of the function  and precedes the function
gabomdq@8021
   151
* name in the function prototype.
gabomdq@8021
   152
*/
gabomdq@8021
   153
#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
gabomdq@8021
   154
/* Win32 but not WinCE */
gabomdq@8021
   155
#   define KHRONOS_APIENTRY __stdcall
gabomdq@8021
   156
#else
gabomdq@8021
   157
#   define KHRONOS_APIENTRY
gabomdq@8021
   158
#endif
gabomdq@8021
   159
gabomdq@8021
   160
/*-------------------------------------------------------------------------
gabomdq@8021
   161
* Definition of KHRONOS_APIATTRIBUTES
gabomdq@8021
   162
*-------------------------------------------------------------------------
gabomdq@8021
   163
* This follows the closing parenthesis of the function prototype arguments.
gabomdq@8021
   164
*/
gabomdq@8021
   165
#if defined (__ARMCC_2__)
gabomdq@8021
   166
#define KHRONOS_APIATTRIBUTES __softfp
gabomdq@8021
   167
#else
gabomdq@8021
   168
#define KHRONOS_APIATTRIBUTES
gabomdq@8021
   169
#endif
gabomdq@8021
   170
gabomdq@8021
   171
/*-------------------------------------------------------------------------
gabomdq@8021
   172
* basic type definitions
gabomdq@8021
   173
*-----------------------------------------------------------------------*/
gabomdq@8021
   174
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
gabomdq@8021
   175
gabomdq@8021
   176
gabomdq@8021
   177
/*
gabomdq@8021
   178
* Using <stdint.h>
gabomdq@8021
   179
*/
gabomdq@8021
   180
#include <stdint.h>
gabomdq@8021
   181
typedef int32_t                 khronos_int32_t;
gabomdq@8021
   182
typedef uint32_t                khronos_uint32_t;
gabomdq@8021
   183
typedef int64_t                 khronos_int64_t;
gabomdq@8021
   184
typedef uint64_t                khronos_uint64_t;
gabomdq@8021
   185
#define KHRONOS_SUPPORT_INT64   1
gabomdq@8021
   186
#define KHRONOS_SUPPORT_FLOAT   1
gabomdq@8021
   187
gabomdq@8021
   188
#elif defined(__VMS ) || defined(__sgi)
gabomdq@8021
   189
gabomdq@8021
   190
/*
gabomdq@8021
   191
* Using <inttypes.h>
gabomdq@8021
   192
*/
gabomdq@8021
   193
#include <inttypes.h>
gabomdq@8021
   194
typedef int32_t                 khronos_int32_t;
gabomdq@8021
   195
typedef uint32_t                khronos_uint32_t;
gabomdq@8021
   196
typedef int64_t                 khronos_int64_t;
gabomdq@8021
   197
typedef uint64_t                khronos_uint64_t;
gabomdq@8021
   198
#define KHRONOS_SUPPORT_INT64   1
gabomdq@8021
   199
#define KHRONOS_SUPPORT_FLOAT   1
gabomdq@8021
   200
gabomdq@8021
   201
#elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
gabomdq@8021
   202
gabomdq@8021
   203
/*
gabomdq@8021
   204
* Win32
gabomdq@8021
   205
*/
gabomdq@8021
   206
typedef __int32                 khronos_int32_t;
gabomdq@8021
   207
typedef unsigned __int32        khronos_uint32_t;
gabomdq@8021
   208
typedef __int64                 khronos_int64_t;
gabomdq@8021
   209
typedef unsigned __int64        khronos_uint64_t;
gabomdq@8021
   210
#define KHRONOS_SUPPORT_INT64   1
gabomdq@8021
   211
#define KHRONOS_SUPPORT_FLOAT   1
gabomdq@8021
   212
gabomdq@8021
   213
#elif defined(__sun__) || defined(__digital__)
gabomdq@8021
   214
gabomdq@8021
   215
/*
gabomdq@8021
   216
* Sun or Digital
gabomdq@8021
   217
*/
gabomdq@8021
   218
typedef int                     khronos_int32_t;
gabomdq@8021
   219
typedef unsigned int            khronos_uint32_t;
gabomdq@8021
   220
#if defined(__arch64__) || defined(_LP64)
gabomdq@8021
   221
typedef long int                khronos_int64_t;
gabomdq@8021
   222
typedef unsigned long int       khronos_uint64_t;
gabomdq@8021
   223
#else
gabomdq@8021
   224
typedef long long int           khronos_int64_t;
gabomdq@8021
   225
typedef unsigned long long int  khronos_uint64_t;
gabomdq@8021
   226
#endif /* __arch64__ */
gabomdq@8021
   227
#define KHRONOS_SUPPORT_INT64   1
gabomdq@8021
   228
#define KHRONOS_SUPPORT_FLOAT   1
gabomdq@8021
   229
gabomdq@8021
   230
#elif 0
gabomdq@8021
   231
gabomdq@8021
   232
/*
gabomdq@8021
   233
* Hypothetical platform with no float or int64 support
gabomdq@8021
   234
*/
gabomdq@8021
   235
typedef int                     khronos_int32_t;
gabomdq@8021
   236
typedef unsigned int            khronos_uint32_t;
gabomdq@8021
   237
#define KHRONOS_SUPPORT_INT64   0
gabomdq@8021
   238
#define KHRONOS_SUPPORT_FLOAT   0
gabomdq@8021
   239
gabomdq@8021
   240
#else
gabomdq@8021
   241
gabomdq@8021
   242
/*
gabomdq@8021
   243
* Generic fallback
gabomdq@8021
   244
*/
gabomdq@8021
   245
#include <stdint.h>
gabomdq@8021
   246
typedef int32_t                 khronos_int32_t;
gabomdq@8021
   247
typedef uint32_t                khronos_uint32_t;
gabomdq@8021
   248
typedef int64_t                 khronos_int64_t;
gabomdq@8021
   249
typedef uint64_t                khronos_uint64_t;
gabomdq@8021
   250
#define KHRONOS_SUPPORT_INT64   1
gabomdq@8021
   251
#define KHRONOS_SUPPORT_FLOAT   1
gabomdq@8021
   252
gabomdq@8021
   253
#endif
gabomdq@8021
   254
gabomdq@8021
   255
gabomdq@8021
   256
/*
gabomdq@8021
   257
* Types that are (so far) the same on all platforms
gabomdq@8021
   258
*/
gabomdq@8021
   259
typedef signed   char          khronos_int8_t;
gabomdq@8021
   260
typedef unsigned char          khronos_uint8_t;
gabomdq@8021
   261
typedef signed   short int     khronos_int16_t;
gabomdq@8021
   262
typedef unsigned short int     khronos_uint16_t;
gabomdq@8021
   263
gabomdq@8021
   264
/*
gabomdq@8021
   265
* Types that differ between LLP64 and LP64 architectures - in LLP64,
gabomdq@8021
   266
* pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
gabomdq@8021
   267
* to be the only LLP64 architecture in current use.
gabomdq@8021
   268
*/
gabomdq@8021
   269
#ifdef _WIN64
gabomdq@8021
   270
typedef signed   long long int khronos_intptr_t;
gabomdq@8021
   271
typedef unsigned long long int khronos_uintptr_t;
gabomdq@8021
   272
typedef signed   long long int khronos_ssize_t;
gabomdq@8021
   273
typedef unsigned long long int khronos_usize_t;
gabomdq@8021
   274
#else
gabomdq@8021
   275
typedef signed   long  int     khronos_intptr_t;
gabomdq@8021
   276
typedef unsigned long  int     khronos_uintptr_t;
gabomdq@8021
   277
typedef signed   long  int     khronos_ssize_t;
gabomdq@8021
   278
typedef unsigned long  int     khronos_usize_t;
gabomdq@8021
   279
#endif
gabomdq@8021
   280
gabomdq@8021
   281
#if KHRONOS_SUPPORT_FLOAT
gabomdq@8021
   282
/*
gabomdq@8021
   283
* Float type
gabomdq@8021
   284
*/
gabomdq@8021
   285
typedef          float         khronos_float_t;
gabomdq@8021
   286
#endif
gabomdq@8021
   287
gabomdq@8021
   288
#if KHRONOS_SUPPORT_INT64
gabomdq@8021
   289
/* Time types
gabomdq@8021
   290
*
gabomdq@8021
   291
* These types can be used to represent a time interval in nanoseconds or
gabomdq@8021
   292
* an absolute Unadjusted System Time.  Unadjusted System Time is the number
gabomdq@8021
   293
* of nanoseconds since some arbitrary system event (e.g. since the last
gabomdq@8021
   294
* time the system booted).  The Unadjusted System Time is an unsigned
gabomdq@8021
   295
* 64 bit value that wraps back to 0 every 584 years.  Time intervals
gabomdq@8021
   296
* may be either signed or unsigned.
gabomdq@8021
   297
*/
gabomdq@8021
   298
typedef khronos_uint64_t       khronos_utime_nanoseconds_t;
gabomdq@8021
   299
typedef khronos_int64_t        khronos_stime_nanoseconds_t;
gabomdq@8021
   300
#endif
gabomdq@8021
   301
gabomdq@8021
   302
/*
gabomdq@8021
   303
* Dummy value used to pad enum types to 32 bits.
gabomdq@8021
   304
*/
gabomdq@8021
   305
#ifndef KHRONOS_MAX_ENUM
gabomdq@8021
   306
#define KHRONOS_MAX_ENUM 0x7FFFFFFF
gabomdq@8021
   307
#endif
gabomdq@8021
   308
gabomdq@8021
   309
/*
gabomdq@8021
   310
* Enumerated boolean type
gabomdq@8021
   311
*
gabomdq@8021
   312
* Values other than zero should be considered to be true.  Therefore
gabomdq@8021
   313
* comparisons should not be made against KHRONOS_TRUE.
gabomdq@8021
   314
*/
gabomdq@8021
   315
typedef enum {
gabomdq@8021
   316
    KHRONOS_FALSE = 0,
gabomdq@8021
   317
    KHRONOS_TRUE = 1,
gabomdq@8021
   318
    KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
gabomdq@8021
   319
} khronos_boolean_enum_t;
gabomdq@8021
   320
gabomdq@8021
   321
#endif /* __khrplatform_h_ */
gabomdq@8021
   322
gabomdq@8021
   323
gabomdq@8021
   324
#ifndef __gl2platform_h_
gabomdq@8021
   325
#define __gl2platform_h_
gabomdq@8021
   326
gabomdq@8021
   327
/* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */
gabomdq@8021
   328
gabomdq@8021
   329
/*
gabomdq@8021
   330
 * This document is licensed under the SGI Free Software B License Version
gabomdq@8021
   331
 * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
gabomdq@8021
   332
 */
gabomdq@8021
   333
gabomdq@8021
   334
/* Platform-specific types and definitions for OpenGL ES 2.X  gl2.h
gabomdq@8021
   335
 *
gabomdq@8021
   336
 * Adopters may modify khrplatform.h and this file to suit their platform.
gabomdq@8021
   337
 * You are encouraged to submit all modifications to the Khronos group so that
gabomdq@8021
   338
 * they can be included in future versions of this file.  Please submit changes
gabomdq@8021
   339
 * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
gabomdq@8021
   340
 * by filing a bug against product "OpenGL-ES" component "Registry".
gabomdq@8021
   341
 */
gabomdq@8021
   342
gabomdq@8021
   343
/*#include <KHR/khrplatform.h>*/
gabomdq@8021
   344
gabomdq@8021
   345
#ifndef GL_APICALL
gabomdq@8021
   346
#define GL_APICALL  KHRONOS_APICALL
gabomdq@8021
   347
#endif
gabomdq@8021
   348
gabomdq@8021
   349
#ifndef GL_APIENTRY
gabomdq@8021
   350
#define GL_APIENTRY KHRONOS_APIENTRY
gabomdq@8021
   351
#endif
gabomdq@8021
   352
gabomdq@8021
   353
#endif /* __gl2platform_h_ */
gabomdq@8021
   354
gabomdq@8021
   355
#ifndef __gl2_h_
gabomdq@8021
   356
#define __gl2_h_
gabomdq@8021
   357
gabomdq@8021
   358
/* $Revision: 16803 $ on $Date:: 2012-02-02 09:49:18 -0800 #$ */
gabomdq@8021
   359
gabomdq@8021
   360
/*#include <GLES2/gl2platform.h>*/
gabomdq@8021
   361
gabomdq@8021
   362
#ifdef __cplusplus
gabomdq@8021
   363
extern "C" {
gabomdq@8021
   364
#endif
gabomdq@8021
   365
gabomdq@8021
   366
/*
gabomdq@8021
   367
 * This document is licensed under the SGI Free Software B License Version
gabomdq@8021
   368
 * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
gabomdq@8021
   369
 */
gabomdq@8021
   370
gabomdq@8021
   371
/*-------------------------------------------------------------------------
gabomdq@8021
   372
 * Data type definitions
gabomdq@8021
   373
 *-----------------------------------------------------------------------*/
gabomdq@8021
   374
gabomdq@8021
   375
typedef void             GLvoid;
gabomdq@8021
   376
typedef char             GLchar;
gabomdq@8021
   377
typedef unsigned int     GLenum;
gabomdq@8021
   378
typedef unsigned char    GLboolean;
gabomdq@8021
   379
typedef unsigned int     GLbitfield;
gabomdq@8021
   380
typedef khronos_int8_t   GLbyte;
gabomdq@8021
   381
typedef short            GLshort;
gabomdq@8021
   382
typedef int              GLint;
gabomdq@8021
   383
typedef int              GLsizei;
gabomdq@8021
   384
typedef khronos_uint8_t  GLubyte;
gabomdq@8021
   385
typedef unsigned short   GLushort;
gabomdq@8021
   386
typedef unsigned int     GLuint;
gabomdq@8021
   387
typedef khronos_float_t  GLfloat;
gabomdq@8021
   388
typedef khronos_float_t  GLclampf;
gabomdq@8021
   389
typedef khronos_int32_t  GLfixed;
gabomdq@8021
   390
gabomdq@8021
   391
/* GL types for handling large vertex buffer objects */
gabomdq@8021
   392
typedef khronos_intptr_t GLintptr;
gabomdq@8021
   393
typedef khronos_ssize_t  GLsizeiptr;
gabomdq@8021
   394
gabomdq@8021
   395
/* OpenGL ES core versions */
gabomdq@8021
   396
#define GL_ES_VERSION_2_0                 1
gabomdq@8021
   397
gabomdq@8021
   398
/* ClearBufferMask */
gabomdq@8021
   399
#define GL_DEPTH_BUFFER_BIT               0x00000100
gabomdq@8021
   400
#define GL_STENCIL_BUFFER_BIT             0x00000400
gabomdq@8021
   401
#define GL_COLOR_BUFFER_BIT               0x00004000
gabomdq@8021
   402
gabomdq@8021
   403
/* Boolean */
gabomdq@8021
   404
#define GL_FALSE                          0
gabomdq@8021
   405
#define GL_TRUE                           1
gabomdq@8021
   406
gabomdq@8021
   407
/* BeginMode */
gabomdq@8021
   408
#define GL_POINTS                         0x0000
gabomdq@8021
   409
#define GL_LINES                          0x0001
gabomdq@8021
   410
#define GL_LINE_LOOP                      0x0002
gabomdq@8021
   411
#define GL_LINE_STRIP                     0x0003
gabomdq@8021
   412
#define GL_TRIANGLES                      0x0004
gabomdq@8021
   413
#define GL_TRIANGLE_STRIP                 0x0005
gabomdq@8021
   414
#define GL_TRIANGLE_FAN                   0x0006
gabomdq@8021
   415
gabomdq@8021
   416
/* AlphaFunction (not supported in ES20) */
gabomdq@8021
   417
/*      GL_NEVER */
gabomdq@8021
   418
/*      GL_LESS */
gabomdq@8021
   419
/*      GL_EQUAL */
gabomdq@8021
   420
/*      GL_LEQUAL */
gabomdq@8021
   421
/*      GL_GREATER */
gabomdq@8021
   422
/*      GL_NOTEQUAL */
gabomdq@8021
   423
/*      GL_GEQUAL */
gabomdq@8021
   424
/*      GL_ALWAYS */
gabomdq@8021
   425
gabomdq@8021
   426
/* BlendingFactorDest */
gabomdq@8021
   427
#define GL_ZERO                           0
gabomdq@8021
   428
#define GL_ONE                            1
gabomdq@8021
   429
#define GL_SRC_COLOR                      0x0300
gabomdq@8021
   430
#define GL_ONE_MINUS_SRC_COLOR            0x0301
gabomdq@8021
   431
#define GL_SRC_ALPHA                      0x0302
gabomdq@8021
   432
#define GL_ONE_MINUS_SRC_ALPHA            0x0303
gabomdq@8021
   433
#define GL_DST_ALPHA                      0x0304
gabomdq@8021
   434
#define GL_ONE_MINUS_DST_ALPHA            0x0305
gabomdq@8021
   435
gabomdq@8021
   436
/* BlendingFactorSrc */
gabomdq@8021
   437
/*      GL_ZERO */
gabomdq@8021
   438
/*      GL_ONE */
gabomdq@8021
   439
#define GL_DST_COLOR                      0x0306
gabomdq@8021
   440
#define GL_ONE_MINUS_DST_COLOR            0x0307
gabomdq@8021
   441
#define GL_SRC_ALPHA_SATURATE             0x0308
gabomdq@8021
   442
/*      GL_SRC_ALPHA */
gabomdq@8021
   443
/*      GL_ONE_MINUS_SRC_ALPHA */
gabomdq@8021
   444
/*      GL_DST_ALPHA */
gabomdq@8021
   445
/*      GL_ONE_MINUS_DST_ALPHA */
gabomdq@8021
   446
gabomdq@8021
   447
/* BlendEquationSeparate */
gabomdq@8021
   448
#define GL_FUNC_ADD                       0x8006
gabomdq@8021
   449
#define GL_BLEND_EQUATION                 0x8009
gabomdq@8021
   450
#define GL_BLEND_EQUATION_RGB             0x8009    /* same as BLEND_EQUATION */
gabomdq@8021
   451
#define GL_BLEND_EQUATION_ALPHA           0x883D
gabomdq@8021
   452
gabomdq@8021
   453
/* BlendSubtract */
gabomdq@8021
   454
#define GL_FUNC_SUBTRACT                  0x800A
gabomdq@8021
   455
#define GL_FUNC_REVERSE_SUBTRACT          0x800B
gabomdq@8021
   456
gabomdq@8021
   457
/* Separate Blend Functions */
gabomdq@8021
   458
#define GL_BLEND_DST_RGB                  0x80C8
gabomdq@8021
   459
#define GL_BLEND_SRC_RGB                  0x80C9
gabomdq@8021
   460
#define GL_BLEND_DST_ALPHA                0x80CA
gabomdq@8021
   461
#define GL_BLEND_SRC_ALPHA                0x80CB
gabomdq@8021
   462
#define GL_CONSTANT_COLOR                 0x8001
gabomdq@8021
   463
#define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
gabomdq@8021
   464
#define GL_CONSTANT_ALPHA                 0x8003
gabomdq@8021
   465
#define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
gabomdq@8021
   466
#define GL_BLEND_COLOR                    0x8005
gabomdq@8021
   467
gabomdq@8021
   468
/* Buffer Objects */
gabomdq@8021
   469
#define GL_ARRAY_BUFFER                   0x8892
gabomdq@8021
   470
#define GL_ELEMENT_ARRAY_BUFFER           0x8893
gabomdq@8021
   471
#define GL_ARRAY_BUFFER_BINDING           0x8894
gabomdq@8021
   472
#define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
gabomdq@8021
   473
gabomdq@8021
   474
#define GL_STREAM_DRAW                    0x88E0
gabomdq@8021
   475
#define GL_STATIC_DRAW                    0x88E4
gabomdq@8021
   476
#define GL_DYNAMIC_DRAW                   0x88E8
gabomdq@8021
   477
gabomdq@8021
   478
#define GL_BUFFER_SIZE                    0x8764
gabomdq@8021
   479
#define GL_BUFFER_USAGE                   0x8765
gabomdq@8021
   480
gabomdq@8021
   481
#define GL_CURRENT_VERTEX_ATTRIB          0x8626
gabomdq@8021
   482
gabomdq@8021
   483
/* CullFaceMode */
gabomdq@8021
   484
#define GL_FRONT                          0x0404
gabomdq@8021
   485
#define GL_BACK                           0x0405
gabomdq@8021
   486
#define GL_FRONT_AND_BACK                 0x0408
gabomdq@8021
   487
gabomdq@8021
   488
/* DepthFunction */
gabomdq@8021
   489
/*      GL_NEVER */
gabomdq@8021
   490
/*      GL_LESS */
gabomdq@8021
   491
/*      GL_EQUAL */
gabomdq@8021
   492
/*      GL_LEQUAL */
gabomdq@8021
   493
/*      GL_GREATER */
gabomdq@8021
   494
/*      GL_NOTEQUAL */
gabomdq@8021
   495
/*      GL_GEQUAL */
gabomdq@8021
   496
/*      GL_ALWAYS */
gabomdq@8021
   497
gabomdq@8021
   498
/* EnableCap */
gabomdq@8021
   499
#define GL_TEXTURE_2D                     0x0DE1
gabomdq@8021
   500
#define GL_CULL_FACE                      0x0B44
gabomdq@8021
   501
#define GL_BLEND                          0x0BE2
gabomdq@8021
   502
#define GL_DITHER                         0x0BD0
gabomdq@8021
   503
#define GL_STENCIL_TEST                   0x0B90
gabomdq@8021
   504
#define GL_DEPTH_TEST                     0x0B71
gabomdq@8021
   505
#define GL_SCISSOR_TEST                   0x0C11
gabomdq@8021
   506
#define GL_POLYGON_OFFSET_FILL            0x8037
gabomdq@8021
   507
#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
gabomdq@8021
   508
#define GL_SAMPLE_COVERAGE                0x80A0
gabomdq@8021
   509
gabomdq@8021
   510
/* ErrorCode */
gabomdq@8021
   511
#define GL_NO_ERROR                       0
gabomdq@8021
   512
#define GL_INVALID_ENUM                   0x0500
gabomdq@8021
   513
#define GL_INVALID_VALUE                  0x0501
gabomdq@8021
   514
#define GL_INVALID_OPERATION              0x0502
gabomdq@8021
   515
#define GL_OUT_OF_MEMORY                  0x0505
gabomdq@8021
   516
gabomdq@8021
   517
/* FrontFaceDirection */
gabomdq@8021
   518
#define GL_CW                             0x0900
gabomdq@8021
   519
#define GL_CCW                            0x0901
gabomdq@8021
   520
gabomdq@8021
   521
/* GetPName */
gabomdq@8021
   522
#define GL_LINE_WIDTH                     0x0B21
gabomdq@8021
   523
#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
gabomdq@8021
   524
#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
gabomdq@8021
   525
#define GL_CULL_FACE_MODE                 0x0B45
gabomdq@8021
   526
#define GL_FRONT_FACE                     0x0B46
gabomdq@8021
   527
#define GL_DEPTH_RANGE                    0x0B70
gabomdq@8021
   528
#define GL_DEPTH_WRITEMASK                0x0B72
gabomdq@8021
   529
#define GL_DEPTH_CLEAR_VALUE              0x0B73
gabomdq@8021
   530
#define GL_DEPTH_FUNC                     0x0B74
gabomdq@8021
   531
#define GL_STENCIL_CLEAR_VALUE            0x0B91
gabomdq@8021
   532
#define GL_STENCIL_FUNC                   0x0B92
gabomdq@8021
   533
#define GL_STENCIL_FAIL                   0x0B94
gabomdq@8021
   534
#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
gabomdq@8021
   535
#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
gabomdq@8021
   536
#define GL_STENCIL_REF                    0x0B97
gabomdq@8021
   537
#define GL_STENCIL_VALUE_MASK             0x0B93
gabomdq@8021
   538
#define GL_STENCIL_WRITEMASK              0x0B98
gabomdq@8021
   539
#define GL_STENCIL_BACK_FUNC              0x8800
gabomdq@8021
   540
#define GL_STENCIL_BACK_FAIL              0x8801
gabomdq@8021
   541
#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
gabomdq@8021
   542
#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
gabomdq@8021
   543
#define GL_STENCIL_BACK_REF               0x8CA3
gabomdq@8021
   544
#define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
gabomdq@8021
   545
#define GL_STENCIL_BACK_WRITEMASK         0x8CA5
gabomdq@8021
   546
#define GL_VIEWPORT                       0x0BA2
gabomdq@8021
   547
#define GL_SCISSOR_BOX                    0x0C10
gabomdq@8021
   548
/*      GL_SCISSOR_TEST */
gabomdq@8021
   549
#define GL_COLOR_CLEAR_VALUE              0x0C22
gabomdq@8021
   550
#define GL_COLOR_WRITEMASK                0x0C23
gabomdq@8021
   551
#define GL_UNPACK_ALIGNMENT               0x0CF5
gabomdq@8021
   552
#define GL_PACK_ALIGNMENT                 0x0D05
gabomdq@8021
   553
#define GL_MAX_TEXTURE_SIZE               0x0D33
gabomdq@8021
   554
#define GL_MAX_VIEWPORT_DIMS              0x0D3A
gabomdq@8021
   555
#define GL_SUBPIXEL_BITS                  0x0D50
gabomdq@8021
   556
#define GL_RED_BITS                       0x0D52
gabomdq@8021
   557
#define GL_GREEN_BITS                     0x0D53
gabomdq@8021
   558
#define GL_BLUE_BITS                      0x0D54
gabomdq@8021
   559
#define GL_ALPHA_BITS                     0x0D55
gabomdq@8021
   560
#define GL_DEPTH_BITS                     0x0D56
gabomdq@8021
   561
#define GL_STENCIL_BITS                   0x0D57
gabomdq@8021
   562
#define GL_POLYGON_OFFSET_UNITS           0x2A00
gabomdq@8021
   563
/*      GL_POLYGON_OFFSET_FILL */
gabomdq@8021
   564
#define GL_POLYGON_OFFSET_FACTOR          0x8038
gabomdq@8021
   565
#define GL_TEXTURE_BINDING_2D             0x8069
gabomdq@8021
   566
#define GL_SAMPLE_BUFFERS                 0x80A8
gabomdq@8021
   567
#define GL_SAMPLES                        0x80A9
gabomdq@8021
   568
#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
gabomdq@8021
   569
#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
gabomdq@8021
   570
gabomdq@8021
   571
/* GetTextureParameter */
gabomdq@8021
   572
/*      GL_TEXTURE_MAG_FILTER */
gabomdq@8021
   573
/*      GL_TEXTURE_MIN_FILTER */
gabomdq@8021
   574
/*      GL_TEXTURE_WRAP_S */
gabomdq@8021
   575
/*      GL_TEXTURE_WRAP_T */
gabomdq@8021
   576
gabomdq@8021
   577
#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
gabomdq@8021
   578
#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
gabomdq@8021
   579
gabomdq@8021
   580
/* HintMode */
gabomdq@8021
   581
#define GL_DONT_CARE                      0x1100
gabomdq@8021
   582
#define GL_FASTEST                        0x1101
gabomdq@8021
   583
#define GL_NICEST                         0x1102
gabomdq@8021
   584
gabomdq@8021
   585
/* HintTarget */
gabomdq@8021
   586
#define GL_GENERATE_MIPMAP_HINT            0x8192
gabomdq@8021
   587
gabomdq@8021
   588
/* DataType */
gabomdq@8021
   589
#define GL_BYTE                           0x1400
gabomdq@8021
   590
#define GL_UNSIGNED_BYTE                  0x1401
gabomdq@8021
   591
#define GL_SHORT                          0x1402
gabomdq@8021
   592
#define GL_UNSIGNED_SHORT                 0x1403
gabomdq@8021
   593
#define GL_INT                            0x1404
gabomdq@8021
   594
#define GL_UNSIGNED_INT                   0x1405
gabomdq@8021
   595
#define GL_FLOAT                          0x1406
gabomdq@8021
   596
#define GL_FIXED                          0x140C
gabomdq@8021
   597
gabomdq@8021
   598
/* PixelFormat */
gabomdq@8021
   599
#define GL_DEPTH_COMPONENT                0x1902
gabomdq@8021
   600
#define GL_ALPHA                          0x1906
gabomdq@8021
   601
#define GL_RGB                            0x1907
gabomdq@8021
   602
#define GL_RGBA                           0x1908
gabomdq@8021
   603
#define GL_LUMINANCE                      0x1909
gabomdq@8021
   604
#define GL_LUMINANCE_ALPHA                0x190A
gabomdq@8021
   605
gabomdq@8021
   606
/* PixelType */
gabomdq@8021
   607
/*      GL_UNSIGNED_BYTE */
gabomdq@8021
   608
#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
gabomdq@8021
   609
#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
gabomdq@8021
   610
#define GL_UNSIGNED_SHORT_5_6_5           0x8363
gabomdq@8021
   611
gabomdq@8021
   612
/* Shaders */
gabomdq@8021
   613
#define GL_FRAGMENT_SHADER                  0x8B30
gabomdq@8021
   614
#define GL_VERTEX_SHADER                    0x8B31
gabomdq@8021
   615
#define GL_MAX_VERTEX_ATTRIBS               0x8869
gabomdq@8021
   616
#define GL_MAX_VERTEX_UNIFORM_VECTORS       0x8DFB
gabomdq@8021
   617
#define GL_MAX_VARYING_VECTORS              0x8DFC
gabomdq@8021
   618
#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
gabomdq@8021
   619
#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS   0x8B4C
gabomdq@8021
   620
#define GL_MAX_TEXTURE_IMAGE_UNITS          0x8872
gabomdq@8021
   621
#define GL_MAX_FRAGMENT_UNIFORM_VECTORS     0x8DFD
gabomdq@8021
   622
#define GL_SHADER_TYPE                      0x8B4F
gabomdq@8021
   623
#define GL_DELETE_STATUS                    0x8B80
gabomdq@8021
   624
#define GL_LINK_STATUS                      0x8B82
gabomdq@8021
   625
#define GL_VALIDATE_STATUS                  0x8B83
gabomdq@8021
   626
#define GL_ATTACHED_SHADERS                 0x8B85
gabomdq@8021
   627
#define GL_ACTIVE_UNIFORMS                  0x8B86
gabomdq@8021
   628
#define GL_ACTIVE_UNIFORM_MAX_LENGTH        0x8B87
gabomdq@8021
   629
#define GL_ACTIVE_ATTRIBUTES                0x8B89
gabomdq@8021
   630
#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH      0x8B8A
gabomdq@8021
   631
#define GL_SHADING_LANGUAGE_VERSION         0x8B8C
gabomdq@8021
   632
#define GL_CURRENT_PROGRAM                  0x8B8D
gabomdq@8021
   633
gabomdq@8021
   634
/* StencilFunction */
gabomdq@8021
   635
#define GL_NEVER                          0x0200
gabomdq@8021
   636
#define GL_LESS                           0x0201
gabomdq@8021
   637
#define GL_EQUAL                          0x0202
gabomdq@8021
   638
#define GL_LEQUAL                         0x0203
gabomdq@8021
   639
#define GL_GREATER                        0x0204
gabomdq@8021
   640
#define GL_NOTEQUAL                       0x0205
gabomdq@8021
   641
#define GL_GEQUAL                         0x0206
gabomdq@8021
   642
#define GL_ALWAYS                         0x0207
gabomdq@8021
   643
gabomdq@8021
   644
/* StencilOp */
gabomdq@8021
   645
/*      GL_ZERO */
gabomdq@8021
   646
#define GL_KEEP                           0x1E00
gabomdq@8021
   647
#define GL_REPLACE                        0x1E01
gabomdq@8021
   648
#define GL_INCR                           0x1E02
gabomdq@8021
   649
#define GL_DECR                           0x1E03
gabomdq@8021
   650
#define GL_INVERT                         0x150A
gabomdq@8021
   651
#define GL_INCR_WRAP                      0x8507
gabomdq@8021
   652
#define GL_DECR_WRAP                      0x8508
gabomdq@8021
   653
gabomdq@8021
   654
/* StringName */
gabomdq@8021
   655
#define GL_VENDOR                         0x1F00
gabomdq@8021
   656
#define GL_RENDERER                       0x1F01
gabomdq@8021
   657
#define GL_VERSION                        0x1F02
gabomdq@8021
   658
#define GL_EXTENSIONS                     0x1F03
gabomdq@8021
   659
gabomdq@8021
   660
/* TextureMagFilter */
gabomdq@8021
   661
#define GL_NEAREST                        0x2600
gabomdq@8021
   662
#define GL_LINEAR                         0x2601
gabomdq@8021
   663
gabomdq@8021
   664
/* TextureMinFilter */
gabomdq@8021
   665
/*      GL_NEAREST */
gabomdq@8021
   666
/*      GL_LINEAR */
gabomdq@8021
   667
#define GL_NEAREST_MIPMAP_NEAREST         0x2700
gabomdq@8021
   668
#define GL_LINEAR_MIPMAP_NEAREST          0x2701
gabomdq@8021
   669
#define GL_NEAREST_MIPMAP_LINEAR          0x2702
gabomdq@8021
   670
#define GL_LINEAR_MIPMAP_LINEAR           0x2703
gabomdq@8021
   671
gabomdq@8021
   672
/* TextureParameterName */
gabomdq@8021
   673
#define GL_TEXTURE_MAG_FILTER             0x2800
gabomdq@8021
   674
#define GL_TEXTURE_MIN_FILTER             0x2801
gabomdq@8021
   675
#define GL_TEXTURE_WRAP_S                 0x2802
gabomdq@8021
   676
#define GL_TEXTURE_WRAP_T                 0x2803
gabomdq@8021
   677
gabomdq@8021
   678
/* TextureTarget */
gabomdq@8021
   679
/*      GL_TEXTURE_2D */
gabomdq@8021
   680
#define GL_TEXTURE                        0x1702
gabomdq@8021
   681
gabomdq@8021
   682
#define GL_TEXTURE_CUBE_MAP               0x8513
gabomdq@8021
   683
#define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
gabomdq@8021
   684
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
gabomdq@8021
   685
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
gabomdq@8021
   686
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
gabomdq@8021
   687
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
gabomdq@8021
   688
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
gabomdq@8021
   689
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
gabomdq@8021
   690
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
gabomdq@8021
   691
gabomdq@8021
   692
/* TextureUnit */
gabomdq@8021
   693
#define GL_TEXTURE0                       0x84C0
gabomdq@8021
   694
#define GL_TEXTURE1                       0x84C1
gabomdq@8021
   695
#define GL_TEXTURE2                       0x84C2
gabomdq@8021
   696
#define GL_TEXTURE3                       0x84C3
gabomdq@8021
   697
#define GL_TEXTURE4                       0x84C4
gabomdq@8021
   698
#define GL_TEXTURE5                       0x84C5
gabomdq@8021
   699
#define GL_TEXTURE6                       0x84C6
gabomdq@8021
   700
#define GL_TEXTURE7                       0x84C7
gabomdq@8021
   701
#define GL_TEXTURE8                       0x84C8
gabomdq@8021
   702
#define GL_TEXTURE9                       0x84C9
gabomdq@8021
   703
#define GL_TEXTURE10                      0x84CA
gabomdq@8021
   704
#define GL_TEXTURE11                      0x84CB
gabomdq@8021
   705
#define GL_TEXTURE12                      0x84CC
gabomdq@8021
   706
#define GL_TEXTURE13                      0x84CD
gabomdq@8021
   707
#define GL_TEXTURE14                      0x84CE
gabomdq@8021
   708
#define GL_TEXTURE15                      0x84CF
gabomdq@8021
   709
#define GL_TEXTURE16                      0x84D0
gabomdq@8021
   710
#define GL_TEXTURE17                      0x84D1
gabomdq@8021
   711
#define GL_TEXTURE18                      0x84D2
gabomdq@8021
   712
#define GL_TEXTURE19                      0x84D3
gabomdq@8021
   713
#define GL_TEXTURE20                      0x84D4
gabomdq@8021
   714
#define GL_TEXTURE21                      0x84D5
gabomdq@8021
   715
#define GL_TEXTURE22                      0x84D6
gabomdq@8021
   716
#define GL_TEXTURE23                      0x84D7
gabomdq@8021
   717
#define GL_TEXTURE24                      0x84D8
gabomdq@8021
   718
#define GL_TEXTURE25                      0x84D9
gabomdq@8021
   719
#define GL_TEXTURE26                      0x84DA
gabomdq@8021
   720
#define GL_TEXTURE27                      0x84DB
gabomdq@8021
   721
#define GL_TEXTURE28                      0x84DC
gabomdq@8021
   722
#define GL_TEXTURE29                      0x84DD
gabomdq@8021
   723
#define GL_TEXTURE30                      0x84DE
gabomdq@8021
   724
#define GL_TEXTURE31                      0x84DF
gabomdq@8021
   725
#define GL_ACTIVE_TEXTURE                 0x84E0
gabomdq@8021
   726
gabomdq@8021
   727
/* TextureWrapMode */
gabomdq@8021
   728
#define GL_REPEAT                         0x2901
gabomdq@8021
   729
#define GL_CLAMP_TO_EDGE                  0x812F
gabomdq@8021
   730
#define GL_MIRRORED_REPEAT                0x8370
gabomdq@8021
   731
gabomdq@8021
   732
/* Uniform Types */
gabomdq@8021
   733
#define GL_FLOAT_VEC2                     0x8B50
gabomdq@8021
   734
#define GL_FLOAT_VEC3                     0x8B51
gabomdq@8021
   735
#define GL_FLOAT_VEC4                     0x8B52
gabomdq@8021
   736
#define GL_INT_VEC2                       0x8B53
gabomdq@8021
   737
#define GL_INT_VEC3                       0x8B54
gabomdq@8021
   738
#define GL_INT_VEC4                       0x8B55
gabomdq@8021
   739
#define GL_BOOL                           0x8B56
gabomdq@8021
   740
#define GL_BOOL_VEC2                      0x8B57
gabomdq@8021
   741
#define GL_BOOL_VEC3                      0x8B58
gabomdq@8021
   742
#define GL_BOOL_VEC4                      0x8B59
gabomdq@8021
   743
#define GL_FLOAT_MAT2                     0x8B5A
gabomdq@8021
   744
#define GL_FLOAT_MAT3                     0x8B5B
gabomdq@8021
   745
#define GL_FLOAT_MAT4                     0x8B5C
gabomdq@8021
   746
#define GL_SAMPLER_2D                     0x8B5E
gabomdq@8021
   747
#define GL_SAMPLER_CUBE                   0x8B60
gabomdq@8021
   748
gabomdq@8021
   749
/* Vertex Arrays */
gabomdq@8021
   750
#define GL_VERTEX_ATTRIB_ARRAY_ENABLED        0x8622
gabomdq@8021
   751
#define GL_VERTEX_ATTRIB_ARRAY_SIZE           0x8623
gabomdq@8021
   752
#define GL_VERTEX_ATTRIB_ARRAY_STRIDE         0x8624
gabomdq@8021
   753
#define GL_VERTEX_ATTRIB_ARRAY_TYPE           0x8625
gabomdq@8021
   754
#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED     0x886A
gabomdq@8021
   755
#define GL_VERTEX_ATTRIB_ARRAY_POINTER        0x8645
gabomdq@8021
   756
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
gabomdq@8021
   757
gabomdq@8021
   758
/* Read Format */
gabomdq@8021
   759
#define GL_IMPLEMENTATION_COLOR_READ_TYPE   0x8B9A
gabomdq@8021
   760
#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
gabomdq@8021
   761
gabomdq@8021
   762
/* Shader Source */
gabomdq@8021
   763
#define GL_COMPILE_STATUS                 0x8B81
gabomdq@8021
   764
#define GL_INFO_LOG_LENGTH                0x8B84
gabomdq@8021
   765
#define GL_SHADER_SOURCE_LENGTH           0x8B88
gabomdq@8021
   766
#define GL_SHADER_COMPILER                0x8DFA
gabomdq@8021
   767
gabomdq@8021
   768
/* Shader Binary */
gabomdq@8021
   769
#define GL_SHADER_BINARY_FORMATS          0x8DF8
gabomdq@8021
   770
#define GL_NUM_SHADER_BINARY_FORMATS      0x8DF9
gabomdq@8021
   771
gabomdq@8021
   772
/* Shader Precision-Specified Types */
gabomdq@8021
   773
#define GL_LOW_FLOAT                      0x8DF0
gabomdq@8021
   774
#define GL_MEDIUM_FLOAT                   0x8DF1
gabomdq@8021
   775
#define GL_HIGH_FLOAT                     0x8DF2
gabomdq@8021
   776
#define GL_LOW_INT                        0x8DF3
gabomdq@8021
   777
#define GL_MEDIUM_INT                     0x8DF4
gabomdq@8021
   778
#define GL_HIGH_INT                       0x8DF5
gabomdq@8021
   779
gabomdq@8021
   780
/* Framebuffer Object. */
gabomdq@8021
   781
#define GL_FRAMEBUFFER                    0x8D40
gabomdq@8021
   782
#define GL_RENDERBUFFER                   0x8D41
gabomdq@8021
   783
gabomdq@8021
   784
#define GL_RGBA4                          0x8056
gabomdq@8021
   785
#define GL_RGB5_A1                        0x8057
gabomdq@8021
   786
#define GL_RGB565                         0x8D62
gabomdq@8021
   787
#define GL_DEPTH_COMPONENT16              0x81A5
gabomdq@8021
   788
#define GL_STENCIL_INDEX8                 0x8D48
gabomdq@8021
   789
gabomdq@8021
   790
#define GL_RENDERBUFFER_WIDTH             0x8D42
gabomdq@8021
   791
#define GL_RENDERBUFFER_HEIGHT            0x8D43
gabomdq@8021
   792
#define GL_RENDERBUFFER_INTERNAL_FORMAT   0x8D44
gabomdq@8021
   793
#define GL_RENDERBUFFER_RED_SIZE          0x8D50
gabomdq@8021
   794
#define GL_RENDERBUFFER_GREEN_SIZE        0x8D51
gabomdq@8021
   795
#define GL_RENDERBUFFER_BLUE_SIZE         0x8D52
gabomdq@8021
   796
#define GL_RENDERBUFFER_ALPHA_SIZE        0x8D53
gabomdq@8021
   797
#define GL_RENDERBUFFER_DEPTH_SIZE        0x8D54
gabomdq@8021
   798
#define GL_RENDERBUFFER_STENCIL_SIZE      0x8D55
gabomdq@8021
   799
gabomdq@8021
   800
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE           0x8CD0
gabomdq@8021
   801
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME           0x8CD1
gabomdq@8021
   802
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL         0x8CD2
gabomdq@8021
   803
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
gabomdq@8021
   804
gabomdq@8021
   805
#define GL_COLOR_ATTACHMENT0              0x8CE0
gabomdq@8021
   806
#define GL_DEPTH_ATTACHMENT               0x8D00
gabomdq@8021
   807
#define GL_STENCIL_ATTACHMENT             0x8D20
gabomdq@8021
   808
gabomdq@8021
   809
#define GL_NONE                           0
gabomdq@8021
   810
gabomdq@8021
   811
#define GL_FRAMEBUFFER_COMPLETE                      0x8CD5
gabomdq@8021
   812
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT         0x8CD6
gabomdq@8021
   813
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
gabomdq@8021
   814
#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS         0x8CD9
gabomdq@8021
   815
#define GL_FRAMEBUFFER_UNSUPPORTED                   0x8CDD
gabomdq@8021
   816
gabomdq@8021
   817
#define GL_FRAMEBUFFER_BINDING            0x8CA6
gabomdq@8021
   818
#define GL_RENDERBUFFER_BINDING           0x8CA7
gabomdq@8021
   819
#define GL_MAX_RENDERBUFFER_SIZE          0x84E8
gabomdq@8021
   820
gabomdq@8021
   821
#define GL_INVALID_FRAMEBUFFER_OPERATION  0x0506
gabomdq@8021
   822
gabomdq@8021
   823
/*-------------------------------------------------------------------------
gabomdq@8021
   824
 * GL core functions.
gabomdq@8021
   825
 *-----------------------------------------------------------------------*/
gabomdq@8021
   826
gabomdq@8021
   827
GL_APICALL void         GL_APIENTRY glActiveTexture (GLenum texture);
gabomdq@8021
   828
GL_APICALL void         GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
gabomdq@8021
   829
GL_APICALL void         GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar* name);
gabomdq@8021
   830
GL_APICALL void         GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
gabomdq@8021
   831
GL_APICALL void         GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
gabomdq@8021
   832
GL_APICALL void         GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
gabomdq@8021
   833
GL_APICALL void         GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
gabomdq@8021
   834
GL_APICALL void         GL_APIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
gabomdq@8021
   835
GL_APICALL void         GL_APIENTRY glBlendEquation ( GLenum mode );
gabomdq@8021
   836
GL_APICALL void         GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
gabomdq@8021
   837
GL_APICALL void         GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
gabomdq@8021
   838
GL_APICALL void         GL_APIENTRY glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
gabomdq@8021
   839
GL_APICALL void         GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
gabomdq@8021
   840
GL_APICALL void         GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
gabomdq@8021
   841
GL_APICALL GLenum       GL_APIENTRY glCheckFramebufferStatus (GLenum target);
gabomdq@8021
   842
GL_APICALL void         GL_APIENTRY glClear (GLbitfield mask);
gabomdq@8021
   843
GL_APICALL void         GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
gabomdq@8021
   844
GL_APICALL void         GL_APIENTRY glClearDepthf (GLclampf depth);
gabomdq@8021
   845
GL_APICALL void         GL_APIENTRY glClearStencil (GLint s);
gabomdq@8021
   846
GL_APICALL void         GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
gabomdq@8021
   847
GL_APICALL void         GL_APIENTRY glCompileShader (GLuint shader);
gabomdq@8021
   848
GL_APICALL void         GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
gabomdq@8021
   849
GL_APICALL void         GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
gabomdq@8021
   850
GL_APICALL void         GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
gabomdq@8021
   851
GL_APICALL void         GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
gabomdq@8021
   852
GL_APICALL GLuint       GL_APIENTRY glCreateProgram (void);
gabomdq@8021
   853
GL_APICALL GLuint       GL_APIENTRY glCreateShader (GLenum type);
gabomdq@8021
   854
GL_APICALL void         GL_APIENTRY glCullFace (GLenum mode);
gabomdq@8021
   855
GL_APICALL void         GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint* buffers);
gabomdq@8021
   856
GL_APICALL void         GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers);
gabomdq@8021
   857
GL_APICALL void         GL_APIENTRY glDeleteProgram (GLuint program);
gabomdq@8021
   858
GL_APICALL void         GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers);
gabomdq@8021
   859
GL_APICALL void         GL_APIENTRY glDeleteShader (GLuint shader);
gabomdq@8021
   860
GL_APICALL void         GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint* textures);
gabomdq@8021
   861
GL_APICALL void         GL_APIENTRY glDepthFunc (GLenum func);
gabomdq@8021
   862
GL_APICALL void         GL_APIENTRY glDepthMask (GLboolean flag);
gabomdq@8021
   863
GL_APICALL void         GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
gabomdq@8021
   864
GL_APICALL void         GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
gabomdq@8021
   865
GL_APICALL void         GL_APIENTRY glDisable (GLenum cap);
gabomdq@8021
   866
GL_APICALL void         GL_APIENTRY glDisableVertexAttribArray (GLuint index);
gabomdq@8021
   867
GL_APICALL void         GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
gabomdq@8021
   868
GL_APICALL void         GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
gabomdq@8021
   869
GL_APICALL void         GL_APIENTRY glEnable (GLenum cap);
gabomdq@8021
   870
GL_APICALL void         GL_APIENTRY glEnableVertexAttribArray (GLuint index);
gabomdq@8021
   871
GL_APICALL void         GL_APIENTRY glFinish (void);
gabomdq@8021
   872
GL_APICALL void         GL_APIENTRY glFlush (void);
gabomdq@8021
   873
GL_APICALL void         GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
gabomdq@8021
   874
GL_APICALL void         GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
gabomdq@8021
   875
GL_APICALL void         GL_APIENTRY glFrontFace (GLenum mode);
gabomdq@8021
   876
GL_APICALL void         GL_APIENTRY glGenBuffers (GLsizei n, GLuint* buffers);
gabomdq@8021
   877
GL_APICALL void         GL_APIENTRY glGenerateMipmap (GLenum target);
gabomdq@8021
   878
GL_APICALL void         GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint* framebuffers);
gabomdq@8021
   879
GL_APICALL void         GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint* renderbuffers);
gabomdq@8021
   880
GL_APICALL void         GL_APIENTRY glGenTextures (GLsizei n, GLuint* textures);
gabomdq@8021
   881
GL_APICALL void         GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
gabomdq@8021
   882
GL_APICALL void         GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
gabomdq@8021
   883
GL_APICALL void         GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
gabomdq@8021
   884
GL_APICALL int          GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar* name);
gabomdq@8021
   885
GL_APICALL void         GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean* params);
gabomdq@8021
   886
GL_APICALL void         GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params);
gabomdq@8021
   887
GL_APICALL GLenum       GL_APIENTRY glGetError (void);
gabomdq@8021
   888
GL_APICALL void         GL_APIENTRY glGetFloatv (GLenum pname, GLfloat* params);
gabomdq@8021
   889
GL_APICALL void         GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params);
gabomdq@8021
   890
GL_APICALL void         GL_APIENTRY glGetIntegerv (GLenum pname, GLint* params);
gabomdq@8021
   891
GL_APICALL void         GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint* params);
gabomdq@8021
   892
GL_APICALL void         GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog);
gabomdq@8021
   893
GL_APICALL void         GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params);
gabomdq@8021
   894
GL_APICALL void         GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params);
gabomdq@8021
   895
GL_APICALL void         GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog);
gabomdq@8021
   896
GL_APICALL void         GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);
gabomdq@8021
   897
GL_APICALL void         GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
gabomdq@8021
   898
GL_APICALL const GLubyte* GL_APIENTRY glGetString (GLenum name);
gabomdq@8021
   899
GL_APICALL void         GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params);
gabomdq@8021
   900
GL_APICALL void         GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint* params);
gabomdq@8021
   901
GL_APICALL void         GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat* params);
gabomdq@8021
   902
GL_APICALL void         GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint* params);
gabomdq@8021
   903
GL_APICALL int          GL_APIENTRY glGetUniformLocation (GLuint program, const GLchar* name);
gabomdq@8021
   904
GL_APICALL void         GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params);
gabomdq@8021
   905
GL_APICALL void         GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params);
gabomdq@8021
   906
GL_APICALL void         GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer);
gabomdq@8021
   907
GL_APICALL void         GL_APIENTRY glHint (GLenum target, GLenum mode);
gabomdq@8021
   908
GL_APICALL GLboolean    GL_APIENTRY glIsBuffer (GLuint buffer);
gabomdq@8021
   909
GL_APICALL GLboolean    GL_APIENTRY glIsEnabled (GLenum cap);
gabomdq@8021
   910
GL_APICALL GLboolean    GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
gabomdq@8021
   911
GL_APICALL GLboolean    GL_APIENTRY glIsProgram (GLuint program);
gabomdq@8021
   912
GL_APICALL GLboolean    GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
gabomdq@8021
   913
GL_APICALL GLboolean    GL_APIENTRY glIsShader (GLuint shader);
gabomdq@8021
   914
GL_APICALL GLboolean    GL_APIENTRY glIsTexture (GLuint texture);
gabomdq@8021
   915
GL_APICALL void         GL_APIENTRY glLineWidth (GLfloat width);
gabomdq@8021
   916
GL_APICALL void         GL_APIENTRY glLinkProgram (GLuint program);
gabomdq@8021
   917
GL_APICALL void         GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
gabomdq@8021
   918
GL_APICALL void         GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
gabomdq@8021
   919
GL_APICALL void         GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
gabomdq@8021
   920
GL_APICALL void         GL_APIENTRY glReleaseShaderCompiler (void);
gabomdq@8021
   921
GL_APICALL void         GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
   922
GL_APICALL void         GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
gabomdq@8021
   923
GL_APICALL void         GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
gabomdq@8021
   924
GL_APICALL void         GL_APIENTRY glShaderBinary (GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length);
gabomdq@8021
   925
GL_APICALL void         GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length);
gabomdq@8021
   926
GL_APICALL void         GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
gabomdq@8021
   927
GL_APICALL void         GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
gabomdq@8021
   928
GL_APICALL void         GL_APIENTRY glStencilMask (GLuint mask);
gabomdq@8021
   929
GL_APICALL void         GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
gabomdq@8021
   930
GL_APICALL void         GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
gabomdq@8021
   931
GL_APICALL void         GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
gabomdq@8021
   932
GL_APICALL void         GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
gabomdq@8021
   933
GL_APICALL void         GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
gabomdq@8021
   934
GL_APICALL void         GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat* params);
gabomdq@8021
   935
GL_APICALL void         GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
gabomdq@8021
   936
GL_APICALL void         GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint* params);
gabomdq@8021
   937
GL_APICALL void         GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels);
gabomdq@8021
   938
GL_APICALL void         GL_APIENTRY glUniform1f (GLint location, GLfloat x);
gabomdq@8021
   939
GL_APICALL void         GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat* v);
gabomdq@8021
   940
GL_APICALL void         GL_APIENTRY glUniform1i (GLint location, GLint x);
gabomdq@8021
   941
GL_APICALL void         GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint* v);
gabomdq@8021
   942
GL_APICALL void         GL_APIENTRY glUniform2f (GLint location, GLfloat x, GLfloat y);
gabomdq@8021
   943
GL_APICALL void         GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat* v);
gabomdq@8021
   944
GL_APICALL void         GL_APIENTRY glUniform2i (GLint location, GLint x, GLint y);
gabomdq@8021
   945
GL_APICALL void         GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint* v);
gabomdq@8021
   946
GL_APICALL void         GL_APIENTRY glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z);
gabomdq@8021
   947
GL_APICALL void         GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat* v);
gabomdq@8021
   948
GL_APICALL void         GL_APIENTRY glUniform3i (GLint location, GLint x, GLint y, GLint z);
gabomdq@8021
   949
GL_APICALL void         GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint* v);
gabomdq@8021
   950
GL_APICALL void         GL_APIENTRY glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
gabomdq@8021
   951
GL_APICALL void         GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat* v);
gabomdq@8021
   952
GL_APICALL void         GL_APIENTRY glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w);
gabomdq@8021
   953
GL_APICALL void         GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint* v);
gabomdq@8021
   954
GL_APICALL void         GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
gabomdq@8021
   955
GL_APICALL void         GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
gabomdq@8021
   956
GL_APICALL void         GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
gabomdq@8021
   957
GL_APICALL void         GL_APIENTRY glUseProgram (GLuint program);
gabomdq@8021
   958
GL_APICALL void         GL_APIENTRY glValidateProgram (GLuint program);
gabomdq@8021
   959
GL_APICALL void         GL_APIENTRY glVertexAttrib1f (GLuint indx, GLfloat x);
gabomdq@8021
   960
GL_APICALL void         GL_APIENTRY glVertexAttrib1fv (GLuint indx, const GLfloat* values);
gabomdq@8021
   961
GL_APICALL void         GL_APIENTRY glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y);
gabomdq@8021
   962
GL_APICALL void         GL_APIENTRY glVertexAttrib2fv (GLuint indx, const GLfloat* values);
gabomdq@8021
   963
GL_APICALL void         GL_APIENTRY glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z);
gabomdq@8021
   964
GL_APICALL void         GL_APIENTRY glVertexAttrib3fv (GLuint indx, const GLfloat* values);
gabomdq@8021
   965
GL_APICALL void         GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
gabomdq@8021
   966
GL_APICALL void         GL_APIENTRY glVertexAttrib4fv (GLuint indx, const GLfloat* values);
gabomdq@8021
   967
GL_APICALL void         GL_APIENTRY glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr);
gabomdq@8021
   968
GL_APICALL void         GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
gabomdq@8021
   969
gabomdq@8021
   970
#ifdef __cplusplus
gabomdq@8021
   971
}
gabomdq@8021
   972
#endif
gabomdq@8021
   973
gabomdq@8021
   974
#endif /* __gl2_h_ */
gabomdq@8021
   975
gabomdq@8021
   976
gabomdq@8021
   977
#ifndef __gl2ext_h_
gabomdq@8021
   978
#define __gl2ext_h_
gabomdq@8021
   979
gabomdq@8021
   980
/* $Revision: 19436 $ on $Date:: 2012-10-10 10:37:04 -0700 #$ */
gabomdq@8021
   981
gabomdq@8021
   982
#ifdef __cplusplus
gabomdq@8021
   983
extern "C" {
gabomdq@8021
   984
#endif
gabomdq@8021
   985
gabomdq@8021
   986
/*
gabomdq@8021
   987
 * This document is licensed under the SGI Free Software B License Version
gabomdq@8021
   988
 * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
gabomdq@8021
   989
 */
gabomdq@8021
   990
gabomdq@8021
   991
#ifndef GL_APIENTRYP
gabomdq@8021
   992
#   define GL_APIENTRYP GL_APIENTRY*
gabomdq@8021
   993
#endif
gabomdq@8021
   994
gabomdq@8021
   995
/*------------------------------------------------------------------------*
gabomdq@8021
   996
 * OES extension tokens
gabomdq@8021
   997
 *------------------------------------------------------------------------*/
gabomdq@8021
   998
gabomdq@8021
   999
/* GL_OES_compressed_ETC1_RGB8_texture */
gabomdq@8021
  1000
#ifndef GL_OES_compressed_ETC1_RGB8_texture
gabomdq@8021
  1001
#define GL_ETC1_RGB8_OES                                        0x8D64
gabomdq@8021
  1002
#endif
gabomdq@8021
  1003
gabomdq@8021
  1004
/* GL_OES_compressed_paletted_texture */
gabomdq@8021
  1005
#ifndef GL_OES_compressed_paletted_texture
gabomdq@8021
  1006
#define GL_PALETTE4_RGB8_OES                                    0x8B90
gabomdq@8021
  1007
#define GL_PALETTE4_RGBA8_OES                                   0x8B91
gabomdq@8021
  1008
#define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
gabomdq@8021
  1009
#define GL_PALETTE4_RGBA4_OES                                   0x8B93
gabomdq@8021
  1010
#define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
gabomdq@8021
  1011
#define GL_PALETTE8_RGB8_OES                                    0x8B95
gabomdq@8021
  1012
#define GL_PALETTE8_RGBA8_OES                                   0x8B96
gabomdq@8021
  1013
#define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
gabomdq@8021
  1014
#define GL_PALETTE8_RGBA4_OES                                   0x8B98
gabomdq@8021
  1015
#define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
gabomdq@8021
  1016
#endif
gabomdq@8021
  1017
gabomdq@8021
  1018
/* GL_OES_depth24 */
gabomdq@8021
  1019
#ifndef GL_OES_depth24
gabomdq@8021
  1020
#define GL_DEPTH_COMPONENT24_OES                                0x81A6
gabomdq@8021
  1021
#endif
gabomdq@8021
  1022
gabomdq@8021
  1023
/* GL_OES_depth32 */
gabomdq@8021
  1024
#ifndef GL_OES_depth32
gabomdq@8021
  1025
#define GL_DEPTH_COMPONENT32_OES                                0x81A7
gabomdq@8021
  1026
#endif
gabomdq@8021
  1027
gabomdq@8021
  1028
/* GL_OES_depth_texture */
gabomdq@8021
  1029
/* No new tokens introduced by this extension. */
gabomdq@8021
  1030
gabomdq@8021
  1031
/* GL_OES_EGL_image */
gabomdq@8021
  1032
#ifndef GL_OES_EGL_image
gabomdq@8021
  1033
typedef void* GLeglImageOES;
gabomdq@8021
  1034
#endif
gabomdq@8021
  1035
gabomdq@8021
  1036
/* GL_OES_EGL_image_external */
gabomdq@8021
  1037
#ifndef GL_OES_EGL_image_external
gabomdq@8021
  1038
/* GLeglImageOES defined in GL_OES_EGL_image already. */
gabomdq@8021
  1039
#define GL_TEXTURE_EXTERNAL_OES                                 0x8D65
gabomdq@8021
  1040
#define GL_SAMPLER_EXTERNAL_OES                                 0x8D66
gabomdq@8021
  1041
#define GL_TEXTURE_BINDING_EXTERNAL_OES                         0x8D67
gabomdq@8021
  1042
#define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES                     0x8D68
gabomdq@8021
  1043
#endif
gabomdq@8021
  1044
gabomdq@8021
  1045
/* GL_OES_element_index_uint */
gabomdq@8021
  1046
#ifndef GL_OES_element_index_uint
gabomdq@8021
  1047
#define GL_UNSIGNED_INT                                         0x1405
gabomdq@8021
  1048
#endif
gabomdq@8021
  1049
gabomdq@8021
  1050
/* GL_OES_get_program_binary */
gabomdq@8021
  1051
#ifndef GL_OES_get_program_binary
gabomdq@8021
  1052
#define GL_PROGRAM_BINARY_LENGTH_OES                            0x8741
gabomdq@8021
  1053
#define GL_NUM_PROGRAM_BINARY_FORMATS_OES                       0x87FE
gabomdq@8021
  1054
#define GL_PROGRAM_BINARY_FORMATS_OES                           0x87FF
gabomdq@8021
  1055
#endif
gabomdq@8021
  1056
gabomdq@8021
  1057
/* GL_OES_mapbuffer */
gabomdq@8021
  1058
#ifndef GL_OES_mapbuffer
gabomdq@8021
  1059
#define GL_WRITE_ONLY_OES                                       0x88B9
gabomdq@8021
  1060
#define GL_BUFFER_ACCESS_OES                                    0x88BB
gabomdq@8021
  1061
#define GL_BUFFER_MAPPED_OES                                    0x88BC
gabomdq@8021
  1062
#define GL_BUFFER_MAP_POINTER_OES                               0x88BD
gabomdq@8021
  1063
#endif
gabomdq@8021
  1064
gabomdq@8021
  1065
/* GL_OES_packed_depth_stencil */
gabomdq@8021
  1066
#ifndef GL_OES_packed_depth_stencil
gabomdq@8021
  1067
#define GL_DEPTH_STENCIL_OES                                    0x84F9
gabomdq@8021
  1068
#define GL_UNSIGNED_INT_24_8_OES                                0x84FA
gabomdq@8021
  1069
#define GL_DEPTH24_STENCIL8_OES                                 0x88F0
gabomdq@8021
  1070
#endif
gabomdq@8021
  1071
gabomdq@8021
  1072
/* GL_OES_required_internalformat */
gabomdq@8021
  1073
#ifndef GL_OES_required_internalformat 
gabomdq@8021
  1074
#define GL_ALPHA8_OES                                           0x803C
gabomdq@8021
  1075
#define GL_DEPTH_COMPONENT16_OES                                0x81A5
gabomdq@8021
  1076
/* reuse GL_DEPTH_COMPONENT24_OES */                            
gabomdq@8021
  1077
/* reuse GL_DEPTH24_STENCIL8_OES */                             
gabomdq@8021
  1078
/* reuse GL_DEPTH_COMPONENT32_OES */                            
gabomdq@8021
  1079
#define GL_LUMINANCE4_ALPHA4_OES                                0x8043
gabomdq@8021
  1080
#define GL_LUMINANCE8_ALPHA8_OES                                0x8045
gabomdq@8021
  1081
#define GL_LUMINANCE8_OES                                       0x8040
gabomdq@8021
  1082
#define GL_RGBA4_OES                                            0x8056
gabomdq@8021
  1083
#define GL_RGB5_A1_OES                                          0x8057
gabomdq@8021
  1084
#define GL_RGB565_OES                                           0x8D62
gabomdq@8021
  1085
/* reuse GL_RGB8_OES */                              
gabomdq@8021
  1086
/* reuse GL_RGBA8_OES */  
gabomdq@8021
  1087
/* reuse GL_RGB10_EXT */
gabomdq@8021
  1088
/* reuse GL_RGB10_A2_EXT */
gabomdq@8021
  1089
#endif 
gabomdq@8021
  1090
gabomdq@8021
  1091
/* GL_OES_rgb8_rgba8 */
gabomdq@8021
  1092
#ifndef GL_OES_rgb8_rgba8
gabomdq@8021
  1093
#define GL_RGB8_OES                                             0x8051
gabomdq@8021
  1094
#define GL_RGBA8_OES                                            0x8058
gabomdq@8021
  1095
#endif
gabomdq@8021
  1096
gabomdq@8021
  1097
/* GL_OES_standard_derivatives */
gabomdq@8021
  1098
#ifndef GL_OES_standard_derivatives
gabomdq@8021
  1099
#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES                  0x8B8B
gabomdq@8021
  1100
#endif
gabomdq@8021
  1101
gabomdq@8021
  1102
/* GL_OES_stencil1 */
gabomdq@8021
  1103
#ifndef GL_OES_stencil1
gabomdq@8021
  1104
#define GL_STENCIL_INDEX1_OES                                   0x8D46
gabomdq@8021
  1105
#endif
gabomdq@8021
  1106
gabomdq@8021
  1107
/* GL_OES_stencil4 */
gabomdq@8021
  1108
#ifndef GL_OES_stencil4
gabomdq@8021
  1109
#define GL_STENCIL_INDEX4_OES                                   0x8D47
gabomdq@8021
  1110
#endif
gabomdq@8021
  1111
gabomdq@8021
  1112
#ifndef GL_OES_surfaceless_context
gabomdq@8021
  1113
#define GL_FRAMEBUFFER_UNDEFINED_OES                            0x8219
gabomdq@8021
  1114
#endif
gabomdq@8021
  1115
gabomdq@8021
  1116
/* GL_OES_texture_3D */
gabomdq@8021
  1117
#ifndef GL_OES_texture_3D
gabomdq@8021
  1118
#define GL_TEXTURE_WRAP_R_OES                                   0x8072
gabomdq@8021
  1119
#define GL_TEXTURE_3D_OES                                       0x806F
gabomdq@8021
  1120
#define GL_TEXTURE_BINDING_3D_OES                               0x806A
gabomdq@8021
  1121
#define GL_MAX_3D_TEXTURE_SIZE_OES                              0x8073
gabomdq@8021
  1122
#define GL_SAMPLER_3D_OES                                       0x8B5F
gabomdq@8021
  1123
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES        0x8CD4
gabomdq@8021
  1124
#endif
gabomdq@8021
  1125
gabomdq@8021
  1126
/* GL_OES_texture_float */
gabomdq@8021
  1127
/* No new tokens introduced by this extension. */
gabomdq@8021
  1128
gabomdq@8021
  1129
/* GL_OES_texture_float_linear */
gabomdq@8021
  1130
/* No new tokens introduced by this extension. */
gabomdq@8021
  1131
gabomdq@8021
  1132
/* GL_OES_texture_half_float */
gabomdq@8021
  1133
#ifndef GL_OES_texture_half_float
gabomdq@8021
  1134
#define GL_HALF_FLOAT_OES                                       0x8D61
gabomdq@8021
  1135
#endif
gabomdq@8021
  1136
gabomdq@8021
  1137
/* GL_OES_texture_half_float_linear */
gabomdq@8021
  1138
/* No new tokens introduced by this extension. */
gabomdq@8021
  1139
gabomdq@8021
  1140
/* GL_OES_texture_npot */
gabomdq@8021
  1141
/* No new tokens introduced by this extension. */
gabomdq@8021
  1142
gabomdq@8021
  1143
/* GL_OES_vertex_array_object */
gabomdq@8021
  1144
#ifndef GL_OES_vertex_array_object
gabomdq@8021
  1145
#define GL_VERTEX_ARRAY_BINDING_OES                             0x85B5
gabomdq@8021
  1146
#endif
gabomdq@8021
  1147
gabomdq@8021
  1148
/* GL_OES_vertex_half_float */
gabomdq@8021
  1149
/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
gabomdq@8021
  1150
gabomdq@8021
  1151
/* GL_OES_vertex_type_10_10_10_2 */
gabomdq@8021
  1152
#ifndef GL_OES_vertex_type_10_10_10_2
gabomdq@8021
  1153
#define GL_UNSIGNED_INT_10_10_10_2_OES                          0x8DF6
gabomdq@8021
  1154
#define GL_INT_10_10_10_2_OES                                   0x8DF7
gabomdq@8021
  1155
#endif
gabomdq@8021
  1156
gabomdq@8021
  1157
/*------------------------------------------------------------------------*
gabomdq@8021
  1158
 * KHR extension tokens
gabomdq@8021
  1159
 *------------------------------------------------------------------------*/
gabomdq@8021
  1160
gabomdq@8021
  1161
#ifndef GL_KHR_debug
gabomdq@8021
  1162
typedef void (GL_APIENTRYP GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
gabomdq@8021
  1163
#define GL_DEBUG_OUTPUT_SYNCHRONOUS                             0x8242
gabomdq@8021
  1164
#define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH                     0x8243
gabomdq@8021
  1165
#define GL_DEBUG_CALLBACK_FUNCTION                              0x8244
gabomdq@8021
  1166
#define GL_DEBUG_CALLBACK_USER_PARAM                            0x8245
gabomdq@8021
  1167
#define GL_DEBUG_SOURCE_API                                     0x8246
gabomdq@8021
  1168
#define GL_DEBUG_SOURCE_WINDOW_SYSTEM                           0x8247
gabomdq@8021
  1169
#define GL_DEBUG_SOURCE_SHADER_COMPILER                         0x8248
gabomdq@8021
  1170
#define GL_DEBUG_SOURCE_THIRD_PARTY                             0x8249
gabomdq@8021
  1171
#define GL_DEBUG_SOURCE_APPLICATION                             0x824A
gabomdq@8021
  1172
#define GL_DEBUG_SOURCE_OTHER                                   0x824B
gabomdq@8021
  1173
#define GL_DEBUG_TYPE_ERROR                                     0x824C
gabomdq@8021
  1174
#define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR                       0x824D
gabomdq@8021
  1175
#define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR                        0x824E
gabomdq@8021
  1176
#define GL_DEBUG_TYPE_PORTABILITY                               0x824F
gabomdq@8021
  1177
#define GL_DEBUG_TYPE_PERFORMANCE                               0x8250
gabomdq@8021
  1178
#define GL_DEBUG_TYPE_OTHER                                     0x8251
gabomdq@8021
  1179
#define GL_DEBUG_TYPE_MARKER                                    0x8268
gabomdq@8021
  1180
#define GL_DEBUG_TYPE_PUSH_GROUP                                0x8269
gabomdq@8021
  1181
#define GL_DEBUG_TYPE_POP_GROUP                                 0x826A
gabomdq@8021
  1182
#define GL_DEBUG_SEVERITY_NOTIFICATION                          0x826B
gabomdq@8021
  1183
#define GL_MAX_DEBUG_GROUP_STACK_DEPTH                          0x826C
gabomdq@8021
  1184
#define GL_DEBUG_GROUP_STACK_DEPTH                              0x826D
gabomdq@8021
  1185
#define GL_BUFFER                                               0x82E0
gabomdq@8021
  1186
#define GL_SHADER                                               0x82E1
gabomdq@8021
  1187
#define GL_PROGRAM                                              0x82E2
gabomdq@8021
  1188
#define GL_QUERY                                                0x82E3
gabomdq@8021
  1189
/* PROGRAM_PIPELINE only in GL */                               
gabomdq@8021
  1190
#define GL_SAMPLER                                              0x82E6
gabomdq@8021
  1191
/* DISPLAY_LIST only in GL */                                   
gabomdq@8021
  1192
#define GL_MAX_LABEL_LENGTH                                     0x82E8
gabomdq@8021
  1193
#define GL_MAX_DEBUG_MESSAGE_LENGTH                             0x9143
gabomdq@8021
  1194
#define GL_MAX_DEBUG_LOGGED_MESSAGES                            0x9144
gabomdq@8021
  1195
#define GL_DEBUG_LOGGED_MESSAGES                                0x9145
gabomdq@8021
  1196
#define GL_DEBUG_SEVERITY_HIGH                                  0x9146
gabomdq@8021
  1197
#define GL_DEBUG_SEVERITY_MEDIUM                                0x9147
gabomdq@8021
  1198
#define GL_DEBUG_SEVERITY_LOW                                   0x9148
gabomdq@8021
  1199
#define GL_DEBUG_OUTPUT                                         0x92E0
gabomdq@8021
  1200
#define GL_CONTEXT_FLAG_DEBUG_BIT                               0x00000002
gabomdq@8021
  1201
#define GL_STACK_OVERFLOW                                       0x0503
gabomdq@8021
  1202
#define GL_STACK_UNDERFLOW                                      0x0504
gabomdq@8021
  1203
#endif
gabomdq@8021
  1204
gabomdq@8021
  1205
#ifndef GL_KHR_texture_compression_astc_ldr
gabomdq@8021
  1206
#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR                         0x93B0
gabomdq@8021
  1207
#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR                         0x93B1
gabomdq@8021
  1208
#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR                         0x93B2
gabomdq@8021
  1209
#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR                         0x93B3
gabomdq@8021
  1210
#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR                         0x93B4
gabomdq@8021
  1211
#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR                         0x93B5
gabomdq@8021
  1212
#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR                         0x93B6
gabomdq@8021
  1213
#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR                         0x93B7
gabomdq@8021
  1214
#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR                        0x93B8
gabomdq@8021
  1215
#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR                        0x93B9
gabomdq@8021
  1216
#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR                        0x93BA
gabomdq@8021
  1217
#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR                       0x93BB
gabomdq@8021
  1218
#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR                       0x93BC
gabomdq@8021
  1219
#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR                       0x93BD
gabomdq@8021
  1220
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR                 0x93D0
gabomdq@8021
  1221
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR                 0x93D1
gabomdq@8021
  1222
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR                 0x93D2
gabomdq@8021
  1223
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR                 0x93D3
gabomdq@8021
  1224
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR                 0x93D4
gabomdq@8021
  1225
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR                 0x93D5
gabomdq@8021
  1226
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR                 0x93D6
gabomdq@8021
  1227
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR                 0x93D7
gabomdq@8021
  1228
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR                0x93D8
gabomdq@8021
  1229
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR                0x93D9
gabomdq@8021
  1230
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR                0x93DA
gabomdq@8021
  1231
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR               0x93DB
gabomdq@8021
  1232
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR               0x93DC
gabomdq@8021
  1233
#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR               0x93DD
gabomdq@8021
  1234
#endif
gabomdq@8021
  1235
gabomdq@8021
  1236
/*------------------------------------------------------------------------*
gabomdq@8021
  1237
 * AMD extension tokens
gabomdq@8021
  1238
 *------------------------------------------------------------------------*/
gabomdq@8021
  1239
gabomdq@8021
  1240
/* GL_AMD_compressed_3DC_texture */
gabomdq@8021
  1241
#ifndef GL_AMD_compressed_3DC_texture
gabomdq@8021
  1242
#define GL_3DC_X_AMD                                            0x87F9
gabomdq@8021
  1243
#define GL_3DC_XY_AMD                                           0x87FA
gabomdq@8021
  1244
#endif
gabomdq@8021
  1245
gabomdq@8021
  1246
/* GL_AMD_compressed_ATC_texture */
gabomdq@8021
  1247
#ifndef GL_AMD_compressed_ATC_texture
gabomdq@8021
  1248
#define GL_ATC_RGB_AMD                                          0x8C92
gabomdq@8021
  1249
#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                          0x8C93
gabomdq@8021
  1250
#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD                      0x87EE
gabomdq@8021
  1251
#endif
gabomdq@8021
  1252
gabomdq@8021
  1253
/* GL_AMD_performance_monitor */
gabomdq@8021
  1254
#ifndef GL_AMD_performance_monitor
gabomdq@8021
  1255
#define GL_COUNTER_TYPE_AMD                                     0x8BC0
gabomdq@8021
  1256
#define GL_COUNTER_RANGE_AMD                                    0x8BC1
gabomdq@8021
  1257
#define GL_UNSIGNED_INT64_AMD                                   0x8BC2
gabomdq@8021
  1258
#define GL_PERCENTAGE_AMD                                       0x8BC3
gabomdq@8021
  1259
#define GL_PERFMON_RESULT_AVAILABLE_AMD                         0x8BC4
gabomdq@8021
  1260
#define GL_PERFMON_RESULT_SIZE_AMD                              0x8BC5
gabomdq@8021
  1261
#define GL_PERFMON_RESULT_AMD                                   0x8BC6
gabomdq@8021
  1262
#endif
gabomdq@8021
  1263
gabomdq@8021
  1264
/* GL_AMD_program_binary_Z400 */
gabomdq@8021
  1265
#ifndef GL_AMD_program_binary_Z400
gabomdq@8021
  1266
#define GL_Z400_BINARY_AMD                                      0x8740
gabomdq@8021
  1267
#endif
gabomdq@8021
  1268
gabomdq@8021
  1269
/*------------------------------------------------------------------------*
gabomdq@8021
  1270
 * ANGLE extension tokens
gabomdq@8021
  1271
 *------------------------------------------------------------------------*/
gabomdq@8021
  1272
gabomdq@8021
  1273
/* GL_ANGLE_framebuffer_blit */
gabomdq@8021
  1274
#ifndef GL_ANGLE_framebuffer_blit
gabomdq@8021
  1275
#define GL_READ_FRAMEBUFFER_ANGLE                               0x8CA8
gabomdq@8021
  1276
#define GL_DRAW_FRAMEBUFFER_ANGLE                               0x8CA9
gabomdq@8021
  1277
#define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE                       0x8CA6
gabomdq@8021
  1278
#define GL_READ_FRAMEBUFFER_BINDING_ANGLE                       0x8CAA
gabomdq@8021
  1279
#endif
gabomdq@8021
  1280
gabomdq@8021
  1281
/* GL_ANGLE_framebuffer_multisample */
gabomdq@8021
  1282
#ifndef GL_ANGLE_framebuffer_multisample
gabomdq@8021
  1283
#define GL_RENDERBUFFER_SAMPLES_ANGLE                           0x8CAB
gabomdq@8021
  1284
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE             0x8D56
gabomdq@8021
  1285
#define GL_MAX_SAMPLES_ANGLE                                    0x8D57
gabomdq@8021
  1286
#endif
gabomdq@8021
  1287
gabomdq@8021
  1288
/* GL_ANGLE_instanced_arrays */
gabomdq@8021
  1289
#ifndef GL_ANGLE_instanced_arrays 
gabomdq@8021
  1290
#define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE                    0x88FE
gabomdq@8021
  1291
#endif
gabomdq@8021
  1292
gabomdq@8021
  1293
/* GL_ANGLE_pack_reverse_row_order */
gabomdq@8021
  1294
#ifndef GL_ANGLE_pack_reverse_row_order 
gabomdq@8021
  1295
#define GL_PACK_REVERSE_ROW_ORDER_ANGLE                         0x93A4
gabomdq@8021
  1296
#endif
gabomdq@8021
  1297
gabomdq@8021
  1298
/* GL_ANGLE_texture_compression_dxt3 */
gabomdq@8021
  1299
#ifndef GL_ANGLE_texture_compression_dxt3 
gabomdq@8021
  1300
#define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE                      0x83F2
gabomdq@8021
  1301
#endif
gabomdq@8021
  1302
gabomdq@8021
  1303
/* GL_ANGLE_texture_compression_dxt5 */
gabomdq@8021
  1304
#ifndef GL_ANGLE_texture_compression_dxt5 
gabomdq@8021
  1305
#define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE                      0x83F3
gabomdq@8021
  1306
#endif
gabomdq@8021
  1307
gabomdq@8021
  1308
/* GL_ANGLE_texture_usage */
gabomdq@8021
  1309
#ifndef GL_ANGLE_texture_usage 
gabomdq@8021
  1310
#define GL_TEXTURE_USAGE_ANGLE                                  0x93A2
gabomdq@8021
  1311
#define GL_FRAMEBUFFER_ATTACHMENT_ANGLE                         0x93A3
gabomdq@8021
  1312
#endif
gabomdq@8021
  1313
gabomdq@8021
  1314
/* GL_ANGLE_translated_shader_source */
gabomdq@8021
  1315
#ifndef GL_ANGLE_translated_shader_source 
gabomdq@8021
  1316
#define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE                0x93A0
gabomdq@8021
  1317
#endif
gabomdq@8021
  1318
gabomdq@8021
  1319
/*------------------------------------------------------------------------*
gabomdq@8021
  1320
 * APPLE extension tokens
gabomdq@8021
  1321
 *------------------------------------------------------------------------*/
gabomdq@8021
  1322
gabomdq@8021
  1323
/* GL_APPLE_copy_texture_levels */
gabomdq@8021
  1324
/* No new tokens introduced by this extension. */
gabomdq@8021
  1325
    
gabomdq@8021
  1326
/* GL_APPLE_framebuffer_multisample */
gabomdq@8021
  1327
#ifndef GL_APPLE_framebuffer_multisample
gabomdq@8021
  1328
#define GL_RENDERBUFFER_SAMPLES_APPLE                           0x8CAB
gabomdq@8021
  1329
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE             0x8D56
gabomdq@8021
  1330
#define GL_MAX_SAMPLES_APPLE                                    0x8D57
gabomdq@8021
  1331
#define GL_READ_FRAMEBUFFER_APPLE                               0x8CA8
gabomdq@8021
  1332
#define GL_DRAW_FRAMEBUFFER_APPLE                               0x8CA9
gabomdq@8021
  1333
#define GL_DRAW_FRAMEBUFFER_BINDING_APPLE                       0x8CA6
gabomdq@8021
  1334
#define GL_READ_FRAMEBUFFER_BINDING_APPLE                       0x8CAA
gabomdq@8021
  1335
#endif
gabomdq@8021
  1336
gabomdq@8021
  1337
/* GL_APPLE_rgb_422 */
gabomdq@8021
  1338
#ifndef GL_APPLE_rgb_422
gabomdq@8021
  1339
#define GL_RGB_422_APPLE                                        0x8A1F
gabomdq@8021
  1340
#define GL_UNSIGNED_SHORT_8_8_APPLE                             0x85BA
gabomdq@8021
  1341
#define GL_UNSIGNED_SHORT_8_8_REV_APPLE                         0x85BB
gabomdq@8021
  1342
#endif
gabomdq@8021
  1343
gabomdq@8021
  1344
/* GL_APPLE_sync */
gabomdq@8021
  1345
#ifndef GL_APPLE_sync
gabomdq@8021
  1346
gabomdq@8021
  1347
#ifndef __gl3_h_
gabomdq@8021
  1348
/* These types are defined with reference to <inttypes.h>
gabomdq@8021
  1349
 * in the Apple extension spec, but here we use the Khronos
gabomdq@8021
  1350
 * portable types in khrplatform.h, and assume those types 
gabomdq@8021
  1351
 * are always defined.
gabomdq@8021
  1352
 * If any other extensions using these types are defined, 
gabomdq@8021
  1353
 * the typedefs must move out of this block and be shared.
gabomdq@8021
  1354
 */
gabomdq@8021
  1355
typedef khronos_int64_t GLint64;
gabomdq@8021
  1356
typedef khronos_uint64_t GLuint64;
gabomdq@8021
  1357
typedef struct __GLsync *GLsync;
gabomdq@8021
  1358
#endif
gabomdq@8021
  1359
gabomdq@8021
  1360
#define GL_SYNC_OBJECT_APPLE                                    0x8A53
gabomdq@8021
  1361
#define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE                        0x9111
gabomdq@8021
  1362
#define GL_OBJECT_TYPE_APPLE                                    0x9112
gabomdq@8021
  1363
#define GL_SYNC_CONDITION_APPLE                                 0x9113
gabomdq@8021
  1364
#define GL_SYNC_STATUS_APPLE                                    0x9114
gabomdq@8021
  1365
#define GL_SYNC_FLAGS_APPLE                                     0x9115
gabomdq@8021
  1366
#define GL_SYNC_FENCE_APPLE                                     0x9116
gabomdq@8021
  1367
#define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE                     0x9117
gabomdq@8021
  1368
#define GL_UNSIGNALED_APPLE                                     0x9118
gabomdq@8021
  1369
#define GL_SIGNALED_APPLE                                       0x9119
gabomdq@8021
  1370
#define GL_ALREADY_SIGNALED_APPLE                               0x911A
gabomdq@8021
  1371
#define GL_TIMEOUT_EXPIRED_APPLE                                0x911B
gabomdq@8021
  1372
#define GL_CONDITION_SATISFIED_APPLE                            0x911C
gabomdq@8021
  1373
#define GL_WAIT_FAILED_APPLE                                    0x911D
gabomdq@8021
  1374
#define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE                        0x00000001
gabomdq@8021
  1375
#define GL_TIMEOUT_IGNORED_APPLE                                0xFFFFFFFFFFFFFFFFull
gabomdq@8021
  1376
#endif
gabomdq@8021
  1377
gabomdq@8021
  1378
/* GL_APPLE_texture_format_BGRA8888 */
gabomdq@8021
  1379
#ifndef GL_APPLE_texture_format_BGRA8888
gabomdq@8021
  1380
#define GL_BGRA_EXT                                             0x80E1
gabomdq@8021
  1381
#endif
gabomdq@8021
  1382
gabomdq@8021
  1383
/* GL_APPLE_texture_max_level */
gabomdq@8021
  1384
#ifndef GL_APPLE_texture_max_level
gabomdq@8021
  1385
#define GL_TEXTURE_MAX_LEVEL_APPLE                              0x813D
gabomdq@8021
  1386
#endif
gabomdq@8021
  1387
gabomdq@8021
  1388
/*------------------------------------------------------------------------*
gabomdq@8021
  1389
 * ARM extension tokens
gabomdq@8021
  1390
 *------------------------------------------------------------------------*/
gabomdq@8021
  1391
gabomdq@8021
  1392
/* GL_ARM_mali_program_binary */
gabomdq@8021
  1393
#ifndef GL_ARM_mali_program_binary
gabomdq@8021
  1394
#define GL_MALI_PROGRAM_BINARY_ARM                              0x8F61
gabomdq@8021
  1395
#endif
gabomdq@8021
  1396
gabomdq@8021
  1397
/* GL_ARM_mali_shader_binary */
gabomdq@8021
  1398
#ifndef GL_ARM_mali_shader_binary
gabomdq@8021
  1399
#define GL_MALI_SHADER_BINARY_ARM                               0x8F60
gabomdq@8021
  1400
#endif
gabomdq@8021
  1401
gabomdq@8021
  1402
/* GL_ARM_rgba8 */
gabomdq@8021
  1403
/* No new tokens introduced by this extension. */
gabomdq@8021
  1404
gabomdq@8021
  1405
/*------------------------------------------------------------------------*
gabomdq@8021
  1406
 * EXT extension tokens
gabomdq@8021
  1407
 *------------------------------------------------------------------------*/
gabomdq@8021
  1408
gabomdq@8021
  1409
/* GL_EXT_blend_minmax */
gabomdq@8021
  1410
#ifndef GL_EXT_blend_minmax
gabomdq@8021
  1411
#define GL_MIN_EXT                                              0x8007
gabomdq@8021
  1412
#define GL_MAX_EXT                                              0x8008
gabomdq@8021
  1413
#endif
gabomdq@8021
  1414
gabomdq@8021
  1415
/* GL_EXT_color_buffer_half_float */
gabomdq@8021
  1416
#ifndef GL_EXT_color_buffer_half_float
gabomdq@8021
  1417
#define GL_RGBA16F_EXT                                          0x881A
gabomdq@8021
  1418
#define GL_RGB16F_EXT                                           0x881B
gabomdq@8021
  1419
#define GL_RG16F_EXT                                            0x822F
gabomdq@8021
  1420
#define GL_R16F_EXT                                             0x822D
gabomdq@8021
  1421
#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT            0x8211
gabomdq@8021
  1422
#define GL_UNSIGNED_NORMALIZED_EXT                              0x8C17
gabomdq@8021
  1423
#endif
gabomdq@8021
  1424
gabomdq@8021
  1425
/* GL_EXT_debug_label */
gabomdq@8021
  1426
#ifndef GL_EXT_debug_label
gabomdq@8021
  1427
#define GL_PROGRAM_PIPELINE_OBJECT_EXT                          0x8A4F
gabomdq@8021
  1428
#define GL_PROGRAM_OBJECT_EXT                                   0x8B40
gabomdq@8021
  1429
#define GL_SHADER_OBJECT_EXT                                    0x8B48
gabomdq@8021
  1430
#define GL_BUFFER_OBJECT_EXT                                    0x9151
gabomdq@8021
  1431
#define GL_QUERY_OBJECT_EXT                                     0x9153
gabomdq@8021
  1432
#define GL_VERTEX_ARRAY_OBJECT_EXT                              0x9154
gabomdq@8021
  1433
#endif
gabomdq@8021
  1434
gabomdq@8021
  1435
/* GL_EXT_debug_marker */
gabomdq@8021
  1436
/* No new tokens introduced by this extension. */
gabomdq@8021
  1437
gabomdq@8021
  1438
/* GL_EXT_discard_framebuffer */
gabomdq@8021
  1439
#ifndef GL_EXT_discard_framebuffer
gabomdq@8021
  1440
#define GL_COLOR_EXT                                            0x1800
gabomdq@8021
  1441
#define GL_DEPTH_EXT                                            0x1801
gabomdq@8021
  1442
#define GL_STENCIL_EXT                                          0x1802
gabomdq@8021
  1443
#endif
gabomdq@8021
  1444
gabomdq@8021
  1445
/* GL_EXT_map_buffer_range */
gabomdq@8021
  1446
#ifndef GL_EXT_map_buffer_range
gabomdq@8021
  1447
#define GL_MAP_READ_BIT_EXT                                     0x0001
gabomdq@8021
  1448
#define GL_MAP_WRITE_BIT_EXT                                    0x0002
gabomdq@8021
  1449
#define GL_MAP_INVALIDATE_RANGE_BIT_EXT                         0x0004
gabomdq@8021
  1450
#define GL_MAP_INVALIDATE_BUFFER_BIT_EXT                        0x0008
gabomdq@8021
  1451
#define GL_MAP_FLUSH_EXPLICIT_BIT_EXT                           0x0010
gabomdq@8021
  1452
#define GL_MAP_UNSYNCHRONIZED_BIT_EXT                           0x0020
gabomdq@8021
  1453
#endif
gabomdq@8021
  1454
gabomdq@8021
  1455
/* GL_EXT_multisampled_render_to_texture */
gabomdq@8021
  1456
#ifndef GL_EXT_multisampled_render_to_texture
gabomdq@8021
  1457
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT           0x8D6C
gabomdq@8021
  1458
/* reuse values from GL_EXT_framebuffer_multisample (desktop extension) */ 
gabomdq@8021
  1459
#define GL_RENDERBUFFER_SAMPLES_EXT                             0x8CAB
gabomdq@8021
  1460
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT               0x8D56
gabomdq@8021
  1461
#define GL_MAX_SAMPLES_EXT                                      0x8D57
gabomdq@8021
  1462
#endif
gabomdq@8021
  1463
gabomdq@8021
  1464
/* GL_EXT_multiview_draw_buffers */
gabomdq@8021
  1465
#ifndef GL_EXT_multiview_draw_buffers
gabomdq@8021
  1466
#define GL_COLOR_ATTACHMENT_EXT                                 0x90F0
gabomdq@8021
  1467
#define GL_MULTIVIEW_EXT                                        0x90F1
gabomdq@8021
  1468
#define GL_DRAW_BUFFER_EXT                                      0x0C01
gabomdq@8021
  1469
#define GL_READ_BUFFER_EXT                                      0x0C02
gabomdq@8021
  1470
#define GL_MAX_MULTIVIEW_BUFFERS_EXT                            0x90F2
gabomdq@8021
  1471
#endif
gabomdq@8021
  1472
gabomdq@8021
  1473
/* GL_EXT_multi_draw_arrays */
gabomdq@8021
  1474
/* No new tokens introduced by this extension. */
gabomdq@8021
  1475
gabomdq@8021
  1476
/* GL_EXT_occlusion_query_boolean */
gabomdq@8021
  1477
#ifndef GL_EXT_occlusion_query_boolean
gabomdq@8021
  1478
#define GL_ANY_SAMPLES_PASSED_EXT                               0x8C2F
gabomdq@8021
  1479
#define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT                  0x8D6A
gabomdq@8021
  1480
#define GL_CURRENT_QUERY_EXT                                    0x8865
gabomdq@8021
  1481
#define GL_QUERY_RESULT_EXT                                     0x8866
gabomdq@8021
  1482
#define GL_QUERY_RESULT_AVAILABLE_EXT                           0x8867
gabomdq@8021
  1483
#endif
gabomdq@8021
  1484
gabomdq@8021
  1485
/* GL_EXT_read_format_bgra */
gabomdq@8021
  1486
#ifndef GL_EXT_read_format_bgra
gabomdq@8021
  1487
#define GL_BGRA_EXT                                             0x80E1
gabomdq@8021
  1488
#define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT                       0x8365
gabomdq@8021
  1489
#define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT                       0x8366
gabomdq@8021
  1490
#endif
gabomdq@8021
  1491
gabomdq@8021
  1492
/* GL_EXT_robustness */
gabomdq@8021
  1493
#ifndef GL_EXT_robustness
gabomdq@8021
  1494
/* reuse GL_NO_ERROR */
gabomdq@8021
  1495
#define GL_GUILTY_CONTEXT_RESET_EXT                             0x8253
gabomdq@8021
  1496
#define GL_INNOCENT_CONTEXT_RESET_EXT                           0x8254
gabomdq@8021
  1497
#define GL_UNKNOWN_CONTEXT_RESET_EXT                            0x8255
gabomdq@8021
  1498
#define GL_CONTEXT_ROBUST_ACCESS_EXT                            0x90F3
gabomdq@8021
  1499
#define GL_RESET_NOTIFICATION_STRATEGY_EXT                      0x8256
gabomdq@8021
  1500
#define GL_LOSE_CONTEXT_ON_RESET_EXT                            0x8252
gabomdq@8021
  1501
#define GL_NO_RESET_NOTIFICATION_EXT                            0x8261
gabomdq@8021
  1502
#endif
gabomdq@8021
  1503
gabomdq@8021
  1504
/* GL_EXT_separate_shader_objects */
gabomdq@8021
  1505
#ifndef GL_EXT_separate_shader_objects
gabomdq@8021
  1506
#define GL_VERTEX_SHADER_BIT_EXT                                0x00000001
gabomdq@8021
  1507
#define GL_FRAGMENT_SHADER_BIT_EXT                              0x00000002
gabomdq@8021
  1508
#define GL_ALL_SHADER_BITS_EXT                                  0xFFFFFFFF
gabomdq@8021
  1509
#define GL_PROGRAM_SEPARABLE_EXT                                0x8258
gabomdq@8021
  1510
#define GL_ACTIVE_PROGRAM_EXT                                   0x8259
gabomdq@8021
  1511
#define GL_PROGRAM_PIPELINE_BINDING_EXT                         0x825A
gabomdq@8021
  1512
#endif
gabomdq@8021
  1513
gabomdq@8021
  1514
/* GL_EXT_shader_framebuffer_fetch */
gabomdq@8021
  1515
#ifndef GL_EXT_shader_framebuffer_fetch
gabomdq@8021
  1516
#define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT                 0x8A52
gabomdq@8021
  1517
#endif
gabomdq@8021
  1518
gabomdq@8021
  1519
/* GL_EXT_shader_texture_lod */
gabomdq@8021
  1520
/* No new tokens introduced by this extension. */
gabomdq@8021
  1521
gabomdq@8021
  1522
/* GL_EXT_shadow_samplers */
gabomdq@8021
  1523
#ifndef GL_EXT_shadow_samplers
gabomdq@8021
  1524
#define GL_TEXTURE_COMPARE_MODE_EXT                             0x884C
gabomdq@8021
  1525
#define GL_TEXTURE_COMPARE_FUNC_EXT                             0x884D
gabomdq@8021
  1526
#define GL_COMPARE_REF_TO_TEXTURE_EXT                           0x884E
gabomdq@8021
  1527
#define GL_SAMPLER_2D_SHADOW_EXT                                0x8B62
gabomdq@8021
  1528
#endif
gabomdq@8021
  1529
gabomdq@8021
  1530
/* GL_EXT_sRGB */
gabomdq@8021
  1531
#ifndef GL_EXT_sRGB
gabomdq@8021
  1532
#define GL_SRGB_EXT                                             0x8C40
gabomdq@8021
  1533
#define GL_SRGB_ALPHA_EXT                                       0x8C42
gabomdq@8021
  1534
#define GL_SRGB8_ALPHA8_EXT                                     0x8C43
gabomdq@8021
  1535
#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT            0x8210
gabomdq@8021
  1536
#endif
gabomdq@8021
  1537
gabomdq@8021
  1538
/* GL_EXT_texture_compression_dxt1 */
gabomdq@8021
  1539
#ifndef GL_EXT_texture_compression_dxt1
gabomdq@8021
  1540
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT                         0x83F0
gabomdq@8021
  1541
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT                        0x83F1
gabomdq@8021
  1542
#endif
gabomdq@8021
  1543
gabomdq@8021
  1544
/* GL_EXT_texture_filter_anisotropic */
gabomdq@8021
  1545
#ifndef GL_EXT_texture_filter_anisotropic
gabomdq@8021
  1546
#define GL_TEXTURE_MAX_ANISOTROPY_EXT                           0x84FE
gabomdq@8021
  1547
#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT                       0x84FF
gabomdq@8021
  1548
#endif
gabomdq@8021
  1549
gabomdq@8021
  1550
/* GL_EXT_texture_format_BGRA8888 */
gabomdq@8021
  1551
#ifndef GL_EXT_texture_format_BGRA8888
gabomdq@8021
  1552
#define GL_BGRA_EXT                                             0x80E1
gabomdq@8021
  1553
#endif
gabomdq@8021
  1554
gabomdq@8021
  1555
/* GL_EXT_texture_rg */
gabomdq@8021
  1556
#ifndef GL_EXT_texture_rg
gabomdq@8021
  1557
#define GL_RED_EXT                                              0x1903
gabomdq@8021
  1558
#define GL_RG_EXT                                               0x8227
gabomdq@8021
  1559
#define GL_R8_EXT                                               0x8229
gabomdq@8021
  1560
#define GL_RG8_EXT                                              0x822B
gabomdq@8021
  1561
#endif
gabomdq@8021
  1562
gabomdq@8021
  1563
/* GL_EXT_texture_storage */
gabomdq@8021
  1564
#ifndef GL_EXT_texture_storage
gabomdq@8021
  1565
#define GL_TEXTURE_IMMUTABLE_FORMAT_EXT                         0x912F
gabomdq@8021
  1566
#define GL_ALPHA8_EXT                                           0x803C  
gabomdq@8021
  1567
#define GL_LUMINANCE8_EXT                                       0x8040
gabomdq@8021
  1568
#define GL_LUMINANCE8_ALPHA8_EXT                                0x8045
gabomdq@8021
  1569
#define GL_RGBA32F_EXT                                          0x8814  
gabomdq@8021
  1570
#define GL_RGB32F_EXT                                           0x8815
gabomdq@8021
  1571
#define GL_ALPHA32F_EXT                                         0x8816
gabomdq@8021
  1572
#define GL_LUMINANCE32F_EXT                                     0x8818
gabomdq@8021
  1573
#define GL_LUMINANCE_ALPHA32F_EXT                               0x8819
gabomdq@8021
  1574
/* reuse GL_RGBA16F_EXT */
gabomdq@8021
  1575
/* reuse GL_RGB16F_EXT */
gabomdq@8021
  1576
#define GL_ALPHA16F_EXT                                         0x881C
gabomdq@8021
  1577
#define GL_LUMINANCE16F_EXT                                     0x881E
gabomdq@8021
  1578
#define GL_LUMINANCE_ALPHA16F_EXT                               0x881F
gabomdq@8021
  1579
#define GL_RGB10_A2_EXT                                         0x8059  
gabomdq@8021
  1580
#define GL_RGB10_EXT                                            0x8052
gabomdq@8021
  1581
#define GL_BGRA8_EXT                                            0x93A1
gabomdq@8021
  1582
#define GL_R8_EXT                                               0x8229
gabomdq@8021
  1583
#define GL_RG8_EXT                                              0x822B
gabomdq@8021
  1584
#define GL_R32F_EXT                                             0x822E  
gabomdq@8021
  1585
#define GL_RG32F_EXT                                            0x8230
gabomdq@8021
  1586
#define GL_R16F_EXT                                             0x822D
gabomdq@8021
  1587
#define GL_RG16F_EXT                                            0x822F
gabomdq@8021
  1588
#endif
gabomdq@8021
  1589
gabomdq@8021
  1590
/* GL_EXT_texture_type_2_10_10_10_REV */
gabomdq@8021
  1591
#ifndef GL_EXT_texture_type_2_10_10_10_REV
gabomdq@8021
  1592
#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT                      0x8368
gabomdq@8021
  1593
#endif
gabomdq@8021
  1594
gabomdq@8021
  1595
/* GL_EXT_unpack_subimage */
gabomdq@8021
  1596
#ifndef GL_EXT_unpack_subimage
gabomdq@8021
  1597
#define GL_UNPACK_ROW_LENGTH                                    0x0CF2
gabomdq@8021
  1598
#define GL_UNPACK_SKIP_ROWS                                     0x0CF3
gabomdq@8021
  1599
#define GL_UNPACK_SKIP_PIXELS                                   0x0CF4
gabomdq@8021
  1600
#endif
gabomdq@8021
  1601
gabomdq@8021
  1602
/*------------------------------------------------------------------------*
gabomdq@8021
  1603
 * DMP extension tokens
gabomdq@8021
  1604
 *------------------------------------------------------------------------*/
gabomdq@8021
  1605
gabomdq@8021
  1606
/* GL_DMP_shader_binary */
gabomdq@8021
  1607
#ifndef GL_DMP_shader_binary
gabomdq@8021
  1608
#define GL_SHADER_BINARY_DMP                                    0x9250
gabomdq@8021
  1609
#endif
gabomdq@8021
  1610
gabomdq@8021
  1611
/*------------------------------------------------------------------------*
gabomdq@8021
  1612
 * FJ extension tokens
gabomdq@8021
  1613
 *------------------------------------------------------------------------*/
gabomdq@8021
  1614
gabomdq@8021
  1615
/* GL_FJ_shader_binary_GCCSO */
gabomdq@8021
  1616
#ifndef GL_FJ_shader_binary_GCCSO
gabomdq@8021
  1617
#define GCCSO_SHADER_BINARY_FJ                                  0x9260
gabomdq@8021
  1618
#endif
gabomdq@8021
  1619
gabomdq@8021
  1620
/*------------------------------------------------------------------------*
gabomdq@8021
  1621
 * IMG extension tokens
gabomdq@8021
  1622
 *------------------------------------------------------------------------*/
gabomdq@8021
  1623
gabomdq@8021
  1624
/* GL_IMG_program_binary */
gabomdq@8021
  1625
#ifndef GL_IMG_program_binary
gabomdq@8021
  1626
#define GL_SGX_PROGRAM_BINARY_IMG                               0x9130
gabomdq@8021
  1627
#endif
gabomdq@8021
  1628
gabomdq@8021
  1629
/* GL_IMG_read_format */
gabomdq@8021
  1630
#ifndef GL_IMG_read_format
gabomdq@8021
  1631
#define GL_BGRA_IMG                                             0x80E1
gabomdq@8021
  1632
#define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG                       0x8365
gabomdq@8021
  1633
#endif
gabomdq@8021
  1634
gabomdq@8021
  1635
/* GL_IMG_shader_binary */
gabomdq@8021
  1636
#ifndef GL_IMG_shader_binary
gabomdq@8021
  1637
#define GL_SGX_BINARY_IMG                                       0x8C0A
gabomdq@8021
  1638
#endif
gabomdq@8021
  1639
gabomdq@8021
  1640
/* GL_IMG_texture_compression_pvrtc */
gabomdq@8021
  1641
#ifndef GL_IMG_texture_compression_pvrtc
gabomdq@8021
  1642
#define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG                      0x8C00
gabomdq@8021
  1643
#define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG                      0x8C01
gabomdq@8021
  1644
#define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG                     0x8C02
gabomdq@8021
  1645
#define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG                     0x8C03
gabomdq@8021
  1646
#endif
gabomdq@8021
  1647
gabomdq@8021
  1648
/* GL_IMG_multisampled_render_to_texture */
gabomdq@8021
  1649
#ifndef GL_IMG_multisampled_render_to_texture
gabomdq@8021
  1650
#define GL_RENDERBUFFER_SAMPLES_IMG                             0x9133
gabomdq@8021
  1651
#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG               0x9134
gabomdq@8021
  1652
#define GL_MAX_SAMPLES_IMG                                      0x9135
gabomdq@8021
  1653
#define GL_TEXTURE_SAMPLES_IMG                                  0x9136
gabomdq@8021
  1654
#endif
gabomdq@8021
  1655
gabomdq@8021
  1656
/*------------------------------------------------------------------------*
gabomdq@8021
  1657
 * NV extension tokens
gabomdq@8021
  1658
 *------------------------------------------------------------------------*/
gabomdq@8021
  1659
gabomdq@8021
  1660
/* GL_NV_coverage_sample */
gabomdq@8021
  1661
#ifndef GL_NV_coverage_sample
gabomdq@8021
  1662
#define GL_COVERAGE_COMPONENT_NV                                0x8ED0
gabomdq@8021
  1663
#define GL_COVERAGE_COMPONENT4_NV                               0x8ED1
gabomdq@8021
  1664
#define GL_COVERAGE_ATTACHMENT_NV                               0x8ED2
gabomdq@8021
  1665
#define GL_COVERAGE_BUFFERS_NV                                  0x8ED3
gabomdq@8021
  1666
#define GL_COVERAGE_SAMPLES_NV                                  0x8ED4
gabomdq@8021
  1667
#define GL_COVERAGE_ALL_FRAGMENTS_NV                            0x8ED5
gabomdq@8021
  1668
#define GL_COVERAGE_EDGE_FRAGMENTS_NV                           0x8ED6
gabomdq@8021
  1669
#define GL_COVERAGE_AUTOMATIC_NV                                0x8ED7
gabomdq@8021
  1670
#define GL_COVERAGE_BUFFER_BIT_NV                               0x8000
gabomdq@8021
  1671
#endif
gabomdq@8021
  1672
gabomdq@8021
  1673
/* GL_NV_depth_nonlinear */
gabomdq@8021
  1674
#ifndef GL_NV_depth_nonlinear
gabomdq@8021
  1675
#define GL_DEPTH_COMPONENT16_NONLINEAR_NV                       0x8E2C
gabomdq@8021
  1676
#endif
gabomdq@8021
  1677
gabomdq@8021
  1678
/* GL_NV_draw_buffers */
gabomdq@8021
  1679
#ifndef GL_NV_draw_buffers
gabomdq@8021
  1680
#define GL_MAX_DRAW_BUFFERS_NV                                  0x8824
gabomdq@8021
  1681
#define GL_DRAW_BUFFER0_NV                                      0x8825
gabomdq@8021
  1682
#define GL_DRAW_BUFFER1_NV                                      0x8826
gabomdq@8021
  1683
#define GL_DRAW_BUFFER2_NV                                      0x8827
gabomdq@8021
  1684
#define GL_DRAW_BUFFER3_NV                                      0x8828
gabomdq@8021
  1685
#define GL_DRAW_BUFFER4_NV                                      0x8829
gabomdq@8021
  1686
#define GL_DRAW_BUFFER5_NV                                      0x882A
gabomdq@8021
  1687
#define GL_DRAW_BUFFER6_NV                                      0x882B
gabomdq@8021
  1688
#define GL_DRAW_BUFFER7_NV                                      0x882C
gabomdq@8021
  1689
#define GL_DRAW_BUFFER8_NV                                      0x882D
gabomdq@8021
  1690
#define GL_DRAW_BUFFER9_NV                                      0x882E
gabomdq@8021
  1691
#define GL_DRAW_BUFFER10_NV                                     0x882F
gabomdq@8021
  1692
#define GL_DRAW_BUFFER11_NV                                     0x8830
gabomdq@8021
  1693
#define GL_DRAW_BUFFER12_NV                                     0x8831
gabomdq@8021
  1694
#define GL_DRAW_BUFFER13_NV                                     0x8832
gabomdq@8021
  1695
#define GL_DRAW_BUFFER14_NV                                     0x8833
gabomdq@8021
  1696
#define GL_DRAW_BUFFER15_NV                                     0x8834
gabomdq@8021
  1697
#define GL_COLOR_ATTACHMENT0_NV                                 0x8CE0
gabomdq@8021
  1698
#define GL_COLOR_ATTACHMENT1_NV                                 0x8CE1
gabomdq@8021
  1699
#define GL_COLOR_ATTACHMENT2_NV                                 0x8CE2
gabomdq@8021
  1700
#define GL_COLOR_ATTACHMENT3_NV                                 0x8CE3
gabomdq@8021
  1701
#define GL_COLOR_ATTACHMENT4_NV                                 0x8CE4
gabomdq@8021
  1702
#define GL_COLOR_ATTACHMENT5_NV                                 0x8CE5
gabomdq@8021
  1703
#define GL_COLOR_ATTACHMENT6_NV                                 0x8CE6
gabomdq@8021
  1704
#define GL_COLOR_ATTACHMENT7_NV                                 0x8CE7
gabomdq@8021
  1705
#define GL_COLOR_ATTACHMENT8_NV                                 0x8CE8
gabomdq@8021
  1706
#define GL_COLOR_ATTACHMENT9_NV                                 0x8CE9
gabomdq@8021
  1707
#define GL_COLOR_ATTACHMENT10_NV                                0x8CEA
gabomdq@8021
  1708
#define GL_COLOR_ATTACHMENT11_NV                                0x8CEB
gabomdq@8021
  1709
#define GL_COLOR_ATTACHMENT12_NV                                0x8CEC
gabomdq@8021
  1710
#define GL_COLOR_ATTACHMENT13_NV                                0x8CED
gabomdq@8021
  1711
#define GL_COLOR_ATTACHMENT14_NV                                0x8CEE
gabomdq@8021
  1712
#define GL_COLOR_ATTACHMENT15_NV                                0x8CEF
gabomdq@8021
  1713
#endif
gabomdq@8021
  1714
gabomdq@8021
  1715
/* GL_NV_fbo_color_attachments */
gabomdq@8021
  1716
#ifndef GL_NV_fbo_color_attachments
gabomdq@8021
  1717
#define GL_MAX_COLOR_ATTACHMENTS_NV                             0x8CDF
gabomdq@8021
  1718
/* GL_COLOR_ATTACHMENT{0-15}_NV defined in GL_NV_draw_buffers already. */
gabomdq@8021
  1719
#endif
gabomdq@8021
  1720
gabomdq@8021
  1721
/* GL_NV_fence */
gabomdq@8021
  1722
#ifndef GL_NV_fence
gabomdq@8021
  1723
#define GL_ALL_COMPLETED_NV                                     0x84F2
gabomdq@8021
  1724
#define GL_FENCE_STATUS_NV                                      0x84F3
gabomdq@8021
  1725
#define GL_FENCE_CONDITION_NV                                   0x84F4
gabomdq@8021
  1726
#endif
gabomdq@8021
  1727
gabomdq@8021
  1728
/* GL_NV_read_buffer */
gabomdq@8021
  1729
#ifndef GL_NV_read_buffer
gabomdq@8021
  1730
#define GL_READ_BUFFER_NV                                       0x0C02
gabomdq@8021
  1731
#endif
gabomdq@8021
  1732
gabomdq@8021
  1733
/* GL_NV_read_buffer_front */
gabomdq@8021
  1734
/* No new tokens introduced by this extension. */
gabomdq@8021
  1735
gabomdq@8021
  1736
/* GL_NV_read_depth */
gabomdq@8021
  1737
/* No new tokens introduced by this extension. */
gabomdq@8021
  1738
gabomdq@8021
  1739
/* GL_NV_read_depth_stencil */
gabomdq@8021
  1740
/* No new tokens introduced by this extension. */
gabomdq@8021
  1741
gabomdq@8021
  1742
/* GL_NV_read_stencil */
gabomdq@8021
  1743
/* No new tokens introduced by this extension. */
gabomdq@8021
  1744
gabomdq@8021
  1745
/* GL_NV_texture_compression_s3tc_update */
gabomdq@8021
  1746
/* No new tokens introduced by this extension. */
gabomdq@8021
  1747
gabomdq@8021
  1748
/* GL_NV_texture_npot_2D_mipmap */
gabomdq@8021
  1749
/* No new tokens introduced by this extension. */
gabomdq@8021
  1750
gabomdq@8021
  1751
/*------------------------------------------------------------------------*
gabomdq@8021
  1752
 * QCOM extension tokens
gabomdq@8021
  1753
 *------------------------------------------------------------------------*/
gabomdq@8021
  1754
gabomdq@8021
  1755
/* GL_QCOM_alpha_test */
gabomdq@8021
  1756
#ifndef GL_QCOM_alpha_test
gabomdq@8021
  1757
#define GL_ALPHA_TEST_QCOM                                      0x0BC0
gabomdq@8021
  1758
#define GL_ALPHA_TEST_FUNC_QCOM                                 0x0BC1
gabomdq@8021
  1759
#define GL_ALPHA_TEST_REF_QCOM                                  0x0BC2
gabomdq@8021
  1760
#endif
gabomdq@8021
  1761
gabomdq@8021
  1762
/* GL_QCOM_binning_control */
gabomdq@8021
  1763
#ifndef GL_QCOM_binning_control
gabomdq@8021
  1764
#define GL_BINNING_CONTROL_HINT_QCOM                            0x8FB0
gabomdq@8021
  1765
#define GL_CPU_OPTIMIZED_QCOM                                   0x8FB1
gabomdq@8021
  1766
#define GL_GPU_OPTIMIZED_QCOM                                   0x8FB2
gabomdq@8021
  1767
#define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM                    0x8FB3
gabomdq@8021
  1768
#endif
gabomdq@8021
  1769
gabomdq@8021
  1770
/* GL_QCOM_driver_control */
gabomdq@8021
  1771
/* No new tokens introduced by this extension. */
gabomdq@8021
  1772
gabomdq@8021
  1773
/* GL_QCOM_extended_get */
gabomdq@8021
  1774
#ifndef GL_QCOM_extended_get
gabomdq@8021
  1775
#define GL_TEXTURE_WIDTH_QCOM                                   0x8BD2
gabomdq@8021
  1776
#define GL_TEXTURE_HEIGHT_QCOM                                  0x8BD3
gabomdq@8021
  1777
#define GL_TEXTURE_DEPTH_QCOM                                   0x8BD4
gabomdq@8021
  1778
#define GL_TEXTURE_INTERNAL_FORMAT_QCOM                         0x8BD5
gabomdq@8021
  1779
#define GL_TEXTURE_FORMAT_QCOM                                  0x8BD6
gabomdq@8021
  1780
#define GL_TEXTURE_TYPE_QCOM                                    0x8BD7
gabomdq@8021
  1781
#define GL_TEXTURE_IMAGE_VALID_QCOM                             0x8BD8
gabomdq@8021
  1782
#define GL_TEXTURE_NUM_LEVELS_QCOM                              0x8BD9
gabomdq@8021
  1783
#define GL_TEXTURE_TARGET_QCOM                                  0x8BDA
gabomdq@8021
  1784
#define GL_TEXTURE_OBJECT_VALID_QCOM                            0x8BDB
gabomdq@8021
  1785
#define GL_STATE_RESTORE                                        0x8BDC
gabomdq@8021
  1786
#endif
gabomdq@8021
  1787
gabomdq@8021
  1788
/* GL_QCOM_extended_get2 */
gabomdq@8021
  1789
/* No new tokens introduced by this extension. */
gabomdq@8021
  1790
gabomdq@8021
  1791
/* GL_QCOM_perfmon_global_mode */
gabomdq@8021
  1792
#ifndef GL_QCOM_perfmon_global_mode
gabomdq@8021
  1793
#define GL_PERFMON_GLOBAL_MODE_QCOM                             0x8FA0
gabomdq@8021
  1794
#endif
gabomdq@8021
  1795
gabomdq@8021
  1796
/* GL_QCOM_writeonly_rendering */
gabomdq@8021
  1797
#ifndef GL_QCOM_writeonly_rendering
gabomdq@8021
  1798
#define GL_WRITEONLY_RENDERING_QCOM                             0x8823
gabomdq@8021
  1799
#endif
gabomdq@8021
  1800
gabomdq@8021
  1801
/* GL_QCOM_tiled_rendering */
gabomdq@8021
  1802
#ifndef GL_QCOM_tiled_rendering
gabomdq@8021
  1803
#define GL_COLOR_BUFFER_BIT0_QCOM                               0x00000001
gabomdq@8021
  1804
#define GL_COLOR_BUFFER_BIT1_QCOM                               0x00000002
gabomdq@8021
  1805
#define GL_COLOR_BUFFER_BIT2_QCOM                               0x00000004
gabomdq@8021
  1806
#define GL_COLOR_BUFFER_BIT3_QCOM                               0x00000008
gabomdq@8021
  1807
#define GL_COLOR_BUFFER_BIT4_QCOM                               0x00000010
gabomdq@8021
  1808
#define GL_COLOR_BUFFER_BIT5_QCOM                               0x00000020
gabomdq@8021
  1809
#define GL_COLOR_BUFFER_BIT6_QCOM                               0x00000040
gabomdq@8021
  1810
#define GL_COLOR_BUFFER_BIT7_QCOM                               0x00000080
gabomdq@8021
  1811
#define GL_DEPTH_BUFFER_BIT0_QCOM                               0x00000100
gabomdq@8021
  1812
#define GL_DEPTH_BUFFER_BIT1_QCOM                               0x00000200
gabomdq@8021
  1813
#define GL_DEPTH_BUFFER_BIT2_QCOM                               0x00000400
gabomdq@8021
  1814
#define GL_DEPTH_BUFFER_BIT3_QCOM                               0x00000800
gabomdq@8021
  1815
#define GL_DEPTH_BUFFER_BIT4_QCOM                               0x00001000
gabomdq@8021
  1816
#define GL_DEPTH_BUFFER_BIT5_QCOM                               0x00002000
gabomdq@8021
  1817
#define GL_DEPTH_BUFFER_BIT6_QCOM                               0x00004000
gabomdq@8021
  1818
#define GL_DEPTH_BUFFER_BIT7_QCOM                               0x00008000
gabomdq@8021
  1819
#define GL_STENCIL_BUFFER_BIT0_QCOM                             0x00010000
gabomdq@8021
  1820
#define GL_STENCIL_BUFFER_BIT1_QCOM                             0x00020000
gabomdq@8021
  1821
#define GL_STENCIL_BUFFER_BIT2_QCOM                             0x00040000
gabomdq@8021
  1822
#define GL_STENCIL_BUFFER_BIT3_QCOM                             0x00080000
gabomdq@8021
  1823
#define GL_STENCIL_BUFFER_BIT4_QCOM                             0x00100000
gabomdq@8021
  1824
#define GL_STENCIL_BUFFER_BIT5_QCOM                             0x00200000
gabomdq@8021
  1825
#define GL_STENCIL_BUFFER_BIT6_QCOM                             0x00400000
gabomdq@8021
  1826
#define GL_STENCIL_BUFFER_BIT7_QCOM                             0x00800000
gabomdq@8021
  1827
#define GL_MULTISAMPLE_BUFFER_BIT0_QCOM                         0x01000000
gabomdq@8021
  1828
#define GL_MULTISAMPLE_BUFFER_BIT1_QCOM                         0x02000000
gabomdq@8021
  1829
#define GL_MULTISAMPLE_BUFFER_BIT2_QCOM                         0x04000000
gabomdq@8021
  1830
#define GL_MULTISAMPLE_BUFFER_BIT3_QCOM                         0x08000000
gabomdq@8021
  1831
#define GL_MULTISAMPLE_BUFFER_BIT4_QCOM                         0x10000000
gabomdq@8021
  1832
#define GL_MULTISAMPLE_BUFFER_BIT5_QCOM                         0x20000000
gabomdq@8021
  1833
#define GL_MULTISAMPLE_BUFFER_BIT6_QCOM                         0x40000000
gabomdq@8021
  1834
#define GL_MULTISAMPLE_BUFFER_BIT7_QCOM                         0x80000000
gabomdq@8021
  1835
#endif
gabomdq@8021
  1836
gabomdq@8021
  1837
/*------------------------------------------------------------------------*
gabomdq@8021
  1838
 * VIV extension tokens
gabomdq@8021
  1839
 *------------------------------------------------------------------------*/
gabomdq@8021
  1840
gabomdq@8021
  1841
/* GL_VIV_shader_binary */
gabomdq@8021
  1842
#ifndef GL_VIV_shader_binary
gabomdq@8021
  1843
#define GL_SHADER_BINARY_VIV                                    0x8FC4
gabomdq@8021
  1844
#endif
gabomdq@8021
  1845
gabomdq@8021
  1846
/*------------------------------------------------------------------------*
gabomdq@8021
  1847
 * End of extension tokens, start of corresponding extension functions
gabomdq@8021
  1848
 *------------------------------------------------------------------------*/
gabomdq@8021
  1849
gabomdq@8021
  1850
/*------------------------------------------------------------------------*
gabomdq@8021
  1851
 * OES extension functions
gabomdq@8021
  1852
 *------------------------------------------------------------------------*/
gabomdq@8021
  1853
gabomdq@8021
  1854
/* GL_OES_compressed_ETC1_RGB8_texture */
gabomdq@8021
  1855
#ifndef GL_OES_compressed_ETC1_RGB8_texture
gabomdq@8021
  1856
#define GL_OES_compressed_ETC1_RGB8_texture 1
gabomdq@8021
  1857
#endif
gabomdq@8021
  1858
gabomdq@8021
  1859
/* GL_OES_compressed_paletted_texture */
gabomdq@8021
  1860
#ifndef GL_OES_compressed_paletted_texture
gabomdq@8021
  1861
#define GL_OES_compressed_paletted_texture 1
gabomdq@8021
  1862
#endif
gabomdq@8021
  1863
gabomdq@8021
  1864
/* GL_OES_depth24 */
gabomdq@8021
  1865
#ifndef GL_OES_depth24
gabomdq@8021
  1866
#define GL_OES_depth24 1
gabomdq@8021
  1867
#endif
gabomdq@8021
  1868
gabomdq@8021
  1869
/* GL_OES_depth32 */
gabomdq@8021
  1870
#ifndef GL_OES_depth32
gabomdq@8021
  1871
#define GL_OES_depth32 1
gabomdq@8021
  1872
#endif
gabomdq@8021
  1873
gabomdq@8021
  1874
/* GL_OES_depth_texture */
gabomdq@8021
  1875
#ifndef GL_OES_depth_texture
gabomdq@8021
  1876
#define GL_OES_depth_texture 1
gabomdq@8021
  1877
#endif
gabomdq@8021
  1878
gabomdq@8021
  1879
/* GL_OES_EGL_image */
gabomdq@8021
  1880
#ifndef GL_OES_EGL_image
gabomdq@8021
  1881
#define GL_OES_EGL_image 1
gabomdq@8021
  1882
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  1883
GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
gabomdq@8021
  1884
GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
gabomdq@8021
  1885
#endif
gabomdq@8021
  1886
typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
gabomdq@8021
  1887
typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
gabomdq@8021
  1888
#endif
gabomdq@8021
  1889
gabomdq@8021
  1890
/* GL_OES_EGL_image_external */
gabomdq@8021
  1891
#ifndef GL_OES_EGL_image_external
gabomdq@8021
  1892
#define GL_OES_EGL_image_external 1
gabomdq@8021
  1893
/* glEGLImageTargetTexture2DOES defined in GL_OES_EGL_image already. */
gabomdq@8021
  1894
#endif
gabomdq@8021
  1895
gabomdq@8021
  1896
/* GL_OES_element_index_uint */
gabomdq@8021
  1897
#ifndef GL_OES_element_index_uint
gabomdq@8021
  1898
#define GL_OES_element_index_uint 1
gabomdq@8021
  1899
#endif
gabomdq@8021
  1900
gabomdq@8021
  1901
/* GL_OES_fbo_render_mipmap */
gabomdq@8021
  1902
#ifndef GL_OES_fbo_render_mipmap
gabomdq@8021
  1903
#define GL_OES_fbo_render_mipmap 1
gabomdq@8021
  1904
#endif
gabomdq@8021
  1905
gabomdq@8021
  1906
/* GL_OES_fragment_precision_high */
gabomdq@8021
  1907
#ifndef GL_OES_fragment_precision_high
gabomdq@8021
  1908
#define GL_OES_fragment_precision_high 1
gabomdq@8021
  1909
#endif
gabomdq@8021
  1910
gabomdq@8021
  1911
/* GL_OES_get_program_binary */
gabomdq@8021
  1912
#ifndef GL_OES_get_program_binary
gabomdq@8021
  1913
#define GL_OES_get_program_binary 1
gabomdq@8021
  1914
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  1915
GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
gabomdq@8021
  1916
GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
gabomdq@8021
  1917
#endif
gabomdq@8021
  1918
typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
gabomdq@8021
  1919
typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLint length);
gabomdq@8021
  1920
#endif
gabomdq@8021
  1921
gabomdq@8021
  1922
/* GL_OES_mapbuffer */
gabomdq@8021
  1923
#ifndef GL_OES_mapbuffer
gabomdq@8021
  1924
#define GL_OES_mapbuffer 1
gabomdq@8021
  1925
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  1926
GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
gabomdq@8021
  1927
GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
gabomdq@8021
  1928
GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, GLvoid** params);
gabomdq@8021
  1929
#endif
gabomdq@8021
  1930
typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
gabomdq@8021
  1931
typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
gabomdq@8021
  1932
typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, GLvoid** params);
gabomdq@8021
  1933
#endif
gabomdq@8021
  1934
gabomdq@8021
  1935
/* GL_OES_packed_depth_stencil */
gabomdq@8021
  1936
#ifndef GL_OES_packed_depth_stencil
gabomdq@8021
  1937
#define GL_OES_packed_depth_stencil 1
gabomdq@8021
  1938
#endif
gabomdq@8021
  1939
gabomdq@8021
  1940
/* GL_OES_required_internalformat */
gabomdq@8021
  1941
#ifndef GL_OES_required_internalformat
gabomdq@8021
  1942
#define GL_OES_required_internalformat 1
gabomdq@8021
  1943
#endif
gabomdq@8021
  1944
gabomdq@8021
  1945
/* GL_OES_rgb8_rgba8 */
gabomdq@8021
  1946
#ifndef GL_OES_rgb8_rgba8
gabomdq@8021
  1947
#define GL_OES_rgb8_rgba8 1
gabomdq@8021
  1948
#endif
gabomdq@8021
  1949
gabomdq@8021
  1950
/* GL_OES_standard_derivatives */
gabomdq@8021
  1951
#ifndef GL_OES_standard_derivatives
gabomdq@8021
  1952
#define GL_OES_standard_derivatives 1
gabomdq@8021
  1953
#endif
gabomdq@8021
  1954
gabomdq@8021
  1955
/* GL_OES_stencil1 */
gabomdq@8021
  1956
#ifndef GL_OES_stencil1
gabomdq@8021
  1957
#define GL_OES_stencil1 1
gabomdq@8021
  1958
#endif
gabomdq@8021
  1959
gabomdq@8021
  1960
/* GL_OES_stencil4 */
gabomdq@8021
  1961
#ifndef GL_OES_stencil4
gabomdq@8021
  1962
#define GL_OES_stencil4 1
gabomdq@8021
  1963
#endif
gabomdq@8021
  1964
gabomdq@8021
  1965
#ifndef GL_OES_surfaceless_context
gabomdq@8021
  1966
#define GL_OES_surfaceless_context 1
gabomdq@8021
  1967
#endif
gabomdq@8021
  1968
gabomdq@8021
  1969
/* GL_OES_texture_3D */
gabomdq@8021
  1970
#ifndef GL_OES_texture_3D
gabomdq@8021
  1971
#define GL_OES_texture_3D 1
gabomdq@8021
  1972
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  1973
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);
gabomdq@8021
  1974
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);
gabomdq@8021
  1975
GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
gabomdq@8021
  1976
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);
gabomdq@8021
  1977
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);
gabomdq@8021
  1978
GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
gabomdq@8021
  1979
#endif
gabomdq@8021
  1980
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);
gabomdq@8021
  1981
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);
gabomdq@8021
  1982
typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
gabomdq@8021
  1983
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data);
gabomdq@8021
  1984
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);
gabomdq@8021
  1985
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
gabomdq@8021
  1986
#endif
gabomdq@8021
  1987
gabomdq@8021
  1988
/* GL_OES_texture_float */
gabomdq@8021
  1989
#ifndef GL_OES_texture_float
gabomdq@8021
  1990
#define GL_OES_texture_float 1
gabomdq@8021
  1991
#endif
gabomdq@8021
  1992
gabomdq@8021
  1993
/* GL_OES_texture_float_linear */
gabomdq@8021
  1994
#ifndef GL_OES_texture_float_linear
gabomdq@8021
  1995
#define GL_OES_texture_float_linear 1
gabomdq@8021
  1996
#endif
gabomdq@8021
  1997
gabomdq@8021
  1998
/* GL_OES_texture_half_float */
gabomdq@8021
  1999
#ifndef GL_OES_texture_half_float
gabomdq@8021
  2000
#define GL_OES_texture_half_float 1
gabomdq@8021
  2001
#endif
gabomdq@8021
  2002
gabomdq@8021
  2003
/* GL_OES_texture_half_float_linear */
gabomdq@8021
  2004
#ifndef GL_OES_texture_half_float_linear
gabomdq@8021
  2005
#define GL_OES_texture_half_float_linear 1
gabomdq@8021
  2006
#endif
gabomdq@8021
  2007
gabomdq@8021
  2008
/* GL_OES_texture_npot */
gabomdq@8021
  2009
#ifndef GL_OES_texture_npot
gabomdq@8021
  2010
#define GL_OES_texture_npot 1
gabomdq@8021
  2011
#endif
gabomdq@8021
  2012
gabomdq@8021
  2013
/* GL_OES_vertex_array_object */
gabomdq@8021
  2014
#ifndef GL_OES_vertex_array_object
gabomdq@8021
  2015
#define GL_OES_vertex_array_object 1
gabomdq@8021
  2016
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2017
GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array);
gabomdq@8021
  2018
GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *arrays);
gabomdq@8021
  2019
GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays);
gabomdq@8021
  2020
GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array);
gabomdq@8021
  2021
#endif
gabomdq@8021
  2022
typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
gabomdq@8021
  2023
typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint *arrays);
gabomdq@8021
  2024
typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arrays);
gabomdq@8021
  2025
typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array);
gabomdq@8021
  2026
#endif
gabomdq@8021
  2027
gabomdq@8021
  2028
/* GL_OES_vertex_half_float */
gabomdq@8021
  2029
#ifndef GL_OES_vertex_half_float
gabomdq@8021
  2030
#define GL_OES_vertex_half_float 1
gabomdq@8021
  2031
#endif
gabomdq@8021
  2032
gabomdq@8021
  2033
/* GL_OES_vertex_type_10_10_10_2 */
gabomdq@8021
  2034
#ifndef GL_OES_vertex_type_10_10_10_2
gabomdq@8021
  2035
#define GL_OES_vertex_type_10_10_10_2 1
gabomdq@8021
  2036
#endif
gabomdq@8021
  2037
gabomdq@8021
  2038
/*------------------------------------------------------------------------*
gabomdq@8021
  2039
 * KHR extension functions
gabomdq@8021
  2040
 *------------------------------------------------------------------------*/
gabomdq@8021
  2041
gabomdq@8021
  2042
#ifndef GL_KHR_debug
gabomdq@8021
  2043
#define GL_KHR_debug 1
gabomdq@8021
  2044
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2045
GL_APICALL void GL_APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
gabomdq@8021
  2046
GL_APICALL void GL_APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
gabomdq@8021
  2047
GL_APICALL void GL_APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
gabomdq@8021
  2048
GL_APICALL GLuint GL_APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
gabomdq@8021
  2049
GL_APICALL void GL_APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
gabomdq@8021
  2050
GL_APICALL void GL_APIENTRY glPopDebugGroup (void);
gabomdq@8021
  2051
GL_APICALL void GL_APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
gabomdq@8021
  2052
GL_APICALL void GL_APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
gabomdq@8021
  2053
GL_APICALL void GL_APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
gabomdq@8021
  2054
GL_APICALL void GL_APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
gabomdq@8021
  2055
GL_APICALL void GL_APIENTRY glGetPointerv (GLenum pname, void **params);
gabomdq@8021
  2056
#endif 
gabomdq@8021
  2057
typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
gabomdq@8021
  2058
typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
gabomdq@8021
  2059
typedef void (GL_APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
gabomdq@8021
  2060
typedef GLuint (GL_APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
gabomdq@8021
  2061
typedef void (GL_APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
gabomdq@8021
  2062
typedef void (GL_APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
gabomdq@8021
  2063
typedef void (GL_APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
gabomdq@8021
  2064
typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
gabomdq@8021
  2065
typedef void (GL_APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
gabomdq@8021
  2066
typedef void (GL_APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
gabomdq@8021
  2067
typedef void (GL_APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, void **params);
gabomdq@8021
  2068
#endif
gabomdq@8021
  2069
gabomdq@8021
  2070
#ifndef GL_KHR_texture_compression_astc_ldr
gabomdq@8021
  2071
#define GL_KHR_texture_compression_astc_ldr 1
gabomdq@8021
  2072
#endif
gabomdq@8021
  2073
gabomdq@8021
  2074
gabomdq@8021
  2075
/*------------------------------------------------------------------------*
gabomdq@8021
  2076
 * AMD extension functions
gabomdq@8021
  2077
 *------------------------------------------------------------------------*/
gabomdq@8021
  2078
gabomdq@8021
  2079
/* GL_AMD_compressed_3DC_texture */
gabomdq@8021
  2080
#ifndef GL_AMD_compressed_3DC_texture
gabomdq@8021
  2081
#define GL_AMD_compressed_3DC_texture 1
gabomdq@8021
  2082
#endif
gabomdq@8021
  2083
gabomdq@8021
  2084
/* GL_AMD_compressed_ATC_texture */
gabomdq@8021
  2085
#ifndef GL_AMD_compressed_ATC_texture
gabomdq@8021
  2086
#define GL_AMD_compressed_ATC_texture 1
gabomdq@8021
  2087
#endif
gabomdq@8021
  2088
gabomdq@8021
  2089
/* AMD_performance_monitor */
gabomdq@8021
  2090
#ifndef GL_AMD_performance_monitor
gabomdq@8021
  2091
#define GL_AMD_performance_monitor 1
gabomdq@8021
  2092
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2093
GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
gabomdq@8021
  2094
GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
gabomdq@8021
  2095
GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
gabomdq@8021
  2096
GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
gabomdq@8021
  2097
GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
gabomdq@8021
  2098
GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors);
gabomdq@8021
  2099
GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors);
gabomdq@8021
  2100
GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
gabomdq@8021
  2101
GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor);
gabomdq@8021
  2102
GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor);
gabomdq@8021
  2103
GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
gabomdq@8021
  2104
#endif
gabomdq@8021
  2105
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups, GLsizei groupsSize, GLuint *groups);
gabomdq@8021
  2106
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters);
gabomdq@8021
  2107
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei *length, GLchar *groupString);
gabomdq@8021
  2108
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString);
gabomdq@8021
  2109
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, GLvoid *data);
gabomdq@8021
  2110
typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
gabomdq@8021
  2111
typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *monitors);
gabomdq@8021
  2112
typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList);
gabomdq@8021
  2113
typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
gabomdq@8021
  2114
typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
gabomdq@8021
  2115
typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten);
gabomdq@8021
  2116
#endif
gabomdq@8021
  2117
gabomdq@8021
  2118
/* GL_AMD_program_binary_Z400 */
gabomdq@8021
  2119
#ifndef GL_AMD_program_binary_Z400
gabomdq@8021
  2120
#define GL_AMD_program_binary_Z400 1
gabomdq@8021
  2121
#endif
gabomdq@8021
  2122
gabomdq@8021
  2123
/*------------------------------------------------------------------------*
gabomdq@8021
  2124
 * ANGLE extension functions
gabomdq@8021
  2125
 *------------------------------------------------------------------------*/
gabomdq@8021
  2126
gabomdq@8021
  2127
/* GL_ANGLE_framebuffer_blit */
gabomdq@8021
  2128
#ifndef GL_ANGLE_framebuffer_blit
gabomdq@8021
  2129
#define GL_ANGLE_framebuffer_blit 1
gabomdq@8021
  2130
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2131
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);
gabomdq@8021
  2132
#endif
gabomdq@8021
  2133
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);
gabomdq@8021
  2134
#endif
gabomdq@8021
  2135
gabomdq@8021
  2136
/* GL_ANGLE_framebuffer_multisample */
gabomdq@8021
  2137
#ifndef GL_ANGLE_framebuffer_multisample
gabomdq@8021
  2138
#define GL_ANGLE_framebuffer_multisample 1
gabomdq@8021
  2139
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2140
GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2141
#endif
gabomdq@8021
  2142
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2143
#endif
gabomdq@8021
  2144
gabomdq@8021
  2145
#ifndef GL_ANGLE_instanced_arrays 
gabomdq@8021
  2146
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2147
GL_APICALL void GL_APIENTRY glDrawArraysInstancedANGLE (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
gabomdq@8021
  2148
GL_APICALL void GL_APIENTRY glDrawElementsInstancedANGLE (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
gabomdq@8021
  2149
GL_APICALL void GL_APIENTRY glVertexAttribDivisorANGLE (GLuint index, GLuint divisor);
gabomdq@8021
  2150
#endif
gabomdq@8021
  2151
typedef void (GL_APIENTRYP PFLGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
gabomdq@8021
  2152
typedef void (GL_APIENTRYP PFLGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount);
gabomdq@8021
  2153
typedef void (GL_APIENTRYP PFLGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
gabomdq@8021
  2154
#endif
gabomdq@8021
  2155
gabomdq@8021
  2156
/* GL_ANGLE_pack_reverse_row_order */
gabomdq@8021
  2157
#ifndef GL_ANGLE_pack_reverse_row_order 
gabomdq@8021
  2158
#define GL_ANGLE_pack_reverse_row_order 1
gabomdq@8021
  2159
#endif
gabomdq@8021
  2160
gabomdq@8021
  2161
/* GL_ANGLE_texture_compression_dxt3 */
gabomdq@8021
  2162
#ifndef GL_ANGLE_texture_compression_dxt3 
gabomdq@8021
  2163
#define GL_ANGLE_texture_compression_dxt3 1
gabomdq@8021
  2164
#endif
gabomdq@8021
  2165
gabomdq@8021
  2166
/* GL_ANGLE_texture_compression_dxt5 */
gabomdq@8021
  2167
#ifndef GL_ANGLE_texture_compression_dxt5 
gabomdq@8021
  2168
#define GL_ANGLE_texture_compression_dxt5 1
gabomdq@8021
  2169
#endif
gabomdq@8021
  2170
gabomdq@8021
  2171
/* GL_ANGLE_texture_usage */
gabomdq@8021
  2172
#ifndef GL_ANGLE_texture_usage 
gabomdq@8021
  2173
#define GL_ANGLE_texture_usage 1
gabomdq@8021
  2174
#endif
gabomdq@8021
  2175
gabomdq@8021
  2176
#ifndef GL_ANGLE_translated_shader_source 
gabomdq@8021
  2177
#define GL_ANGLE_translated_shader_source 1
gabomdq@8021
  2178
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2179
GL_APICALL void GL_APIENTRY glGetTranslatedShaderSourceANGLE (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
gabomdq@8021
  2180
#endif
gabomdq@8021
  2181
typedef void (GL_APIENTRYP PFLGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei *length, GLchar *source);
gabomdq@8021
  2182
#endif
gabomdq@8021
  2183
gabomdq@8021
  2184
/*------------------------------------------------------------------------*
gabomdq@8021
  2185
 * APPLE extension functions
gabomdq@8021
  2186
 *------------------------------------------------------------------------*/
gabomdq@8021
  2187
gabomdq@8021
  2188
/* GL_APPLE_copy_texture_levels */
gabomdq@8021
  2189
#ifndef GL_APPLE_copy_texture_levels
gabomdq@8021
  2190
#define GL_APPLE_copy_texture_levels 1
gabomdq@8021
  2191
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2192
GL_APICALL void GL_APIENTRY glCopyTextureLevelsAPPLE (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
gabomdq@8021
  2193
#endif
gabomdq@8021
  2194
typedef void (GL_APIENTRYP PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
gabomdq@8021
  2195
#endif
gabomdq@8021
  2196
gabomdq@8021
  2197
/* GL_APPLE_framebuffer_multisample */
gabomdq@8021
  2198
#ifndef GL_APPLE_framebuffer_multisample
gabomdq@8021
  2199
#define GL_APPLE_framebuffer_multisample 1
gabomdq@8021
  2200
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2201
GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleAPPLE (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
gabomdq@8021
  2202
GL_APICALL void GL_APIENTRY glResolveMultisampleFramebufferAPPLE (void);
gabomdq@8021
  2203
#endif /* GL_GLEXT_PROTOTYPES */
gabomdq@8021
  2204
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2205
typedef void (GL_APIENTRYP PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
gabomdq@8021
  2206
#endif
gabomdq@8021
  2207
gabomdq@8021
  2208
/* GL_APPLE_rgb_422 */
gabomdq@8021
  2209
#ifndef GL_APPLE_rgb_422
gabomdq@8021
  2210
#define GL_APPLE_rgb_422 1
gabomdq@8021
  2211
#endif
gabomdq@8021
  2212
gabomdq@8021
  2213
/* GL_APPLE_sync */
gabomdq@8021
  2214
#ifndef GL_APPLE_sync
gabomdq@8021
  2215
#define GL_APPLE_sync 1
gabomdq@8021
  2216
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2217
GL_APICALL GLsync GL_APIENTRY glFenceSyncAPPLE (GLenum condition, GLbitfield flags);
gabomdq@8021
  2218
GL_APICALL GLboolean GL_APIENTRY glIsSyncAPPLE (GLsync sync);
gabomdq@8021
  2219
GL_APICALL void GL_APIENTRY glDeleteSyncAPPLE (GLsync sync);
gabomdq@8021
  2220
GL_APICALL GLenum GL_APIENTRY glClientWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
gabomdq@8021
  2221
GL_APICALL void GL_APIENTRY glWaitSyncAPPLE (GLsync sync, GLbitfield flags, GLuint64 timeout);
gabomdq@8021
  2222
GL_APICALL void GL_APIENTRY glGetInteger64vAPPLE (GLenum pname, GLint64 *params);
gabomdq@8021
  2223
GL_APICALL void GL_APIENTRY glGetSyncivAPPLE (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
gabomdq@8021
  2224
#endif
gabomdq@8021
  2225
typedef GLsync (GL_APIENTRYP PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
gabomdq@8021
  2226
typedef GLboolean (GL_APIENTRYP PFNGLISSYNCAPPLEPROC) (GLsync sync);
gabomdq@8021
  2227
typedef void (GL_APIENTRYP PFNGLDELETESYNCAPPLEPROC) (GLsync sync);
gabomdq@8021
  2228
typedef GLenum (GL_APIENTRYP PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
gabomdq@8021
  2229
typedef void (GL_APIENTRYP PFNGLWAITSYNCAPPLEPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
gabomdq@8021
  2230
typedef void (GL_APIENTRYP PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64 *params);
gabomdq@8021
  2231
typedef void (GL_APIENTRYP PFNGLGETSYNCIVAPPLEPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
gabomdq@8021
  2232
#endif
gabomdq@8021
  2233
gabomdq@8021
  2234
/* GL_APPLE_texture_format_BGRA8888 */
gabomdq@8021
  2235
#ifndef GL_APPLE_texture_format_BGRA8888
gabomdq@8021
  2236
#define GL_APPLE_texture_format_BGRA8888 1
gabomdq@8021
  2237
#endif
gabomdq@8021
  2238
gabomdq@8021
  2239
/* GL_APPLE_texture_max_level */
gabomdq@8021
  2240
#ifndef GL_APPLE_texture_max_level
gabomdq@8021
  2241
#define GL_APPLE_texture_max_level 1
gabomdq@8021
  2242
#endif
gabomdq@8021
  2243
gabomdq@8021
  2244
/*------------------------------------------------------------------------*
gabomdq@8021
  2245
 * ARM extension functions
gabomdq@8021
  2246
 *------------------------------------------------------------------------*/
gabomdq@8021
  2247
gabomdq@8021
  2248
/* GL_ARM_mali_program_binary */
gabomdq@8021
  2249
#ifndef GL_ARM_mali_program_binary
gabomdq@8021
  2250
#define GL_ARM_mali_program_binary 1
gabomdq@8021
  2251
#endif
gabomdq@8021
  2252
gabomdq@8021
  2253
/* GL_ARM_mali_shader_binary */
gabomdq@8021
  2254
#ifndef GL_ARM_mali_shader_binary
gabomdq@8021
  2255
#define GL_ARM_mali_shader_binary 1
gabomdq@8021
  2256
#endif
gabomdq@8021
  2257
gabomdq@8021
  2258
/* GL_ARM_rgba8 */
gabomdq@8021
  2259
#ifndef GL_ARM_rgba8
gabomdq@8021
  2260
#define GL_ARM_rgba8 1
gabomdq@8021
  2261
#endif
gabomdq@8021
  2262
gabomdq@8021
  2263
/*------------------------------------------------------------------------*
gabomdq@8021
  2264
 * EXT extension functions
gabomdq@8021
  2265
 *------------------------------------------------------------------------*/
gabomdq@8021
  2266
gabomdq@8021
  2267
/* GL_EXT_blend_minmax */
gabomdq@8021
  2268
#ifndef GL_EXT_blend_minmax
gabomdq@8021
  2269
#define GL_EXT_blend_minmax 1
gabomdq@8021
  2270
#endif
gabomdq@8021
  2271
gabomdq@8021
  2272
/* GL_EXT_color_buffer_half_float */
gabomdq@8021
  2273
#ifndef GL_EXT_color_buffer_half_float
gabomdq@8021
  2274
#define GL_EXT_color_buffer_half_float 1
gabomdq@8021
  2275
#endif
gabomdq@8021
  2276
gabomdq@8021
  2277
/* GL_EXT_debug_label */
gabomdq@8021
  2278
#ifndef GL_EXT_debug_label
gabomdq@8021
  2279
#define GL_EXT_debug_label 1
gabomdq@8021
  2280
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2281
GL_APICALL void GL_APIENTRY glLabelObjectEXT (GLenum type, GLuint object, GLsizei length, const GLchar *label);
gabomdq@8021
  2282
GL_APICALL void GL_APIENTRY glGetObjectLabelEXT (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
gabomdq@8021
  2283
#endif
gabomdq@8021
  2284
typedef void (GL_APIENTRYP PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const GLchar *label);
gabomdq@8021
  2285
typedef void (GL_APIENTRYP PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei *length, GLchar *label);
gabomdq@8021
  2286
#endif
gabomdq@8021
  2287
gabomdq@8021
  2288
/* GL_EXT_debug_marker */
gabomdq@8021
  2289
#ifndef GL_EXT_debug_marker
gabomdq@8021
  2290
#define GL_EXT_debug_marker 1
gabomdq@8021
  2291
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2292
GL_APICALL void GL_APIENTRY glInsertEventMarkerEXT (GLsizei length, const GLchar *marker);
gabomdq@8021
  2293
GL_APICALL void GL_APIENTRY glPushGroupMarkerEXT (GLsizei length, const GLchar *marker);
gabomdq@8021
  2294
GL_APICALL void GL_APIENTRY glPopGroupMarkerEXT (void);
gabomdq@8021
  2295
#endif
gabomdq@8021
  2296
typedef void (GL_APIENTRYP PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const GLchar *marker);
gabomdq@8021
  2297
typedef void (GL_APIENTRYP PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const GLchar *marker);
gabomdq@8021
  2298
typedef void (GL_APIENTRYP PFNGLPOPGROUPMARKEREXTPROC) (void);
gabomdq@8021
  2299
#endif
gabomdq@8021
  2300
gabomdq@8021
  2301
/* GL_EXT_discard_framebuffer */
gabomdq@8021
  2302
#ifndef GL_EXT_discard_framebuffer
gabomdq@8021
  2303
#define GL_EXT_discard_framebuffer 1
gabomdq@8021
  2304
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2305
GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numAttachments, const GLenum *attachments);
gabomdq@8021
  2306
#endif
gabomdq@8021
  2307
typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
gabomdq@8021
  2308
#endif
gabomdq@8021
  2309
gabomdq@8021
  2310
/* GL_EXT_map_buffer_range */
gabomdq@8021
  2311
#ifndef GL_EXT_map_buffer_range
gabomdq@8021
  2312
#define GL_EXT_map_buffer_range 1
gabomdq@8021
  2313
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2314
GL_APICALL void* GL_APIENTRY glMapBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
gabomdq@8021
  2315
GL_APICALL void GL_APIENTRY glFlushMappedBufferRangeEXT (GLenum target, GLintptr offset, GLsizeiptr length);
gabomdq@8021
  2316
#endif
gabomdq@8021
  2317
typedef void* (GL_APIENTRYP PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
gabomdq@8021
  2318
typedef void (GL_APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
gabomdq@8021
  2319
#endif
gabomdq@8021
  2320
gabomdq@8021
  2321
/* GL_EXT_multisampled_render_to_texture */
gabomdq@8021
  2322
#ifndef GL_EXT_multisampled_render_to_texture
gabomdq@8021
  2323
#define GL_EXT_multisampled_render_to_texture 1
gabomdq@8021
  2324
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2325
GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleEXT (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
gabomdq@8021
  2326
GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleEXT (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
gabomdq@8021
  2327
#endif
gabomdq@8021
  2328
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2329
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
gabomdq@8021
  2330
#endif
gabomdq@8021
  2331
gabomdq@8021
  2332
/* GL_EXT_multiview_draw_buffers */
gabomdq@8021
  2333
#ifndef GL_EXT_multiview_draw_buffers
gabomdq@8021
  2334
#define GL_EXT_multiview_draw_buffers 1
gabomdq@8021
  2335
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2336
GL_APICALL void GL_APIENTRY glReadBufferIndexedEXT (GLenum src, GLint index);
gabomdq@8021
  2337
GL_APICALL void GL_APIENTRY glDrawBuffersIndexedEXT (GLint n, const GLenum *location, const GLint *indices);
gabomdq@8021
  2338
GL_APICALL void GL_APIENTRY glGetIntegeri_vEXT (GLenum target, GLuint index, GLint *data);
gabomdq@8021
  2339
#endif
gabomdq@8021
  2340
typedef void (GL_APIENTRYP PFNGLREADBUFFERINDEXEDEXTPROC) (GLenum src, GLint index);
gabomdq@8021
  2341
typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSINDEXEDEXTPROC) (GLint n, const GLenum *location, const GLint *indices);
gabomdq@8021
  2342
typedef void (GL_APIENTRYP PFNGLGETINTEGERI_VEXTPROC) (GLenum target, GLuint index, GLint *data);
gabomdq@8021
  2343
#endif
gabomdq@8021
  2344
gabomdq@8021
  2345
#ifndef GL_EXT_multi_draw_arrays
gabomdq@8021
  2346
#define GL_EXT_multi_draw_arrays 1
gabomdq@8021
  2347
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2348
GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GLsizei);
gabomdq@8021
  2349
GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLenum, const GLvoid* *, GLsizei);
gabomdq@8021
  2350
#endif /* GL_GLEXT_PROTOTYPES */
gabomdq@8021
  2351
typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
gabomdq@8021
  2352
typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
gabomdq@8021
  2353
#endif
gabomdq@8021
  2354
gabomdq@8021
  2355
/* GL_EXT_occlusion_query_boolean */
gabomdq@8021
  2356
#ifndef GL_EXT_occlusion_query_boolean
gabomdq@8021
  2357
#define GL_EXT_occlusion_query_boolean 1
gabomdq@8021
  2358
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2359
GL_APICALL void GL_APIENTRY glGenQueriesEXT (GLsizei n, GLuint *ids);
gabomdq@8021
  2360
GL_APICALL void GL_APIENTRY glDeleteQueriesEXT (GLsizei n, const GLuint *ids);
gabomdq@8021
  2361
GL_APICALL GLboolean GL_APIENTRY glIsQueryEXT (GLuint id);
gabomdq@8021
  2362
GL_APICALL void GL_APIENTRY glBeginQueryEXT (GLenum target, GLuint id);
gabomdq@8021
  2363
GL_APICALL void GL_APIENTRY glEndQueryEXT (GLenum target);
gabomdq@8021
  2364
GL_APICALL void GL_APIENTRY glGetQueryivEXT (GLenum target, GLenum pname, GLint *params);
gabomdq@8021
  2365
GL_APICALL void GL_APIENTRY glGetQueryObjectuivEXT (GLuint id, GLenum pname, GLuint *params);
gabomdq@8021
  2366
#endif
gabomdq@8021
  2367
typedef void (GL_APIENTRYP PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint *ids);
gabomdq@8021
  2368
typedef void (GL_APIENTRYP PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint *ids);
gabomdq@8021
  2369
typedef GLboolean (GL_APIENTRYP PFNGLISQUERYEXTPROC) (GLuint id);
gabomdq@8021
  2370
typedef void (GL_APIENTRYP PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
gabomdq@8021
  2371
typedef void (GL_APIENTRYP PFNGLENDQUERYEXTPROC) (GLenum target);
gabomdq@8021
  2372
typedef void (GL_APIENTRYP PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
gabomdq@8021
  2373
typedef void (GL_APIENTRYP PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint *params);
gabomdq@8021
  2374
#endif
gabomdq@8021
  2375
gabomdq@8021
  2376
/* GL_EXT_read_format_bgra */
gabomdq@8021
  2377
#ifndef GL_EXT_read_format_bgra
gabomdq@8021
  2378
#define GL_EXT_read_format_bgra 1
gabomdq@8021
  2379
#endif
gabomdq@8021
  2380
gabomdq@8021
  2381
/* GL_EXT_robustness */
gabomdq@8021
  2382
#ifndef GL_EXT_robustness
gabomdq@8021
  2383
#define GL_EXT_robustness 1
gabomdq@8021
  2384
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2385
GL_APICALL GLenum GL_APIENTRY glGetGraphicsResetStatusEXT (void);
gabomdq@8021
  2386
GL_APICALL void GL_APIENTRY glReadnPixelsEXT (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
gabomdq@8021
  2387
GL_APICALL void GL_APIENTRY glGetnUniformfvEXT (GLuint program, GLint location, GLsizei bufSize, float *params);
gabomdq@8021
  2388
GL_APICALL void GL_APIENTRY glGetnUniformivEXT (GLuint program, GLint location, GLsizei bufSize, GLint *params);
gabomdq@8021
  2389
#endif
gabomdq@8021
  2390
typedef GLenum (GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSEXTPROC) (void);
gabomdq@8021
  2391
typedef void (GL_APIENTRYP PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data);
gabomdq@8021
  2392
typedef void (GL_APIENTRYP PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, float *params);
gabomdq@8021
  2393
typedef void (GL_APIENTRYP PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
gabomdq@8021
  2394
#endif
gabomdq@8021
  2395
gabomdq@8021
  2396
/* GL_EXT_separate_shader_objects */
gabomdq@8021
  2397
#ifndef GL_EXT_separate_shader_objects
gabomdq@8021
  2398
#define GL_EXT_separate_shader_objects 1
gabomdq@8021
  2399
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2400
GL_APICALL void GL_APIENTRY glUseProgramStagesEXT (GLuint pipeline, GLbitfield stages, GLuint program);
gabomdq@8021
  2401
GL_APICALL void GL_APIENTRY glActiveShaderProgramEXT (GLuint pipeline, GLuint program);
gabomdq@8021
  2402
GL_APICALL GLuint GL_APIENTRY glCreateShaderProgramvEXT (GLenum type, GLsizei count, const GLchar **strings);
gabomdq@8021
  2403
GL_APICALL void GL_APIENTRY glBindProgramPipelineEXT (GLuint pipeline);
gabomdq@8021
  2404
GL_APICALL void GL_APIENTRY glDeleteProgramPipelinesEXT (GLsizei n, const GLuint *pipelines);
gabomdq@8021
  2405
GL_APICALL void GL_APIENTRY glGenProgramPipelinesEXT (GLsizei n, GLuint *pipelines);
gabomdq@8021
  2406
GL_APICALL GLboolean GL_APIENTRY glIsProgramPipelineEXT (GLuint pipeline);
gabomdq@8021
  2407
GL_APICALL void GL_APIENTRY glProgramParameteriEXT (GLuint program, GLenum pname, GLint value);
gabomdq@8021
  2408
GL_APICALL void GL_APIENTRY glGetProgramPipelineivEXT (GLuint pipeline, GLenum pname, GLint *params);
gabomdq@8021
  2409
GL_APICALL void GL_APIENTRY glProgramUniform1iEXT (GLuint program, GLint location, GLint x);
gabomdq@8021
  2410
GL_APICALL void GL_APIENTRY glProgramUniform2iEXT (GLuint program, GLint location, GLint x, GLint y);
gabomdq@8021
  2411
GL_APICALL void GL_APIENTRY glProgramUniform3iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z);
gabomdq@8021
  2412
GL_APICALL void GL_APIENTRY glProgramUniform4iEXT (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
gabomdq@8021
  2413
GL_APICALL void GL_APIENTRY glProgramUniform1fEXT (GLuint program, GLint location, GLfloat x);
gabomdq@8021
  2414
GL_APICALL void GL_APIENTRY glProgramUniform2fEXT (GLuint program, GLint location, GLfloat x, GLfloat y);
gabomdq@8021
  2415
GL_APICALL void GL_APIENTRY glProgramUniform3fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
gabomdq@8021
  2416
GL_APICALL void GL_APIENTRY glProgramUniform4fEXT (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
gabomdq@8021
  2417
GL_APICALL void GL_APIENTRY glProgramUniform1ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
gabomdq@8021
  2418
GL_APICALL void GL_APIENTRY glProgramUniform2ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
gabomdq@8021
  2419
GL_APICALL void GL_APIENTRY glProgramUniform3ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
gabomdq@8021
  2420
GL_APICALL void GL_APIENTRY glProgramUniform4ivEXT (GLuint program, GLint location, GLsizei count, const GLint *value);
gabomdq@8021
  2421
GL_APICALL void GL_APIENTRY glProgramUniform1fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
gabomdq@8021
  2422
GL_APICALL void GL_APIENTRY glProgramUniform2fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
gabomdq@8021
  2423
GL_APICALL void GL_APIENTRY glProgramUniform3fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
gabomdq@8021
  2424
GL_APICALL void GL_APIENTRY glProgramUniform4fvEXT (GLuint program, GLint location, GLsizei count, const GLfloat *value);
gabomdq@8021
  2425
GL_APICALL void GL_APIENTRY glProgramUniformMatrix2fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
gabomdq@8021
  2426
GL_APICALL void GL_APIENTRY glProgramUniformMatrix3fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
gabomdq@8021
  2427
GL_APICALL void GL_APIENTRY glProgramUniformMatrix4fvEXT (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
gabomdq@8021
  2428
GL_APICALL void GL_APIENTRY glValidateProgramPipelineEXT (GLuint pipeline);
gabomdq@8021
  2429
GL_APICALL void GL_APIENTRY glGetProgramPipelineInfoLogEXT (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
gabomdq@8021
  2430
#endif
gabomdq@8021
  2431
typedef void (GL_APIENTRYP PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
gabomdq@8021
  2432
typedef void (GL_APIENTRYP PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
gabomdq@8021
  2433
typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const GLchar **strings);
gabomdq@8021
  2434
typedef void (GL_APIENTRYP PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
gabomdq@8021
  2435
typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint *pipelines);
gabomdq@8021
  2436
typedef void (GL_APIENTRYP PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint *pipelines);
gabomdq@8021
  2437
typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
gabomdq@8021
  2438
typedef void (GL_APIENTRYP PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
gabomdq@8021
  2439
typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint *params);
gabomdq@8021
  2440
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint x);
gabomdq@8021
  2441
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint x, GLint y);
gabomdq@8021
  2442
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z);
gabomdq@8021
  2443
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
gabomdq@8021
  2444
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat x);
gabomdq@8021
  2445
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y);
gabomdq@8021
  2446
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
gabomdq@8021
  2447
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
gabomdq@8021
  2448
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
gabomdq@8021
  2449
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
gabomdq@8021
  2450
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
gabomdq@8021
  2451
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
gabomdq@8021
  2452
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
gabomdq@8021
  2453
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
gabomdq@8021
  2454
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
gabomdq@8021
  2455
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
gabomdq@8021
  2456
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
gabomdq@8021
  2457
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
gabomdq@8021
  2458
typedef void (GL_APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
gabomdq@8021
  2459
typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
gabomdq@8021
  2460
typedef void (GL_APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
gabomdq@8021
  2461
#endif
gabomdq@8021
  2462
gabomdq@8021
  2463
/* GL_EXT_shader_framebuffer_fetch */
gabomdq@8021
  2464
#ifndef GL_EXT_shader_framebuffer_fetch
gabomdq@8021
  2465
#define GL_EXT_shader_framebuffer_fetch 1
gabomdq@8021
  2466
#endif
gabomdq@8021
  2467
gabomdq@8021
  2468
/* GL_EXT_shader_texture_lod */
gabomdq@8021
  2469
#ifndef GL_EXT_shader_texture_lod
gabomdq@8021
  2470
#define GL_EXT_shader_texture_lod 1
gabomdq@8021
  2471
#endif
gabomdq@8021
  2472
gabomdq@8021
  2473
/* GL_EXT_shadow_samplers */
gabomdq@8021
  2474
#ifndef GL_EXT_shadow_samplers
gabomdq@8021
  2475
#define GL_EXT_shadow_samplers 1
gabomdq@8021
  2476
#endif
gabomdq@8021
  2477
gabomdq@8021
  2478
/* GL_EXT_sRGB */
gabomdq@8021
  2479
#ifndef GL_EXT_sRGB
gabomdq@8021
  2480
#define GL_EXT_sRGB 1
gabomdq@8021
  2481
#endif
gabomdq@8021
  2482
gabomdq@8021
  2483
/* GL_EXT_texture_compression_dxt1 */
gabomdq@8021
  2484
#ifndef GL_EXT_texture_compression_dxt1
gabomdq@8021
  2485
#define GL_EXT_texture_compression_dxt1 1
gabomdq@8021
  2486
#endif
gabomdq@8021
  2487
gabomdq@8021
  2488
/* GL_EXT_texture_filter_anisotropic */
gabomdq@8021
  2489
#ifndef GL_EXT_texture_filter_anisotropic
gabomdq@8021
  2490
#define GL_EXT_texture_filter_anisotropic 1
gabomdq@8021
  2491
#endif
gabomdq@8021
  2492
gabomdq@8021
  2493
/* GL_EXT_texture_format_BGRA8888 */
gabomdq@8021
  2494
#ifndef GL_EXT_texture_format_BGRA8888
gabomdq@8021
  2495
#define GL_EXT_texture_format_BGRA8888 1
gabomdq@8021
  2496
#endif
gabomdq@8021
  2497
gabomdq@8021
  2498
/* GL_EXT_texture_rg */
gabomdq@8021
  2499
#ifndef GL_EXT_texture_rg
gabomdq@8021
  2500
#define GL_EXT_texture_rg 1
gabomdq@8021
  2501
#endif
gabomdq@8021
  2502
gabomdq@8021
  2503
/* GL_EXT_texture_storage */
gabomdq@8021
  2504
#ifndef GL_EXT_texture_storage
gabomdq@8021
  2505
#define GL_EXT_texture_storage 1
gabomdq@8021
  2506
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2507
GL_APICALL void GL_APIENTRY glTexStorage1DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
gabomdq@8021
  2508
GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2509
GL_APICALL void GL_APIENTRY glTexStorage3DEXT (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
gabomdq@8021
  2510
GL_APICALL void GL_APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
gabomdq@8021
  2511
GL_APICALL void GL_APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2512
GL_APICALL void GL_APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
gabomdq@8021
  2513
#endif
gabomdq@8021
  2514
typedef void (GL_APIENTRYP PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
gabomdq@8021
  2515
typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2516
typedef void (GL_APIENTRYP PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
gabomdq@8021
  2517
typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
gabomdq@8021
  2518
typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2519
typedef void (GL_APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
gabomdq@8021
  2520
#endif
gabomdq@8021
  2521
gabomdq@8021
  2522
/* GL_EXT_texture_type_2_10_10_10_REV */
gabomdq@8021
  2523
#ifndef GL_EXT_texture_type_2_10_10_10_REV
gabomdq@8021
  2524
#define GL_EXT_texture_type_2_10_10_10_REV 1
gabomdq@8021
  2525
#endif
gabomdq@8021
  2526
gabomdq@8021
  2527
/* GL_EXT_unpack_subimage */
gabomdq@8021
  2528
#ifndef GL_EXT_unpack_subimage
gabomdq@8021
  2529
#define GL_EXT_unpack_subimage 1
gabomdq@8021
  2530
#endif
gabomdq@8021
  2531
gabomdq@8021
  2532
/*------------------------------------------------------------------------*
gabomdq@8021
  2533
 * DMP extension functions
gabomdq@8021
  2534
 *------------------------------------------------------------------------*/
gabomdq@8021
  2535
gabomdq@8021
  2536
/* GL_DMP_shader_binary */
gabomdq@8021
  2537
#ifndef GL_DMP_shader_binary
gabomdq@8021
  2538
#define GL_DMP_shader_binary 1
gabomdq@8021
  2539
#endif
gabomdq@8021
  2540
gabomdq@8021
  2541
/*------------------------------------------------------------------------*
gabomdq@8021
  2542
 * FJ extension functions
gabomdq@8021
  2543
 *------------------------------------------------------------------------*/
gabomdq@8021
  2544
gabomdq@8021
  2545
/* GL_FJ_shader_binary_GCCSO */
gabomdq@8021
  2546
#ifndef GL_FJ_shader_binary_GCCSO
gabomdq@8021
  2547
#define GL_FJ_shader_binary_GCCSO 1
gabomdq@8021
  2548
#endif
gabomdq@8021
  2549
gabomdq@8021
  2550
/*------------------------------------------------------------------------*
gabomdq@8021
  2551
 * IMG extension functions
gabomdq@8021
  2552
 *------------------------------------------------------------------------*/
gabomdq@8021
  2553
gabomdq@8021
  2554
/* GL_IMG_program_binary */
gabomdq@8021
  2555
#ifndef GL_IMG_program_binary
gabomdq@8021
  2556
#define GL_IMG_program_binary 1
gabomdq@8021
  2557
#endif
gabomdq@8021
  2558
gabomdq@8021
  2559
/* GL_IMG_read_format */
gabomdq@8021
  2560
#ifndef GL_IMG_read_format
gabomdq@8021
  2561
#define GL_IMG_read_format 1
gabomdq@8021
  2562
#endif
gabomdq@8021
  2563
gabomdq@8021
  2564
/* GL_IMG_shader_binary */
gabomdq@8021
  2565
#ifndef GL_IMG_shader_binary
gabomdq@8021
  2566
#define GL_IMG_shader_binary 1
gabomdq@8021
  2567
#endif
gabomdq@8021
  2568
gabomdq@8021
  2569
/* GL_IMG_texture_compression_pvrtc */
gabomdq@8021
  2570
#ifndef GL_IMG_texture_compression_pvrtc
gabomdq@8021
  2571
#define GL_IMG_texture_compression_pvrtc 1
gabomdq@8021
  2572
#endif
gabomdq@8021
  2573
gabomdq@8021
  2574
/* GL_IMG_multisampled_render_to_texture */
gabomdq@8021
  2575
#ifndef GL_IMG_multisampled_render_to_texture
gabomdq@8021
  2576
#define GL_IMG_multisampled_render_to_texture 1
gabomdq@8021
  2577
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2578
GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleIMG (GLenum, GLsizei, GLenum, GLsizei, GLsizei);
gabomdq@8021
  2579
GL_APICALL void GL_APIENTRY glFramebufferTexture2DMultisampleIMG (GLenum, GLenum, GLenum, GLuint, GLint, GLsizei);
gabomdq@8021
  2580
#endif
gabomdq@8021
  2581
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
gabomdq@8021
  2582
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
gabomdq@8021
  2583
#endif
gabomdq@8021
  2584
gabomdq@8021
  2585
/*------------------------------------------------------------------------*
gabomdq@8021
  2586
 * NV extension functions
gabomdq@8021
  2587
 *------------------------------------------------------------------------*/
gabomdq@8021
  2588
gabomdq@8021
  2589
/* GL_NV_coverage_sample */
gabomdq@8021
  2590
#ifndef GL_NV_coverage_sample
gabomdq@8021
  2591
#define GL_NV_coverage_sample 1
gabomdq@8021
  2592
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2593
GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask);
gabomdq@8021
  2594
GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation);
gabomdq@8021
  2595
#endif
gabomdq@8021
  2596
typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
gabomdq@8021
  2597
typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
gabomdq@8021
  2598
#endif
gabomdq@8021
  2599
gabomdq@8021
  2600
/* GL_NV_depth_nonlinear */
gabomdq@8021
  2601
#ifndef GL_NV_depth_nonlinear
gabomdq@8021
  2602
#define GL_NV_depth_nonlinear 1
gabomdq@8021
  2603
#endif
gabomdq@8021
  2604
gabomdq@8021
  2605
/* GL_NV_draw_buffers */
gabomdq@8021
  2606
#ifndef GL_NV_draw_buffers
gabomdq@8021
  2607
#define GL_NV_draw_buffers 1
gabomdq@8021
  2608
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2609
GL_APICALL void GL_APIENTRY glDrawBuffersNV (GLsizei n, const GLenum *bufs);
gabomdq@8021
  2610
#endif
gabomdq@8021
  2611
typedef void (GL_APIENTRYP PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum *bufs);
gabomdq@8021
  2612
#endif
gabomdq@8021
  2613
gabomdq@8021
  2614
/* GL_NV_fbo_color_attachments */
gabomdq@8021
  2615
#ifndef GL_NV_fbo_color_attachments
gabomdq@8021
  2616
#define GL_NV_fbo_color_attachments 1
gabomdq@8021
  2617
#endif
gabomdq@8021
  2618
gabomdq@8021
  2619
/* GL_NV_fence */
gabomdq@8021
  2620
#ifndef GL_NV_fence
gabomdq@8021
  2621
#define GL_NV_fence 1
gabomdq@8021
  2622
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2623
GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei, const GLuint *);
gabomdq@8021
  2624
GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei, GLuint *);
gabomdq@8021
  2625
GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint);
gabomdq@8021
  2626
GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint);
gabomdq@8021
  2627
GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *);
gabomdq@8021
  2628
GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint);
gabomdq@8021
  2629
GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint, GLenum);
gabomdq@8021
  2630
#endif
gabomdq@8021
  2631
typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fences);
gabomdq@8021
  2632
typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences);
gabomdq@8021
  2633
typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence);
gabomdq@8021
  2634
typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence);
gabomdq@8021
  2635
typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint *params);
gabomdq@8021
  2636
typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence);
gabomdq@8021
  2637
typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
gabomdq@8021
  2638
#endif
gabomdq@8021
  2639
gabomdq@8021
  2640
/* GL_NV_read_buffer */
gabomdq@8021
  2641
#ifndef GL_NV_read_buffer
gabomdq@8021
  2642
#define GL_NV_read_buffer 1
gabomdq@8021
  2643
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2644
GL_APICALL void GL_APIENTRY glReadBufferNV (GLenum mode);
gabomdq@8021
  2645
#endif
gabomdq@8021
  2646
typedef void (GL_APIENTRYP PFNGLREADBUFFERNVPROC) (GLenum mode);
gabomdq@8021
  2647
#endif
gabomdq@8021
  2648
gabomdq@8021
  2649
/* GL_NV_read_buffer_front */
gabomdq@8021
  2650
#ifndef GL_NV_read_buffer_front
gabomdq@8021
  2651
#define GL_NV_read_buffer_front 1
gabomdq@8021
  2652
#endif
gabomdq@8021
  2653
gabomdq@8021
  2654
/* GL_NV_read_depth */
gabomdq@8021
  2655
#ifndef GL_NV_read_depth
gabomdq@8021
  2656
#define GL_NV_read_depth 1
gabomdq@8021
  2657
#endif
gabomdq@8021
  2658
gabomdq@8021
  2659
/* GL_NV_read_depth_stencil */
gabomdq@8021
  2660
#ifndef GL_NV_read_depth_stencil
gabomdq@8021
  2661
#define GL_NV_read_depth_stencil 1
gabomdq@8021
  2662
#endif
gabomdq@8021
  2663
gabomdq@8021
  2664
/* GL_NV_read_stencil */
gabomdq@8021
  2665
#ifndef GL_NV_read_stencil
gabomdq@8021
  2666
#define GL_NV_read_stencil 1
gabomdq@8021
  2667
#endif
gabomdq@8021
  2668
gabomdq@8021
  2669
/* GL_NV_texture_compression_s3tc_update */
gabomdq@8021
  2670
#ifndef GL_NV_texture_compression_s3tc_update
gabomdq@8021
  2671
#define GL_NV_texture_compression_s3tc_update 1
gabomdq@8021
  2672
#endif
gabomdq@8021
  2673
gabomdq@8021
  2674
/* GL_NV_texture_npot_2D_mipmap */
gabomdq@8021
  2675
#ifndef GL_NV_texture_npot_2D_mipmap
gabomdq@8021
  2676
#define GL_NV_texture_npot_2D_mipmap 1
gabomdq@8021
  2677
#endif
gabomdq@8021
  2678
gabomdq@8021
  2679
/*------------------------------------------------------------------------*
gabomdq@8021
  2680
 * QCOM extension functions
gabomdq@8021
  2681
 *------------------------------------------------------------------------*/
gabomdq@8021
  2682
gabomdq@8021
  2683
/* GL_QCOM_alpha_test */
gabomdq@8021
  2684
#ifndef GL_QCOM_alpha_test
gabomdq@8021
  2685
#define GL_QCOM_alpha_test 1
gabomdq@8021
  2686
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2687
GL_APICALL void GL_APIENTRY glAlphaFuncQCOM (GLenum func, GLclampf ref);
gabomdq@8021
  2688
#endif
gabomdq@8021
  2689
typedef void (GL_APIENTRYP PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
gabomdq@8021
  2690
#endif
gabomdq@8021
  2691
gabomdq@8021
  2692
/* GL_QCOM_binning_control */
gabomdq@8021
  2693
#ifndef GL_QCOM_binning_control
gabomdq@8021
  2694
#define GL_QCOM_binning_control 1
gabomdq@8021
  2695
#endif
gabomdq@8021
  2696
gabomdq@8021
  2697
/* GL_QCOM_driver_control */
gabomdq@8021
  2698
#ifndef GL_QCOM_driver_control
gabomdq@8021
  2699
#define GL_QCOM_driver_control 1
gabomdq@8021
  2700
#ifdef GL_GLEXT_PROTOTYPES
gabomdq@8021
  2701
GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, GLuint *driverControls);