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