include/SDL_opengles.h
author Sam Lantinga <slouken@libsdl.org>
Wed, 12 Jan 2011 15:42:26 -0800
changeset 4986 8431f59485d0
parent 3697 f7b03b6838cb
child 5204 daa5463466c5
permissions -rw-r--r--
Renderer didn't advertise texture format SDL_PIXELFORMAT_ABGR8888
hfutrell@2746
     1
/*
hfutrell@2746
     2
 SDL - Simple DirectMedia Layer
slouken@3697
     3
 Copyright (C) 1997-2010 Sam Lantinga
hfutrell@2746
     4
 
hfutrell@2746
     5
 This library is free software; you can redistribute it and/or
hfutrell@2746
     6
 modify it under the terms of the GNU Lesser General Public
hfutrell@2746
     7
 License as published by the Free Software Foundation; either
hfutrell@2746
     8
 version 2.1 of the License, or (at your option) any later version.
hfutrell@2746
     9
 
hfutrell@2746
    10
 This library is distributed in the hope that it will be useful,
hfutrell@2746
    11
 but WITHOUT ANY WARRANTY; without even the implied warranty of
hfutrell@2746
    12
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
hfutrell@2746
    13
 Lesser General Public License for more details.
hfutrell@2746
    14
 
hfutrell@2746
    15
 You should have received a copy of the GNU Lesser General Public
hfutrell@2746
    16
 License along with this library; if not, write to the Free Software
hfutrell@2746
    17
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
hfutrell@2746
    18
 
hfutrell@2746
    19
 Sam Lantinga
hfutrell@2746
    20
 slouken@libsdl.org
hfutrell@2746
    21
 */
hfutrell@2746
    22
slouken@3407
    23
/**
slouken@3407
    24
 *  \file SDL_opengles.h
slouken@3407
    25
 *  
slouken@3407
    26
 *  This is a simple file to encapsulate the OpenGL ES API headers.
slouken@3407
    27
 *  
slouken@3407
    28
 *  Headers copied from The Kronos Group website.
slouken@3407
    29
 *  	http://www.khronos.org/opengles/
hfutrell@2746
    30
 */
hfutrell@2746
    31
hfutrell@2746
    32
#ifndef __gles_h_
hfutrell@2746
    33
#define __gles_h_
hfutrell@2746
    34
hfutrell@2746
    35
/* $Id: gl.h 4533 2007-11-26 11:19:35Z markc $ */
hfutrell@2746
    36
hfutrell@2746
    37
#ifdef __cplusplus
slouken@2753
    38
extern "C"
slouken@2753
    39
{
hfutrell@2746
    40
#endif
hfutrell@2746
    41
slouken@2765
    42
#ifdef __IPHONEOS__
slouken@2765
    43
#include <OpenGLES/ES1/gl.h>    /* Header File For The OpenGL ES Library */
slouken@2765
    44
#endif
slouken@2753
    45
hfutrell@2746
    46
#ifndef APIENTRY
hfutrell@2746
    47
#define APIENTRY
slouken@2753
    48
#endif
slouken@2753
    49
hfutrell@2746
    50
#ifndef GL_APIENTRY
hfutrell@2746
    51
#define GL_APIENTRY
slouken@2753
    52
#endif
slouken@2753
    53
slouken@3087
    54
#ifndef GL_API
slouken@3087
    55
#define GL_API
slouken@3139
    56
#endif                          /* GL_API */
slouken@2753
    57
hfutrell@2746
    58
/*
hfutrell@2746
    59
** License Applicability. Except to the extent portions of this file are
hfutrell@2746
    60
** made subject to an alternative license as permitted in the SGI Free
hfutrell@2746
    61
** Software License B, Version 1.0 (the "License"), the contents of this
hfutrell@2746
    62
** file are subject only to the provisions of the License. You may not use
hfutrell@2746
    63
** this file except in compliance with the License. You may obtain a copy
hfutrell@2746
    64
** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
hfutrell@2746
    65
** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
hfutrell@2746
    66
**
hfutrell@2746
    67
** http://oss.sgi.com/projects/FreeB
hfutrell@2746
    68
**
hfutrell@2746
    69
** Note that, as provided in the License, the Software is distributed on an
hfutrell@2746
    70
** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
hfutrell@2746
    71
** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
hfutrell@2746
    72
** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
hfutrell@2746
    73
** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
hfutrell@2746
    74
**
hfutrell@2746
    75
** Original Code. The Original Code is: OpenGL Sample Implementation,
hfutrell@2746
    76
** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
hfutrell@2746
    77
** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
hfutrell@2746
    78
** Copyright in any portions created by third parties is as indicated
hfutrell@2746
    79
** elsewhere herein. All Rights Reserved.
hfutrell@2746
    80
**
hfutrell@2746
    81
** Additional Notice Provisions: The application programming interfaces
hfutrell@2746
    82
** established by SGI in conjunction with the Original Code are The
hfutrell@2746
    83
** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
hfutrell@2746
    84
** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
hfutrell@2746
    85
** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
hfutrell@2746
    86
** Window System(R) (Version 1.3), released October 19, 1998. This software
hfutrell@2746
    87
** was created using the OpenGL(R) version 1.2.1 Sample Implementation
hfutrell@2746
    88
** published by SGI, but has not been independently verified as being
hfutrell@2746
    89
** compliant with the OpenGL(R) version 1.2.1 Specification.
hfutrell@2746
    90
*/
hfutrell@2746
    91
slouken@2753
    92
    typedef unsigned int GLenum;
slouken@2753
    93
    typedef unsigned char GLboolean;
slouken@2753
    94
    typedef unsigned int GLbitfield;
slouken@2753
    95
    typedef signed char GLbyte;
slouken@2753
    96
    typedef short GLshort;
slouken@2753
    97
    typedef int GLint;
slouken@2753
    98
    typedef int GLsizei;
slouken@2753
    99
    typedef unsigned char GLubyte;
slouken@2753
   100
    typedef unsigned short GLushort;
slouken@2753
   101
    typedef unsigned int GLuint;
slouken@2753
   102
    typedef float GLfloat;
slouken@2753
   103
    typedef float GLclampf;
slouken@2753
   104
    typedef void GLvoid;
slouken@2753
   105
    typedef int GLfixed;
slouken@2753
   106
    typedef int GLclampx;
hfutrell@2746
   107
slouken@2753
   108
    typedef int GLintptr;
slouken@2753
   109
    typedef int GLsizeiptr;
hfutrell@2746
   110
hfutrell@2746
   111
hfutrell@2746
   112
/*************************************************************/
hfutrell@2746
   113
hfutrell@2746
   114
/* OpenGL ES core versions */
hfutrell@2746
   115
#define GL_VERSION_ES_CM_1_0		  1
hfutrell@2746
   116
#define GL_VERSION_ES_CL_1_0		  1
hfutrell@2746
   117
#define GL_VERSION_ES_CM_1_1		  1
hfutrell@2746
   118
#define GL_VERSION_ES_CL_1_1		  1
hfutrell@2746
   119
hfutrell@2746
   120
/* ClearBufferMask */
hfutrell@2746
   121
#define GL_DEPTH_BUFFER_BIT               0x00000100
hfutrell@2746
   122
#define GL_STENCIL_BUFFER_BIT             0x00000400
hfutrell@2746
   123
#define GL_COLOR_BUFFER_BIT               0x00004000
hfutrell@2746
   124
hfutrell@2746
   125
/* Boolean */
hfutrell@2746
   126
#define GL_FALSE                          0
hfutrell@2746
   127
#define GL_TRUE                           1
hfutrell@2746
   128
hfutrell@2746
   129
/* BeginMode */
hfutrell@2746
   130
#define GL_POINTS                         0x0000
hfutrell@2746
   131
#define GL_LINES                          0x0001
hfutrell@2746
   132
#define GL_LINE_LOOP                      0x0002
hfutrell@2746
   133
#define GL_LINE_STRIP                     0x0003
hfutrell@2746
   134
#define GL_TRIANGLES                      0x0004
hfutrell@2746
   135
#define GL_TRIANGLE_STRIP                 0x0005
hfutrell@2746
   136
#define GL_TRIANGLE_FAN                   0x0006
hfutrell@2746
   137
hfutrell@2746
   138
/* AlphaFunction */
hfutrell@2746
   139
#define GL_NEVER                          0x0200
hfutrell@2746
   140
#define GL_LESS                           0x0201
hfutrell@2746
   141
#define GL_EQUAL                          0x0202
hfutrell@2746
   142
#define GL_LEQUAL                         0x0203
hfutrell@2746
   143
#define GL_GREATER                        0x0204
hfutrell@2746
   144
#define GL_NOTEQUAL                       0x0205
hfutrell@2746
   145
#define GL_GEQUAL                         0x0206
hfutrell@2746
   146
#define GL_ALWAYS                         0x0207
hfutrell@2746
   147
hfutrell@2746
   148
/* BlendingFactorDest */
hfutrell@2746
   149
#define GL_ZERO                           0
hfutrell@2746
   150
#define GL_ONE                            1
hfutrell@2746
   151
#define GL_SRC_COLOR                      0x0300
hfutrell@2746
   152
#define GL_ONE_MINUS_SRC_COLOR            0x0301
hfutrell@2746
   153
#define GL_SRC_ALPHA                      0x0302
hfutrell@2746
   154
#define GL_ONE_MINUS_SRC_ALPHA            0x0303
hfutrell@2746
   155
#define GL_DST_ALPHA                      0x0304
hfutrell@2746
   156
#define GL_ONE_MINUS_DST_ALPHA            0x0305
hfutrell@2746
   157
hfutrell@2746
   158
/* BlendingFactorSrc */
hfutrell@2746
   159
/*      GL_ZERO */
hfutrell@2746
   160
/*      GL_ONE */
hfutrell@2746
   161
#define GL_DST_COLOR                      0x0306
hfutrell@2746
   162
#define GL_ONE_MINUS_DST_COLOR            0x0307
hfutrell@2746
   163
#define GL_SRC_ALPHA_SATURATE             0x0308
hfutrell@2746
   164
/*      GL_SRC_ALPHA */
hfutrell@2746
   165
/*      GL_ONE_MINUS_SRC_ALPHA */
hfutrell@2746
   166
/*      GL_DST_ALPHA */
hfutrell@2746
   167
/*      GL_ONE_MINUS_DST_ALPHA */
hfutrell@2746
   168
hfutrell@2746
   169
/* ClipPlaneName */
hfutrell@2746
   170
#define GL_CLIP_PLANE0                    0x3000
hfutrell@2746
   171
#define GL_CLIP_PLANE1                    0x3001
hfutrell@2746
   172
#define GL_CLIP_PLANE2                    0x3002
hfutrell@2746
   173
#define GL_CLIP_PLANE3                    0x3003
hfutrell@2746
   174
#define GL_CLIP_PLANE4                    0x3004
hfutrell@2746
   175
#define GL_CLIP_PLANE5                    0x3005
hfutrell@2746
   176
hfutrell@2746
   177
/* ColorMaterialFace */
hfutrell@2746
   178
/*      GL_FRONT_AND_BACK */
hfutrell@2746
   179
hfutrell@2746
   180
/* ColorMaterialParameter */
hfutrell@2746
   181
/*      GL_AMBIENT_AND_DIFFUSE */
hfutrell@2746
   182
hfutrell@2746
   183
/* ColorPointerType */
hfutrell@2746
   184
/*      GL_UNSIGNED_BYTE */
hfutrell@2746
   185
/*      GL_FLOAT */
hfutrell@2746
   186
/*      GL_FIXED */
hfutrell@2746
   187
hfutrell@2746
   188
/* CullFaceMode */
hfutrell@2746
   189
#define GL_FRONT                          0x0404
hfutrell@2746
   190
#define GL_BACK                           0x0405
hfutrell@2746
   191
#define GL_FRONT_AND_BACK                 0x0408
hfutrell@2746
   192
hfutrell@2746
   193
/* DepthFunction */
hfutrell@2746
   194
/*      GL_NEVER */
hfutrell@2746
   195
/*      GL_LESS */
hfutrell@2746
   196
/*      GL_EQUAL */
hfutrell@2746
   197
/*      GL_LEQUAL */
hfutrell@2746
   198
/*      GL_GREATER */
hfutrell@2746
   199
/*      GL_NOTEQUAL */
hfutrell@2746
   200
/*      GL_GEQUAL */
hfutrell@2746
   201
/*      GL_ALWAYS */
hfutrell@2746
   202
hfutrell@2746
   203
/* EnableCap */
hfutrell@2746
   204
#define GL_FOG                            0x0B60
hfutrell@2746
   205
#define GL_LIGHTING                       0x0B50
hfutrell@2746
   206
#define GL_TEXTURE_2D                     0x0DE1
hfutrell@2746
   207
#define GL_CULL_FACE                      0x0B44
hfutrell@2746
   208
#define GL_ALPHA_TEST                     0x0BC0
hfutrell@2746
   209
#define GL_BLEND                          0x0BE2
hfutrell@2746
   210
#define GL_COLOR_LOGIC_OP                 0x0BF2
hfutrell@2746
   211
#define GL_DITHER                         0x0BD0
hfutrell@2746
   212
#define GL_STENCIL_TEST                   0x0B90
hfutrell@2746
   213
#define GL_DEPTH_TEST                     0x0B71
hfutrell@2746
   214
/*      GL_LIGHT0 */
hfutrell@2746
   215
/*      GL_LIGHT1 */
hfutrell@2746
   216
/*      GL_LIGHT2 */
hfutrell@2746
   217
/*      GL_LIGHT3 */
hfutrell@2746
   218
/*      GL_LIGHT4 */
hfutrell@2746
   219
/*      GL_LIGHT5 */
hfutrell@2746
   220
/*      GL_LIGHT6 */
hfutrell@2746
   221
/*      GL_LIGHT7 */
hfutrell@2746
   222
#define GL_POINT_SMOOTH                   0x0B10
hfutrell@2746
   223
#define GL_LINE_SMOOTH                    0x0B20
hfutrell@2746
   224
#define GL_SCISSOR_TEST                   0x0C11
hfutrell@2746
   225
#define GL_COLOR_MATERIAL                 0x0B57
hfutrell@2746
   226
#define GL_NORMALIZE                      0x0BA1
hfutrell@2746
   227
#define GL_RESCALE_NORMAL                 0x803A
hfutrell@2746
   228
#define GL_POLYGON_OFFSET_FILL            0x8037
hfutrell@2746
   229
#define GL_VERTEX_ARRAY                   0x8074
hfutrell@2746
   230
#define GL_NORMAL_ARRAY                   0x8075
hfutrell@2746
   231
#define GL_COLOR_ARRAY                    0x8076
hfutrell@2746
   232
#define GL_TEXTURE_COORD_ARRAY            0x8078
hfutrell@2746
   233
#define GL_MULTISAMPLE                    0x809D
hfutrell@2746
   234
#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
hfutrell@2746
   235
#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
hfutrell@2746
   236
#define GL_SAMPLE_COVERAGE                0x80A0
hfutrell@2746
   237
hfutrell@2746
   238
/* ErrorCode */
hfutrell@2746
   239
#define GL_NO_ERROR                       0
hfutrell@2746
   240
#define GL_INVALID_ENUM                   0x0500
hfutrell@2746
   241
#define GL_INVALID_VALUE                  0x0501
hfutrell@2746
   242
#define GL_INVALID_OPERATION              0x0502
hfutrell@2746
   243
#define GL_STACK_OVERFLOW                 0x0503
hfutrell@2746
   244
#define GL_STACK_UNDERFLOW                0x0504
hfutrell@2746
   245
#define GL_OUT_OF_MEMORY                  0x0505
hfutrell@2746
   246
hfutrell@2746
   247
/* FogMode */
hfutrell@2746
   248
/*      GL_LINEAR */
hfutrell@2746
   249
#define GL_EXP                            0x0800
hfutrell@2746
   250
#define GL_EXP2                           0x0801
hfutrell@2746
   251
hfutrell@2746
   252
/* FogParameter */
hfutrell@2746
   253
#define GL_FOG_DENSITY                    0x0B62
hfutrell@2746
   254
#define GL_FOG_START                      0x0B63
hfutrell@2746
   255
#define GL_FOG_END                        0x0B64
hfutrell@2746
   256
#define GL_FOG_MODE                       0x0B65
hfutrell@2746
   257
#define GL_FOG_COLOR                      0x0B66
hfutrell@2746
   258
hfutrell@2746
   259
/* FrontFaceDirection */
hfutrell@2746
   260
#define GL_CW                             0x0900
hfutrell@2746
   261
#define GL_CCW                            0x0901
hfutrell@2746
   262
hfutrell@2746
   263
/* GetPName */
hfutrell@2746
   264
#define GL_CURRENT_COLOR                  0x0B00
hfutrell@2746
   265
#define GL_CURRENT_NORMAL                 0x0B02
hfutrell@2746
   266
#define GL_CURRENT_TEXTURE_COORDS         0x0B03
hfutrell@2746
   267
#define GL_POINT_SIZE                     0x0B11
hfutrell@2746
   268
#define GL_POINT_SIZE_MIN                 0x8126
hfutrell@2746
   269
#define GL_POINT_SIZE_MAX                 0x8127
hfutrell@2746
   270
#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
hfutrell@2746
   271
#define GL_POINT_DISTANCE_ATTENUATION     0x8129
hfutrell@2746
   272
#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
hfutrell@2746
   273
#define GL_LINE_WIDTH                     0x0B21
hfutrell@2746
   274
#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
hfutrell@2746
   275
#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
hfutrell@2746
   276
#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
hfutrell@2746
   277
#define GL_CULL_FACE_MODE                 0x0B45
hfutrell@2746
   278
#define GL_FRONT_FACE                     0x0B46
hfutrell@2746
   279
#define GL_SHADE_MODEL                    0x0B54
hfutrell@2746
   280
#define GL_DEPTH_RANGE                    0x0B70
hfutrell@2746
   281
#define GL_DEPTH_WRITEMASK                0x0B72
hfutrell@2746
   282
#define GL_DEPTH_CLEAR_VALUE              0x0B73
hfutrell@2746
   283
#define GL_DEPTH_FUNC                     0x0B74
hfutrell@2746
   284
#define GL_STENCIL_CLEAR_VALUE            0x0B91
hfutrell@2746
   285
#define GL_STENCIL_FUNC                   0x0B92
hfutrell@2746
   286
#define GL_STENCIL_VALUE_MASK             0x0B93
hfutrell@2746
   287
#define GL_STENCIL_FAIL                   0x0B94
hfutrell@2746
   288
#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
hfutrell@2746
   289
#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
hfutrell@2746
   290
#define GL_STENCIL_REF                    0x0B97
hfutrell@2746
   291
#define GL_STENCIL_WRITEMASK              0x0B98
hfutrell@2746
   292
#define GL_MATRIX_MODE                    0x0BA0
hfutrell@2746
   293
#define GL_VIEWPORT                       0x0BA2
hfutrell@2746
   294
#define GL_MODELVIEW_STACK_DEPTH          0x0BA3
hfutrell@2746
   295
#define GL_PROJECTION_STACK_DEPTH         0x0BA4
hfutrell@2746
   296
#define GL_TEXTURE_STACK_DEPTH            0x0BA5
hfutrell@2746
   297
#define GL_MODELVIEW_MATRIX               0x0BA6
hfutrell@2746
   298
#define GL_PROJECTION_MATRIX              0x0BA7
hfutrell@2746
   299
#define GL_TEXTURE_MATRIX                 0x0BA8
hfutrell@2746
   300
#define GL_ALPHA_TEST_FUNC                0x0BC1
hfutrell@2746
   301
#define GL_ALPHA_TEST_REF                 0x0BC2
hfutrell@2746
   302
#define GL_BLEND_DST                      0x0BE0
hfutrell@2746
   303
#define GL_BLEND_SRC                      0x0BE1
hfutrell@2746
   304
#define GL_LOGIC_OP_MODE                  0x0BF0
hfutrell@2746
   305
#define GL_SCISSOR_BOX                    0x0C10
hfutrell@2746
   306
#define GL_SCISSOR_TEST                   0x0C11
hfutrell@2746
   307
#define GL_COLOR_CLEAR_VALUE              0x0C22
hfutrell@2746
   308
#define GL_COLOR_WRITEMASK                0x0C23
hfutrell@2746
   309
#define GL_UNPACK_ALIGNMENT               0x0CF5
hfutrell@2746
   310
#define GL_PACK_ALIGNMENT                 0x0D05
hfutrell@2746
   311
#define GL_MAX_LIGHTS                     0x0D31
hfutrell@2746
   312
#define GL_MAX_CLIP_PLANES                0x0D32
hfutrell@2746
   313
#define GL_MAX_TEXTURE_SIZE               0x0D33
hfutrell@2746
   314
#define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36
hfutrell@2746
   315
#define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38
hfutrell@2746
   316
#define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39
hfutrell@2746
   317
#define GL_MAX_VIEWPORT_DIMS              0x0D3A
hfutrell@2746
   318
#define GL_MAX_TEXTURE_UNITS              0x84E2
hfutrell@2746
   319
#define GL_SUBPIXEL_BITS                  0x0D50
hfutrell@2746
   320
#define GL_RED_BITS                       0x0D52
hfutrell@2746
   321
#define GL_GREEN_BITS                     0x0D53
hfutrell@2746
   322
#define GL_BLUE_BITS                      0x0D54
hfutrell@2746
   323
#define GL_ALPHA_BITS                     0x0D55
hfutrell@2746
   324
#define GL_DEPTH_BITS                     0x0D56
hfutrell@2746
   325
#define GL_STENCIL_BITS                   0x0D57
hfutrell@2746
   326
#define GL_POLYGON_OFFSET_UNITS           0x2A00
hfutrell@2746
   327
#define GL_POLYGON_OFFSET_FILL            0x8037
hfutrell@2746
   328
#define GL_POLYGON_OFFSET_FACTOR          0x8038
hfutrell@2746
   329
#define GL_TEXTURE_BINDING_2D             0x8069
hfutrell@2746
   330
#define GL_VERTEX_ARRAY_SIZE              0x807A
hfutrell@2746
   331
#define GL_VERTEX_ARRAY_TYPE              0x807B
hfutrell@2746
   332
#define GL_VERTEX_ARRAY_STRIDE            0x807C
hfutrell@2746
   333
#define GL_NORMAL_ARRAY_TYPE              0x807E
hfutrell@2746
   334
#define GL_NORMAL_ARRAY_STRIDE            0x807F
hfutrell@2746
   335
#define GL_COLOR_ARRAY_SIZE               0x8081
hfutrell@2746
   336
#define GL_COLOR_ARRAY_TYPE               0x8082
hfutrell@2746
   337
#define GL_COLOR_ARRAY_STRIDE             0x8083
hfutrell@2746
   338
#define GL_TEXTURE_COORD_ARRAY_SIZE       0x8088
hfutrell@2746
   339
#define GL_TEXTURE_COORD_ARRAY_TYPE       0x8089
hfutrell@2746
   340
#define GL_TEXTURE_COORD_ARRAY_STRIDE     0x808A
hfutrell@2746
   341
#define GL_VERTEX_ARRAY_POINTER           0x808E
hfutrell@2746
   342
#define GL_NORMAL_ARRAY_POINTER           0x808F
hfutrell@2746
   343
#define GL_COLOR_ARRAY_POINTER            0x8090
hfutrell@2746
   344
#define GL_TEXTURE_COORD_ARRAY_POINTER    0x8092
hfutrell@2746
   345
#define GL_SAMPLE_BUFFERS                 0x80A8
hfutrell@2746
   346
#define GL_SAMPLES                        0x80A9
hfutrell@2746
   347
#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
hfutrell@2746
   348
#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
hfutrell@2746
   349
lestat@3118
   350
/* OpenGL ES 1.0 defines, they gone in 1.1 and 2.0 */
lestat@3118
   351
#ifndef GL_MAX_ELEMENTS_VERTICES
lestat@3118
   352
#define GL_MAX_ELEMENTS_VERTICES          0x80E8
slouken@3139
   353
#endif                          /* GL_MAX_ELEMENTS_VERTICES */
lestat@3118
   354
#ifndef GL_MAX_ELEMENTS_INDICES
lestat@3118
   355
#define GL_MAX_ELEMENTS_INDICES           0x80E9
slouken@3139
   356
#endif                          /* GL_MAX_ELEMENTS_INDICES */
lestat@3118
   357
hfutrell@2746
   358
/* GetTextureParameter */
hfutrell@2746
   359
/*      GL_TEXTURE_MAG_FILTER */
hfutrell@2746
   360
/*      GL_TEXTURE_MIN_FILTER */
hfutrell@2746
   361
/*      GL_TEXTURE_WRAP_S */
hfutrell@2746
   362
/*      GL_TEXTURE_WRAP_T */
hfutrell@2746
   363
hfutrell@2746
   364
#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
hfutrell@2746
   365
#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
hfutrell@2746
   366
hfutrell@2746
   367
/* HintMode */
hfutrell@2746
   368
#define GL_DONT_CARE                      0x1100
hfutrell@2746
   369
#define GL_FASTEST                        0x1101
hfutrell@2746
   370
#define GL_NICEST                         0x1102
hfutrell@2746
   371
hfutrell@2746
   372
/* HintTarget */
hfutrell@2746
   373
#define GL_PERSPECTIVE_CORRECTION_HINT    0x0C50
hfutrell@2746
   374
#define GL_POINT_SMOOTH_HINT              0x0C51
hfutrell@2746
   375
#define GL_LINE_SMOOTH_HINT               0x0C52
hfutrell@2746
   376
#define GL_FOG_HINT                       0x0C54
hfutrell@2746
   377
#define GL_GENERATE_MIPMAP_HINT           0x8192
hfutrell@2746
   378
hfutrell@2746
   379
/* LightModelParameter */
hfutrell@2746
   380
#define GL_LIGHT_MODEL_AMBIENT            0x0B53
hfutrell@2746
   381
#define GL_LIGHT_MODEL_TWO_SIDE           0x0B52
hfutrell@2746
   382
hfutrell@2746
   383
/* LightParameter */
hfutrell@2746
   384
#define GL_AMBIENT                        0x1200
hfutrell@2746
   385
#define GL_DIFFUSE                        0x1201
hfutrell@2746
   386
#define GL_SPECULAR                       0x1202
hfutrell@2746
   387
#define GL_POSITION                       0x1203
hfutrell@2746
   388
#define GL_SPOT_DIRECTION                 0x1204
hfutrell@2746
   389
#define GL_SPOT_EXPONENT                  0x1205
hfutrell@2746
   390
#define GL_SPOT_CUTOFF                    0x1206
hfutrell@2746
   391
#define GL_CONSTANT_ATTENUATION           0x1207
hfutrell@2746
   392
#define GL_LINEAR_ATTENUATION             0x1208
hfutrell@2746
   393
#define GL_QUADRATIC_ATTENUATION          0x1209
hfutrell@2746
   394
hfutrell@2746
   395
/* DataType */
hfutrell@2746
   396
#define GL_BYTE                           0x1400
hfutrell@2746
   397
#define GL_UNSIGNED_BYTE                  0x1401
hfutrell@2746
   398
#define GL_SHORT                          0x1402
hfutrell@2746
   399
#define GL_UNSIGNED_SHORT                 0x1403
hfutrell@2746
   400
#define GL_FLOAT                          0x1406
hfutrell@2746
   401
#define GL_FIXED                          0x140C
hfutrell@2746
   402
hfutrell@2746
   403
/* LogicOp */
hfutrell@2746
   404
#define GL_CLEAR                          0x1500
hfutrell@2746
   405
#define GL_AND                            0x1501
hfutrell@2746
   406
#define GL_AND_REVERSE                    0x1502
hfutrell@2746
   407
#define GL_COPY                           0x1503
hfutrell@2746
   408
#define GL_AND_INVERTED                   0x1504
hfutrell@2746
   409
#define GL_NOOP                           0x1505
hfutrell@2746
   410
#define GL_XOR                            0x1506
hfutrell@2746
   411
#define GL_OR                             0x1507
hfutrell@2746
   412
#define GL_NOR                            0x1508
hfutrell@2746
   413
#define GL_EQUIV                          0x1509
hfutrell@2746
   414
#define GL_INVERT                         0x150A
hfutrell@2746
   415
#define GL_OR_REVERSE                     0x150B
hfutrell@2746
   416
#define GL_COPY_INVERTED                  0x150C
hfutrell@2746
   417
#define GL_OR_INVERTED                    0x150D
hfutrell@2746
   418
#define GL_NAND                           0x150E
hfutrell@2746
   419
#define GL_SET                            0x150F
hfutrell@2746
   420
hfutrell@2746
   421
/* MaterialFace */
hfutrell@2746
   422
/*      GL_FRONT_AND_BACK */
hfutrell@2746
   423
hfutrell@2746
   424
/* MaterialParameter */
hfutrell@2746
   425
#define GL_EMISSION                       0x1600
hfutrell@2746
   426
#define GL_SHININESS                      0x1601
hfutrell@2746
   427
#define GL_AMBIENT_AND_DIFFUSE            0x1602
hfutrell@2746
   428
/*      GL_AMBIENT */
hfutrell@2746
   429
/*      GL_DIFFUSE */
hfutrell@2746
   430
/*      GL_SPECULAR */
hfutrell@2746
   431
hfutrell@2746
   432
/* MatrixMode */
hfutrell@2746
   433
#define GL_MODELVIEW                      0x1700
hfutrell@2746
   434
#define GL_PROJECTION                     0x1701
hfutrell@2746
   435
#define GL_TEXTURE                        0x1702
hfutrell@2746
   436
hfutrell@2746
   437
/* NormalPointerType */
hfutrell@2746
   438
/*      GL_BYTE */
hfutrell@2746
   439
/*      GL_SHORT */
hfutrell@2746
   440
/*      GL_FLOAT */
hfutrell@2746
   441
/*      GL_FIXED */
hfutrell@2746
   442
hfutrell@2746
   443
/* PixelFormat */
hfutrell@2746
   444
#define GL_ALPHA                          0x1906
hfutrell@2746
   445
#define GL_RGB                            0x1907
hfutrell@2746
   446
#define GL_RGBA                           0x1908
hfutrell@2746
   447
#define GL_LUMINANCE                      0x1909
hfutrell@2746
   448
#define GL_LUMINANCE_ALPHA                0x190A
hfutrell@2746
   449
hfutrell@2746
   450
/* PixelStoreParameter */
hfutrell@2746
   451
#define GL_UNPACK_ALIGNMENT               0x0CF5
hfutrell@2746
   452
#define GL_PACK_ALIGNMENT                 0x0D05
hfutrell@2746
   453
hfutrell@2746
   454
/* PixelType */
hfutrell@2746
   455
/*      GL_UNSIGNED_BYTE */
hfutrell@2746
   456
#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
hfutrell@2746
   457
#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
hfutrell@2746
   458
#define GL_UNSIGNED_SHORT_5_6_5           0x8363
hfutrell@2746
   459
hfutrell@2746
   460
/* ShadingModel */
hfutrell@2746
   461
#define GL_FLAT                           0x1D00
hfutrell@2746
   462
#define GL_SMOOTH                         0x1D01
hfutrell@2746
   463
hfutrell@2746
   464
/* StencilFunction */
hfutrell@2746
   465
/*      GL_NEVER */
hfutrell@2746
   466
/*      GL_LESS */
hfutrell@2746
   467
/*      GL_EQUAL */
hfutrell@2746
   468
/*      GL_LEQUAL */
hfutrell@2746
   469
/*      GL_GREATER */
hfutrell@2746
   470
/*      GL_NOTEQUAL */
hfutrell@2746
   471
/*      GL_GEQUAL */
hfutrell@2746
   472
/*      GL_ALWAYS */
hfutrell@2746
   473
hfutrell@2746
   474
/* StencilOp */
hfutrell@2746
   475
/*      GL_ZERO */
hfutrell@2746
   476
#define GL_KEEP                           0x1E00
hfutrell@2746
   477
#define GL_REPLACE                        0x1E01
hfutrell@2746
   478
#define GL_INCR                           0x1E02
hfutrell@2746
   479
#define GL_DECR                           0x1E03
hfutrell@2746
   480
/*      GL_INVERT */
hfutrell@2746
   481
hfutrell@2746
   482
/* StringName */
hfutrell@2746
   483
#define GL_VENDOR                         0x1F00
hfutrell@2746
   484
#define GL_RENDERER                       0x1F01
hfutrell@2746
   485
#define GL_VERSION                        0x1F02
hfutrell@2746
   486
#define GL_EXTENSIONS                     0x1F03
hfutrell@2746
   487
hfutrell@2746
   488
/* TexCoordPointerType */
hfutrell@2746
   489
/*      GL_SHORT */
hfutrell@2746
   490
/*      GL_FLOAT */
hfutrell@2746
   491
/*      GL_FIXED */
hfutrell@2746
   492
/*      GL_BYTE */
hfutrell@2746
   493
hfutrell@2746
   494
/* TextureEnvMode */
hfutrell@2746
   495
#define GL_MODULATE                       0x2100
hfutrell@2746
   496
#define GL_DECAL                          0x2101
hfutrell@2746
   497
/*      GL_BLEND */
hfutrell@2746
   498
#define GL_ADD                            0x0104
hfutrell@2746
   499
/*      GL_REPLACE */
hfutrell@2746
   500
hfutrell@2746
   501
/* TextureEnvParameter */
hfutrell@2746
   502
#define GL_TEXTURE_ENV_MODE               0x2200
hfutrell@2746
   503
#define GL_TEXTURE_ENV_COLOR              0x2201
hfutrell@2746
   504
hfutrell@2746
   505
/* TextureEnvTarget */
hfutrell@2746
   506
#define GL_TEXTURE_ENV                    0x2300
hfutrell@2746
   507
hfutrell@2746
   508
/* TextureMagFilter */
hfutrell@2746
   509
#define GL_NEAREST                        0x2600
hfutrell@2746
   510
#define GL_LINEAR                         0x2601
hfutrell@2746
   511
hfutrell@2746
   512
/* TextureMinFilter */
hfutrell@2746
   513
/*      GL_NEAREST */
hfutrell@2746
   514
/*      GL_LINEAR */
hfutrell@2746
   515
#define GL_NEAREST_MIPMAP_NEAREST         0x2700
hfutrell@2746
   516
#define GL_LINEAR_MIPMAP_NEAREST          0x2701
hfutrell@2746
   517
#define GL_NEAREST_MIPMAP_LINEAR          0x2702
hfutrell@2746
   518
#define GL_LINEAR_MIPMAP_LINEAR           0x2703
hfutrell@2746
   519
hfutrell@2746
   520
/* TextureParameterName */
hfutrell@2746
   521
#define GL_TEXTURE_MAG_FILTER             0x2800
hfutrell@2746
   522
#define GL_TEXTURE_MIN_FILTER             0x2801
hfutrell@2746
   523
#define GL_TEXTURE_WRAP_S                 0x2802
hfutrell@2746
   524
#define GL_TEXTURE_WRAP_T                 0x2803
hfutrell@2746
   525
#define GL_GENERATE_MIPMAP                0x8191
hfutrell@2746
   526
hfutrell@2746
   527
/* TextureTarget */
hfutrell@2746
   528
/*      GL_TEXTURE_2D */
hfutrell@2746
   529
hfutrell@2746
   530
/* TextureUnit */
hfutrell@2746
   531
#define GL_TEXTURE0                       0x84C0
hfutrell@2746
   532
#define GL_TEXTURE1                       0x84C1
hfutrell@2746
   533
#define GL_TEXTURE2                       0x84C2
hfutrell@2746
   534
#define GL_TEXTURE3                       0x84C3
hfutrell@2746
   535
#define GL_TEXTURE4                       0x84C4
hfutrell@2746
   536
#define GL_TEXTURE5                       0x84C5
hfutrell@2746
   537
#define GL_TEXTURE6                       0x84C6
hfutrell@2746
   538
#define GL_TEXTURE7                       0x84C7
hfutrell@2746
   539
#define GL_TEXTURE8                       0x84C8
hfutrell@2746
   540
#define GL_TEXTURE9                       0x84C9
hfutrell@2746
   541
#define GL_TEXTURE10                      0x84CA
hfutrell@2746
   542
#define GL_TEXTURE11                      0x84CB
hfutrell@2746
   543
#define GL_TEXTURE12                      0x84CC
hfutrell@2746
   544
#define GL_TEXTURE13                      0x84CD
hfutrell@2746
   545
#define GL_TEXTURE14                      0x84CE
hfutrell@2746
   546
#define GL_TEXTURE15                      0x84CF
hfutrell@2746
   547
#define GL_TEXTURE16                      0x84D0
hfutrell@2746
   548
#define GL_TEXTURE17                      0x84D1
hfutrell@2746
   549
#define GL_TEXTURE18                      0x84D2
hfutrell@2746
   550
#define GL_TEXTURE19                      0x84D3
hfutrell@2746
   551
#define GL_TEXTURE20                      0x84D4
hfutrell@2746
   552
#define GL_TEXTURE21                      0x84D5
hfutrell@2746
   553
#define GL_TEXTURE22                      0x84D6
hfutrell@2746
   554
#define GL_TEXTURE23                      0x84D7
hfutrell@2746
   555
#define GL_TEXTURE24                      0x84D8
hfutrell@2746
   556
#define GL_TEXTURE25                      0x84D9
hfutrell@2746
   557
#define GL_TEXTURE26                      0x84DA
hfutrell@2746
   558
#define GL_TEXTURE27                      0x84DB
hfutrell@2746
   559
#define GL_TEXTURE28                      0x84DC
hfutrell@2746
   560
#define GL_TEXTURE29                      0x84DD
hfutrell@2746
   561
#define GL_TEXTURE30                      0x84DE
hfutrell@2746
   562
#define GL_TEXTURE31                      0x84DF
hfutrell@2746
   563
#define GL_ACTIVE_TEXTURE                 0x84E0
hfutrell@2746
   564
#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
hfutrell@2746
   565
hfutrell@2746
   566
/* TextureWrapMode */
hfutrell@2746
   567
#define GL_REPEAT                         0x2901
hfutrell@2746
   568
#define GL_CLAMP_TO_EDGE                  0x812F
hfutrell@2746
   569
hfutrell@2746
   570
/* VertexPointerType */
hfutrell@2746
   571
/*      GL_SHORT */
hfutrell@2746
   572
/*      GL_FLOAT */
hfutrell@2746
   573
/*      GL_FIXED */
hfutrell@2746
   574
/*      GL_BYTE */
hfutrell@2746
   575
hfutrell@2746
   576
/* LightName */
hfutrell@2746
   577
#define GL_LIGHT0                         0x4000
hfutrell@2746
   578
#define GL_LIGHT1                         0x4001
hfutrell@2746
   579
#define GL_LIGHT2                         0x4002
hfutrell@2746
   580
#define GL_LIGHT3                         0x4003
hfutrell@2746
   581
#define GL_LIGHT4                         0x4004
hfutrell@2746
   582
#define GL_LIGHT5                         0x4005
hfutrell@2746
   583
#define GL_LIGHT6                         0x4006
hfutrell@2746
   584
#define GL_LIGHT7                         0x4007
hfutrell@2746
   585
hfutrell@2746
   586
/* Buffer Objects */
hfutrell@2746
   587
#define GL_ARRAY_BUFFER                   0x8892
hfutrell@2746
   588
#define GL_ELEMENT_ARRAY_BUFFER           0x8893
hfutrell@2746
   589
hfutrell@2746
   590
#define GL_ARRAY_BUFFER_BINDING               0x8894
hfutrell@2746
   591
#define GL_ELEMENT_ARRAY_BUFFER_BINDING       0x8895
hfutrell@2746
   592
#define GL_VERTEX_ARRAY_BUFFER_BINDING        0x8896
hfutrell@2746
   593
#define GL_NORMAL_ARRAY_BUFFER_BINDING        0x8897
hfutrell@2746
   594
#define GL_COLOR_ARRAY_BUFFER_BINDING         0x8898
hfutrell@2746
   595
#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
hfutrell@2746
   596
hfutrell@2746
   597
#define GL_STATIC_DRAW                    0x88E4
hfutrell@2746
   598
#define GL_DYNAMIC_DRAW                   0x88E8
hfutrell@2746
   599
hfutrell@2746
   600
#define GL_BUFFER_SIZE                    0x8764
hfutrell@2746
   601
#define GL_BUFFER_USAGE                   0x8765
hfutrell@2746
   602
hfutrell@2746
   603
/* Texture combine + dot3 */
hfutrell@2746
   604
#define GL_SUBTRACT                       0x84E7
hfutrell@2746
   605
#define GL_COMBINE                        0x8570
hfutrell@2746
   606
#define GL_COMBINE_RGB                    0x8571
hfutrell@2746
   607
#define GL_COMBINE_ALPHA                  0x8572
hfutrell@2746
   608
#define GL_RGB_SCALE                      0x8573
hfutrell@2746
   609
#define GL_ADD_SIGNED                     0x8574
hfutrell@2746
   610
#define GL_INTERPOLATE                    0x8575
hfutrell@2746
   611
#define GL_CONSTANT                       0x8576
hfutrell@2746
   612
#define GL_PRIMARY_COLOR                  0x8577
hfutrell@2746
   613
#define GL_PREVIOUS                       0x8578
hfutrell@2746
   614
#define GL_OPERAND0_RGB                   0x8590
hfutrell@2746
   615
#define GL_OPERAND1_RGB                   0x8591
hfutrell@2746
   616
#define GL_OPERAND2_RGB                   0x8592
hfutrell@2746
   617
#define GL_OPERAND0_ALPHA                 0x8598
hfutrell@2746
   618
#define GL_OPERAND1_ALPHA                 0x8599
hfutrell@2746
   619
#define GL_OPERAND2_ALPHA                 0x859A
hfutrell@2746
   620
hfutrell@2746
   621
#define GL_ALPHA_SCALE                    0x0D1C
hfutrell@2746
   622
hfutrell@2746
   623
#define GL_SRC0_RGB                       0x8580
hfutrell@2746
   624
#define GL_SRC1_RGB                       0x8581
hfutrell@2746
   625
#define GL_SRC2_RGB                       0x8582
hfutrell@2746
   626
#define GL_SRC0_ALPHA                     0x8588
hfutrell@2746
   627
#define GL_SRC1_ALPHA                     0x8589
hfutrell@2746
   628
#define GL_SRC2_ALPHA                     0x858A
hfutrell@2746
   629
hfutrell@2746
   630
#define GL_DOT3_RGB                       0x86AE
hfutrell@2746
   631
#define GL_DOT3_RGBA                      0x86AF
hfutrell@2746
   632
hfutrell@2746
   633
/*------------------------------------------------------------------------*
hfutrell@2746
   634
 * required OES extension tokens
hfutrell@2746
   635
 *------------------------------------------------------------------------*/
hfutrell@2746
   636
hfutrell@2746
   637
/* OES_read_format */
hfutrell@2746
   638
#ifndef GL_OES_read_format
hfutrell@2746
   639
#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES                   0x8B9A
hfutrell@2746
   640
#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES                 0x8B9B
hfutrell@2746
   641
#endif
hfutrell@2746
   642
hfutrell@2746
   643
/* GL_OES_compressed_paletted_texture */
hfutrell@2746
   644
#ifndef GL_OES_compressed_paletted_texture
hfutrell@2746
   645
#define GL_PALETTE4_RGB8_OES                                    0x8B90
hfutrell@2746
   646
#define GL_PALETTE4_RGBA8_OES                                   0x8B91
hfutrell@2746
   647
#define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
hfutrell@2746
   648
#define GL_PALETTE4_RGBA4_OES                                   0x8B93
hfutrell@2746
   649
#define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
hfutrell@2746
   650
#define GL_PALETTE8_RGB8_OES                                    0x8B95
hfutrell@2746
   651
#define GL_PALETTE8_RGBA8_OES                                   0x8B96
hfutrell@2746
   652
#define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
hfutrell@2746
   653
#define GL_PALETTE8_RGBA4_OES                                   0x8B98
hfutrell@2746
   654
#define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
hfutrell@2746
   655
#endif
hfutrell@2746
   656
hfutrell@2746
   657
/* OES_point_size_array */
hfutrell@2746
   658
#ifndef GL_OES_point_size_array
hfutrell@2746
   659
#define GL_POINT_SIZE_ARRAY_OES                                 0x8B9C
hfutrell@2746
   660
#define GL_POINT_SIZE_ARRAY_TYPE_OES                            0x898A
hfutrell@2746
   661
#define GL_POINT_SIZE_ARRAY_STRIDE_OES                          0x898B
hfutrell@2746
   662
#define GL_POINT_SIZE_ARRAY_POINTER_OES                         0x898C
hfutrell@2746
   663
#define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES                  0x8B9F
hfutrell@2746
   664
#endif
hfutrell@2746
   665
hfutrell@2746
   666
/* GL_OES_point_sprite */
hfutrell@2746
   667
#ifndef GL_OES_point_sprite
hfutrell@2746
   668
#define GL_POINT_SPRITE_OES                                     0x8861
hfutrell@2746
   669
#define GL_COORD_REPLACE_OES                                    0x8862
hfutrell@2746
   670
#endif
hfutrell@2746
   671
slouken@3087
   672
/* GL_OES_draw_texture */
slouken@3087
   673
#ifndef GL_OES_draw_texture
slouken@3087
   674
#define GL_TEXTURE_CROP_RECT_OES                                0x8B9D
slouken@3139
   675
#endif                          /* GL_OES_draw_texture */
slouken@3087
   676
slouken@3087
   677
/*  GL_OES_vertex_buffer_object */
slouken@3087
   678
#ifndef GL_OES_vertex_buffer_object
lestat@3117
   679
#define GL_ARRAY_BUFFER_OES                                     0x8892
lestat@3117
   680
#define GL_ELEMENT_ARRAY_BUFFER_OES                             0x8893
lestat@3117
   681
#define GL_ARRAY_BUFFER_BINDING_OES                             0x8894
lestat@3117
   682
#define GL_ELEMENT_ARRAY_BUFFER_BINDING_OES                     0x8895
lestat@3117
   683
#define GL_VERTEX_ARRAY_BUFFER_BINDING_OES                      0x8896
lestat@3117
   684
#define GL_NORMAL_ARRAY_BUFFER_BINDING_OES                      0x8897
lestat@3117
   685
#define GL_COLOR_ARRAY_BUFFER_BINDING_OES                       0x8898
lestat@3117
   686
#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_OES               0x889A
lestat@3117
   687
#define GL_STATIC_DRAW_OES                                      0x88E4
lestat@3117
   688
#define GL_DYNAMIC_DRAW_OES                                     0x88E8
lestat@3117
   689
#define GL_WRITE_ONLY_OES                                       0x88B9
lestat@3117
   690
#define GL_BUFFER_SIZE_OES                                      0x8764
lestat@3117
   691
#define GL_BUFFER_USAGE_OES                                     0x8765
lestat@3117
   692
#define GL_BUFFER_ACCESS_OES                                    0x88BB
slouken@3139
   693
#endif                          /* GL_OES_vertex_buffer_object */
slouken@3087
   694
hfutrell@2746
   695
/*************************************************************/
hfutrell@2746
   696
hfutrell@2746
   697
/* Available only in Common profile */
slouken@2753
   698
    GL_API void GL_APIENTRY glAlphaFunc(GLenum func, GLclampf ref);
slouken@2753
   699
    GL_API void GL_APIENTRY glClearColor(GLclampf red, GLclampf green,
slouken@2753
   700
                                         GLclampf blue, GLclampf alpha);
slouken@2753
   701
    GL_API void GL_APIENTRY glClearDepthf(GLclampf depth);
slouken@2753
   702
    GL_API void GL_APIENTRY glClipPlanef(GLenum plane,
slouken@2753
   703
                                         const GLfloat * equation);
slouken@2753
   704
    GL_API void GL_APIENTRY glColor4f(GLfloat red, GLfloat green,
slouken@2753
   705
                                      GLfloat blue, GLfloat alpha);
slouken@2753
   706
    GL_API void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar);
slouken@2753
   707
    GL_API void GL_APIENTRY glFogf(GLenum pname, GLfloat param);
slouken@2753
   708
    GL_API void GL_APIENTRY glFogfv(GLenum pname, const GLfloat * params);
slouken@2753
   709
    GL_API void GL_APIENTRY glFrustumf(GLfloat left, GLfloat right,
slouken@2753
   710
                                       GLfloat bottom, GLfloat top,
slouken@2753
   711
                                       GLfloat zNear, GLfloat zFar);
slouken@2753
   712
    GL_API void GL_APIENTRY glGetClipPlanef(GLenum pname, GLfloat eqn[4]);
slouken@2753
   713
    GL_API void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat * params);
slouken@2753
   714
    GL_API void GL_APIENTRY glGetLightfv(GLenum light, GLenum pname,
slouken@2753
   715
                                         GLfloat * params);
slouken@2753
   716
    GL_API void GL_APIENTRY glGetMaterialfv(GLenum face, GLenum pname,
slouken@2753
   717
                                            GLfloat * params);
slouken@2753
   718
    GL_API void GL_APIENTRY glGetTexEnvfv(GLenum env, GLenum pname,
slouken@2753
   719
                                          GLfloat * params);
slouken@2753
   720
    GL_API void GL_APIENTRY glGetTexParameterfv(GLenum target, GLenum pname,
slouken@2753
   721
                                                GLfloat * params);
slouken@2753
   722
    GL_API void GL_APIENTRY glLightModelf(GLenum pname, GLfloat param);
slouken@2753
   723
    GL_API void GL_APIENTRY glLightModelfv(GLenum pname,
slouken@2753
   724
                                           const GLfloat * params);
slouken@2753
   725
    GL_API void GL_APIENTRY glLightf(GLenum light, GLenum pname,
slouken@2753
   726
                                     GLfloat param);
slouken@2753
   727
    GL_API void GL_APIENTRY glLightfv(GLenum light, GLenum pname,
slouken@2753
   728
                                      const GLfloat * params);
slouken@2753
   729
    GL_API void GL_APIENTRY glLineWidth(GLfloat width);
slouken@2753
   730
    GL_API void GL_APIENTRY glLoadMatrixf(const GLfloat * m);
slouken@2753
   731
    GL_API void GL_APIENTRY glMaterialf(GLenum face, GLenum pname,
slouken@2753
   732
                                        GLfloat param);
slouken@2753
   733
    GL_API void GL_APIENTRY glMaterialfv(GLenum face, GLenum pname,
slouken@2753
   734
                                         const GLfloat * params);
slouken@2753
   735
    GL_API void GL_APIENTRY glMultMatrixf(const GLfloat * m);
slouken@2753
   736
    GL_API void GL_APIENTRY glMultiTexCoord4f(GLenum target, GLfloat s,
slouken@2753
   737
                                              GLfloat t, GLfloat r,
slouken@2753
   738
                                              GLfloat q);
slouken@2753
   739
    GL_API void GL_APIENTRY glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
slouken@2753
   740
    GL_API void GL_APIENTRY glOrthof(GLfloat left, GLfloat right,
slouken@2753
   741
                                     GLfloat bottom, GLfloat top,
slouken@2753
   742
                                     GLfloat zNear, GLfloat zFar);
slouken@2753
   743
    GL_API void GL_APIENTRY glPointParameterf(GLenum pname, GLfloat param);
slouken@2753
   744
    GL_API void GL_APIENTRY glPointParameterfv(GLenum pname,
slouken@2753
   745
                                               const GLfloat * params);
slouken@2753
   746
    GL_API void GL_APIENTRY glPointSize(GLfloat size);
slouken@2753
   747
    GL_API void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units);
slouken@2753
   748
    GL_API void GL_APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y,
slouken@2753
   749
                                      GLfloat z);
slouken@2753
   750
    GL_API void GL_APIENTRY glScalef(GLfloat x, GLfloat y, GLfloat z);
slouken@2753
   751
    GL_API void GL_APIENTRY glTexEnvf(GLenum target, GLenum pname,
slouken@2753
   752
                                      GLfloat param);
slouken@2753
   753
    GL_API void GL_APIENTRY glTexEnvfv(GLenum target, GLenum pname,
slouken@2753
   754
                                       const GLfloat * params);
slouken@2753
   755
    GL_API void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname,
slouken@2753
   756
                                            GLfloat param);
slouken@2753
   757
    GL_API void GL_APIENTRY glTexParameterfv(GLenum target, GLenum pname,
slouken@2753
   758
                                             const GLfloat * params);
slouken@2753
   759
    GL_API void GL_APIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z);
hfutrell@2746
   760
hfutrell@2746
   761
/* Available in both Common and Common-Lite profiles */
slouken@2753
   762
    GL_API void GL_APIENTRY glActiveTexture(GLenum texture);
slouken@2753
   763
    GL_API void GL_APIENTRY glAlphaFuncx(GLenum func, GLclampx ref);
slouken@2753
   764
    GL_API void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer);
slouken@2753
   765
    GL_API void GL_APIENTRY glBindTexture(GLenum target, GLuint texture);
slouken@2753
   766
    GL_API void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor);
slouken@2753
   767
    GL_API void GL_APIENTRY glBufferData(GLenum target, GLsizeiptr size,
slouken@2753
   768
                                         const GLvoid * data, GLenum usage);
slouken@2753
   769
    GL_API void GL_APIENTRY glBufferSubData(GLenum target, GLintptr offset,
slouken@2753
   770
                                            GLsizeiptr size,
slouken@2753
   771
                                            const GLvoid * data);
slouken@2753
   772
    GL_API void GL_APIENTRY glClear(GLbitfield mask);
slouken@2753
   773
    GL_API void GL_APIENTRY glClearColorx(GLclampx red, GLclampx green,
slouken@2753
   774
                                          GLclampx blue, GLclampx alpha);
slouken@2753
   775
    GL_API void GL_APIENTRY glClearDepthx(GLclampx depth);
slouken@2753
   776
    GL_API void GL_APIENTRY glClearStencil(GLint s);
slouken@2753
   777
    GL_API void GL_APIENTRY glClientActiveTexture(GLenum texture);
slouken@2753
   778
    GL_API void GL_APIENTRY glClipPlanex(GLenum plane,
slouken@2753
   779
                                         const GLfixed * equation);
slouken@2753
   780
    GL_API void GL_APIENTRY glColor4ub(GLubyte red, GLubyte green,
slouken@2753
   781
                                       GLubyte blue, GLubyte alpha);
slouken@2753
   782
    GL_API void GL_APIENTRY glColor4x(GLfixed red, GLfixed green,
slouken@2753
   783
                                      GLfixed blue, GLfixed alpha);
slouken@2753
   784
    GL_API void GL_APIENTRY glColorMask(GLboolean red, GLboolean green,
slouken@2753
   785
                                        GLboolean blue, GLboolean alpha);
slouken@2753
   786
    GL_API void GL_APIENTRY glColorPointer(GLint size, GLenum type,
slouken@2753
   787
                                           GLsizei stride,
slouken@2753
   788
                                           const GLvoid * pointer);
slouken@2753
   789
    GL_API void GL_APIENTRY glCompressedTexImage2D(GLenum target, GLint level,
slouken@2753
   790
                                                   GLenum internalformat,
slouken@2753
   791
                                                   GLsizei width,
slouken@2753
   792
                                                   GLsizei height,
slouken@2753
   793
                                                   GLint border,
slouken@2753
   794
                                                   GLsizei imageSize,
slouken@2753
   795
                                                   const GLvoid * data);
slouken@2753
   796
    GL_API void GL_APIENTRY glCompressedTexSubImage2D(GLenum target,
slouken@2753
   797
                                                      GLint level,
slouken@2753
   798
                                                      GLint xoffset,
slouken@2753
   799
                                                      GLint yoffset,
slouken@2753
   800
                                                      GLsizei width,
slouken@2753
   801
                                                      GLsizei height,
slouken@2753
   802
                                                      GLenum format,
slouken@2753
   803
                                                      GLsizei imageSize,
slouken@2753
   804
                                                      const GLvoid * data);
slouken@2753
   805
    GL_API void GL_APIENTRY glCopyTexImage2D(GLenum target, GLint level,
slouken@2753
   806
                                             GLenum internalformat, GLint x,
slouken@2753
   807
                                             GLint y, GLsizei width,
slouken@2753
   808
                                             GLsizei height, GLint border);
slouken@2753
   809
    GL_API void GL_APIENTRY glCopyTexSubImage2D(GLenum target, GLint level,
slouken@2753
   810
                                                GLint xoffset, GLint yoffset,
slouken@2753
   811
                                                GLint x, GLint y,
slouken@2753
   812
                                                GLsizei width,
slouken@2753
   813
                                                GLsizei height);
slouken@2753
   814
    GL_API void GL_APIENTRY glCullFace(GLenum mode);
slouken@2753
   815
    GL_API void GL_APIENTRY glDeleteBuffers(GLsizei n,
slouken@2753
   816
                                            const GLuint * buffers);
slouken@2753
   817
    GL_API void GL_APIENTRY glDeleteTextures(GLsizei n,
slouken@2753
   818
                                             const GLuint * textures);
slouken@2753
   819
    GL_API void GL_APIENTRY glDepthFunc(GLenum func);
slouken@2753
   820
    GL_API void GL_APIENTRY glDepthMask(GLboolean flag);
slouken@2753
   821
    GL_API void GL_APIENTRY glDepthRangex(GLclampx zNear, GLclampx zFar);
slouken@2753
   822
    GL_API void GL_APIENTRY glDisable(GLenum cap);
slouken@2753
   823
    GL_API void GL_APIENTRY glDisableClientState(GLenum array);
slouken@2753
   824
    GL_API void GL_APIENTRY glDrawArrays(GLenum mode, GLint first,
slouken@2753
   825
                                         GLsizei count);
slouken@2753
   826
    GL_API void GL_APIENTRY glDrawElements(GLenum mode, GLsizei count,
slouken@2753
   827
                                           GLenum type,
slouken@2753
   828
                                           const GLvoid * indices);
slouken@2753
   829
    GL_API void GL_APIENTRY glEnable(GLenum cap);
slouken@2753
   830
    GL_API void GL_APIENTRY glEnableClientState(GLenum array);
slouken@2753
   831
    GL_API void GL_APIENTRY glFinish(void);
slouken@2753
   832
    GL_API void GL_APIENTRY glFlush(void);
slouken@2753
   833
    GL_API void GL_APIENTRY glFogx(GLenum pname, GLfixed param);
slouken@2753
   834
    GL_API void GL_APIENTRY glFogxv(GLenum pname, const GLfixed * params);
slouken@2753
   835
    GL_API void GL_APIENTRY glFrontFace(GLenum mode);
slouken@2753
   836
    GL_API void GL_APIENTRY glFrustumx(GLfixed left, GLfixed right,
slouken@2753
   837
                                       GLfixed bottom, GLfixed top,
slouken@2753
   838
                                       GLfixed zNear, GLfixed zFar);
slouken@2753
   839
    GL_API void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean * params);
slouken@2753
   840
    GL_API void GL_APIENTRY glGetBufferParameteriv(GLenum target,
slouken@2753
   841
                                                   GLenum pname,
slouken@2753
   842
                                                   GLint * params);
slouken@2753
   843
    GL_API void GL_APIENTRY glGetClipPlanex(GLenum pname, GLfixed eqn[4]);
slouken@2753
   844
    GL_API void GL_APIENTRY glGenBuffers(GLsizei n, GLuint * buffers);
slouken@2753
   845
    GL_API void GL_APIENTRY glGenTextures(GLsizei n, GLuint * textures);
slouken@2753
   846
    GL_API GLenum GL_APIENTRY glGetError(void);
slouken@2753
   847
    GL_API void GL_APIENTRY glGetFixedv(GLenum pname, GLfixed * params);
slouken@2753
   848
    GL_API void GL_APIENTRY glGetIntegerv(GLenum pname, GLint * params);
slouken@2753
   849
    GL_API void GL_APIENTRY glGetLightxv(GLenum light, GLenum pname,
slouken@2753
   850
                                         GLfixed * params);
slouken@2753
   851
    GL_API void GL_APIENTRY glGetMaterialxv(GLenum face, GLenum pname,
slouken@2753
   852
                                            GLfixed * params);
slouken@2753
   853
    GL_API void GL_APIENTRY glGetPointerv(GLenum pname, void **params);
slouken@2753
   854
    GL_API const GLubyte *GL_APIENTRY glGetString(GLenum name);
slouken@2753
   855
    GL_API void GL_APIENTRY glGetTexEnviv(GLenum env, GLenum pname,
slouken@2753
   856
                                          GLint * params);
slouken@2753
   857
    GL_API void GL_APIENTRY glGetTexEnvxv(GLenum env, GLenum pname,
slouken@2753
   858
                                          GLfixed * params);
slouken@2753
   859
    GL_API void GL_APIENTRY glGetTexParameteriv(GLenum target, GLenum pname,
slouken@2753
   860
                                                GLint * params);
slouken@2753
   861
    GL_API void GL_APIENTRY glGetTexParameterxv(GLenum target, GLenum pname,
slouken@2753
   862
                                                GLfixed * params);
slouken@2753
   863
    GL_API void GL_APIENTRY glHint(GLenum target, GLenum mode);
slouken@2753
   864
    GL_API GLboolean GL_APIENTRY glIsBuffer(GLuint buffer);
slouken@2753
   865
    GL_API GLboolean GL_APIENTRY glIsEnabled(GLenum cap);
slouken@2753
   866
    GL_API GLboolean GL_APIENTRY glIsTexture(GLuint texture);
slouken@2753
   867
    GL_API void GL_APIENTRY glLightModelx(GLenum pname, GLfixed param);
slouken@2753
   868
    GL_API void GL_APIENTRY glLightModelxv(GLenum pname,
slouken@2753
   869
                                           const GLfixed * params);
slouken@2753
   870
    GL_API void GL_APIENTRY glLightx(GLenum light, GLenum pname,
slouken@2753
   871
                                     GLfixed param);
slouken@2753
   872
    GL_API void GL_APIENTRY glLightxv(GLenum light, GLenum pname,
slouken@2753
   873
                                      const GLfixed * params);
slouken@2753
   874
    GL_API void GL_APIENTRY glLineWidthx(GLfixed width);
slouken@2753
   875
    GL_API void GL_APIENTRY glLoadIdentity(void);
slouken@2753
   876
    GL_API void GL_APIENTRY glLoadMatrixx(const GLfixed * m);
slouken@2753
   877
    GL_API void GL_APIENTRY glLogicOp(GLenum opcode);
slouken@2753
   878
    GL_API void GL_APIENTRY glMaterialx(GLenum face, GLenum pname,
slouken@2753
   879
                                        GLfixed param);
slouken@2753
   880
    GL_API void GL_APIENTRY glMaterialxv(GLenum face, GLenum pname,
slouken@2753
   881
                                         const GLfixed * params);
slouken@2753
   882
    GL_API void GL_APIENTRY glMatrixMode(GLenum mode);
slouken@2753
   883
    GL_API void GL_APIENTRY glMultMatrixx(const GLfixed * m);
slouken@2753
   884
    GL_API void GL_APIENTRY glMultiTexCoord4x(GLenum target, GLfixed s,
slouken@2753
   885
                                              GLfixed t, GLfixed r,
slouken@2753
   886
                                              GLfixed q);
slouken@2753
   887
    GL_API void GL_APIENTRY glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz);
slouken@2753
   888
    GL_API void GL_APIENTRY glNormalPointer(GLenum type, GLsizei stride,
slouken@2753
   889
                                            const GLvoid * pointer);
slouken@2753
   890
    GL_API void GL_APIENTRY glOrthox(GLfixed left, GLfixed right,
slouken@2753
   891
                                     GLfixed bottom, GLfixed top,
slouken@2753
   892
                                     GLfixed zNear, GLfixed zFar);
slouken@2753
   893
    GL_API void GL_APIENTRY glPixelStorei(GLenum pname, GLint param);
slouken@2753
   894
    GL_API void GL_APIENTRY glPointParameterx(GLenum pname, GLfixed param);
slouken@2753
   895
    GL_API void GL_APIENTRY glPointParameterxv(GLenum pname,
slouken@2753
   896
                                               const GLfixed * params);
slouken@2753
   897
    GL_API void GL_APIENTRY glPointSizex(GLfixed size);
slouken@2753
   898
    GL_API void GL_APIENTRY glPolygonOffsetx(GLfixed factor, GLfixed units);
slouken@2753
   899
    GL_API void GL_APIENTRY glPopMatrix(void);
slouken@2753
   900
    GL_API void GL_APIENTRY glPushMatrix(void);
slouken@2753
   901
    GL_API void GL_APIENTRY glReadPixels(GLint x, GLint y, GLsizei width,
slouken@2753
   902
                                         GLsizei height, GLenum format,
slouken@2753
   903
                                         GLenum type, GLvoid * pixels);
slouken@2753
   904
    GL_API void GL_APIENTRY glRotatex(GLfixed angle, GLfixed x, GLfixed y,
slouken@2753
   905
                                      GLfixed z);
slouken@2753
   906
    GL_API void GL_APIENTRY glSampleCoverage(GLclampf value,
slouken@2753
   907
                                             GLboolean invert);
slouken@2753
   908
    GL_API void GL_APIENTRY glSampleCoveragex(GLclampx value,
slouken@2753
   909
                                              GLboolean invert);
slouken@2753
   910
    GL_API void GL_APIENTRY glScalex(GLfixed x, GLfixed y, GLfixed z);
slouken@2753
   911
    GL_API void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width,
slouken@2753
   912
                                      GLsizei height);
slouken@2753
   913
    GL_API void GL_APIENTRY glShadeModel(GLenum mode);
slouken@2753
   914
    GL_API void GL_APIENTRY glStencilFunc(GLenum func, GLint ref,
slouken@2753
   915
                                          GLuint mask);
slouken@2753
   916
    GL_API void GL_APIENTRY glStencilMask(GLuint mask);
slouken@2753
   917
    GL_API void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail,
slouken@2753
   918
                                        GLenum zpass);
slouken@2753
   919
    GL_API void GL_APIENTRY glTexCoordPointer(GLint size, GLenum type,
slouken@2753
   920
                                              GLsizei stride,
slouken@2753
   921
                                              const GLvoid * pointer);
slouken@2753
   922
    GL_API void GL_APIENTRY glTexEnvi(GLenum target, GLenum pname,
slouken@2753
   923
                                      GLint param);
slouken@2753
   924
    GL_API void GL_APIENTRY glTexEnvx(GLenum target, GLenum pname,
slouken@2753
   925
                                      GLfixed param);
slouken@2753
   926
    GL_API void GL_APIENTRY glTexEnviv(GLenum target, GLenum pname,
slouken@2753
   927
                                       const GLint * params);
slouken@2753
   928
    GL_API void GL_APIENTRY glTexEnvxv(GLenum target, GLenum pname,
slouken@2753
   929
                                       const GLfixed * params);
slouken@2753
   930
    GL_API void GL_APIENTRY glTexImage2D(GLenum target, GLint level,
slouken@2753
   931
                                         GLint internalformat, GLsizei width,
slouken@2753
   932
                                         GLsizei height, GLint border,
slouken@2753
   933
                                         GLenum format, GLenum type,
slouken@2753
   934
                                         const GLvoid * pixels);
slouken@2753
   935
    GL_API void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname,
slouken@2753
   936
                                            GLint param);
slouken@2753
   937
    GL_API void GL_APIENTRY glTexParameterx(GLenum target, GLenum pname,
slouken@2753
   938
                                            GLfixed param);
slouken@2753
   939
    GL_API void GL_APIENTRY glTexParameteriv(GLenum target, GLenum pname,
slouken@2753
   940
                                             const GLint * params);
slouken@2753
   941
    GL_API void GL_APIENTRY glTexParameterxv(GLenum target, GLenum pname,
slouken@2753
   942
                                             const GLfixed * params);
slouken@2753
   943
    GL_API void GL_APIENTRY glTexSubImage2D(GLenum target, GLint level,
slouken@2753
   944
                                            GLint xoffset, GLint yoffset,
slouken@2753
   945
                                            GLsizei width, GLsizei height,
slouken@2753
   946
                                            GLenum format, GLenum type,
slouken@2753
   947
                                            const GLvoid * pixels);
slouken@2753
   948
    GL_API void GL_APIENTRY glTranslatex(GLfixed x, GLfixed y, GLfixed z);
slouken@2753
   949
    GL_API void GL_APIENTRY glVertexPointer(GLint size, GLenum type,
slouken@2753
   950
                                            GLsizei stride,
slouken@2753
   951
                                            const GLvoid * pointer);
slouken@2753
   952
    GL_API void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width,
slouken@2753
   953
                                       GLsizei height);
hfutrell@2746
   954
hfutrell@2746
   955
/*------------------------------------------------------------------------*
hfutrell@2746
   956
 * Required OES extension functions
hfutrell@2746
   957
 *------------------------------------------------------------------------*/
hfutrell@2746
   958
hfutrell@2746
   959
/* GL_OES_read_format */
hfutrell@2746
   960
#ifndef GL_OES_read_format
hfutrell@2746
   961
#define GL_OES_read_format 1
hfutrell@2746
   962
#endif
hfutrell@2746
   963
hfutrell@2746
   964
/* GL_OES_compressed_paletted_texture */
hfutrell@2746
   965
#ifndef GL_OES_compressed_paletted_texture
hfutrell@2746
   966
#define GL_OES_compressed_paletted_texture 1
hfutrell@2746
   967
#endif
hfutrell@2746
   968
hfutrell@2746
   969
/* GL_OES_point_size_array */
hfutrell@2746
   970
#ifndef GL_OES_point_size_array
hfutrell@2746
   971
#define GL_OES_point_size_array 1
slouken@2753
   972
    GL_API void GL_APIENTRY glPointSizePointerOES(GLenum type, GLsizei stride,
slouken@2753
   973
                                                  const GLvoid * pointer);
hfutrell@2746
   974
#endif
hfutrell@2746
   975
slouken@3099
   976
/* GL_OES_query_matrix */
slouken@3099
   977
#ifndef GL_OES_query_matrix
slouken@3099
   978
#define GL_OES_query_matrix 1
slouken@3139
   979
    GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES(GLfixed mantissa[16],
slouken@3139
   980
                                                    GLint exponent[16]);
slouken@3139
   981
#endif                          /* GL_OES_query_matrix */
slouken@3099
   982
hfutrell@2746
   983
/* GL_OES_point_sprite */
hfutrell@2746
   984
#ifndef GL_OES_point_sprite
hfutrell@2746
   985
#define GL_OES_point_sprite 1
hfutrell@2746
   986
#endif
hfutrell@2746
   987
slouken@3087
   988
/* GL_OES_draw_texture */
slouken@3087
   989
#ifndef GL_OES_draw_texture
slouken@3087
   990
#define GL_OES_draw_texture 1
slouken@3139
   991
    GL_API void GL_APIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z,
slouken@3139
   992
                                          GLshort width, GLshort height);
slouken@3139
   993
    GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z,
slouken@3139
   994
                                          GLint width, GLint height);
slouken@3139
   995
    GL_API void GL_APIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z,
slouken@3139
   996
                                          GLfixed width, GLfixed height);
slouken@3139
   997
    GL_API void GL_APIENTRY glDrawTexsvOES(const GLshort * coords);
slouken@3139
   998
    GL_API void GL_APIENTRY glDrawTexivOES(const GLint * coords);
slouken@3139
   999
    GL_API void GL_APIENTRY glDrawTexxvOES(const GLfixed * coords);
slouken@3139
  1000
    GL_API void GL_APIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z,
slouken@3139
  1001
                                          GLfloat width, GLfloat height);
slouken@3139
  1002
    GL_API void GL_APIENTRY glDrawTexfvOES(const GLfloat * coords);
slouken@3139
  1003
#endif                          /* GL_OES_draw_texture */
slouken@3087
  1004
slouken@3087
  1005
/* GL_OES_single_precision */
slouken@3087
  1006
#ifndef GL_OES_single_precision
slouken@3087
  1007
#define GL_OES_single_precision 1
slouken@3139
  1008
    GL_API void GL_APIENTRY glDepthRangefOES(GLclampf zNear, GLclampf zFar);
slouken@3139
  1009
    GL_API void GL_APIENTRY glFrustumfOES(GLfloat left, GLfloat right,
slouken@3139
  1010
                                          GLfloat bottom, GLfloat top,
slouken@3139
  1011
                                          GLfloat zNear, GLfloat zFar);
slouken@3139
  1012
    GL_API void GL_APIENTRY glOrthofOES(GLfloat left, GLfloat right,
slouken@3139
  1013
                                        GLfloat bottom, GLfloat top,
slouken@3139
  1014
                                        GLfloat zNear, GLfloat zFar);
slouken@3139
  1015
    GL_API void GL_APIENTRY glClipPlanefOES(GLenum plane,
slouken@3139
  1016
                                            const GLfloat * equation);
slouken@3139
  1017
    GL_API void GL_APIENTRY glGetClipPlanefOES(GLenum pname, GLfloat eqn[4]);
slouken@3139
  1018
    GL_API void GL_APIENTRY glClearDepthfOES(GLclampf depth);
slouken@3139
  1019
#endif                          /* GL_OES_single_precision */
slouken@3087
  1020
slouken@3087
  1021
/* GL_OES_vertex_buffer_object */
slouken@3087
  1022
#ifndef GL_OES_vertex_buffer_object
slouken@3087
  1023
#define GL_OES_vertex_buffer_object 1
slouken@3087
  1024
    GL_API void APIENTRY glBindBufferOES(GLenum, GLuint);
slouken@3087
  1025
    GL_API void APIENTRY glDeleteBuffersOES(GLsizei, const GLuint *);
slouken@3087
  1026
    GL_API void APIENTRY glGenBuffersOES(GLsizei, GLuint *);
slouken@3087
  1027
    GL_API GLboolean APIENTRY glIsBufferOES(GLuint);
slouken@3139
  1028
    GL_API void APIENTRY glBufferDataOES(GLenum, GLsizeiptr, const GLvoid *,
slouken@3139
  1029
                                         GLenum);
slouken@3139
  1030
    GL_API void APIENTRY glBufferSubDataOES(GLenum, GLintptr, GLsizeiptr,
slouken@3139
  1031
                                            const GLvoid *);
slouken@3087
  1032
    GL_API void APIENTRY glGetBufferParameterivOES(GLenum, GLenum, GLint *);
slouken@3139
  1033
#endif                          /* GL_OES_vertex_buffer_object */
slouken@3087
  1034
hfutrell@2746
  1035
#ifdef __cplusplus
hfutrell@2746
  1036
}
hfutrell@2746
  1037
#endif
hfutrell@2746
  1038
slouken@2753
  1039
#endif                          /* __gles_h_ */