include/SDL_opengles.h
changeset 5204 daa5463466c5
parent 3697 f7b03b6838cb
child 5262 b530ef003506
     1.1 --- a/include/SDL_opengles.h	Sun Feb 06 00:48:41 2011 -0800
     1.2 +++ b/include/SDL_opengles.h	Sun Feb 06 02:35:14 2011 -0800
     1.3 @@ -1,1039 +1,39 @@
     1.4  /*
     1.5 - SDL - Simple DirectMedia Layer
     1.6 - Copyright (C) 1997-2010 Sam Lantinga
     1.7 - 
     1.8 - This library is free software; you can redistribute it and/or
     1.9 - modify it under the terms of the GNU Lesser General Public
    1.10 - License as published by the Free Software Foundation; either
    1.11 - version 2.1 of the License, or (at your option) any later version.
    1.12 - 
    1.13 - This library is distributed in the hope that it will be useful,
    1.14 - but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 - Lesser General Public License for more details.
    1.17 - 
    1.18 - You should have received a copy of the GNU Lesser General Public
    1.19 - License along with this library; if not, write to the Free Software
    1.20 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 - 
    1.22 - Sam Lantinga
    1.23 - slouken@libsdl.org
    1.24 - */
    1.25 +    SDL - Simple DirectMedia Layer
    1.26 +    Copyright (C) 1997-2010 Sam Lantinga
    1.27 +
    1.28 +    This library is free software; you can redistribute it and/or
    1.29 +    modify it under the terms of the GNU Lesser General Public
    1.30 +    License as published by the Free Software Foundation; either
    1.31 +    version 2.1 of the License, or (at your option) any later version.
    1.32 +
    1.33 +    This library is distributed in the hope that it will be useful,
    1.34 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.35 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.36 +    Lesser General Public License for more details.
    1.37 +
    1.38 +    You should have received a copy of the GNU Lesser General Public
    1.39 +    License along with this library; if not, write to the Free Software
    1.40 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.41 +
    1.42 +    Sam Lantinga
    1.43 +    slouken@libsdl.org
    1.44 +*/
    1.45  
    1.46  /**
    1.47   *  \file SDL_opengles.h
    1.48   *  
    1.49 - *  This is a simple file to encapsulate the OpenGL ES API headers.
    1.50 - *  
    1.51 - *  Headers copied from The Kronos Group website.
    1.52 - *  	http://www.khronos.org/opengles/
    1.53 + *  This is a simple file to encapsulate the OpenGL ES 1.X API headers.
    1.54   */
    1.55  
    1.56 -#ifndef __gles_h_
    1.57 -#define __gles_h_
    1.58 -
    1.59 -/* $Id: gl.h 4533 2007-11-26 11:19:35Z markc $ */
    1.60 -
    1.61 -#ifdef __cplusplus
    1.62 -extern "C"
    1.63 -{
    1.64 -#endif
    1.65 -
    1.66  #ifdef __IPHONEOS__
    1.67 -#include <OpenGLES/ES1/gl.h>    /* Header File For The OpenGL ES Library */
    1.68 +#include <OpenGLES/ES1/gl.h>
    1.69 +#include <OpenGLES/ES1/glext.h>
    1.70 +#else
    1.71 +#include <GLES/gl.h>
    1.72 +#include <GLES/glext.h>
    1.73  #endif
    1.74  
    1.75  #ifndef APIENTRY
    1.76  #define APIENTRY
    1.77  #endif
    1.78 -
    1.79 -#ifndef GL_APIENTRY
    1.80 -#define GL_APIENTRY
    1.81 -#endif
    1.82 -
    1.83 -#ifndef GL_API
    1.84 -#define GL_API
    1.85 -#endif                          /* GL_API */
    1.86 -
    1.87 -/*
    1.88 -** License Applicability. Except to the extent portions of this file are
    1.89 -** made subject to an alternative license as permitted in the SGI Free
    1.90 -** Software License B, Version 1.0 (the "License"), the contents of this
    1.91 -** file are subject only to the provisions of the License. You may not use
    1.92 -** this file except in compliance with the License. You may obtain a copy
    1.93 -** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
    1.94 -** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
    1.95 -**
    1.96 -** http://oss.sgi.com/projects/FreeB
    1.97 -**
    1.98 -** Note that, as provided in the License, the Software is distributed on an
    1.99 -** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
   1.100 -** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
   1.101 -** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
   1.102 -** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
   1.103 -**
   1.104 -** Original Code. The Original Code is: OpenGL Sample Implementation,
   1.105 -** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
   1.106 -** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
   1.107 -** Copyright in any portions created by third parties is as indicated
   1.108 -** elsewhere herein. All Rights Reserved.
   1.109 -**
   1.110 -** Additional Notice Provisions: The application programming interfaces
   1.111 -** established by SGI in conjunction with the Original Code are The
   1.112 -** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
   1.113 -** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
   1.114 -** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
   1.115 -** Window System(R) (Version 1.3), released October 19, 1998. This software
   1.116 -** was created using the OpenGL(R) version 1.2.1 Sample Implementation
   1.117 -** published by SGI, but has not been independently verified as being
   1.118 -** compliant with the OpenGL(R) version 1.2.1 Specification.
   1.119 -*/
   1.120 -
   1.121 -    typedef unsigned int GLenum;
   1.122 -    typedef unsigned char GLboolean;
   1.123 -    typedef unsigned int GLbitfield;
   1.124 -    typedef signed char GLbyte;
   1.125 -    typedef short GLshort;
   1.126 -    typedef int GLint;
   1.127 -    typedef int GLsizei;
   1.128 -    typedef unsigned char GLubyte;
   1.129 -    typedef unsigned short GLushort;
   1.130 -    typedef unsigned int GLuint;
   1.131 -    typedef float GLfloat;
   1.132 -    typedef float GLclampf;
   1.133 -    typedef void GLvoid;
   1.134 -    typedef int GLfixed;
   1.135 -    typedef int GLclampx;
   1.136 -
   1.137 -    typedef int GLintptr;
   1.138 -    typedef int GLsizeiptr;
   1.139 -
   1.140 -
   1.141 -/*************************************************************/
   1.142 -
   1.143 -/* OpenGL ES core versions */
   1.144 -#define GL_VERSION_ES_CM_1_0		  1
   1.145 -#define GL_VERSION_ES_CL_1_0		  1
   1.146 -#define GL_VERSION_ES_CM_1_1		  1
   1.147 -#define GL_VERSION_ES_CL_1_1		  1
   1.148 -
   1.149 -/* ClearBufferMask */
   1.150 -#define GL_DEPTH_BUFFER_BIT               0x00000100
   1.151 -#define GL_STENCIL_BUFFER_BIT             0x00000400
   1.152 -#define GL_COLOR_BUFFER_BIT               0x00004000
   1.153 -
   1.154 -/* Boolean */
   1.155 -#define GL_FALSE                          0
   1.156 -#define GL_TRUE                           1
   1.157 -
   1.158 -/* BeginMode */
   1.159 -#define GL_POINTS                         0x0000
   1.160 -#define GL_LINES                          0x0001
   1.161 -#define GL_LINE_LOOP                      0x0002
   1.162 -#define GL_LINE_STRIP                     0x0003
   1.163 -#define GL_TRIANGLES                      0x0004
   1.164 -#define GL_TRIANGLE_STRIP                 0x0005
   1.165 -#define GL_TRIANGLE_FAN                   0x0006
   1.166 -
   1.167 -/* AlphaFunction */
   1.168 -#define GL_NEVER                          0x0200
   1.169 -#define GL_LESS                           0x0201
   1.170 -#define GL_EQUAL                          0x0202
   1.171 -#define GL_LEQUAL                         0x0203
   1.172 -#define GL_GREATER                        0x0204
   1.173 -#define GL_NOTEQUAL                       0x0205
   1.174 -#define GL_GEQUAL                         0x0206
   1.175 -#define GL_ALWAYS                         0x0207
   1.176 -
   1.177 -/* BlendingFactorDest */
   1.178 -#define GL_ZERO                           0
   1.179 -#define GL_ONE                            1
   1.180 -#define GL_SRC_COLOR                      0x0300
   1.181 -#define GL_ONE_MINUS_SRC_COLOR            0x0301
   1.182 -#define GL_SRC_ALPHA                      0x0302
   1.183 -#define GL_ONE_MINUS_SRC_ALPHA            0x0303
   1.184 -#define GL_DST_ALPHA                      0x0304
   1.185 -#define GL_ONE_MINUS_DST_ALPHA            0x0305
   1.186 -
   1.187 -/* BlendingFactorSrc */
   1.188 -/*      GL_ZERO */
   1.189 -/*      GL_ONE */
   1.190 -#define GL_DST_COLOR                      0x0306
   1.191 -#define GL_ONE_MINUS_DST_COLOR            0x0307
   1.192 -#define GL_SRC_ALPHA_SATURATE             0x0308
   1.193 -/*      GL_SRC_ALPHA */
   1.194 -/*      GL_ONE_MINUS_SRC_ALPHA */
   1.195 -/*      GL_DST_ALPHA */
   1.196 -/*      GL_ONE_MINUS_DST_ALPHA */
   1.197 -
   1.198 -/* ClipPlaneName */
   1.199 -#define GL_CLIP_PLANE0                    0x3000
   1.200 -#define GL_CLIP_PLANE1                    0x3001
   1.201 -#define GL_CLIP_PLANE2                    0x3002
   1.202 -#define GL_CLIP_PLANE3                    0x3003
   1.203 -#define GL_CLIP_PLANE4                    0x3004
   1.204 -#define GL_CLIP_PLANE5                    0x3005
   1.205 -
   1.206 -/* ColorMaterialFace */
   1.207 -/*      GL_FRONT_AND_BACK */
   1.208 -
   1.209 -/* ColorMaterialParameter */
   1.210 -/*      GL_AMBIENT_AND_DIFFUSE */
   1.211 -
   1.212 -/* ColorPointerType */
   1.213 -/*      GL_UNSIGNED_BYTE */
   1.214 -/*      GL_FLOAT */
   1.215 -/*      GL_FIXED */
   1.216 -
   1.217 -/* CullFaceMode */
   1.218 -#define GL_FRONT                          0x0404
   1.219 -#define GL_BACK                           0x0405
   1.220 -#define GL_FRONT_AND_BACK                 0x0408
   1.221 -
   1.222 -/* DepthFunction */
   1.223 -/*      GL_NEVER */
   1.224 -/*      GL_LESS */
   1.225 -/*      GL_EQUAL */
   1.226 -/*      GL_LEQUAL */
   1.227 -/*      GL_GREATER */
   1.228 -/*      GL_NOTEQUAL */
   1.229 -/*      GL_GEQUAL */
   1.230 -/*      GL_ALWAYS */
   1.231 -
   1.232 -/* EnableCap */
   1.233 -#define GL_FOG                            0x0B60
   1.234 -#define GL_LIGHTING                       0x0B50
   1.235 -#define GL_TEXTURE_2D                     0x0DE1
   1.236 -#define GL_CULL_FACE                      0x0B44
   1.237 -#define GL_ALPHA_TEST                     0x0BC0
   1.238 -#define GL_BLEND                          0x0BE2
   1.239 -#define GL_COLOR_LOGIC_OP                 0x0BF2
   1.240 -#define GL_DITHER                         0x0BD0
   1.241 -#define GL_STENCIL_TEST                   0x0B90
   1.242 -#define GL_DEPTH_TEST                     0x0B71
   1.243 -/*      GL_LIGHT0 */
   1.244 -/*      GL_LIGHT1 */
   1.245 -/*      GL_LIGHT2 */
   1.246 -/*      GL_LIGHT3 */
   1.247 -/*      GL_LIGHT4 */
   1.248 -/*      GL_LIGHT5 */
   1.249 -/*      GL_LIGHT6 */
   1.250 -/*      GL_LIGHT7 */
   1.251 -#define GL_POINT_SMOOTH                   0x0B10
   1.252 -#define GL_LINE_SMOOTH                    0x0B20
   1.253 -#define GL_SCISSOR_TEST                   0x0C11
   1.254 -#define GL_COLOR_MATERIAL                 0x0B57
   1.255 -#define GL_NORMALIZE                      0x0BA1
   1.256 -#define GL_RESCALE_NORMAL                 0x803A
   1.257 -#define GL_POLYGON_OFFSET_FILL            0x8037
   1.258 -#define GL_VERTEX_ARRAY                   0x8074
   1.259 -#define GL_NORMAL_ARRAY                   0x8075
   1.260 -#define GL_COLOR_ARRAY                    0x8076
   1.261 -#define GL_TEXTURE_COORD_ARRAY            0x8078
   1.262 -#define GL_MULTISAMPLE                    0x809D
   1.263 -#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
   1.264 -#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
   1.265 -#define GL_SAMPLE_COVERAGE                0x80A0
   1.266 -
   1.267 -/* ErrorCode */
   1.268 -#define GL_NO_ERROR                       0
   1.269 -#define GL_INVALID_ENUM                   0x0500
   1.270 -#define GL_INVALID_VALUE                  0x0501
   1.271 -#define GL_INVALID_OPERATION              0x0502
   1.272 -#define GL_STACK_OVERFLOW                 0x0503
   1.273 -#define GL_STACK_UNDERFLOW                0x0504
   1.274 -#define GL_OUT_OF_MEMORY                  0x0505
   1.275 -
   1.276 -/* FogMode */
   1.277 -/*      GL_LINEAR */
   1.278 -#define GL_EXP                            0x0800
   1.279 -#define GL_EXP2                           0x0801
   1.280 -
   1.281 -/* FogParameter */
   1.282 -#define GL_FOG_DENSITY                    0x0B62
   1.283 -#define GL_FOG_START                      0x0B63
   1.284 -#define GL_FOG_END                        0x0B64
   1.285 -#define GL_FOG_MODE                       0x0B65
   1.286 -#define GL_FOG_COLOR                      0x0B66
   1.287 -
   1.288 -/* FrontFaceDirection */
   1.289 -#define GL_CW                             0x0900
   1.290 -#define GL_CCW                            0x0901
   1.291 -
   1.292 -/* GetPName */
   1.293 -#define GL_CURRENT_COLOR                  0x0B00
   1.294 -#define GL_CURRENT_NORMAL                 0x0B02
   1.295 -#define GL_CURRENT_TEXTURE_COORDS         0x0B03
   1.296 -#define GL_POINT_SIZE                     0x0B11
   1.297 -#define GL_POINT_SIZE_MIN                 0x8126
   1.298 -#define GL_POINT_SIZE_MAX                 0x8127
   1.299 -#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
   1.300 -#define GL_POINT_DISTANCE_ATTENUATION     0x8129
   1.301 -#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
   1.302 -#define GL_LINE_WIDTH                     0x0B21
   1.303 -#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
   1.304 -#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
   1.305 -#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
   1.306 -#define GL_CULL_FACE_MODE                 0x0B45
   1.307 -#define GL_FRONT_FACE                     0x0B46
   1.308 -#define GL_SHADE_MODEL                    0x0B54
   1.309 -#define GL_DEPTH_RANGE                    0x0B70
   1.310 -#define GL_DEPTH_WRITEMASK                0x0B72
   1.311 -#define GL_DEPTH_CLEAR_VALUE              0x0B73
   1.312 -#define GL_DEPTH_FUNC                     0x0B74
   1.313 -#define GL_STENCIL_CLEAR_VALUE            0x0B91
   1.314 -#define GL_STENCIL_FUNC                   0x0B92
   1.315 -#define GL_STENCIL_VALUE_MASK             0x0B93
   1.316 -#define GL_STENCIL_FAIL                   0x0B94
   1.317 -#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
   1.318 -#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
   1.319 -#define GL_STENCIL_REF                    0x0B97
   1.320 -#define GL_STENCIL_WRITEMASK              0x0B98
   1.321 -#define GL_MATRIX_MODE                    0x0BA0
   1.322 -#define GL_VIEWPORT                       0x0BA2
   1.323 -#define GL_MODELVIEW_STACK_DEPTH          0x0BA3
   1.324 -#define GL_PROJECTION_STACK_DEPTH         0x0BA4
   1.325 -#define GL_TEXTURE_STACK_DEPTH            0x0BA5
   1.326 -#define GL_MODELVIEW_MATRIX               0x0BA6
   1.327 -#define GL_PROJECTION_MATRIX              0x0BA7
   1.328 -#define GL_TEXTURE_MATRIX                 0x0BA8
   1.329 -#define GL_ALPHA_TEST_FUNC                0x0BC1
   1.330 -#define GL_ALPHA_TEST_REF                 0x0BC2
   1.331 -#define GL_BLEND_DST                      0x0BE0
   1.332 -#define GL_BLEND_SRC                      0x0BE1
   1.333 -#define GL_LOGIC_OP_MODE                  0x0BF0
   1.334 -#define GL_SCISSOR_BOX                    0x0C10
   1.335 -#define GL_SCISSOR_TEST                   0x0C11
   1.336 -#define GL_COLOR_CLEAR_VALUE              0x0C22
   1.337 -#define GL_COLOR_WRITEMASK                0x0C23
   1.338 -#define GL_UNPACK_ALIGNMENT               0x0CF5
   1.339 -#define GL_PACK_ALIGNMENT                 0x0D05
   1.340 -#define GL_MAX_LIGHTS                     0x0D31
   1.341 -#define GL_MAX_CLIP_PLANES                0x0D32
   1.342 -#define GL_MAX_TEXTURE_SIZE               0x0D33
   1.343 -#define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36
   1.344 -#define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38
   1.345 -#define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39
   1.346 -#define GL_MAX_VIEWPORT_DIMS              0x0D3A
   1.347 -#define GL_MAX_TEXTURE_UNITS              0x84E2
   1.348 -#define GL_SUBPIXEL_BITS                  0x0D50
   1.349 -#define GL_RED_BITS                       0x0D52
   1.350 -#define GL_GREEN_BITS                     0x0D53
   1.351 -#define GL_BLUE_BITS                      0x0D54
   1.352 -#define GL_ALPHA_BITS                     0x0D55
   1.353 -#define GL_DEPTH_BITS                     0x0D56
   1.354 -#define GL_STENCIL_BITS                   0x0D57
   1.355 -#define GL_POLYGON_OFFSET_UNITS           0x2A00
   1.356 -#define GL_POLYGON_OFFSET_FILL            0x8037
   1.357 -#define GL_POLYGON_OFFSET_FACTOR          0x8038
   1.358 -#define GL_TEXTURE_BINDING_2D             0x8069
   1.359 -#define GL_VERTEX_ARRAY_SIZE              0x807A
   1.360 -#define GL_VERTEX_ARRAY_TYPE              0x807B
   1.361 -#define GL_VERTEX_ARRAY_STRIDE            0x807C
   1.362 -#define GL_NORMAL_ARRAY_TYPE              0x807E
   1.363 -#define GL_NORMAL_ARRAY_STRIDE            0x807F
   1.364 -#define GL_COLOR_ARRAY_SIZE               0x8081
   1.365 -#define GL_COLOR_ARRAY_TYPE               0x8082
   1.366 -#define GL_COLOR_ARRAY_STRIDE             0x8083
   1.367 -#define GL_TEXTURE_COORD_ARRAY_SIZE       0x8088
   1.368 -#define GL_TEXTURE_COORD_ARRAY_TYPE       0x8089
   1.369 -#define GL_TEXTURE_COORD_ARRAY_STRIDE     0x808A
   1.370 -#define GL_VERTEX_ARRAY_POINTER           0x808E
   1.371 -#define GL_NORMAL_ARRAY_POINTER           0x808F
   1.372 -#define GL_COLOR_ARRAY_POINTER            0x8090
   1.373 -#define GL_TEXTURE_COORD_ARRAY_POINTER    0x8092
   1.374 -#define GL_SAMPLE_BUFFERS                 0x80A8
   1.375 -#define GL_SAMPLES                        0x80A9
   1.376 -#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
   1.377 -#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
   1.378 -
   1.379 -/* OpenGL ES 1.0 defines, they gone in 1.1 and 2.0 */
   1.380 -#ifndef GL_MAX_ELEMENTS_VERTICES
   1.381 -#define GL_MAX_ELEMENTS_VERTICES          0x80E8
   1.382 -#endif                          /* GL_MAX_ELEMENTS_VERTICES */
   1.383 -#ifndef GL_MAX_ELEMENTS_INDICES
   1.384 -#define GL_MAX_ELEMENTS_INDICES           0x80E9
   1.385 -#endif                          /* GL_MAX_ELEMENTS_INDICES */
   1.386 -
   1.387 -/* GetTextureParameter */
   1.388 -/*      GL_TEXTURE_MAG_FILTER */
   1.389 -/*      GL_TEXTURE_MIN_FILTER */
   1.390 -/*      GL_TEXTURE_WRAP_S */
   1.391 -/*      GL_TEXTURE_WRAP_T */
   1.392 -
   1.393 -#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
   1.394 -#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
   1.395 -
   1.396 -/* HintMode */
   1.397 -#define GL_DONT_CARE                      0x1100
   1.398 -#define GL_FASTEST                        0x1101
   1.399 -#define GL_NICEST                         0x1102
   1.400 -
   1.401 -/* HintTarget */
   1.402 -#define GL_PERSPECTIVE_CORRECTION_HINT    0x0C50
   1.403 -#define GL_POINT_SMOOTH_HINT              0x0C51
   1.404 -#define GL_LINE_SMOOTH_HINT               0x0C52
   1.405 -#define GL_FOG_HINT                       0x0C54
   1.406 -#define GL_GENERATE_MIPMAP_HINT           0x8192
   1.407 -
   1.408 -/* LightModelParameter */
   1.409 -#define GL_LIGHT_MODEL_AMBIENT            0x0B53
   1.410 -#define GL_LIGHT_MODEL_TWO_SIDE           0x0B52
   1.411 -
   1.412 -/* LightParameter */
   1.413 -#define GL_AMBIENT                        0x1200
   1.414 -#define GL_DIFFUSE                        0x1201
   1.415 -#define GL_SPECULAR                       0x1202
   1.416 -#define GL_POSITION                       0x1203
   1.417 -#define GL_SPOT_DIRECTION                 0x1204
   1.418 -#define GL_SPOT_EXPONENT                  0x1205
   1.419 -#define GL_SPOT_CUTOFF                    0x1206
   1.420 -#define GL_CONSTANT_ATTENUATION           0x1207
   1.421 -#define GL_LINEAR_ATTENUATION             0x1208
   1.422 -#define GL_QUADRATIC_ATTENUATION          0x1209
   1.423 -
   1.424 -/* DataType */
   1.425 -#define GL_BYTE                           0x1400
   1.426 -#define GL_UNSIGNED_BYTE                  0x1401
   1.427 -#define GL_SHORT                          0x1402
   1.428 -#define GL_UNSIGNED_SHORT                 0x1403
   1.429 -#define GL_FLOAT                          0x1406
   1.430 -#define GL_FIXED                          0x140C
   1.431 -
   1.432 -/* LogicOp */
   1.433 -#define GL_CLEAR                          0x1500
   1.434 -#define GL_AND                            0x1501
   1.435 -#define GL_AND_REVERSE                    0x1502
   1.436 -#define GL_COPY                           0x1503
   1.437 -#define GL_AND_INVERTED                   0x1504
   1.438 -#define GL_NOOP                           0x1505
   1.439 -#define GL_XOR                            0x1506
   1.440 -#define GL_OR                             0x1507
   1.441 -#define GL_NOR                            0x1508
   1.442 -#define GL_EQUIV                          0x1509
   1.443 -#define GL_INVERT                         0x150A
   1.444 -#define GL_OR_REVERSE                     0x150B
   1.445 -#define GL_COPY_INVERTED                  0x150C
   1.446 -#define GL_OR_INVERTED                    0x150D
   1.447 -#define GL_NAND                           0x150E
   1.448 -#define GL_SET                            0x150F
   1.449 -
   1.450 -/* MaterialFace */
   1.451 -/*      GL_FRONT_AND_BACK */
   1.452 -
   1.453 -/* MaterialParameter */
   1.454 -#define GL_EMISSION                       0x1600
   1.455 -#define GL_SHININESS                      0x1601
   1.456 -#define GL_AMBIENT_AND_DIFFUSE            0x1602
   1.457 -/*      GL_AMBIENT */
   1.458 -/*      GL_DIFFUSE */
   1.459 -/*      GL_SPECULAR */
   1.460 -
   1.461 -/* MatrixMode */
   1.462 -#define GL_MODELVIEW                      0x1700
   1.463 -#define GL_PROJECTION                     0x1701
   1.464 -#define GL_TEXTURE                        0x1702
   1.465 -
   1.466 -/* NormalPointerType */
   1.467 -/*      GL_BYTE */
   1.468 -/*      GL_SHORT */
   1.469 -/*      GL_FLOAT */
   1.470 -/*      GL_FIXED */
   1.471 -
   1.472 -/* PixelFormat */
   1.473 -#define GL_ALPHA                          0x1906
   1.474 -#define GL_RGB                            0x1907
   1.475 -#define GL_RGBA                           0x1908
   1.476 -#define GL_LUMINANCE                      0x1909
   1.477 -#define GL_LUMINANCE_ALPHA                0x190A
   1.478 -
   1.479 -/* PixelStoreParameter */
   1.480 -#define GL_UNPACK_ALIGNMENT               0x0CF5
   1.481 -#define GL_PACK_ALIGNMENT                 0x0D05
   1.482 -
   1.483 -/* PixelType */
   1.484 -/*      GL_UNSIGNED_BYTE */
   1.485 -#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
   1.486 -#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
   1.487 -#define GL_UNSIGNED_SHORT_5_6_5           0x8363
   1.488 -
   1.489 -/* ShadingModel */
   1.490 -#define GL_FLAT                           0x1D00
   1.491 -#define GL_SMOOTH                         0x1D01
   1.492 -
   1.493 -/* StencilFunction */
   1.494 -/*      GL_NEVER */
   1.495 -/*      GL_LESS */
   1.496 -/*      GL_EQUAL */
   1.497 -/*      GL_LEQUAL */
   1.498 -/*      GL_GREATER */
   1.499 -/*      GL_NOTEQUAL */
   1.500 -/*      GL_GEQUAL */
   1.501 -/*      GL_ALWAYS */
   1.502 -
   1.503 -/* StencilOp */
   1.504 -/*      GL_ZERO */
   1.505 -#define GL_KEEP                           0x1E00
   1.506 -#define GL_REPLACE                        0x1E01
   1.507 -#define GL_INCR                           0x1E02
   1.508 -#define GL_DECR                           0x1E03
   1.509 -/*      GL_INVERT */
   1.510 -
   1.511 -/* StringName */
   1.512 -#define GL_VENDOR                         0x1F00
   1.513 -#define GL_RENDERER                       0x1F01
   1.514 -#define GL_VERSION                        0x1F02
   1.515 -#define GL_EXTENSIONS                     0x1F03
   1.516 -
   1.517 -/* TexCoordPointerType */
   1.518 -/*      GL_SHORT */
   1.519 -/*      GL_FLOAT */
   1.520 -/*      GL_FIXED */
   1.521 -/*      GL_BYTE */
   1.522 -
   1.523 -/* TextureEnvMode */
   1.524 -#define GL_MODULATE                       0x2100
   1.525 -#define GL_DECAL                          0x2101
   1.526 -/*      GL_BLEND */
   1.527 -#define GL_ADD                            0x0104
   1.528 -/*      GL_REPLACE */
   1.529 -
   1.530 -/* TextureEnvParameter */
   1.531 -#define GL_TEXTURE_ENV_MODE               0x2200
   1.532 -#define GL_TEXTURE_ENV_COLOR              0x2201
   1.533 -
   1.534 -/* TextureEnvTarget */
   1.535 -#define GL_TEXTURE_ENV                    0x2300
   1.536 -
   1.537 -/* TextureMagFilter */
   1.538 -#define GL_NEAREST                        0x2600
   1.539 -#define GL_LINEAR                         0x2601
   1.540 -
   1.541 -/* TextureMinFilter */
   1.542 -/*      GL_NEAREST */
   1.543 -/*      GL_LINEAR */
   1.544 -#define GL_NEAREST_MIPMAP_NEAREST         0x2700
   1.545 -#define GL_LINEAR_MIPMAP_NEAREST          0x2701
   1.546 -#define GL_NEAREST_MIPMAP_LINEAR          0x2702
   1.547 -#define GL_LINEAR_MIPMAP_LINEAR           0x2703
   1.548 -
   1.549 -/* TextureParameterName */
   1.550 -#define GL_TEXTURE_MAG_FILTER             0x2800
   1.551 -#define GL_TEXTURE_MIN_FILTER             0x2801
   1.552 -#define GL_TEXTURE_WRAP_S                 0x2802
   1.553 -#define GL_TEXTURE_WRAP_T                 0x2803
   1.554 -#define GL_GENERATE_MIPMAP                0x8191
   1.555 -
   1.556 -/* TextureTarget */
   1.557 -/*      GL_TEXTURE_2D */
   1.558 -
   1.559 -/* TextureUnit */
   1.560 -#define GL_TEXTURE0                       0x84C0
   1.561 -#define GL_TEXTURE1                       0x84C1
   1.562 -#define GL_TEXTURE2                       0x84C2
   1.563 -#define GL_TEXTURE3                       0x84C3
   1.564 -#define GL_TEXTURE4                       0x84C4
   1.565 -#define GL_TEXTURE5                       0x84C5
   1.566 -#define GL_TEXTURE6                       0x84C6
   1.567 -#define GL_TEXTURE7                       0x84C7
   1.568 -#define GL_TEXTURE8                       0x84C8
   1.569 -#define GL_TEXTURE9                       0x84C9
   1.570 -#define GL_TEXTURE10                      0x84CA
   1.571 -#define GL_TEXTURE11                      0x84CB
   1.572 -#define GL_TEXTURE12                      0x84CC
   1.573 -#define GL_TEXTURE13                      0x84CD
   1.574 -#define GL_TEXTURE14                      0x84CE
   1.575 -#define GL_TEXTURE15                      0x84CF
   1.576 -#define GL_TEXTURE16                      0x84D0
   1.577 -#define GL_TEXTURE17                      0x84D1
   1.578 -#define GL_TEXTURE18                      0x84D2
   1.579 -#define GL_TEXTURE19                      0x84D3
   1.580 -#define GL_TEXTURE20                      0x84D4
   1.581 -#define GL_TEXTURE21                      0x84D5
   1.582 -#define GL_TEXTURE22                      0x84D6
   1.583 -#define GL_TEXTURE23                      0x84D7
   1.584 -#define GL_TEXTURE24                      0x84D8
   1.585 -#define GL_TEXTURE25                      0x84D9
   1.586 -#define GL_TEXTURE26                      0x84DA
   1.587 -#define GL_TEXTURE27                      0x84DB
   1.588 -#define GL_TEXTURE28                      0x84DC
   1.589 -#define GL_TEXTURE29                      0x84DD
   1.590 -#define GL_TEXTURE30                      0x84DE
   1.591 -#define GL_TEXTURE31                      0x84DF
   1.592 -#define GL_ACTIVE_TEXTURE                 0x84E0
   1.593 -#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
   1.594 -
   1.595 -/* TextureWrapMode */
   1.596 -#define GL_REPEAT                         0x2901
   1.597 -#define GL_CLAMP_TO_EDGE                  0x812F
   1.598 -
   1.599 -/* VertexPointerType */
   1.600 -/*      GL_SHORT */
   1.601 -/*      GL_FLOAT */
   1.602 -/*      GL_FIXED */
   1.603 -/*      GL_BYTE */
   1.604 -
   1.605 -/* LightName */
   1.606 -#define GL_LIGHT0                         0x4000
   1.607 -#define GL_LIGHT1                         0x4001
   1.608 -#define GL_LIGHT2                         0x4002
   1.609 -#define GL_LIGHT3                         0x4003
   1.610 -#define GL_LIGHT4                         0x4004
   1.611 -#define GL_LIGHT5                         0x4005
   1.612 -#define GL_LIGHT6                         0x4006
   1.613 -#define GL_LIGHT7                         0x4007
   1.614 -
   1.615 -/* Buffer Objects */
   1.616 -#define GL_ARRAY_BUFFER                   0x8892
   1.617 -#define GL_ELEMENT_ARRAY_BUFFER           0x8893
   1.618 -
   1.619 -#define GL_ARRAY_BUFFER_BINDING               0x8894
   1.620 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING       0x8895
   1.621 -#define GL_VERTEX_ARRAY_BUFFER_BINDING        0x8896
   1.622 -#define GL_NORMAL_ARRAY_BUFFER_BINDING        0x8897
   1.623 -#define GL_COLOR_ARRAY_BUFFER_BINDING         0x8898
   1.624 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
   1.625 -
   1.626 -#define GL_STATIC_DRAW                    0x88E4
   1.627 -#define GL_DYNAMIC_DRAW                   0x88E8
   1.628 -
   1.629 -#define GL_BUFFER_SIZE                    0x8764
   1.630 -#define GL_BUFFER_USAGE                   0x8765
   1.631 -
   1.632 -/* Texture combine + dot3 */
   1.633 -#define GL_SUBTRACT                       0x84E7
   1.634 -#define GL_COMBINE                        0x8570
   1.635 -#define GL_COMBINE_RGB                    0x8571
   1.636 -#define GL_COMBINE_ALPHA                  0x8572
   1.637 -#define GL_RGB_SCALE                      0x8573
   1.638 -#define GL_ADD_SIGNED                     0x8574
   1.639 -#define GL_INTERPOLATE                    0x8575
   1.640 -#define GL_CONSTANT                       0x8576
   1.641 -#define GL_PRIMARY_COLOR                  0x8577
   1.642 -#define GL_PREVIOUS                       0x8578
   1.643 -#define GL_OPERAND0_RGB                   0x8590
   1.644 -#define GL_OPERAND1_RGB                   0x8591
   1.645 -#define GL_OPERAND2_RGB                   0x8592
   1.646 -#define GL_OPERAND0_ALPHA                 0x8598
   1.647 -#define GL_OPERAND1_ALPHA                 0x8599
   1.648 -#define GL_OPERAND2_ALPHA                 0x859A
   1.649 -
   1.650 -#define GL_ALPHA_SCALE                    0x0D1C
   1.651 -
   1.652 -#define GL_SRC0_RGB                       0x8580
   1.653 -#define GL_SRC1_RGB                       0x8581
   1.654 -#define GL_SRC2_RGB                       0x8582
   1.655 -#define GL_SRC0_ALPHA                     0x8588
   1.656 -#define GL_SRC1_ALPHA                     0x8589
   1.657 -#define GL_SRC2_ALPHA                     0x858A
   1.658 -
   1.659 -#define GL_DOT3_RGB                       0x86AE
   1.660 -#define GL_DOT3_RGBA                      0x86AF
   1.661 -
   1.662 -/*------------------------------------------------------------------------*
   1.663 - * required OES extension tokens
   1.664 - *------------------------------------------------------------------------*/
   1.665 -
   1.666 -/* OES_read_format */
   1.667 -#ifndef GL_OES_read_format
   1.668 -#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES                   0x8B9A
   1.669 -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES                 0x8B9B
   1.670 -#endif
   1.671 -
   1.672 -/* GL_OES_compressed_paletted_texture */
   1.673 -#ifndef GL_OES_compressed_paletted_texture
   1.674 -#define GL_PALETTE4_RGB8_OES                                    0x8B90
   1.675 -#define GL_PALETTE4_RGBA8_OES                                   0x8B91
   1.676 -#define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
   1.677 -#define GL_PALETTE4_RGBA4_OES                                   0x8B93
   1.678 -#define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
   1.679 -#define GL_PALETTE8_RGB8_OES                                    0x8B95
   1.680 -#define GL_PALETTE8_RGBA8_OES                                   0x8B96
   1.681 -#define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
   1.682 -#define GL_PALETTE8_RGBA4_OES                                   0x8B98
   1.683 -#define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
   1.684 -#endif
   1.685 -
   1.686 -/* OES_point_size_array */
   1.687 -#ifndef GL_OES_point_size_array
   1.688 -#define GL_POINT_SIZE_ARRAY_OES                                 0x8B9C
   1.689 -#define GL_POINT_SIZE_ARRAY_TYPE_OES                            0x898A
   1.690 -#define GL_POINT_SIZE_ARRAY_STRIDE_OES                          0x898B
   1.691 -#define GL_POINT_SIZE_ARRAY_POINTER_OES                         0x898C
   1.692 -#define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES                  0x8B9F
   1.693 -#endif
   1.694 -
   1.695 -/* GL_OES_point_sprite */
   1.696 -#ifndef GL_OES_point_sprite
   1.697 -#define GL_POINT_SPRITE_OES                                     0x8861
   1.698 -#define GL_COORD_REPLACE_OES                                    0x8862
   1.699 -#endif
   1.700 -
   1.701 -/* GL_OES_draw_texture */
   1.702 -#ifndef GL_OES_draw_texture
   1.703 -#define GL_TEXTURE_CROP_RECT_OES                                0x8B9D
   1.704 -#endif                          /* GL_OES_draw_texture */
   1.705 -
   1.706 -/*  GL_OES_vertex_buffer_object */
   1.707 -#ifndef GL_OES_vertex_buffer_object
   1.708 -#define GL_ARRAY_BUFFER_OES                                     0x8892
   1.709 -#define GL_ELEMENT_ARRAY_BUFFER_OES                             0x8893
   1.710 -#define GL_ARRAY_BUFFER_BINDING_OES                             0x8894
   1.711 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING_OES                     0x8895
   1.712 -#define GL_VERTEX_ARRAY_BUFFER_BINDING_OES                      0x8896
   1.713 -#define GL_NORMAL_ARRAY_BUFFER_BINDING_OES                      0x8897
   1.714 -#define GL_COLOR_ARRAY_BUFFER_BINDING_OES                       0x8898
   1.715 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_OES               0x889A
   1.716 -#define GL_STATIC_DRAW_OES                                      0x88E4
   1.717 -#define GL_DYNAMIC_DRAW_OES                                     0x88E8
   1.718 -#define GL_WRITE_ONLY_OES                                       0x88B9
   1.719 -#define GL_BUFFER_SIZE_OES                                      0x8764
   1.720 -#define GL_BUFFER_USAGE_OES                                     0x8765
   1.721 -#define GL_BUFFER_ACCESS_OES                                    0x88BB
   1.722 -#endif                          /* GL_OES_vertex_buffer_object */
   1.723 -
   1.724 -/*************************************************************/
   1.725 -
   1.726 -/* Available only in Common profile */
   1.727 -    GL_API void GL_APIENTRY glAlphaFunc(GLenum func, GLclampf ref);
   1.728 -    GL_API void GL_APIENTRY glClearColor(GLclampf red, GLclampf green,
   1.729 -                                         GLclampf blue, GLclampf alpha);
   1.730 -    GL_API void GL_APIENTRY glClearDepthf(GLclampf depth);
   1.731 -    GL_API void GL_APIENTRY glClipPlanef(GLenum plane,
   1.732 -                                         const GLfloat * equation);
   1.733 -    GL_API void GL_APIENTRY glColor4f(GLfloat red, GLfloat green,
   1.734 -                                      GLfloat blue, GLfloat alpha);
   1.735 -    GL_API void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar);
   1.736 -    GL_API void GL_APIENTRY glFogf(GLenum pname, GLfloat param);
   1.737 -    GL_API void GL_APIENTRY glFogfv(GLenum pname, const GLfloat * params);
   1.738 -    GL_API void GL_APIENTRY glFrustumf(GLfloat left, GLfloat right,
   1.739 -                                       GLfloat bottom, GLfloat top,
   1.740 -                                       GLfloat zNear, GLfloat zFar);
   1.741 -    GL_API void GL_APIENTRY glGetClipPlanef(GLenum pname, GLfloat eqn[4]);
   1.742 -    GL_API void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat * params);
   1.743 -    GL_API void GL_APIENTRY glGetLightfv(GLenum light, GLenum pname,
   1.744 -                                         GLfloat * params);
   1.745 -    GL_API void GL_APIENTRY glGetMaterialfv(GLenum face, GLenum pname,
   1.746 -                                            GLfloat * params);
   1.747 -    GL_API void GL_APIENTRY glGetTexEnvfv(GLenum env, GLenum pname,
   1.748 -                                          GLfloat * params);
   1.749 -    GL_API void GL_APIENTRY glGetTexParameterfv(GLenum target, GLenum pname,
   1.750 -                                                GLfloat * params);
   1.751 -    GL_API void GL_APIENTRY glLightModelf(GLenum pname, GLfloat param);
   1.752 -    GL_API void GL_APIENTRY glLightModelfv(GLenum pname,
   1.753 -                                           const GLfloat * params);
   1.754 -    GL_API void GL_APIENTRY glLightf(GLenum light, GLenum pname,
   1.755 -                                     GLfloat param);
   1.756 -    GL_API void GL_APIENTRY glLightfv(GLenum light, GLenum pname,
   1.757 -                                      const GLfloat * params);
   1.758 -    GL_API void GL_APIENTRY glLineWidth(GLfloat width);
   1.759 -    GL_API void GL_APIENTRY glLoadMatrixf(const GLfloat * m);
   1.760 -    GL_API void GL_APIENTRY glMaterialf(GLenum face, GLenum pname,
   1.761 -                                        GLfloat param);
   1.762 -    GL_API void GL_APIENTRY glMaterialfv(GLenum face, GLenum pname,
   1.763 -                                         const GLfloat * params);
   1.764 -    GL_API void GL_APIENTRY glMultMatrixf(const GLfloat * m);
   1.765 -    GL_API void GL_APIENTRY glMultiTexCoord4f(GLenum target, GLfloat s,
   1.766 -                                              GLfloat t, GLfloat r,
   1.767 -                                              GLfloat q);
   1.768 -    GL_API void GL_APIENTRY glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
   1.769 -    GL_API void GL_APIENTRY glOrthof(GLfloat left, GLfloat right,
   1.770 -                                     GLfloat bottom, GLfloat top,
   1.771 -                                     GLfloat zNear, GLfloat zFar);
   1.772 -    GL_API void GL_APIENTRY glPointParameterf(GLenum pname, GLfloat param);
   1.773 -    GL_API void GL_APIENTRY glPointParameterfv(GLenum pname,
   1.774 -                                               const GLfloat * params);
   1.775 -    GL_API void GL_APIENTRY glPointSize(GLfloat size);
   1.776 -    GL_API void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units);
   1.777 -    GL_API void GL_APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y,
   1.778 -                                      GLfloat z);
   1.779 -    GL_API void GL_APIENTRY glScalef(GLfloat x, GLfloat y, GLfloat z);
   1.780 -    GL_API void GL_APIENTRY glTexEnvf(GLenum target, GLenum pname,
   1.781 -                                      GLfloat param);
   1.782 -    GL_API void GL_APIENTRY glTexEnvfv(GLenum target, GLenum pname,
   1.783 -                                       const GLfloat * params);
   1.784 -    GL_API void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname,
   1.785 -                                            GLfloat param);
   1.786 -    GL_API void GL_APIENTRY glTexParameterfv(GLenum target, GLenum pname,
   1.787 -                                             const GLfloat * params);
   1.788 -    GL_API void GL_APIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z);
   1.789 -
   1.790 -/* Available in both Common and Common-Lite profiles */
   1.791 -    GL_API void GL_APIENTRY glActiveTexture(GLenum texture);
   1.792 -    GL_API void GL_APIENTRY glAlphaFuncx(GLenum func, GLclampx ref);
   1.793 -    GL_API void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer);
   1.794 -    GL_API void GL_APIENTRY glBindTexture(GLenum target, GLuint texture);
   1.795 -    GL_API void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor);
   1.796 -    GL_API void GL_APIENTRY glBufferData(GLenum target, GLsizeiptr size,
   1.797 -                                         const GLvoid * data, GLenum usage);
   1.798 -    GL_API void GL_APIENTRY glBufferSubData(GLenum target, GLintptr offset,
   1.799 -                                            GLsizeiptr size,
   1.800 -                                            const GLvoid * data);
   1.801 -    GL_API void GL_APIENTRY glClear(GLbitfield mask);
   1.802 -    GL_API void GL_APIENTRY glClearColorx(GLclampx red, GLclampx green,
   1.803 -                                          GLclampx blue, GLclampx alpha);
   1.804 -    GL_API void GL_APIENTRY glClearDepthx(GLclampx depth);
   1.805 -    GL_API void GL_APIENTRY glClearStencil(GLint s);
   1.806 -    GL_API void GL_APIENTRY glClientActiveTexture(GLenum texture);
   1.807 -    GL_API void GL_APIENTRY glClipPlanex(GLenum plane,
   1.808 -                                         const GLfixed * equation);
   1.809 -    GL_API void GL_APIENTRY glColor4ub(GLubyte red, GLubyte green,
   1.810 -                                       GLubyte blue, GLubyte alpha);
   1.811 -    GL_API void GL_APIENTRY glColor4x(GLfixed red, GLfixed green,
   1.812 -                                      GLfixed blue, GLfixed alpha);
   1.813 -    GL_API void GL_APIENTRY glColorMask(GLboolean red, GLboolean green,
   1.814 -                                        GLboolean blue, GLboolean alpha);
   1.815 -    GL_API void GL_APIENTRY glColorPointer(GLint size, GLenum type,
   1.816 -                                           GLsizei stride,
   1.817 -                                           const GLvoid * pointer);
   1.818 -    GL_API void GL_APIENTRY glCompressedTexImage2D(GLenum target, GLint level,
   1.819 -                                                   GLenum internalformat,
   1.820 -                                                   GLsizei width,
   1.821 -                                                   GLsizei height,
   1.822 -                                                   GLint border,
   1.823 -                                                   GLsizei imageSize,
   1.824 -                                                   const GLvoid * data);
   1.825 -    GL_API void GL_APIENTRY glCompressedTexSubImage2D(GLenum target,
   1.826 -                                                      GLint level,
   1.827 -                                                      GLint xoffset,
   1.828 -                                                      GLint yoffset,
   1.829 -                                                      GLsizei width,
   1.830 -                                                      GLsizei height,
   1.831 -                                                      GLenum format,
   1.832 -                                                      GLsizei imageSize,
   1.833 -                                                      const GLvoid * data);
   1.834 -    GL_API void GL_APIENTRY glCopyTexImage2D(GLenum target, GLint level,
   1.835 -                                             GLenum internalformat, GLint x,
   1.836 -                                             GLint y, GLsizei width,
   1.837 -                                             GLsizei height, GLint border);
   1.838 -    GL_API void GL_APIENTRY glCopyTexSubImage2D(GLenum target, GLint level,
   1.839 -                                                GLint xoffset, GLint yoffset,
   1.840 -                                                GLint x, GLint y,
   1.841 -                                                GLsizei width,
   1.842 -                                                GLsizei height);
   1.843 -    GL_API void GL_APIENTRY glCullFace(GLenum mode);
   1.844 -    GL_API void GL_APIENTRY glDeleteBuffers(GLsizei n,
   1.845 -                                            const GLuint * buffers);
   1.846 -    GL_API void GL_APIENTRY glDeleteTextures(GLsizei n,
   1.847 -                                             const GLuint * textures);
   1.848 -    GL_API void GL_APIENTRY glDepthFunc(GLenum func);
   1.849 -    GL_API void GL_APIENTRY glDepthMask(GLboolean flag);
   1.850 -    GL_API void GL_APIENTRY glDepthRangex(GLclampx zNear, GLclampx zFar);
   1.851 -    GL_API void GL_APIENTRY glDisable(GLenum cap);
   1.852 -    GL_API void GL_APIENTRY glDisableClientState(GLenum array);
   1.853 -    GL_API void GL_APIENTRY glDrawArrays(GLenum mode, GLint first,
   1.854 -                                         GLsizei count);
   1.855 -    GL_API void GL_APIENTRY glDrawElements(GLenum mode, GLsizei count,
   1.856 -                                           GLenum type,
   1.857 -                                           const GLvoid * indices);
   1.858 -    GL_API void GL_APIENTRY glEnable(GLenum cap);
   1.859 -    GL_API void GL_APIENTRY glEnableClientState(GLenum array);
   1.860 -    GL_API void GL_APIENTRY glFinish(void);
   1.861 -    GL_API void GL_APIENTRY glFlush(void);
   1.862 -    GL_API void GL_APIENTRY glFogx(GLenum pname, GLfixed param);
   1.863 -    GL_API void GL_APIENTRY glFogxv(GLenum pname, const GLfixed * params);
   1.864 -    GL_API void GL_APIENTRY glFrontFace(GLenum mode);
   1.865 -    GL_API void GL_APIENTRY glFrustumx(GLfixed left, GLfixed right,
   1.866 -                                       GLfixed bottom, GLfixed top,
   1.867 -                                       GLfixed zNear, GLfixed zFar);
   1.868 -    GL_API void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean * params);
   1.869 -    GL_API void GL_APIENTRY glGetBufferParameteriv(GLenum target,
   1.870 -                                                   GLenum pname,
   1.871 -                                                   GLint * params);
   1.872 -    GL_API void GL_APIENTRY glGetClipPlanex(GLenum pname, GLfixed eqn[4]);
   1.873 -    GL_API void GL_APIENTRY glGenBuffers(GLsizei n, GLuint * buffers);
   1.874 -    GL_API void GL_APIENTRY glGenTextures(GLsizei n, GLuint * textures);
   1.875 -    GL_API GLenum GL_APIENTRY glGetError(void);
   1.876 -    GL_API void GL_APIENTRY glGetFixedv(GLenum pname, GLfixed * params);
   1.877 -    GL_API void GL_APIENTRY glGetIntegerv(GLenum pname, GLint * params);
   1.878 -    GL_API void GL_APIENTRY glGetLightxv(GLenum light, GLenum pname,
   1.879 -                                         GLfixed * params);
   1.880 -    GL_API void GL_APIENTRY glGetMaterialxv(GLenum face, GLenum pname,
   1.881 -                                            GLfixed * params);
   1.882 -    GL_API void GL_APIENTRY glGetPointerv(GLenum pname, void **params);
   1.883 -    GL_API const GLubyte *GL_APIENTRY glGetString(GLenum name);
   1.884 -    GL_API void GL_APIENTRY glGetTexEnviv(GLenum env, GLenum pname,
   1.885 -                                          GLint * params);
   1.886 -    GL_API void GL_APIENTRY glGetTexEnvxv(GLenum env, GLenum pname,
   1.887 -                                          GLfixed * params);
   1.888 -    GL_API void GL_APIENTRY glGetTexParameteriv(GLenum target, GLenum pname,
   1.889 -                                                GLint * params);
   1.890 -    GL_API void GL_APIENTRY glGetTexParameterxv(GLenum target, GLenum pname,
   1.891 -                                                GLfixed * params);
   1.892 -    GL_API void GL_APIENTRY glHint(GLenum target, GLenum mode);
   1.893 -    GL_API GLboolean GL_APIENTRY glIsBuffer(GLuint buffer);
   1.894 -    GL_API GLboolean GL_APIENTRY glIsEnabled(GLenum cap);
   1.895 -    GL_API GLboolean GL_APIENTRY glIsTexture(GLuint texture);
   1.896 -    GL_API void GL_APIENTRY glLightModelx(GLenum pname, GLfixed param);
   1.897 -    GL_API void GL_APIENTRY glLightModelxv(GLenum pname,
   1.898 -                                           const GLfixed * params);
   1.899 -    GL_API void GL_APIENTRY glLightx(GLenum light, GLenum pname,
   1.900 -                                     GLfixed param);
   1.901 -    GL_API void GL_APIENTRY glLightxv(GLenum light, GLenum pname,
   1.902 -                                      const GLfixed * params);
   1.903 -    GL_API void GL_APIENTRY glLineWidthx(GLfixed width);
   1.904 -    GL_API void GL_APIENTRY glLoadIdentity(void);
   1.905 -    GL_API void GL_APIENTRY glLoadMatrixx(const GLfixed * m);
   1.906 -    GL_API void GL_APIENTRY glLogicOp(GLenum opcode);
   1.907 -    GL_API void GL_APIENTRY glMaterialx(GLenum face, GLenum pname,
   1.908 -                                        GLfixed param);
   1.909 -    GL_API void GL_APIENTRY glMaterialxv(GLenum face, GLenum pname,
   1.910 -                                         const GLfixed * params);
   1.911 -    GL_API void GL_APIENTRY glMatrixMode(GLenum mode);
   1.912 -    GL_API void GL_APIENTRY glMultMatrixx(const GLfixed * m);
   1.913 -    GL_API void GL_APIENTRY glMultiTexCoord4x(GLenum target, GLfixed s,
   1.914 -                                              GLfixed t, GLfixed r,
   1.915 -                                              GLfixed q);
   1.916 -    GL_API void GL_APIENTRY glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz);
   1.917 -    GL_API void GL_APIENTRY glNormalPointer(GLenum type, GLsizei stride,
   1.918 -                                            const GLvoid * pointer);
   1.919 -    GL_API void GL_APIENTRY glOrthox(GLfixed left, GLfixed right,
   1.920 -                                     GLfixed bottom, GLfixed top,
   1.921 -                                     GLfixed zNear, GLfixed zFar);
   1.922 -    GL_API void GL_APIENTRY glPixelStorei(GLenum pname, GLint param);
   1.923 -    GL_API void GL_APIENTRY glPointParameterx(GLenum pname, GLfixed param);
   1.924 -    GL_API void GL_APIENTRY glPointParameterxv(GLenum pname,
   1.925 -                                               const GLfixed * params);
   1.926 -    GL_API void GL_APIENTRY glPointSizex(GLfixed size);
   1.927 -    GL_API void GL_APIENTRY glPolygonOffsetx(GLfixed factor, GLfixed units);
   1.928 -    GL_API void GL_APIENTRY glPopMatrix(void);
   1.929 -    GL_API void GL_APIENTRY glPushMatrix(void);
   1.930 -    GL_API void GL_APIENTRY glReadPixels(GLint x, GLint y, GLsizei width,
   1.931 -                                         GLsizei height, GLenum format,
   1.932 -                                         GLenum type, GLvoid * pixels);
   1.933 -    GL_API void GL_APIENTRY glRotatex(GLfixed angle, GLfixed x, GLfixed y,
   1.934 -                                      GLfixed z);
   1.935 -    GL_API void GL_APIENTRY glSampleCoverage(GLclampf value,
   1.936 -                                             GLboolean invert);
   1.937 -    GL_API void GL_APIENTRY glSampleCoveragex(GLclampx value,
   1.938 -                                              GLboolean invert);
   1.939 -    GL_API void GL_APIENTRY glScalex(GLfixed x, GLfixed y, GLfixed z);
   1.940 -    GL_API void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width,
   1.941 -                                      GLsizei height);
   1.942 -    GL_API void GL_APIENTRY glShadeModel(GLenum mode);
   1.943 -    GL_API void GL_APIENTRY glStencilFunc(GLenum func, GLint ref,
   1.944 -                                          GLuint mask);
   1.945 -    GL_API void GL_APIENTRY glStencilMask(GLuint mask);
   1.946 -    GL_API void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail,
   1.947 -                                        GLenum zpass);
   1.948 -    GL_API void GL_APIENTRY glTexCoordPointer(GLint size, GLenum type,
   1.949 -                                              GLsizei stride,
   1.950 -                                              const GLvoid * pointer);
   1.951 -    GL_API void GL_APIENTRY glTexEnvi(GLenum target, GLenum pname,
   1.952 -                                      GLint param);
   1.953 -    GL_API void GL_APIENTRY glTexEnvx(GLenum target, GLenum pname,
   1.954 -                                      GLfixed param);
   1.955 -    GL_API void GL_APIENTRY glTexEnviv(GLenum target, GLenum pname,
   1.956 -                                       const GLint * params);
   1.957 -    GL_API void GL_APIENTRY glTexEnvxv(GLenum target, GLenum pname,
   1.958 -                                       const GLfixed * params);
   1.959 -    GL_API void GL_APIENTRY glTexImage2D(GLenum target, GLint level,
   1.960 -                                         GLint internalformat, GLsizei width,
   1.961 -                                         GLsizei height, GLint border,
   1.962 -                                         GLenum format, GLenum type,
   1.963 -                                         const GLvoid * pixels);
   1.964 -    GL_API void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname,
   1.965 -                                            GLint param);
   1.966 -    GL_API void GL_APIENTRY glTexParameterx(GLenum target, GLenum pname,
   1.967 -                                            GLfixed param);
   1.968 -    GL_API void GL_APIENTRY glTexParameteriv(GLenum target, GLenum pname,
   1.969 -                                             const GLint * params);
   1.970 -    GL_API void GL_APIENTRY glTexParameterxv(GLenum target, GLenum pname,
   1.971 -                                             const GLfixed * params);
   1.972 -    GL_API void GL_APIENTRY glTexSubImage2D(GLenum target, GLint level,
   1.973 -                                            GLint xoffset, GLint yoffset,
   1.974 -                                            GLsizei width, GLsizei height,
   1.975 -                                            GLenum format, GLenum type,
   1.976 -                                            const GLvoid * pixels);
   1.977 -    GL_API void GL_APIENTRY glTranslatex(GLfixed x, GLfixed y, GLfixed z);
   1.978 -    GL_API void GL_APIENTRY glVertexPointer(GLint size, GLenum type,
   1.979 -                                            GLsizei stride,
   1.980 -                                            const GLvoid * pointer);
   1.981 -    GL_API void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width,
   1.982 -                                       GLsizei height);
   1.983 -
   1.984 -/*------------------------------------------------------------------------*
   1.985 - * Required OES extension functions
   1.986 - *------------------------------------------------------------------------*/
   1.987 -
   1.988 -/* GL_OES_read_format */
   1.989 -#ifndef GL_OES_read_format
   1.990 -#define GL_OES_read_format 1
   1.991 -#endif
   1.992 -
   1.993 -/* GL_OES_compressed_paletted_texture */
   1.994 -#ifndef GL_OES_compressed_paletted_texture
   1.995 -#define GL_OES_compressed_paletted_texture 1
   1.996 -#endif
   1.997 -
   1.998 -/* GL_OES_point_size_array */
   1.999 -#ifndef GL_OES_point_size_array
  1.1000 -#define GL_OES_point_size_array 1
  1.1001 -    GL_API void GL_APIENTRY glPointSizePointerOES(GLenum type, GLsizei stride,
  1.1002 -                                                  const GLvoid * pointer);
  1.1003 -#endif
  1.1004 -
  1.1005 -/* GL_OES_query_matrix */
  1.1006 -#ifndef GL_OES_query_matrix
  1.1007 -#define GL_OES_query_matrix 1
  1.1008 -    GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES(GLfixed mantissa[16],
  1.1009 -                                                    GLint exponent[16]);
  1.1010 -#endif                          /* GL_OES_query_matrix */
  1.1011 -
  1.1012 -/* GL_OES_point_sprite */
  1.1013 -#ifndef GL_OES_point_sprite
  1.1014 -#define GL_OES_point_sprite 1
  1.1015 -#endif
  1.1016 -
  1.1017 -/* GL_OES_draw_texture */
  1.1018 -#ifndef GL_OES_draw_texture
  1.1019 -#define GL_OES_draw_texture 1
  1.1020 -    GL_API void GL_APIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z,
  1.1021 -                                          GLshort width, GLshort height);
  1.1022 -    GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z,
  1.1023 -                                          GLint width, GLint height);
  1.1024 -    GL_API void GL_APIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z,
  1.1025 -                                          GLfixed width, GLfixed height);
  1.1026 -    GL_API void GL_APIENTRY glDrawTexsvOES(const GLshort * coords);
  1.1027 -    GL_API void GL_APIENTRY glDrawTexivOES(const GLint * coords);
  1.1028 -    GL_API void GL_APIENTRY glDrawTexxvOES(const GLfixed * coords);
  1.1029 -    GL_API void GL_APIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z,
  1.1030 -                                          GLfloat width, GLfloat height);
  1.1031 -    GL_API void GL_APIENTRY glDrawTexfvOES(const GLfloat * coords);
  1.1032 -#endif                          /* GL_OES_draw_texture */
  1.1033 -
  1.1034 -/* GL_OES_single_precision */
  1.1035 -#ifndef GL_OES_single_precision
  1.1036 -#define GL_OES_single_precision 1
  1.1037 -    GL_API void GL_APIENTRY glDepthRangefOES(GLclampf zNear, GLclampf zFar);
  1.1038 -    GL_API void GL_APIENTRY glFrustumfOES(GLfloat left, GLfloat right,
  1.1039 -                                          GLfloat bottom, GLfloat top,
  1.1040 -                                          GLfloat zNear, GLfloat zFar);
  1.1041 -    GL_API void GL_APIENTRY glOrthofOES(GLfloat left, GLfloat right,
  1.1042 -                                        GLfloat bottom, GLfloat top,
  1.1043 -                                        GLfloat zNear, GLfloat zFar);
  1.1044 -    GL_API void GL_APIENTRY glClipPlanefOES(GLenum plane,
  1.1045 -                                            const GLfloat * equation);
  1.1046 -    GL_API void GL_APIENTRY glGetClipPlanefOES(GLenum pname, GLfloat eqn[4]);
  1.1047 -    GL_API void GL_APIENTRY glClearDepthfOES(GLclampf depth);
  1.1048 -#endif                          /* GL_OES_single_precision */
  1.1049 -
  1.1050 -/* GL_OES_vertex_buffer_object */
  1.1051 -#ifndef GL_OES_vertex_buffer_object
  1.1052 -#define GL_OES_vertex_buffer_object 1
  1.1053 -    GL_API void APIENTRY glBindBufferOES(GLenum, GLuint);
  1.1054 -    GL_API void APIENTRY glDeleteBuffersOES(GLsizei, const GLuint *);
  1.1055 -    GL_API void APIENTRY glGenBuffersOES(GLsizei, GLuint *);
  1.1056 -    GL_API GLboolean APIENTRY glIsBufferOES(GLuint);
  1.1057 -    GL_API void APIENTRY glBufferDataOES(GLenum, GLsizeiptr, const GLvoid *,
  1.1058 -                                         GLenum);
  1.1059 -    GL_API void APIENTRY glBufferSubDataOES(GLenum, GLintptr, GLsizeiptr,
  1.1060 -                                            const GLvoid *);
  1.1061 -    GL_API void APIENTRY glGetBufferParameterivOES(GLenum, GLenum, GLint *);
  1.1062 -#endif                          /* GL_OES_vertex_buffer_object */
  1.1063 -
  1.1064 -#ifdef __cplusplus
  1.1065 -}
  1.1066 -#endif
  1.1067 -
  1.1068 -#endif                          /* __gles_h_ */