Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Feb 2011 02:35:14 -0800
changeset 5204daa5463466c5
parent 5203 25ffd4e5255c
child 5205 af7caea67886
Fixed building on Android, added SDL_opengles2.h, removed unnecessary SDL_glesfuncs.h
Android.mk
Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj
include/SDL_config_android.h
include/SDL_opengles.h
include/SDL_opengles2.h
src/render/opengl/SDL_glfuncs.h
src/render/opengl/SDL_render_gl.c
src/render/opengles/SDL_render_gles.c
src/render/opengles2/SDL_render_gles2.c
src/render/opengles2/SDL_shaders_gles2.c
src/render/opengles2/SDL_shaders_gles2.h
src/video/SDL_glesfuncs.h
src/video/SDL_glfuncs.h
src/video/android/SDL_androidgl.c
     1.1 --- a/Android.mk	Sun Feb 06 00:48:41 2011 -0800
     1.2 +++ b/Android.mk	Sun Feb 06 02:35:14 2011 -0800
     1.3 @@ -31,8 +31,7 @@
     1.4  	$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
     1.5  	$(wildcard $(LOCAL_PATH)/src/power/*.c) \
     1.6  	$(wildcard $(LOCAL_PATH)/src/render/*.c) \
     1.7 -	$(wildcard $(LOCAL_PATH)/src/render/opengles/*.c) \
     1.8 -	$(wildcard $(LOCAL_PATH)/src/render/software/*.c) \
     1.9 +	$(wildcard $(LOCAL_PATH)/src/render/*/*.c) \
    1.10  	$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \
    1.11  	$(wildcard $(LOCAL_PATH)/src/thread/*.c) \
    1.12  	$(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \
    1.13 @@ -41,6 +40,6 @@
    1.14  	$(wildcard $(LOCAL_PATH)/src/video/*.c) \
    1.15  	$(wildcard $(LOCAL_PATH)/src/video/android/*.c))
    1.16  
    1.17 -LOCAL_LDLIBS := -ldl -lGLESv1_CM -llog
    1.18 +LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog
    1.19  
    1.20  include $(BUILD_SHARED_LIBRARY)
     2.1 --- a/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Sun Feb 06 00:48:41 2011 -0800
     2.2 +++ b/Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj/project.pbxproj	Sun Feb 06 02:35:14 2011 -0800
     2.3 @@ -65,6 +65,7 @@
     2.4  		0402A85812FE70C600CECEE3 /* SDL_render_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 0402A85512FE70C600CECEE3 /* SDL_render_gles2.c */; };
     2.5  		0402A85912FE70C600CECEE3 /* SDL_shaders_gles2.c in Sources */ = {isa = PBXBuildFile; fileRef = 0402A85612FE70C600CECEE3 /* SDL_shaders_gles2.c */; };
     2.6  		0402A85A12FE70C600CECEE3 /* SDL_shaders_gles2.h in Headers */ = {isa = PBXBuildFile; fileRef = 0402A85712FE70C600CECEE3 /* SDL_shaders_gles2.h */; };
     2.7 +		04043B8D12FEA9350076DB1F /* SDL_opengles2.h in Headers */ = {isa = PBXBuildFile; fileRef = 04043B8C12FEA9350076DB1F /* SDL_opengles2.h */; };
     2.8  		041B2CD912FA0E9E0087D585 /* SDL_render.h in Headers */ = {isa = PBXBuildFile; fileRef = 041B2CD812FA0E9E0087D585 /* SDL_render.h */; settings = {ATTRIBUTES = (Public, ); }; };
     2.9  		041B2CF112FA0F680087D585 /* SDL_render.c in Sources */ = {isa = PBXBuildFile; fileRef = 041B2CEA12FA0F680087D585 /* SDL_render.c */; };
    2.10  		041B2CF212FA0F680087D585 /* SDL_sysrender.h in Headers */ = {isa = PBXBuildFile; fileRef = 041B2CEB12FA0F680087D585 /* SDL_sysrender.h */; };
    2.11 @@ -89,8 +90,6 @@
    2.12  		047677BC0EA76A31008ABAF1 /* SDL_haptic.c in Sources */ = {isa = PBXBuildFile; fileRef = 047677B90EA76A31008ABAF1 /* SDL_haptic.c */; };
    2.13  		047677BD0EA76A31008ABAF1 /* SDL_syshaptic.h in Headers */ = {isa = PBXBuildFile; fileRef = 047677BA0EA76A31008ABAF1 /* SDL_syshaptic.h */; };
    2.14  		047AF1B30EA98D6C00811173 /* SDL_sysloadso.c in Sources */ = {isa = PBXBuildFile; fileRef = 047AF1B20EA98D6C00811173 /* SDL_sysloadso.c */; };
    2.15 -		0495E68A0E97408800152DFE /* SDL_glesfuncs.h in Headers */ = {isa = PBXBuildFile; fileRef = 0495E6840E97408800152DFE /* SDL_glesfuncs.h */; };
    2.16 -		0495E68B0E97408800152DFE /* SDL_glfuncs.h in Headers */ = {isa = PBXBuildFile; fileRef = 0495E6850E97408800152DFE /* SDL_glfuncs.h */; };
    2.17  		04B2ECEC1025CE4800F9BC5F /* SDL_atomic.h in Headers */ = {isa = PBXBuildFile; fileRef = 04B2ECE61025CE4800F9BC5F /* SDL_atomic.h */; settings = {ATTRIBUTES = (Public, ); }; };
    2.18  		04B2ECED1025CE4800F9BC5F /* SDL_power.h in Headers */ = {isa = PBXBuildFile; fileRef = 04B2ECE71025CE4800F9BC5F /* SDL_power.h */; settings = {ATTRIBUTES = (Public, ); }; };
    2.19  		04B2ECEE1025CE4800F9BC5F /* SDL_revision.h in Headers */ = {isa = PBXBuildFile; fileRef = 04B2ECE81025CE4800F9BC5F /* SDL_revision.h */; settings = {ATTRIBUTES = (Public, ); }; };
    2.20 @@ -330,6 +329,7 @@
    2.21  		0402A85512FE70C600CECEE3 /* SDL_render_gles2.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_render_gles2.c; sourceTree = "<group>"; };
    2.22  		0402A85612FE70C600CECEE3 /* SDL_shaders_gles2.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_shaders_gles2.c; sourceTree = "<group>"; };
    2.23  		0402A85712FE70C600CECEE3 /* SDL_shaders_gles2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_shaders_gles2.h; sourceTree = "<group>"; };
    2.24 +		04043B8C12FEA9350076DB1F /* SDL_opengles2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_opengles2.h; path = ../../include/SDL_opengles2.h; sourceTree = SOURCE_ROOT; };
    2.25  		041B2CD812FA0E9E0087D585 /* SDL_render.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_render.h; path = ../../include/SDL_render.h; sourceTree = SOURCE_ROOT; };
    2.26  		041B2CEA12FA0F680087D585 /* SDL_render.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_render.c; sourceTree = "<group>"; };
    2.27  		041B2CEB12FA0F680087D585 /* SDL_sysrender.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_sysrender.h; sourceTree = "<group>"; };
    2.28 @@ -354,8 +354,6 @@
    2.29  		047677B90EA76A31008ABAF1 /* SDL_haptic.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = SDL_haptic.c; path = ../../src/haptic/SDL_haptic.c; sourceTree = SOURCE_ROOT; };
    2.30  		047677BA0EA76A31008ABAF1 /* SDL_syshaptic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_syshaptic.h; path = ../../src/haptic/SDL_syshaptic.h; sourceTree = SOURCE_ROOT; };
    2.31  		047AF1B20EA98D6C00811173 /* SDL_sysloadso.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = SDL_sysloadso.c; sourceTree = "<group>"; };
    2.32 -		0495E6840E97408800152DFE /* SDL_glesfuncs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_glesfuncs.h; sourceTree = "<group>"; };
    2.33 -		0495E6850E97408800152DFE /* SDL_glfuncs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDL_glfuncs.h; sourceTree = "<group>"; };
    2.34  		04B2ECE61025CE4800F9BC5F /* SDL_atomic.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_atomic.h; path = ../../include/SDL_atomic.h; sourceTree = SOURCE_ROOT; };
    2.35  		04B2ECE71025CE4800F9BC5F /* SDL_power.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_power.h; path = ../../include/SDL_power.h; sourceTree = SOURCE_ROOT; };
    2.36  		04B2ECE81025CE4800F9BC5F /* SDL_revision.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SDL_revision.h; path = ../../include/SDL_revision.h; sourceTree = SOURCE_ROOT; };
    2.37 @@ -941,6 +939,7 @@
    2.38  				FD99B8E50DD52EB400FB1D6B /* SDL_name.h */,
    2.39  				FD99B8E60DD52EB400FB1D6B /* SDL_opengl.h */,
    2.40  				FD8BD7AB0E27DCA400B52CD5 /* SDL_opengles.h */,
    2.41 +				04043B8C12FEA9350076DB1F /* SDL_opengles2.h */,
    2.42  				FD99B8E70DD52EB400FB1D6B /* SDL_pixels.h */,
    2.43  				FD99B8E80DD52EB400FB1D6B /* SDL_platform.h */,
    2.44  				04B2ECE71025CE4800F9BC5F /* SDL_power.h */,
    2.45 @@ -1124,8 +1123,6 @@
    2.46  			children = (
    2.47  				FD689F090E26E5D900F90B21 /* uikit */,
    2.48  				FDA685F40DF244C800F98A1A /* dummy */,
    2.49 -				0495E6850E97408800152DFE /* SDL_glfuncs.h */,
    2.50 -				0495E6840E97408800152DFE /* SDL_glesfuncs.h */,
    2.51  				FDA683000DF2374E00F98A1A /* SDL_blit.c */,
    2.52  				FDA683010DF2374E00F98A1A /* SDL_blit.h */,
    2.53  				FDA683020DF2374E00F98A1A /* SDL_blit_0.c */,
    2.54 @@ -1232,8 +1229,6 @@
    2.55  				FD8BD7AC0E27DCA400B52CD5 /* SDL_opengles.h in Headers */,
    2.56  				FDC656490E560DF800311C8E /* jumphack.h in Headers */,
    2.57  				FD24846D0E5655AE0021E198 /* SDL_uikitkeyboard.h in Headers */,
    2.58 -				0495E68A0E97408800152DFE /* SDL_glesfuncs.h in Headers */,
    2.59 -				0495E68B0E97408800152DFE /* SDL_glfuncs.h in Headers */,
    2.60  				047677BD0EA76A31008ABAF1 /* SDL_syshaptic.h in Headers */,
    2.61  				04461DEE0EA76BA3006C462D /* SDL_haptic.h in Headers */,
    2.62  				046387420F0B5B7D0041FD65 /* SDL_blit_slow.h in Headers */,
    2.63 @@ -1267,6 +1262,7 @@
    2.64  				0442EC4B12FE1BFF004C9285 /* SDL_hints.h in Headers */,
    2.65  				0442EC5012FE1C1E004C9285 /* SDL_render_sw_c.h in Headers */,
    2.66  				0402A85A12FE70C600CECEE3 /* SDL_shaders_gles2.h in Headers */,
    2.67 +				04043B8D12FEA9350076DB1F /* SDL_opengles2.h in Headers */,
    2.68  			);
    2.69  			runOnlyForDeploymentPostprocessing = 0;
    2.70  		};
     3.1 --- a/include/SDL_config_android.h	Sun Feb 06 00:48:41 2011 -0800
     3.2 +++ b/include/SDL_config_android.h	Sun Feb 06 02:35:14 2011 -0800
     3.3 @@ -142,5 +142,6 @@
     3.4  /* Enable OpenGL ES */
     3.5  #define SDL_VIDEO_OPENGL_ES	1
     3.6  #define SDL_VIDEO_RENDER_OGL_ES	1
     3.7 +#define SDL_VIDEO_RENDER_OGL_ES2	1
     3.8  
     3.9  #endif /* _SDL_config_minimal_h */
     4.1 --- a/include/SDL_opengles.h	Sun Feb 06 00:48:41 2011 -0800
     4.2 +++ b/include/SDL_opengles.h	Sun Feb 06 02:35:14 2011 -0800
     4.3 @@ -1,1039 +1,39 @@
     4.4  /*
     4.5 - SDL - Simple DirectMedia Layer
     4.6 - Copyright (C) 1997-2010 Sam Lantinga
     4.7 - 
     4.8 - This library is free software; you can redistribute it and/or
     4.9 - modify it under the terms of the GNU Lesser General Public
    4.10 - License as published by the Free Software Foundation; either
    4.11 - version 2.1 of the License, or (at your option) any later version.
    4.12 - 
    4.13 - This library is distributed in the hope that it will be useful,
    4.14 - but WITHOUT ANY WARRANTY; without even the implied warranty of
    4.15 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    4.16 - Lesser General Public License for more details.
    4.17 - 
    4.18 - You should have received a copy of the GNU Lesser General Public
    4.19 - License along with this library; if not, write to the Free Software
    4.20 - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    4.21 - 
    4.22 - Sam Lantinga
    4.23 - slouken@libsdl.org
    4.24 - */
    4.25 +    SDL - Simple DirectMedia Layer
    4.26 +    Copyright (C) 1997-2010 Sam Lantinga
    4.27 +
    4.28 +    This library is free software; you can redistribute it and/or
    4.29 +    modify it under the terms of the GNU Lesser General Public
    4.30 +    License as published by the Free Software Foundation; either
    4.31 +    version 2.1 of the License, or (at your option) any later version.
    4.32 +
    4.33 +    This library is distributed in the hope that it will be useful,
    4.34 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    4.35 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    4.36 +    Lesser General Public License for more details.
    4.37 +
    4.38 +    You should have received a copy of the GNU Lesser General Public
    4.39 +    License along with this library; if not, write to the Free Software
    4.40 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    4.41 +
    4.42 +    Sam Lantinga
    4.43 +    slouken@libsdl.org
    4.44 +*/
    4.45  
    4.46  /**
    4.47   *  \file SDL_opengles.h
    4.48   *  
    4.49 - *  This is a simple file to encapsulate the OpenGL ES API headers.
    4.50 - *  
    4.51 - *  Headers copied from The Kronos Group website.
    4.52 - *  	http://www.khronos.org/opengles/
    4.53 + *  This is a simple file to encapsulate the OpenGL ES 1.X API headers.
    4.54   */
    4.55  
    4.56 -#ifndef __gles_h_
    4.57 -#define __gles_h_
    4.58 -
    4.59 -/* $Id: gl.h 4533 2007-11-26 11:19:35Z markc $ */
    4.60 -
    4.61 -#ifdef __cplusplus
    4.62 -extern "C"
    4.63 -{
    4.64 -#endif
    4.65 -
    4.66  #ifdef __IPHONEOS__
    4.67 -#include <OpenGLES/ES1/gl.h>    /* Header File For The OpenGL ES Library */
    4.68 +#include <OpenGLES/ES1/gl.h>
    4.69 +#include <OpenGLES/ES1/glext.h>
    4.70 +#else
    4.71 +#include <GLES/gl.h>
    4.72 +#include <GLES/glext.h>
    4.73  #endif
    4.74  
    4.75  #ifndef APIENTRY
    4.76  #define APIENTRY
    4.77  #endif
    4.78 -
    4.79 -#ifndef GL_APIENTRY
    4.80 -#define GL_APIENTRY
    4.81 -#endif
    4.82 -
    4.83 -#ifndef GL_API
    4.84 -#define GL_API
    4.85 -#endif                          /* GL_API */
    4.86 -
    4.87 -/*
    4.88 -** License Applicability. Except to the extent portions of this file are
    4.89 -** made subject to an alternative license as permitted in the SGI Free
    4.90 -** Software License B, Version 1.0 (the "License"), the contents of this
    4.91 -** file are subject only to the provisions of the License. You may not use
    4.92 -** this file except in compliance with the License. You may obtain a copy
    4.93 -** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
    4.94 -** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
    4.95 -**
    4.96 -** http://oss.sgi.com/projects/FreeB
    4.97 -**
    4.98 -** Note that, as provided in the License, the Software is distributed on an
    4.99 -** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
   4.100 -** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
   4.101 -** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
   4.102 -** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
   4.103 -**
   4.104 -** Original Code. The Original Code is: OpenGL Sample Implementation,
   4.105 -** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
   4.106 -** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
   4.107 -** Copyright in any portions created by third parties is as indicated
   4.108 -** elsewhere herein. All Rights Reserved.
   4.109 -**
   4.110 -** Additional Notice Provisions: The application programming interfaces
   4.111 -** established by SGI in conjunction with the Original Code are The
   4.112 -** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released
   4.113 -** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version
   4.114 -** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X
   4.115 -** Window System(R) (Version 1.3), released October 19, 1998. This software
   4.116 -** was created using the OpenGL(R) version 1.2.1 Sample Implementation
   4.117 -** published by SGI, but has not been independently verified as being
   4.118 -** compliant with the OpenGL(R) version 1.2.1 Specification.
   4.119 -*/
   4.120 -
   4.121 -    typedef unsigned int GLenum;
   4.122 -    typedef unsigned char GLboolean;
   4.123 -    typedef unsigned int GLbitfield;
   4.124 -    typedef signed char GLbyte;
   4.125 -    typedef short GLshort;
   4.126 -    typedef int GLint;
   4.127 -    typedef int GLsizei;
   4.128 -    typedef unsigned char GLubyte;
   4.129 -    typedef unsigned short GLushort;
   4.130 -    typedef unsigned int GLuint;
   4.131 -    typedef float GLfloat;
   4.132 -    typedef float GLclampf;
   4.133 -    typedef void GLvoid;
   4.134 -    typedef int GLfixed;
   4.135 -    typedef int GLclampx;
   4.136 -
   4.137 -    typedef int GLintptr;
   4.138 -    typedef int GLsizeiptr;
   4.139 -
   4.140 -
   4.141 -/*************************************************************/
   4.142 -
   4.143 -/* OpenGL ES core versions */
   4.144 -#define GL_VERSION_ES_CM_1_0		  1
   4.145 -#define GL_VERSION_ES_CL_1_0		  1
   4.146 -#define GL_VERSION_ES_CM_1_1		  1
   4.147 -#define GL_VERSION_ES_CL_1_1		  1
   4.148 -
   4.149 -/* ClearBufferMask */
   4.150 -#define GL_DEPTH_BUFFER_BIT               0x00000100
   4.151 -#define GL_STENCIL_BUFFER_BIT             0x00000400
   4.152 -#define GL_COLOR_BUFFER_BIT               0x00004000
   4.153 -
   4.154 -/* Boolean */
   4.155 -#define GL_FALSE                          0
   4.156 -#define GL_TRUE                           1
   4.157 -
   4.158 -/* BeginMode */
   4.159 -#define GL_POINTS                         0x0000
   4.160 -#define GL_LINES                          0x0001
   4.161 -#define GL_LINE_LOOP                      0x0002
   4.162 -#define GL_LINE_STRIP                     0x0003
   4.163 -#define GL_TRIANGLES                      0x0004
   4.164 -#define GL_TRIANGLE_STRIP                 0x0005
   4.165 -#define GL_TRIANGLE_FAN                   0x0006
   4.166 -
   4.167 -/* AlphaFunction */
   4.168 -#define GL_NEVER                          0x0200
   4.169 -#define GL_LESS                           0x0201
   4.170 -#define GL_EQUAL                          0x0202
   4.171 -#define GL_LEQUAL                         0x0203
   4.172 -#define GL_GREATER                        0x0204
   4.173 -#define GL_NOTEQUAL                       0x0205
   4.174 -#define GL_GEQUAL                         0x0206
   4.175 -#define GL_ALWAYS                         0x0207
   4.176 -
   4.177 -/* BlendingFactorDest */
   4.178 -#define GL_ZERO                           0
   4.179 -#define GL_ONE                            1
   4.180 -#define GL_SRC_COLOR                      0x0300
   4.181 -#define GL_ONE_MINUS_SRC_COLOR            0x0301
   4.182 -#define GL_SRC_ALPHA                      0x0302
   4.183 -#define GL_ONE_MINUS_SRC_ALPHA            0x0303
   4.184 -#define GL_DST_ALPHA                      0x0304
   4.185 -#define GL_ONE_MINUS_DST_ALPHA            0x0305
   4.186 -
   4.187 -/* BlendingFactorSrc */
   4.188 -/*      GL_ZERO */
   4.189 -/*      GL_ONE */
   4.190 -#define GL_DST_COLOR                      0x0306
   4.191 -#define GL_ONE_MINUS_DST_COLOR            0x0307
   4.192 -#define GL_SRC_ALPHA_SATURATE             0x0308
   4.193 -/*      GL_SRC_ALPHA */
   4.194 -/*      GL_ONE_MINUS_SRC_ALPHA */
   4.195 -/*      GL_DST_ALPHA */
   4.196 -/*      GL_ONE_MINUS_DST_ALPHA */
   4.197 -
   4.198 -/* ClipPlaneName */
   4.199 -#define GL_CLIP_PLANE0                    0x3000
   4.200 -#define GL_CLIP_PLANE1                    0x3001
   4.201 -#define GL_CLIP_PLANE2                    0x3002
   4.202 -#define GL_CLIP_PLANE3                    0x3003
   4.203 -#define GL_CLIP_PLANE4                    0x3004
   4.204 -#define GL_CLIP_PLANE5                    0x3005
   4.205 -
   4.206 -/* ColorMaterialFace */
   4.207 -/*      GL_FRONT_AND_BACK */
   4.208 -
   4.209 -/* ColorMaterialParameter */
   4.210 -/*      GL_AMBIENT_AND_DIFFUSE */
   4.211 -
   4.212 -/* ColorPointerType */
   4.213 -/*      GL_UNSIGNED_BYTE */
   4.214 -/*      GL_FLOAT */
   4.215 -/*      GL_FIXED */
   4.216 -
   4.217 -/* CullFaceMode */
   4.218 -#define GL_FRONT                          0x0404
   4.219 -#define GL_BACK                           0x0405
   4.220 -#define GL_FRONT_AND_BACK                 0x0408
   4.221 -
   4.222 -/* DepthFunction */
   4.223 -/*      GL_NEVER */
   4.224 -/*      GL_LESS */
   4.225 -/*      GL_EQUAL */
   4.226 -/*      GL_LEQUAL */
   4.227 -/*      GL_GREATER */
   4.228 -/*      GL_NOTEQUAL */
   4.229 -/*      GL_GEQUAL */
   4.230 -/*      GL_ALWAYS */
   4.231 -
   4.232 -/* EnableCap */
   4.233 -#define GL_FOG                            0x0B60
   4.234 -#define GL_LIGHTING                       0x0B50
   4.235 -#define GL_TEXTURE_2D                     0x0DE1
   4.236 -#define GL_CULL_FACE                      0x0B44
   4.237 -#define GL_ALPHA_TEST                     0x0BC0
   4.238 -#define GL_BLEND                          0x0BE2
   4.239 -#define GL_COLOR_LOGIC_OP                 0x0BF2
   4.240 -#define GL_DITHER                         0x0BD0
   4.241 -#define GL_STENCIL_TEST                   0x0B90
   4.242 -#define GL_DEPTH_TEST                     0x0B71
   4.243 -/*      GL_LIGHT0 */
   4.244 -/*      GL_LIGHT1 */
   4.245 -/*      GL_LIGHT2 */
   4.246 -/*      GL_LIGHT3 */
   4.247 -/*      GL_LIGHT4 */
   4.248 -/*      GL_LIGHT5 */
   4.249 -/*      GL_LIGHT6 */
   4.250 -/*      GL_LIGHT7 */
   4.251 -#define GL_POINT_SMOOTH                   0x0B10
   4.252 -#define GL_LINE_SMOOTH                    0x0B20
   4.253 -#define GL_SCISSOR_TEST                   0x0C11
   4.254 -#define GL_COLOR_MATERIAL                 0x0B57
   4.255 -#define GL_NORMALIZE                      0x0BA1
   4.256 -#define GL_RESCALE_NORMAL                 0x803A
   4.257 -#define GL_POLYGON_OFFSET_FILL            0x8037
   4.258 -#define GL_VERTEX_ARRAY                   0x8074
   4.259 -#define GL_NORMAL_ARRAY                   0x8075
   4.260 -#define GL_COLOR_ARRAY                    0x8076
   4.261 -#define GL_TEXTURE_COORD_ARRAY            0x8078
   4.262 -#define GL_MULTISAMPLE                    0x809D
   4.263 -#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
   4.264 -#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
   4.265 -#define GL_SAMPLE_COVERAGE                0x80A0
   4.266 -
   4.267 -/* ErrorCode */
   4.268 -#define GL_NO_ERROR                       0
   4.269 -#define GL_INVALID_ENUM                   0x0500
   4.270 -#define GL_INVALID_VALUE                  0x0501
   4.271 -#define GL_INVALID_OPERATION              0x0502
   4.272 -#define GL_STACK_OVERFLOW                 0x0503
   4.273 -#define GL_STACK_UNDERFLOW                0x0504
   4.274 -#define GL_OUT_OF_MEMORY                  0x0505
   4.275 -
   4.276 -/* FogMode */
   4.277 -/*      GL_LINEAR */
   4.278 -#define GL_EXP                            0x0800
   4.279 -#define GL_EXP2                           0x0801
   4.280 -
   4.281 -/* FogParameter */
   4.282 -#define GL_FOG_DENSITY                    0x0B62
   4.283 -#define GL_FOG_START                      0x0B63
   4.284 -#define GL_FOG_END                        0x0B64
   4.285 -#define GL_FOG_MODE                       0x0B65
   4.286 -#define GL_FOG_COLOR                      0x0B66
   4.287 -
   4.288 -/* FrontFaceDirection */
   4.289 -#define GL_CW                             0x0900
   4.290 -#define GL_CCW                            0x0901
   4.291 -
   4.292 -/* GetPName */
   4.293 -#define GL_CURRENT_COLOR                  0x0B00
   4.294 -#define GL_CURRENT_NORMAL                 0x0B02
   4.295 -#define GL_CURRENT_TEXTURE_COORDS         0x0B03
   4.296 -#define GL_POINT_SIZE                     0x0B11
   4.297 -#define GL_POINT_SIZE_MIN                 0x8126
   4.298 -#define GL_POINT_SIZE_MAX                 0x8127
   4.299 -#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
   4.300 -#define GL_POINT_DISTANCE_ATTENUATION     0x8129
   4.301 -#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
   4.302 -#define GL_LINE_WIDTH                     0x0B21
   4.303 -#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
   4.304 -#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
   4.305 -#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
   4.306 -#define GL_CULL_FACE_MODE                 0x0B45
   4.307 -#define GL_FRONT_FACE                     0x0B46
   4.308 -#define GL_SHADE_MODEL                    0x0B54
   4.309 -#define GL_DEPTH_RANGE                    0x0B70
   4.310 -#define GL_DEPTH_WRITEMASK                0x0B72
   4.311 -#define GL_DEPTH_CLEAR_VALUE              0x0B73
   4.312 -#define GL_DEPTH_FUNC                     0x0B74
   4.313 -#define GL_STENCIL_CLEAR_VALUE            0x0B91
   4.314 -#define GL_STENCIL_FUNC                   0x0B92
   4.315 -#define GL_STENCIL_VALUE_MASK             0x0B93
   4.316 -#define GL_STENCIL_FAIL                   0x0B94
   4.317 -#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
   4.318 -#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
   4.319 -#define GL_STENCIL_REF                    0x0B97
   4.320 -#define GL_STENCIL_WRITEMASK              0x0B98
   4.321 -#define GL_MATRIX_MODE                    0x0BA0
   4.322 -#define GL_VIEWPORT                       0x0BA2
   4.323 -#define GL_MODELVIEW_STACK_DEPTH          0x0BA3
   4.324 -#define GL_PROJECTION_STACK_DEPTH         0x0BA4
   4.325 -#define GL_TEXTURE_STACK_DEPTH            0x0BA5
   4.326 -#define GL_MODELVIEW_MATRIX               0x0BA6
   4.327 -#define GL_PROJECTION_MATRIX              0x0BA7
   4.328 -#define GL_TEXTURE_MATRIX                 0x0BA8
   4.329 -#define GL_ALPHA_TEST_FUNC                0x0BC1
   4.330 -#define GL_ALPHA_TEST_REF                 0x0BC2
   4.331 -#define GL_BLEND_DST                      0x0BE0
   4.332 -#define GL_BLEND_SRC                      0x0BE1
   4.333 -#define GL_LOGIC_OP_MODE                  0x0BF0
   4.334 -#define GL_SCISSOR_BOX                    0x0C10
   4.335 -#define GL_SCISSOR_TEST                   0x0C11
   4.336 -#define GL_COLOR_CLEAR_VALUE              0x0C22
   4.337 -#define GL_COLOR_WRITEMASK                0x0C23
   4.338 -#define GL_UNPACK_ALIGNMENT               0x0CF5
   4.339 -#define GL_PACK_ALIGNMENT                 0x0D05
   4.340 -#define GL_MAX_LIGHTS                     0x0D31
   4.341 -#define GL_MAX_CLIP_PLANES                0x0D32
   4.342 -#define GL_MAX_TEXTURE_SIZE               0x0D33
   4.343 -#define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36
   4.344 -#define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38
   4.345 -#define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39
   4.346 -#define GL_MAX_VIEWPORT_DIMS              0x0D3A
   4.347 -#define GL_MAX_TEXTURE_UNITS              0x84E2
   4.348 -#define GL_SUBPIXEL_BITS                  0x0D50
   4.349 -#define GL_RED_BITS                       0x0D52
   4.350 -#define GL_GREEN_BITS                     0x0D53
   4.351 -#define GL_BLUE_BITS                      0x0D54
   4.352 -#define GL_ALPHA_BITS                     0x0D55
   4.353 -#define GL_DEPTH_BITS                     0x0D56
   4.354 -#define GL_STENCIL_BITS                   0x0D57
   4.355 -#define GL_POLYGON_OFFSET_UNITS           0x2A00
   4.356 -#define GL_POLYGON_OFFSET_FILL            0x8037
   4.357 -#define GL_POLYGON_OFFSET_FACTOR          0x8038
   4.358 -#define GL_TEXTURE_BINDING_2D             0x8069
   4.359 -#define GL_VERTEX_ARRAY_SIZE              0x807A
   4.360 -#define GL_VERTEX_ARRAY_TYPE              0x807B
   4.361 -#define GL_VERTEX_ARRAY_STRIDE            0x807C
   4.362 -#define GL_NORMAL_ARRAY_TYPE              0x807E
   4.363 -#define GL_NORMAL_ARRAY_STRIDE            0x807F
   4.364 -#define GL_COLOR_ARRAY_SIZE               0x8081
   4.365 -#define GL_COLOR_ARRAY_TYPE               0x8082
   4.366 -#define GL_COLOR_ARRAY_STRIDE             0x8083
   4.367 -#define GL_TEXTURE_COORD_ARRAY_SIZE       0x8088
   4.368 -#define GL_TEXTURE_COORD_ARRAY_TYPE       0x8089
   4.369 -#define GL_TEXTURE_COORD_ARRAY_STRIDE     0x808A
   4.370 -#define GL_VERTEX_ARRAY_POINTER           0x808E
   4.371 -#define GL_NORMAL_ARRAY_POINTER           0x808F
   4.372 -#define GL_COLOR_ARRAY_POINTER            0x8090
   4.373 -#define GL_TEXTURE_COORD_ARRAY_POINTER    0x8092
   4.374 -#define GL_SAMPLE_BUFFERS                 0x80A8
   4.375 -#define GL_SAMPLES                        0x80A9
   4.376 -#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
   4.377 -#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
   4.378 -
   4.379 -/* OpenGL ES 1.0 defines, they gone in 1.1 and 2.0 */
   4.380 -#ifndef GL_MAX_ELEMENTS_VERTICES
   4.381 -#define GL_MAX_ELEMENTS_VERTICES          0x80E8
   4.382 -#endif                          /* GL_MAX_ELEMENTS_VERTICES */
   4.383 -#ifndef GL_MAX_ELEMENTS_INDICES
   4.384 -#define GL_MAX_ELEMENTS_INDICES           0x80E9
   4.385 -#endif                          /* GL_MAX_ELEMENTS_INDICES */
   4.386 -
   4.387 -/* GetTextureParameter */
   4.388 -/*      GL_TEXTURE_MAG_FILTER */
   4.389 -/*      GL_TEXTURE_MIN_FILTER */
   4.390 -/*      GL_TEXTURE_WRAP_S */
   4.391 -/*      GL_TEXTURE_WRAP_T */
   4.392 -
   4.393 -#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
   4.394 -#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
   4.395 -
   4.396 -/* HintMode */
   4.397 -#define GL_DONT_CARE                      0x1100
   4.398 -#define GL_FASTEST                        0x1101
   4.399 -#define GL_NICEST                         0x1102
   4.400 -
   4.401 -/* HintTarget */
   4.402 -#define GL_PERSPECTIVE_CORRECTION_HINT    0x0C50
   4.403 -#define GL_POINT_SMOOTH_HINT              0x0C51
   4.404 -#define GL_LINE_SMOOTH_HINT               0x0C52
   4.405 -#define GL_FOG_HINT                       0x0C54
   4.406 -#define GL_GENERATE_MIPMAP_HINT           0x8192
   4.407 -
   4.408 -/* LightModelParameter */
   4.409 -#define GL_LIGHT_MODEL_AMBIENT            0x0B53
   4.410 -#define GL_LIGHT_MODEL_TWO_SIDE           0x0B52
   4.411 -
   4.412 -/* LightParameter */
   4.413 -#define GL_AMBIENT                        0x1200
   4.414 -#define GL_DIFFUSE                        0x1201
   4.415 -#define GL_SPECULAR                       0x1202
   4.416 -#define GL_POSITION                       0x1203
   4.417 -#define GL_SPOT_DIRECTION                 0x1204
   4.418 -#define GL_SPOT_EXPONENT                  0x1205
   4.419 -#define GL_SPOT_CUTOFF                    0x1206
   4.420 -#define GL_CONSTANT_ATTENUATION           0x1207
   4.421 -#define GL_LINEAR_ATTENUATION             0x1208
   4.422 -#define GL_QUADRATIC_ATTENUATION          0x1209
   4.423 -
   4.424 -/* DataType */
   4.425 -#define GL_BYTE                           0x1400
   4.426 -#define GL_UNSIGNED_BYTE                  0x1401
   4.427 -#define GL_SHORT                          0x1402
   4.428 -#define GL_UNSIGNED_SHORT                 0x1403
   4.429 -#define GL_FLOAT                          0x1406
   4.430 -#define GL_FIXED                          0x140C
   4.431 -
   4.432 -/* LogicOp */
   4.433 -#define GL_CLEAR                          0x1500
   4.434 -#define GL_AND                            0x1501
   4.435 -#define GL_AND_REVERSE                    0x1502
   4.436 -#define GL_COPY                           0x1503
   4.437 -#define GL_AND_INVERTED                   0x1504
   4.438 -#define GL_NOOP                           0x1505
   4.439 -#define GL_XOR                            0x1506
   4.440 -#define GL_OR                             0x1507
   4.441 -#define GL_NOR                            0x1508
   4.442 -#define GL_EQUIV                          0x1509
   4.443 -#define GL_INVERT                         0x150A
   4.444 -#define GL_OR_REVERSE                     0x150B
   4.445 -#define GL_COPY_INVERTED                  0x150C
   4.446 -#define GL_OR_INVERTED                    0x150D
   4.447 -#define GL_NAND                           0x150E
   4.448 -#define GL_SET                            0x150F
   4.449 -
   4.450 -/* MaterialFace */
   4.451 -/*      GL_FRONT_AND_BACK */
   4.452 -
   4.453 -/* MaterialParameter */
   4.454 -#define GL_EMISSION                       0x1600
   4.455 -#define GL_SHININESS                      0x1601
   4.456 -#define GL_AMBIENT_AND_DIFFUSE            0x1602
   4.457 -/*      GL_AMBIENT */
   4.458 -/*      GL_DIFFUSE */
   4.459 -/*      GL_SPECULAR */
   4.460 -
   4.461 -/* MatrixMode */
   4.462 -#define GL_MODELVIEW                      0x1700
   4.463 -#define GL_PROJECTION                     0x1701
   4.464 -#define GL_TEXTURE                        0x1702
   4.465 -
   4.466 -/* NormalPointerType */
   4.467 -/*      GL_BYTE */
   4.468 -/*      GL_SHORT */
   4.469 -/*      GL_FLOAT */
   4.470 -/*      GL_FIXED */
   4.471 -
   4.472 -/* PixelFormat */
   4.473 -#define GL_ALPHA                          0x1906
   4.474 -#define GL_RGB                            0x1907
   4.475 -#define GL_RGBA                           0x1908
   4.476 -#define GL_LUMINANCE                      0x1909
   4.477 -#define GL_LUMINANCE_ALPHA                0x190A
   4.478 -
   4.479 -/* PixelStoreParameter */
   4.480 -#define GL_UNPACK_ALIGNMENT               0x0CF5
   4.481 -#define GL_PACK_ALIGNMENT                 0x0D05
   4.482 -
   4.483 -/* PixelType */
   4.484 -/*      GL_UNSIGNED_BYTE */
   4.485 -#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
   4.486 -#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
   4.487 -#define GL_UNSIGNED_SHORT_5_6_5           0x8363
   4.488 -
   4.489 -/* ShadingModel */
   4.490 -#define GL_FLAT                           0x1D00
   4.491 -#define GL_SMOOTH                         0x1D01
   4.492 -
   4.493 -/* StencilFunction */
   4.494 -/*      GL_NEVER */
   4.495 -/*      GL_LESS */
   4.496 -/*      GL_EQUAL */
   4.497 -/*      GL_LEQUAL */
   4.498 -/*      GL_GREATER */
   4.499 -/*      GL_NOTEQUAL */
   4.500 -/*      GL_GEQUAL */
   4.501 -/*      GL_ALWAYS */
   4.502 -
   4.503 -/* StencilOp */
   4.504 -/*      GL_ZERO */
   4.505 -#define GL_KEEP                           0x1E00
   4.506 -#define GL_REPLACE                        0x1E01
   4.507 -#define GL_INCR                           0x1E02
   4.508 -#define GL_DECR                           0x1E03
   4.509 -/*      GL_INVERT */
   4.510 -
   4.511 -/* StringName */
   4.512 -#define GL_VENDOR                         0x1F00
   4.513 -#define GL_RENDERER                       0x1F01
   4.514 -#define GL_VERSION                        0x1F02
   4.515 -#define GL_EXTENSIONS                     0x1F03
   4.516 -
   4.517 -/* TexCoordPointerType */
   4.518 -/*      GL_SHORT */
   4.519 -/*      GL_FLOAT */
   4.520 -/*      GL_FIXED */
   4.521 -/*      GL_BYTE */
   4.522 -
   4.523 -/* TextureEnvMode */
   4.524 -#define GL_MODULATE                       0x2100
   4.525 -#define GL_DECAL                          0x2101
   4.526 -/*      GL_BLEND */
   4.527 -#define GL_ADD                            0x0104
   4.528 -/*      GL_REPLACE */
   4.529 -
   4.530 -/* TextureEnvParameter */
   4.531 -#define GL_TEXTURE_ENV_MODE               0x2200
   4.532 -#define GL_TEXTURE_ENV_COLOR              0x2201
   4.533 -
   4.534 -/* TextureEnvTarget */
   4.535 -#define GL_TEXTURE_ENV                    0x2300
   4.536 -
   4.537 -/* TextureMagFilter */
   4.538 -#define GL_NEAREST                        0x2600
   4.539 -#define GL_LINEAR                         0x2601
   4.540 -
   4.541 -/* TextureMinFilter */
   4.542 -/*      GL_NEAREST */
   4.543 -/*      GL_LINEAR */
   4.544 -#define GL_NEAREST_MIPMAP_NEAREST         0x2700
   4.545 -#define GL_LINEAR_MIPMAP_NEAREST          0x2701
   4.546 -#define GL_NEAREST_MIPMAP_LINEAR          0x2702
   4.547 -#define GL_LINEAR_MIPMAP_LINEAR           0x2703
   4.548 -
   4.549 -/* TextureParameterName */
   4.550 -#define GL_TEXTURE_MAG_FILTER             0x2800
   4.551 -#define GL_TEXTURE_MIN_FILTER             0x2801
   4.552 -#define GL_TEXTURE_WRAP_S                 0x2802
   4.553 -#define GL_TEXTURE_WRAP_T                 0x2803
   4.554 -#define GL_GENERATE_MIPMAP                0x8191
   4.555 -
   4.556 -/* TextureTarget */
   4.557 -/*      GL_TEXTURE_2D */
   4.558 -
   4.559 -/* TextureUnit */
   4.560 -#define GL_TEXTURE0                       0x84C0
   4.561 -#define GL_TEXTURE1                       0x84C1
   4.562 -#define GL_TEXTURE2                       0x84C2
   4.563 -#define GL_TEXTURE3                       0x84C3
   4.564 -#define GL_TEXTURE4                       0x84C4
   4.565 -#define GL_TEXTURE5                       0x84C5
   4.566 -#define GL_TEXTURE6                       0x84C6
   4.567 -#define GL_TEXTURE7                       0x84C7
   4.568 -#define GL_TEXTURE8                       0x84C8
   4.569 -#define GL_TEXTURE9                       0x84C9
   4.570 -#define GL_TEXTURE10                      0x84CA
   4.571 -#define GL_TEXTURE11                      0x84CB
   4.572 -#define GL_TEXTURE12                      0x84CC
   4.573 -#define GL_TEXTURE13                      0x84CD
   4.574 -#define GL_TEXTURE14                      0x84CE
   4.575 -#define GL_TEXTURE15                      0x84CF
   4.576 -#define GL_TEXTURE16                      0x84D0
   4.577 -#define GL_TEXTURE17                      0x84D1
   4.578 -#define GL_TEXTURE18                      0x84D2
   4.579 -#define GL_TEXTURE19                      0x84D3
   4.580 -#define GL_TEXTURE20                      0x84D4
   4.581 -#define GL_TEXTURE21                      0x84D5
   4.582 -#define GL_TEXTURE22                      0x84D6
   4.583 -#define GL_TEXTURE23                      0x84D7
   4.584 -#define GL_TEXTURE24                      0x84D8
   4.585 -#define GL_TEXTURE25                      0x84D9
   4.586 -#define GL_TEXTURE26                      0x84DA
   4.587 -#define GL_TEXTURE27                      0x84DB
   4.588 -#define GL_TEXTURE28                      0x84DC
   4.589 -#define GL_TEXTURE29                      0x84DD
   4.590 -#define GL_TEXTURE30                      0x84DE
   4.591 -#define GL_TEXTURE31                      0x84DF
   4.592 -#define GL_ACTIVE_TEXTURE                 0x84E0
   4.593 -#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
   4.594 -
   4.595 -/* TextureWrapMode */
   4.596 -#define GL_REPEAT                         0x2901
   4.597 -#define GL_CLAMP_TO_EDGE                  0x812F
   4.598 -
   4.599 -/* VertexPointerType */
   4.600 -/*      GL_SHORT */
   4.601 -/*      GL_FLOAT */
   4.602 -/*      GL_FIXED */
   4.603 -/*      GL_BYTE */
   4.604 -
   4.605 -/* LightName */
   4.606 -#define GL_LIGHT0                         0x4000
   4.607 -#define GL_LIGHT1                         0x4001
   4.608 -#define GL_LIGHT2                         0x4002
   4.609 -#define GL_LIGHT3                         0x4003
   4.610 -#define GL_LIGHT4                         0x4004
   4.611 -#define GL_LIGHT5                         0x4005
   4.612 -#define GL_LIGHT6                         0x4006
   4.613 -#define GL_LIGHT7                         0x4007
   4.614 -
   4.615 -/* Buffer Objects */
   4.616 -#define GL_ARRAY_BUFFER                   0x8892
   4.617 -#define GL_ELEMENT_ARRAY_BUFFER           0x8893
   4.618 -
   4.619 -#define GL_ARRAY_BUFFER_BINDING               0x8894
   4.620 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING       0x8895
   4.621 -#define GL_VERTEX_ARRAY_BUFFER_BINDING        0x8896
   4.622 -#define GL_NORMAL_ARRAY_BUFFER_BINDING        0x8897
   4.623 -#define GL_COLOR_ARRAY_BUFFER_BINDING         0x8898
   4.624 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
   4.625 -
   4.626 -#define GL_STATIC_DRAW                    0x88E4
   4.627 -#define GL_DYNAMIC_DRAW                   0x88E8
   4.628 -
   4.629 -#define GL_BUFFER_SIZE                    0x8764
   4.630 -#define GL_BUFFER_USAGE                   0x8765
   4.631 -
   4.632 -/* Texture combine + dot3 */
   4.633 -#define GL_SUBTRACT                       0x84E7
   4.634 -#define GL_COMBINE                        0x8570
   4.635 -#define GL_COMBINE_RGB                    0x8571
   4.636 -#define GL_COMBINE_ALPHA                  0x8572
   4.637 -#define GL_RGB_SCALE                      0x8573
   4.638 -#define GL_ADD_SIGNED                     0x8574
   4.639 -#define GL_INTERPOLATE                    0x8575
   4.640 -#define GL_CONSTANT                       0x8576
   4.641 -#define GL_PRIMARY_COLOR                  0x8577
   4.642 -#define GL_PREVIOUS                       0x8578
   4.643 -#define GL_OPERAND0_RGB                   0x8590
   4.644 -#define GL_OPERAND1_RGB                   0x8591
   4.645 -#define GL_OPERAND2_RGB                   0x8592
   4.646 -#define GL_OPERAND0_ALPHA                 0x8598
   4.647 -#define GL_OPERAND1_ALPHA                 0x8599
   4.648 -#define GL_OPERAND2_ALPHA                 0x859A
   4.649 -
   4.650 -#define GL_ALPHA_SCALE                    0x0D1C
   4.651 -
   4.652 -#define GL_SRC0_RGB                       0x8580
   4.653 -#define GL_SRC1_RGB                       0x8581
   4.654 -#define GL_SRC2_RGB                       0x8582
   4.655 -#define GL_SRC0_ALPHA                     0x8588
   4.656 -#define GL_SRC1_ALPHA                     0x8589
   4.657 -#define GL_SRC2_ALPHA                     0x858A
   4.658 -
   4.659 -#define GL_DOT3_RGB                       0x86AE
   4.660 -#define GL_DOT3_RGBA                      0x86AF
   4.661 -
   4.662 -/*------------------------------------------------------------------------*
   4.663 - * required OES extension tokens
   4.664 - *------------------------------------------------------------------------*/
   4.665 -
   4.666 -/* OES_read_format */
   4.667 -#ifndef GL_OES_read_format
   4.668 -#define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES                   0x8B9A
   4.669 -#define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES                 0x8B9B
   4.670 -#endif
   4.671 -
   4.672 -/* GL_OES_compressed_paletted_texture */
   4.673 -#ifndef GL_OES_compressed_paletted_texture
   4.674 -#define GL_PALETTE4_RGB8_OES                                    0x8B90
   4.675 -#define GL_PALETTE4_RGBA8_OES                                   0x8B91
   4.676 -#define GL_PALETTE4_R5_G6_B5_OES                                0x8B92
   4.677 -#define GL_PALETTE4_RGBA4_OES                                   0x8B93
   4.678 -#define GL_PALETTE4_RGB5_A1_OES                                 0x8B94
   4.679 -#define GL_PALETTE8_RGB8_OES                                    0x8B95
   4.680 -#define GL_PALETTE8_RGBA8_OES                                   0x8B96
   4.681 -#define GL_PALETTE8_R5_G6_B5_OES                                0x8B97
   4.682 -#define GL_PALETTE8_RGBA4_OES                                   0x8B98
   4.683 -#define GL_PALETTE8_RGB5_A1_OES                                 0x8B99
   4.684 -#endif
   4.685 -
   4.686 -/* OES_point_size_array */
   4.687 -#ifndef GL_OES_point_size_array
   4.688 -#define GL_POINT_SIZE_ARRAY_OES                                 0x8B9C
   4.689 -#define GL_POINT_SIZE_ARRAY_TYPE_OES                            0x898A
   4.690 -#define GL_POINT_SIZE_ARRAY_STRIDE_OES                          0x898B
   4.691 -#define GL_POINT_SIZE_ARRAY_POINTER_OES                         0x898C
   4.692 -#define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES                  0x8B9F
   4.693 -#endif
   4.694 -
   4.695 -/* GL_OES_point_sprite */
   4.696 -#ifndef GL_OES_point_sprite
   4.697 -#define GL_POINT_SPRITE_OES                                     0x8861
   4.698 -#define GL_COORD_REPLACE_OES                                    0x8862
   4.699 -#endif
   4.700 -
   4.701 -/* GL_OES_draw_texture */
   4.702 -#ifndef GL_OES_draw_texture
   4.703 -#define GL_TEXTURE_CROP_RECT_OES                                0x8B9D
   4.704 -#endif                          /* GL_OES_draw_texture */
   4.705 -
   4.706 -/*  GL_OES_vertex_buffer_object */
   4.707 -#ifndef GL_OES_vertex_buffer_object
   4.708 -#define GL_ARRAY_BUFFER_OES                                     0x8892
   4.709 -#define GL_ELEMENT_ARRAY_BUFFER_OES                             0x8893
   4.710 -#define GL_ARRAY_BUFFER_BINDING_OES                             0x8894
   4.711 -#define GL_ELEMENT_ARRAY_BUFFER_BINDING_OES                     0x8895
   4.712 -#define GL_VERTEX_ARRAY_BUFFER_BINDING_OES                      0x8896
   4.713 -#define GL_NORMAL_ARRAY_BUFFER_BINDING_OES                      0x8897
   4.714 -#define GL_COLOR_ARRAY_BUFFER_BINDING_OES                       0x8898
   4.715 -#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_OES               0x889A
   4.716 -#define GL_STATIC_DRAW_OES                                      0x88E4
   4.717 -#define GL_DYNAMIC_DRAW_OES                                     0x88E8
   4.718 -#define GL_WRITE_ONLY_OES                                       0x88B9
   4.719 -#define GL_BUFFER_SIZE_OES                                      0x8764
   4.720 -#define GL_BUFFER_USAGE_OES                                     0x8765
   4.721 -#define GL_BUFFER_ACCESS_OES                                    0x88BB
   4.722 -#endif                          /* GL_OES_vertex_buffer_object */
   4.723 -
   4.724 -/*************************************************************/
   4.725 -
   4.726 -/* Available only in Common profile */
   4.727 -    GL_API void GL_APIENTRY glAlphaFunc(GLenum func, GLclampf ref);
   4.728 -    GL_API void GL_APIENTRY glClearColor(GLclampf red, GLclampf green,
   4.729 -                                         GLclampf blue, GLclampf alpha);
   4.730 -    GL_API void GL_APIENTRY glClearDepthf(GLclampf depth);
   4.731 -    GL_API void GL_APIENTRY glClipPlanef(GLenum plane,
   4.732 -                                         const GLfloat * equation);
   4.733 -    GL_API void GL_APIENTRY glColor4f(GLfloat red, GLfloat green,
   4.734 -                                      GLfloat blue, GLfloat alpha);
   4.735 -    GL_API void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar);
   4.736 -    GL_API void GL_APIENTRY glFogf(GLenum pname, GLfloat param);
   4.737 -    GL_API void GL_APIENTRY glFogfv(GLenum pname, const GLfloat * params);
   4.738 -    GL_API void GL_APIENTRY glFrustumf(GLfloat left, GLfloat right,
   4.739 -                                       GLfloat bottom, GLfloat top,
   4.740 -                                       GLfloat zNear, GLfloat zFar);
   4.741 -    GL_API void GL_APIENTRY glGetClipPlanef(GLenum pname, GLfloat eqn[4]);
   4.742 -    GL_API void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat * params);
   4.743 -    GL_API void GL_APIENTRY glGetLightfv(GLenum light, GLenum pname,
   4.744 -                                         GLfloat * params);
   4.745 -    GL_API void GL_APIENTRY glGetMaterialfv(GLenum face, GLenum pname,
   4.746 -                                            GLfloat * params);
   4.747 -    GL_API void GL_APIENTRY glGetTexEnvfv(GLenum env, GLenum pname,
   4.748 -                                          GLfloat * params);
   4.749 -    GL_API void GL_APIENTRY glGetTexParameterfv(GLenum target, GLenum pname,
   4.750 -                                                GLfloat * params);
   4.751 -    GL_API void GL_APIENTRY glLightModelf(GLenum pname, GLfloat param);
   4.752 -    GL_API void GL_APIENTRY glLightModelfv(GLenum pname,
   4.753 -                                           const GLfloat * params);
   4.754 -    GL_API void GL_APIENTRY glLightf(GLenum light, GLenum pname,
   4.755 -                                     GLfloat param);
   4.756 -    GL_API void GL_APIENTRY glLightfv(GLenum light, GLenum pname,
   4.757 -                                      const GLfloat * params);
   4.758 -    GL_API void GL_APIENTRY glLineWidth(GLfloat width);
   4.759 -    GL_API void GL_APIENTRY glLoadMatrixf(const GLfloat * m);
   4.760 -    GL_API void GL_APIENTRY glMaterialf(GLenum face, GLenum pname,
   4.761 -                                        GLfloat param);
   4.762 -    GL_API void GL_APIENTRY glMaterialfv(GLenum face, GLenum pname,
   4.763 -                                         const GLfloat * params);
   4.764 -    GL_API void GL_APIENTRY glMultMatrixf(const GLfloat * m);
   4.765 -    GL_API void GL_APIENTRY glMultiTexCoord4f(GLenum target, GLfloat s,
   4.766 -                                              GLfloat t, GLfloat r,
   4.767 -                                              GLfloat q);
   4.768 -    GL_API void GL_APIENTRY glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
   4.769 -    GL_API void GL_APIENTRY glOrthof(GLfloat left, GLfloat right,
   4.770 -                                     GLfloat bottom, GLfloat top,
   4.771 -                                     GLfloat zNear, GLfloat zFar);
   4.772 -    GL_API void GL_APIENTRY glPointParameterf(GLenum pname, GLfloat param);
   4.773 -    GL_API void GL_APIENTRY glPointParameterfv(GLenum pname,
   4.774 -                                               const GLfloat * params);
   4.775 -    GL_API void GL_APIENTRY glPointSize(GLfloat size);
   4.776 -    GL_API void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units);
   4.777 -    GL_API void GL_APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y,
   4.778 -                                      GLfloat z);
   4.779 -    GL_API void GL_APIENTRY glScalef(GLfloat x, GLfloat y, GLfloat z);
   4.780 -    GL_API void GL_APIENTRY glTexEnvf(GLenum target, GLenum pname,
   4.781 -                                      GLfloat param);
   4.782 -    GL_API void GL_APIENTRY glTexEnvfv(GLenum target, GLenum pname,
   4.783 -                                       const GLfloat * params);
   4.784 -    GL_API void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname,
   4.785 -                                            GLfloat param);
   4.786 -    GL_API void GL_APIENTRY glTexParameterfv(GLenum target, GLenum pname,
   4.787 -                                             const GLfloat * params);
   4.788 -    GL_API void GL_APIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z);
   4.789 -
   4.790 -/* Available in both Common and Common-Lite profiles */
   4.791 -    GL_API void GL_APIENTRY glActiveTexture(GLenum texture);
   4.792 -    GL_API void GL_APIENTRY glAlphaFuncx(GLenum func, GLclampx ref);
   4.793 -    GL_API void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer);
   4.794 -    GL_API void GL_APIENTRY glBindTexture(GLenum target, GLuint texture);
   4.795 -    GL_API void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor);
   4.796 -    GL_API void GL_APIENTRY glBufferData(GLenum target, GLsizeiptr size,
   4.797 -                                         const GLvoid * data, GLenum usage);
   4.798 -    GL_API void GL_APIENTRY glBufferSubData(GLenum target, GLintptr offset,
   4.799 -                                            GLsizeiptr size,
   4.800 -                                            const GLvoid * data);
   4.801 -    GL_API void GL_APIENTRY glClear(GLbitfield mask);
   4.802 -    GL_API void GL_APIENTRY glClearColorx(GLclampx red, GLclampx green,
   4.803 -                                          GLclampx blue, GLclampx alpha);
   4.804 -    GL_API void GL_APIENTRY glClearDepthx(GLclampx depth);
   4.805 -    GL_API void GL_APIENTRY glClearStencil(GLint s);
   4.806 -    GL_API void GL_APIENTRY glClientActiveTexture(GLenum texture);
   4.807 -    GL_API void GL_APIENTRY glClipPlanex(GLenum plane,
   4.808 -                                         const GLfixed * equation);
   4.809 -    GL_API void GL_APIENTRY glColor4ub(GLubyte red, GLubyte green,
   4.810 -                                       GLubyte blue, GLubyte alpha);
   4.811 -    GL_API void GL_APIENTRY glColor4x(GLfixed red, GLfixed green,
   4.812 -                                      GLfixed blue, GLfixed alpha);
   4.813 -    GL_API void GL_APIENTRY glColorMask(GLboolean red, GLboolean green,
   4.814 -                                        GLboolean blue, GLboolean alpha);
   4.815 -    GL_API void GL_APIENTRY glColorPointer(GLint size, GLenum type,
   4.816 -                                           GLsizei stride,
   4.817 -                                           const GLvoid * pointer);
   4.818 -    GL_API void GL_APIENTRY glCompressedTexImage2D(GLenum target, GLint level,
   4.819 -                                                   GLenum internalformat,
   4.820 -                                                   GLsizei width,
   4.821 -                                                   GLsizei height,
   4.822 -                                                   GLint border,
   4.823 -                                                   GLsizei imageSize,
   4.824 -                                                   const GLvoid * data);
   4.825 -    GL_API void GL_APIENTRY glCompressedTexSubImage2D(GLenum target,
   4.826 -                                                      GLint level,
   4.827 -                                                      GLint xoffset,
   4.828 -                                                      GLint yoffset,
   4.829 -                                                      GLsizei width,
   4.830 -                                                      GLsizei height,
   4.831 -                                                      GLenum format,
   4.832 -                                                      GLsizei imageSize,
   4.833 -                                                      const GLvoid * data);
   4.834 -    GL_API void GL_APIENTRY glCopyTexImage2D(GLenum target, GLint level,
   4.835 -                                             GLenum internalformat, GLint x,
   4.836 -                                             GLint y, GLsizei width,
   4.837 -                                             GLsizei height, GLint border);
   4.838 -    GL_API void GL_APIENTRY glCopyTexSubImage2D(GLenum target, GLint level,
   4.839 -                                                GLint xoffset, GLint yoffset,
   4.840 -                                                GLint x, GLint y,
   4.841 -                                                GLsizei width,
   4.842 -                                                GLsizei height);
   4.843 -    GL_API void GL_APIENTRY glCullFace(GLenum mode);
   4.844 -    GL_API void GL_APIENTRY glDeleteBuffers(GLsizei n,
   4.845 -                                            const GLuint * buffers);
   4.846 -    GL_API void GL_APIENTRY glDeleteTextures(GLsizei n,
   4.847 -                                             const GLuint * textures);
   4.848 -    GL_API void GL_APIENTRY glDepthFunc(GLenum func);
   4.849 -    GL_API void GL_APIENTRY glDepthMask(GLboolean flag);
   4.850 -    GL_API void GL_APIENTRY glDepthRangex(GLclampx zNear, GLclampx zFar);
   4.851 -    GL_API void GL_APIENTRY glDisable(GLenum cap);
   4.852 -    GL_API void GL_APIENTRY glDisableClientState(GLenum array);
   4.853 -    GL_API void GL_APIENTRY glDrawArrays(GLenum mode, GLint first,
   4.854 -                                         GLsizei count);
   4.855 -    GL_API void GL_APIENTRY glDrawElements(GLenum mode, GLsizei count,
   4.856 -                                           GLenum type,
   4.857 -                                           const GLvoid * indices);
   4.858 -    GL_API void GL_APIENTRY glEnable(GLenum cap);
   4.859 -    GL_API void GL_APIENTRY glEnableClientState(GLenum array);
   4.860 -    GL_API void GL_APIENTRY glFinish(void);
   4.861 -    GL_API void GL_APIENTRY glFlush(void);
   4.862 -    GL_API void GL_APIENTRY glFogx(GLenum pname, GLfixed param);
   4.863 -    GL_API void GL_APIENTRY glFogxv(GLenum pname, const GLfixed * params);
   4.864 -    GL_API void GL_APIENTRY glFrontFace(GLenum mode);
   4.865 -    GL_API void GL_APIENTRY glFrustumx(GLfixed left, GLfixed right,
   4.866 -                                       GLfixed bottom, GLfixed top,
   4.867 -                                       GLfixed zNear, GLfixed zFar);
   4.868 -    GL_API void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean * params);
   4.869 -    GL_API void GL_APIENTRY glGetBufferParameteriv(GLenum target,
   4.870 -                                                   GLenum pname,
   4.871 -                                                   GLint * params);
   4.872 -    GL_API void GL_APIENTRY glGetClipPlanex(GLenum pname, GLfixed eqn[4]);
   4.873 -    GL_API void GL_APIENTRY glGenBuffers(GLsizei n, GLuint * buffers);
   4.874 -    GL_API void GL_APIENTRY glGenTextures(GLsizei n, GLuint * textures);
   4.875 -    GL_API GLenum GL_APIENTRY glGetError(void);
   4.876 -    GL_API void GL_APIENTRY glGetFixedv(GLenum pname, GLfixed * params);
   4.877 -    GL_API void GL_APIENTRY glGetIntegerv(GLenum pname, GLint * params);
   4.878 -    GL_API void GL_APIENTRY glGetLightxv(GLenum light, GLenum pname,
   4.879 -                                         GLfixed * params);
   4.880 -    GL_API void GL_APIENTRY glGetMaterialxv(GLenum face, GLenum pname,
   4.881 -                                            GLfixed * params);
   4.882 -    GL_API void GL_APIENTRY glGetPointerv(GLenum pname, void **params);
   4.883 -    GL_API const GLubyte *GL_APIENTRY glGetString(GLenum name);
   4.884 -    GL_API void GL_APIENTRY glGetTexEnviv(GLenum env, GLenum pname,
   4.885 -                                          GLint * params);
   4.886 -    GL_API void GL_APIENTRY glGetTexEnvxv(GLenum env, GLenum pname,
   4.887 -                                          GLfixed * params);
   4.888 -    GL_API void GL_APIENTRY glGetTexParameteriv(GLenum target, GLenum pname,
   4.889 -                                                GLint * params);
   4.890 -    GL_API void GL_APIENTRY glGetTexParameterxv(GLenum target, GLenum pname,
   4.891 -                                                GLfixed * params);
   4.892 -    GL_API void GL_APIENTRY glHint(GLenum target, GLenum mode);
   4.893 -    GL_API GLboolean GL_APIENTRY glIsBuffer(GLuint buffer);
   4.894 -    GL_API GLboolean GL_APIENTRY glIsEnabled(GLenum cap);
   4.895 -    GL_API GLboolean GL_APIENTRY glIsTexture(GLuint texture);
   4.896 -    GL_API void GL_APIENTRY glLightModelx(GLenum pname, GLfixed param);
   4.897 -    GL_API void GL_APIENTRY glLightModelxv(GLenum pname,
   4.898 -                                           const GLfixed * params);
   4.899 -    GL_API void GL_APIENTRY glLightx(GLenum light, GLenum pname,
   4.900 -                                     GLfixed param);
   4.901 -    GL_API void GL_APIENTRY glLightxv(GLenum light, GLenum pname,
   4.902 -                                      const GLfixed * params);
   4.903 -    GL_API void GL_APIENTRY glLineWidthx(GLfixed width);
   4.904 -    GL_API void GL_APIENTRY glLoadIdentity(void);
   4.905 -    GL_API void GL_APIENTRY glLoadMatrixx(const GLfixed * m);
   4.906 -    GL_API void GL_APIENTRY glLogicOp(GLenum opcode);
   4.907 -    GL_API void GL_APIENTRY glMaterialx(GLenum face, GLenum pname,
   4.908 -                                        GLfixed param);
   4.909 -    GL_API void GL_APIENTRY glMaterialxv(GLenum face, GLenum pname,
   4.910 -                                         const GLfixed * params);
   4.911 -    GL_API void GL_APIENTRY glMatrixMode(GLenum mode);
   4.912 -    GL_API void GL_APIENTRY glMultMatrixx(const GLfixed * m);
   4.913 -    GL_API void GL_APIENTRY glMultiTexCoord4x(GLenum target, GLfixed s,
   4.914 -                                              GLfixed t, GLfixed r,
   4.915 -                                              GLfixed q);
   4.916 -    GL_API void GL_APIENTRY glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz);
   4.917 -    GL_API void GL_APIENTRY glNormalPointer(GLenum type, GLsizei stride,
   4.918 -                                            const GLvoid * pointer);
   4.919 -    GL_API void GL_APIENTRY glOrthox(GLfixed left, GLfixed right,
   4.920 -                                     GLfixed bottom, GLfixed top,
   4.921 -                                     GLfixed zNear, GLfixed zFar);
   4.922 -    GL_API void GL_APIENTRY glPixelStorei(GLenum pname, GLint param);
   4.923 -    GL_API void GL_APIENTRY glPointParameterx(GLenum pname, GLfixed param);
   4.924 -    GL_API void GL_APIENTRY glPointParameterxv(GLenum pname,
   4.925 -                                               const GLfixed * params);
   4.926 -    GL_API void GL_APIENTRY glPointSizex(GLfixed size);
   4.927 -    GL_API void GL_APIENTRY glPolygonOffsetx(GLfixed factor, GLfixed units);
   4.928 -    GL_API void GL_APIENTRY glPopMatrix(void);
   4.929 -    GL_API void GL_APIENTRY glPushMatrix(void);
   4.930 -    GL_API void GL_APIENTRY glReadPixels(GLint x, GLint y, GLsizei width,
   4.931 -                                         GLsizei height, GLenum format,
   4.932 -                                         GLenum type, GLvoid * pixels);
   4.933 -    GL_API void GL_APIENTRY glRotatex(GLfixed angle, GLfixed x, GLfixed y,
   4.934 -                                      GLfixed z);
   4.935 -    GL_API void GL_APIENTRY glSampleCoverage(GLclampf value,
   4.936 -                                             GLboolean invert);
   4.937 -    GL_API void GL_APIENTRY glSampleCoveragex(GLclampx value,
   4.938 -                                              GLboolean invert);
   4.939 -    GL_API void GL_APIENTRY glScalex(GLfixed x, GLfixed y, GLfixed z);
   4.940 -    GL_API void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width,
   4.941 -                                      GLsizei height);
   4.942 -    GL_API void GL_APIENTRY glShadeModel(GLenum mode);
   4.943 -    GL_API void GL_APIENTRY glStencilFunc(GLenum func, GLint ref,
   4.944 -                                          GLuint mask);
   4.945 -    GL_API void GL_APIENTRY glStencilMask(GLuint mask);
   4.946 -    GL_API void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail,
   4.947 -                                        GLenum zpass);
   4.948 -    GL_API void GL_APIENTRY glTexCoordPointer(GLint size, GLenum type,
   4.949 -                                              GLsizei stride,
   4.950 -                                              const GLvoid * pointer);
   4.951 -    GL_API void GL_APIENTRY glTexEnvi(GLenum target, GLenum pname,
   4.952 -                                      GLint param);
   4.953 -    GL_API void GL_APIENTRY glTexEnvx(GLenum target, GLenum pname,
   4.954 -                                      GLfixed param);
   4.955 -    GL_API void GL_APIENTRY glTexEnviv(GLenum target, GLenum pname,
   4.956 -                                       const GLint * params);
   4.957 -    GL_API void GL_APIENTRY glTexEnvxv(GLenum target, GLenum pname,
   4.958 -                                       const GLfixed * params);
   4.959 -    GL_API void GL_APIENTRY glTexImage2D(GLenum target, GLint level,
   4.960 -                                         GLint internalformat, GLsizei width,
   4.961 -                                         GLsizei height, GLint border,
   4.962 -                                         GLenum format, GLenum type,
   4.963 -                                         const GLvoid * pixels);
   4.964 -    GL_API void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname,
   4.965 -                                            GLint param);
   4.966 -    GL_API void GL_APIENTRY glTexParameterx(GLenum target, GLenum pname,
   4.967 -                                            GLfixed param);
   4.968 -    GL_API void GL_APIENTRY glTexParameteriv(GLenum target, GLenum pname,
   4.969 -                                             const GLint * params);
   4.970 -    GL_API void GL_APIENTRY glTexParameterxv(GLenum target, GLenum pname,
   4.971 -                                             const GLfixed * params);
   4.972 -    GL_API void GL_APIENTRY glTexSubImage2D(GLenum target, GLint level,
   4.973 -                                            GLint xoffset, GLint yoffset,
   4.974 -                                            GLsizei width, GLsizei height,
   4.975 -                                            GLenum format, GLenum type,
   4.976 -                                            const GLvoid * pixels);
   4.977 -    GL_API void GL_APIENTRY glTranslatex(GLfixed x, GLfixed y, GLfixed z);
   4.978 -    GL_API void GL_APIENTRY glVertexPointer(GLint size, GLenum type,
   4.979 -                                            GLsizei stride,
   4.980 -                                            const GLvoid * pointer);
   4.981 -    GL_API void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width,
   4.982 -                                       GLsizei height);
   4.983 -
   4.984 -/*------------------------------------------------------------------------*
   4.985 - * Required OES extension functions
   4.986 - *------------------------------------------------------------------------*/
   4.987 -
   4.988 -/* GL_OES_read_format */
   4.989 -#ifndef GL_OES_read_format
   4.990 -#define GL_OES_read_format 1
   4.991 -#endif
   4.992 -
   4.993 -/* GL_OES_compressed_paletted_texture */
   4.994 -#ifndef GL_OES_compressed_paletted_texture
   4.995 -#define GL_OES_compressed_paletted_texture 1
   4.996 -#endif
   4.997 -
   4.998 -/* GL_OES_point_size_array */
   4.999 -#ifndef GL_OES_point_size_array
  4.1000 -#define GL_OES_point_size_array 1
  4.1001 -    GL_API void GL_APIENTRY glPointSizePointerOES(GLenum type, GLsizei stride,
  4.1002 -                                                  const GLvoid * pointer);
  4.1003 -#endif
  4.1004 -
  4.1005 -/* GL_OES_query_matrix */
  4.1006 -#ifndef GL_OES_query_matrix
  4.1007 -#define GL_OES_query_matrix 1
  4.1008 -    GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES(GLfixed mantissa[16],
  4.1009 -                                                    GLint exponent[16]);
  4.1010 -#endif                          /* GL_OES_query_matrix */
  4.1011 -
  4.1012 -/* GL_OES_point_sprite */
  4.1013 -#ifndef GL_OES_point_sprite
  4.1014 -#define GL_OES_point_sprite 1
  4.1015 -#endif
  4.1016 -
  4.1017 -/* GL_OES_draw_texture */
  4.1018 -#ifndef GL_OES_draw_texture
  4.1019 -#define GL_OES_draw_texture 1
  4.1020 -    GL_API void GL_APIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z,
  4.1021 -                                          GLshort width, GLshort height);
  4.1022 -    GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z,
  4.1023 -                                          GLint width, GLint height);
  4.1024 -    GL_API void GL_APIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z,
  4.1025 -                                          GLfixed width, GLfixed height);
  4.1026 -    GL_API void GL_APIENTRY glDrawTexsvOES(const GLshort * coords);
  4.1027 -    GL_API void GL_APIENTRY glDrawTexivOES(const GLint * coords);
  4.1028 -    GL_API void GL_APIENTRY glDrawTexxvOES(const GLfixed * coords);
  4.1029 -    GL_API void GL_APIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z,
  4.1030 -                                          GLfloat width, GLfloat height);
  4.1031 -    GL_API void GL_APIENTRY glDrawTexfvOES(const GLfloat * coords);
  4.1032 -#endif                          /* GL_OES_draw_texture */
  4.1033 -
  4.1034 -/* GL_OES_single_precision */
  4.1035 -#ifndef GL_OES_single_precision
  4.1036 -#define GL_OES_single_precision 1
  4.1037 -    GL_API void GL_APIENTRY glDepthRangefOES(GLclampf zNear, GLclampf zFar);
  4.1038 -    GL_API void GL_APIENTRY glFrustumfOES(GLfloat left, GLfloat right,
  4.1039 -                                          GLfloat bottom, GLfloat top,
  4.1040 -                                          GLfloat zNear, GLfloat zFar);
  4.1041 -    GL_API void GL_APIENTRY glOrthofOES(GLfloat left, GLfloat right,
  4.1042 -                                        GLfloat bottom, GLfloat top,
  4.1043 -                                        GLfloat zNear, GLfloat zFar);
  4.1044 -    GL_API void GL_APIENTRY glClipPlanefOES(GLenum plane,
  4.1045 -                                            const GLfloat * equation);
  4.1046 -    GL_API void GL_APIENTRY glGetClipPlanefOES(GLenum pname, GLfloat eqn[4]);
  4.1047 -    GL_API void GL_APIENTRY glClearDepthfOES(GLclampf depth);
  4.1048 -#endif                          /* GL_OES_single_precision */
  4.1049 -
  4.1050 -/* GL_OES_vertex_buffer_object */
  4.1051 -#ifndef GL_OES_vertex_buffer_object
  4.1052 -#define GL_OES_vertex_buffer_object 1
  4.1053 -    GL_API void APIENTRY glBindBufferOES(GLenum, GLuint);
  4.1054 -    GL_API void APIENTRY glDeleteBuffersOES(GLsizei, const GLuint *);
  4.1055 -    GL_API void APIENTRY glGenBuffersOES(GLsizei, GLuint *);
  4.1056 -    GL_API GLboolean APIENTRY glIsBufferOES(GLuint);
  4.1057 -    GL_API void APIENTRY glBufferDataOES(GLenum, GLsizeiptr, const GLvoid *,
  4.1058 -                                         GLenum);
  4.1059 -    GL_API void APIENTRY glBufferSubDataOES(GLenum, GLintptr, GLsizeiptr,
  4.1060 -                                            const GLvoid *);
  4.1061 -    GL_API void APIENTRY glGetBufferParameterivOES(GLenum, GLenum, GLint *);
  4.1062 -#endif                          /* GL_OES_vertex_buffer_object */
  4.1063 -
  4.1064 -#ifdef __cplusplus
  4.1065 -}
  4.1066 -#endif
  4.1067 -
  4.1068 -#endif                          /* __gles_h_ */
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/include/SDL_opengles2.h	Sun Feb 06 02:35:14 2011 -0800
     5.3 @@ -0,0 +1,39 @@
     5.4 +/*
     5.5 +    SDL - Simple DirectMedia Layer
     5.6 +    Copyright (C) 1997-2010 Sam Lantinga
     5.7 +
     5.8 +    This library is free software; you can redistribute it and/or
     5.9 +    modify it under the terms of the GNU Lesser General Public
    5.10 +    License as published by the Free Software Foundation; either
    5.11 +    version 2.1 of the License, or (at your option) any later version.
    5.12 +
    5.13 +    This library is distributed in the hope that it will be useful,
    5.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    5.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    5.16 +    Lesser General Public License for more details.
    5.17 +
    5.18 +    You should have received a copy of the GNU Lesser General Public
    5.19 +    License along with this library; if not, write to the Free Software
    5.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    5.21 +
    5.22 +    Sam Lantinga
    5.23 +    slouken@libsdl.org
    5.24 +*/
    5.25 +
    5.26 +/**
    5.27 + *  \file SDL_opengles.h
    5.28 + *  
    5.29 + *  This is a simple file to encapsulate the OpenGL ES 2.0 API headers.
    5.30 + */
    5.31 +
    5.32 +#ifdef __IPHONEOS__
    5.33 +#include <OpenGLES/ES2/gl.h>
    5.34 +#include <OpenGLES/ES2/glext.h>
    5.35 +#else
    5.36 +#include <GLES2/gl2.h>
    5.37 +#include <GLES2/gl2ext.h>
    5.38 +#endif
    5.39 +
    5.40 +#ifndef APIENTRY
    5.41 +#define APIENTRY
    5.42 +#endif
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/src/render/opengl/SDL_glfuncs.h	Sun Feb 06 02:35:14 2011 -0800
     6.3 @@ -0,0 +1,456 @@
     6.4 +/* list of OpenGL functions sorted alphabetically
     6.5 +   If you need to use a GL function from the SDL video subsystem,
     6.6 +   change it's entry from SDL_PROC_UNUSED to SDL_PROC and rebuild.
     6.7 +*/
     6.8 +#define SDL_PROC_UNUSED(ret,func,params)
     6.9 +
    6.10 +SDL_PROC_UNUSED(void, glAccum, (GLenum, GLfloat))
    6.11 +SDL_PROC_UNUSED(void, glAlphaFunc, (GLenum, GLclampf))
    6.12 +SDL_PROC_UNUSED(GLboolean, glAreTexturesResident,
    6.13 +                (GLsizei, const GLuint *, GLboolean *))
    6.14 +SDL_PROC_UNUSED(void, glArrayElement, (GLint))
    6.15 +SDL_PROC(void, glBegin, (GLenum))
    6.16 +SDL_PROC(void, glBindTexture, (GLenum, GLuint))
    6.17 +SDL_PROC_UNUSED(void, glBitmap,
    6.18 +                (GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat,
    6.19 +                 const GLubyte *))
    6.20 +SDL_PROC(void, glBlendFunc, (GLenum, GLenum))
    6.21 +SDL_PROC_UNUSED(void, glCallList, (GLuint))
    6.22 +SDL_PROC_UNUSED(void, glCallLists, (GLsizei, GLenum, const GLvoid *))
    6.23 +SDL_PROC(void, glClear, (GLbitfield))
    6.24 +SDL_PROC_UNUSED(void, glClearAccum, (GLfloat, GLfloat, GLfloat, GLfloat))
    6.25 +SDL_PROC(void, glClearColor, (GLclampf, GLclampf, GLclampf, GLclampf))
    6.26 +SDL_PROC_UNUSED(void, glClearDepth, (GLclampd))
    6.27 +SDL_PROC_UNUSED(void, glClearIndex, (GLfloat))
    6.28 +SDL_PROC_UNUSED(void, glClearStencil, (GLint))
    6.29 +SDL_PROC_UNUSED(void, glClipPlane, (GLenum, const GLdouble *))
    6.30 +SDL_PROC_UNUSED(void, glColor3b, (GLbyte, GLbyte, GLbyte))
    6.31 +SDL_PROC_UNUSED(void, glColor3bv, (const GLbyte *))
    6.32 +SDL_PROC_UNUSED(void, glColor3d, (GLdouble, GLdouble, GLdouble))
    6.33 +SDL_PROC_UNUSED(void, glColor3dv, (const GLdouble *))
    6.34 +SDL_PROC_UNUSED(void, glColor3f, (GLfloat, GLfloat, GLfloat))
    6.35 +SDL_PROC_UNUSED(void, glColor3fv, (const GLfloat *))
    6.36 +SDL_PROC_UNUSED(void, glColor3i, (GLint, GLint, GLint))
    6.37 +SDL_PROC_UNUSED(void, glColor3iv, (const GLint *))
    6.38 +SDL_PROC_UNUSED(void, glColor3s, (GLshort, GLshort, GLshort))
    6.39 +SDL_PROC_UNUSED(void, glColor3sv, (const GLshort *))
    6.40 +SDL_PROC_UNUSED(void, glColor3ub, (GLubyte, GLubyte, GLubyte))
    6.41 +SDL_PROC_UNUSED(void, glColor3ubv, (const GLubyte *))
    6.42 +SDL_PROC_UNUSED(void, glColor3ui, (GLuint, GLuint, GLuint))
    6.43 +SDL_PROC_UNUSED(void, glColor3uiv, (const GLuint *))
    6.44 +SDL_PROC_UNUSED(void, glColor3us, (GLushort, GLushort, GLushort))
    6.45 +SDL_PROC_UNUSED(void, glColor3usv, (const GLushort *))
    6.46 +SDL_PROC_UNUSED(void, glColor4b, (GLbyte, GLbyte, GLbyte, GLbyte))
    6.47 +SDL_PROC_UNUSED(void, glColor4bv, (const GLbyte *))
    6.48 +SDL_PROC_UNUSED(void, glColor4d, (GLdouble, GLdouble, GLdouble, GLdouble))
    6.49 +SDL_PROC_UNUSED(void, glColor4dv, (const GLdouble *))
    6.50 +SDL_PROC(void, glColor4f, (GLfloat, GLfloat, GLfloat, GLfloat))
    6.51 +SDL_PROC_UNUSED(void, glColor4fv, (const GLfloat *))
    6.52 +SDL_PROC_UNUSED(void, glColor4i, (GLint, GLint, GLint, GLint))
    6.53 +SDL_PROC_UNUSED(void, glColor4iv, (const GLint *))
    6.54 +SDL_PROC_UNUSED(void, glColor4s, (GLshort, GLshort, GLshort, GLshort))
    6.55 +SDL_PROC_UNUSED(void, glColor4sv, (const GLshort *))
    6.56 +SDL_PROC_UNUSED(void, glColor4ub,
    6.57 +                (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha))
    6.58 +SDL_PROC_UNUSED(void, glColor4ubv, (const GLubyte * v))
    6.59 +SDL_PROC_UNUSED(void, glColor4ui,
    6.60 +                (GLuint red, GLuint green, GLuint blue, GLuint alpha))
    6.61 +SDL_PROC_UNUSED(void, glColor4uiv, (const GLuint * v))
    6.62 +SDL_PROC_UNUSED(void, glColor4us,
    6.63 +                (GLushort red, GLushort green, GLushort blue, GLushort alpha))
    6.64 +SDL_PROC_UNUSED(void, glColor4usv, (const GLushort * v))
    6.65 +SDL_PROC_UNUSED(void, glColorMask,
    6.66 +                (GLboolean red, GLboolean green, GLboolean blue,
    6.67 +                 GLboolean alpha))
    6.68 +SDL_PROC_UNUSED(void, glColorMaterial, (GLenum face, GLenum mode))
    6.69 +SDL_PROC_UNUSED(void, glColorPointer,
    6.70 +                (GLint size, GLenum type, GLsizei stride,
    6.71 +                 const GLvoid * pointer))
    6.72 +SDL_PROC_UNUSED(void, glCopyPixels,
    6.73 +                (GLint x, GLint y, GLsizei width, GLsizei height,
    6.74 +                 GLenum type))
    6.75 +SDL_PROC_UNUSED(void, glCopyTexImage1D,
    6.76 +                (GLenum target, GLint level, GLenum internalFormat, GLint x,
    6.77 +                 GLint y, GLsizei width, GLint border))
    6.78 +SDL_PROC_UNUSED(void, glCopyTexImage2D,
    6.79 +                (GLenum target, GLint level, GLenum internalFormat, GLint x,
    6.80 +                 GLint y, GLsizei width, GLsizei height, GLint border))
    6.81 +SDL_PROC_UNUSED(void, glCopyTexSubImage1D,
    6.82 +                (GLenum target, GLint level, GLint xoffset, GLint x, GLint y,
    6.83 +                 GLsizei width))
    6.84 +SDL_PROC_UNUSED(void, glCopyTexSubImage2D,
    6.85 +                (GLenum target, GLint level, GLint xoffset, GLint yoffset,
    6.86 +                 GLint x, GLint y, GLsizei width, GLsizei height))
    6.87 +SDL_PROC_UNUSED(void, glCullFace, (GLenum mode))
    6.88 +SDL_PROC_UNUSED(void, glDeleteLists, (GLuint list, GLsizei range))
    6.89 +SDL_PROC(void, glDeleteTextures, (GLsizei n, const GLuint * textures))
    6.90 +SDL_PROC_UNUSED(void, glDepthFunc, (GLenum func))
    6.91 +SDL_PROC_UNUSED(void, glDepthMask, (GLboolean flag))
    6.92 +SDL_PROC_UNUSED(void, glDepthRange, (GLclampd zNear, GLclampd zFar))
    6.93 +SDL_PROC(void, glDisable, (GLenum cap))
    6.94 +SDL_PROC_UNUSED(void, glDisableClientState, (GLenum array))
    6.95 +SDL_PROC_UNUSED(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count))
    6.96 +SDL_PROC_UNUSED(void, glDrawBuffer, (GLenum mode))
    6.97 +SDL_PROC_UNUSED(void, glDrawElements,
    6.98 +                (GLenum mode, GLsizei count, GLenum type,
    6.99 +                 const GLvoid * indices))
   6.100 +SDL_PROC(void, glDrawPixels,
   6.101 +         (GLsizei width, GLsizei height, GLenum format, GLenum type,
   6.102 +          const GLvoid * pixels))
   6.103 +SDL_PROC_UNUSED(void, glEdgeFlag, (GLboolean flag))
   6.104 +SDL_PROC_UNUSED(void, glEdgeFlagPointer,
   6.105 +                (GLsizei stride, const GLvoid * pointer))
   6.106 +SDL_PROC_UNUSED(void, glEdgeFlagv, (const GLboolean * flag))
   6.107 +SDL_PROC(void, glEnable, (GLenum cap))
   6.108 +SDL_PROC_UNUSED(void, glEnableClientState, (GLenum array))
   6.109 +SDL_PROC(void, glEnd, (void))
   6.110 +SDL_PROC_UNUSED(void, glEndList, (void))
   6.111 +SDL_PROC_UNUSED(void, glEvalCoord1d, (GLdouble u))
   6.112 +SDL_PROC_UNUSED(void, glEvalCoord1dv, (const GLdouble * u))
   6.113 +SDL_PROC_UNUSED(void, glEvalCoord1f, (GLfloat u))
   6.114 +SDL_PROC_UNUSED(void, glEvalCoord1fv, (const GLfloat * u))
   6.115 +SDL_PROC_UNUSED(void, glEvalCoord2d, (GLdouble u, GLdouble v))
   6.116 +SDL_PROC_UNUSED(void, glEvalCoord2dv, (const GLdouble * u))
   6.117 +SDL_PROC_UNUSED(void, glEvalCoord2f, (GLfloat u, GLfloat v))
   6.118 +SDL_PROC_UNUSED(void, glEvalCoord2fv, (const GLfloat * u))
   6.119 +SDL_PROC_UNUSED(void, glEvalMesh1, (GLenum mode, GLint i1, GLint i2))
   6.120 +SDL_PROC_UNUSED(void, glEvalMesh2,
   6.121 +                (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2))
   6.122 +SDL_PROC_UNUSED(void, glEvalPoint1, (GLint i))
   6.123 +SDL_PROC_UNUSED(void, glEvalPoint2, (GLint i, GLint j))
   6.124 +SDL_PROC_UNUSED(void, glFeedbackBuffer,
   6.125 +                (GLsizei size, GLenum type, GLfloat * buffer))
   6.126 +SDL_PROC_UNUSED(void, glFinish, (void))
   6.127 +SDL_PROC_UNUSED(void, glFlush, (void))
   6.128 +SDL_PROC_UNUSED(void, glFogf, (GLenum pname, GLfloat param))
   6.129 +SDL_PROC_UNUSED(void, glFogfv, (GLenum pname, const GLfloat * params))
   6.130 +SDL_PROC_UNUSED(void, glFogi, (GLenum pname, GLint param))
   6.131 +SDL_PROC_UNUSED(void, glFogiv, (GLenum pname, const GLint * params))
   6.132 +SDL_PROC_UNUSED(void, glFrontFace, (GLenum mode))
   6.133 +SDL_PROC_UNUSED(void, glFrustum,
   6.134 +                (GLdouble left, GLdouble right, GLdouble bottom,
   6.135 +                 GLdouble top, GLdouble zNear, GLdouble zFar))
   6.136 +SDL_PROC_UNUSED(GLuint, glGenLists, (GLsizei range))
   6.137 +SDL_PROC(void, glGenTextures, (GLsizei n, GLuint * textures))
   6.138 +SDL_PROC_UNUSED(void, glGetBooleanv, (GLenum pname, GLboolean * params))
   6.139 +SDL_PROC_UNUSED(void, glGetClipPlane, (GLenum plane, GLdouble * equation))
   6.140 +SDL_PROC_UNUSED(void, glGetDoublev, (GLenum pname, GLdouble * params))
   6.141 +SDL_PROC(GLenum, glGetError, (void))
   6.142 +SDL_PROC_UNUSED(void, glGetFloatv, (GLenum pname, GLfloat * params))
   6.143 +SDL_PROC(void, glGetIntegerv, (GLenum pname, GLint * params))
   6.144 +SDL_PROC_UNUSED(void, glGetLightfv,
   6.145 +                (GLenum light, GLenum pname, GLfloat * params))
   6.146 +SDL_PROC_UNUSED(void, glGetLightiv,
   6.147 +                (GLenum light, GLenum pname, GLint * params))
   6.148 +SDL_PROC_UNUSED(void, glGetMapdv, (GLenum target, GLenum query, GLdouble * v))
   6.149 +SDL_PROC_UNUSED(void, glGetMapfv, (GLenum target, GLenum query, GLfloat * v))
   6.150 +SDL_PROC_UNUSED(void, glGetMapiv, (GLenum target, GLenum query, GLint * v))
   6.151 +SDL_PROC_UNUSED(void, glGetMaterialfv,
   6.152 +                (GLenum face, GLenum pname, GLfloat * params))
   6.153 +SDL_PROC_UNUSED(void, glGetMaterialiv,
   6.154 +                (GLenum face, GLenum pname, GLint * params))
   6.155 +SDL_PROC_UNUSED(void, glGetPixelMapfv, (GLenum map, GLfloat * values))
   6.156 +SDL_PROC_UNUSED(void, glGetPixelMapuiv, (GLenum map, GLuint * values))
   6.157 +SDL_PROC_UNUSED(void, glGetPixelMapusv, (GLenum map, GLushort * values))
   6.158 +SDL_PROC_UNUSED(void, glGetPointerv, (GLenum pname, GLvoid * *params))
   6.159 +SDL_PROC_UNUSED(void, glGetPolygonStipple, (GLubyte * mask))
   6.160 +SDL_PROC(const GLubyte *, glGetString, (GLenum name))
   6.161 +SDL_PROC_UNUSED(void, glGetTexEnvfv,
   6.162 +                (GLenum target, GLenum pname, GLfloat * params))
   6.163 +SDL_PROC_UNUSED(void, glGetTexEnviv,
   6.164 +                (GLenum target, GLenum pname, GLint * params))
   6.165 +SDL_PROC_UNUSED(void, glGetTexGendv,
   6.166 +                (GLenum coord, GLenum pname, GLdouble * params))
   6.167 +SDL_PROC_UNUSED(void, glGetTexGenfv,
   6.168 +                (GLenum coord, GLenum pname, GLfloat * params))
   6.169 +SDL_PROC_UNUSED(void, glGetTexGeniv,
   6.170 +                (GLenum coord, GLenum pname, GLint * params))
   6.171 +SDL_PROC_UNUSED(void, glGetTexImage,
   6.172 +                (GLenum target, GLint level, GLenum format, GLenum type,
   6.173 +                 GLvoid * pixels))
   6.174 +SDL_PROC_UNUSED(void, glGetTexLevelParameterfv,
   6.175 +                (GLenum target, GLint level, GLenum pname, GLfloat * params))
   6.176 +SDL_PROC_UNUSED(void, glGetTexLevelParameteriv,
   6.177 +                (GLenum target, GLint level, GLenum pname, GLint * params))
   6.178 +SDL_PROC_UNUSED(void, glGetTexParameterfv,
   6.179 +                (GLenum target, GLenum pname, GLfloat * params))
   6.180 +SDL_PROC_UNUSED(void, glGetTexParameteriv,
   6.181 +                (GLenum target, GLenum pname, GLint * params))
   6.182 +SDL_PROC_UNUSED(void, glHint, (GLenum target, GLenum mode))
   6.183 +SDL_PROC_UNUSED(void, glIndexMask, (GLuint mask))
   6.184 +SDL_PROC_UNUSED(void, glIndexPointer,
   6.185 +                (GLenum type, GLsizei stride, const GLvoid * pointer))
   6.186 +SDL_PROC_UNUSED(void, glIndexd, (GLdouble c))
   6.187 +SDL_PROC_UNUSED(void, glIndexdv, (const GLdouble * c))
   6.188 +SDL_PROC_UNUSED(void, glIndexf, (GLfloat c))
   6.189 +SDL_PROC_UNUSED(void, glIndexfv, (const GLfloat * c))
   6.190 +SDL_PROC_UNUSED(void, glIndexi, (GLint c))
   6.191 +SDL_PROC_UNUSED(void, glIndexiv, (const GLint * c))
   6.192 +SDL_PROC_UNUSED(void, glIndexs, (GLshort c))
   6.193 +SDL_PROC_UNUSED(void, glIndexsv, (const GLshort * c))
   6.194 +SDL_PROC_UNUSED(void, glIndexub, (GLubyte c))
   6.195 +SDL_PROC_UNUSED(void, glIndexubv, (const GLubyte * c))
   6.196 +SDL_PROC_UNUSED(void, glInitNames, (void))
   6.197 +SDL_PROC_UNUSED(void, glInterleavedArrays,
   6.198 +                (GLenum format, GLsizei stride, const GLvoid * pointer))
   6.199 +SDL_PROC_UNUSED(GLboolean, glIsEnabled, (GLenum cap))
   6.200 +SDL_PROC_UNUSED(GLboolean, glIsList, (GLuint list))
   6.201 +SDL_PROC_UNUSED(GLboolean, glIsTexture, (GLuint texture))
   6.202 +SDL_PROC_UNUSED(void, glLightModelf, (GLenum pname, GLfloat param))
   6.203 +SDL_PROC_UNUSED(void, glLightModelfv, (GLenum pname, const GLfloat * params))
   6.204 +SDL_PROC_UNUSED(void, glLightModeli, (GLenum pname, GLint param))
   6.205 +SDL_PROC_UNUSED(void, glLightModeliv, (GLenum pname, const GLint * params))
   6.206 +SDL_PROC_UNUSED(void, glLightf, (GLenum light, GLenum pname, GLfloat param))
   6.207 +SDL_PROC_UNUSED(void, glLightfv,
   6.208 +                (GLenum light, GLenum pname, const GLfloat * params))
   6.209 +SDL_PROC_UNUSED(void, glLighti, (GLenum light, GLenum pname, GLint param))
   6.210 +SDL_PROC_UNUSED(void, glLightiv,
   6.211 +                (GLenum light, GLenum pname, const GLint * params))
   6.212 +SDL_PROC_UNUSED(void, glLineStipple, (GLint factor, GLushort pattern))
   6.213 +SDL_PROC(void, glLineWidth, (GLfloat width))
   6.214 +SDL_PROC_UNUSED(void, glListBase, (GLuint base))
   6.215 +SDL_PROC(void, glLoadIdentity, (void))
   6.216 +SDL_PROC_UNUSED(void, glLoadMatrixd, (const GLdouble * m))
   6.217 +SDL_PROC_UNUSED(void, glLoadMatrixf, (const GLfloat * m))
   6.218 +SDL_PROC_UNUSED(void, glLoadName, (GLuint name))
   6.219 +SDL_PROC_UNUSED(void, glLogicOp, (GLenum opcode))
   6.220 +SDL_PROC_UNUSED(void, glMap1d,
   6.221 +                (GLenum target, GLdouble u1, GLdouble u2, GLint stride,
   6.222 +                 GLint order, const GLdouble * points))
   6.223 +SDL_PROC_UNUSED(void, glMap1f,
   6.224 +                (GLenum target, GLfloat u1, GLfloat u2, GLint stride,
   6.225 +                 GLint order, const GLfloat * points))
   6.226 +SDL_PROC_UNUSED(void, glMap2d,
   6.227 +                (GLenum target, GLdouble u1, GLdouble u2, GLint ustride,
   6.228 +                 GLint uorder, GLdouble v1, GLdouble v2, GLint vstride,
   6.229 +                 GLint vorder, const GLdouble * points))
   6.230 +SDL_PROC_UNUSED(void, glMap2f,
   6.231 +                (GLenum target, GLfloat u1, GLfloat u2, GLint ustride,
   6.232 +                 GLint uorder, GLfloat v1, GLfloat v2, GLint vstride,
   6.233 +                 GLint vorder, const GLfloat * points))
   6.234 +SDL_PROC_UNUSED(void, glMapGrid1d, (GLint un, GLdouble u1, GLdouble u2))
   6.235 +SDL_PROC_UNUSED(void, glMapGrid1f, (GLint un, GLfloat u1, GLfloat u2))
   6.236 +SDL_PROC_UNUSED(void, glMapGrid2d,
   6.237 +                (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1,
   6.238 +                 GLdouble v2))
   6.239 +SDL_PROC_UNUSED(void, glMapGrid2f,
   6.240 +                (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1,
   6.241 +                 GLfloat v2))
   6.242 +SDL_PROC_UNUSED(void, glMaterialf, (GLenum face, GLenum pname, GLfloat param))
   6.243 +SDL_PROC_UNUSED(void, glMaterialfv,
   6.244 +                (GLenum face, GLenum pname, const GLfloat * params))
   6.245 +SDL_PROC_UNUSED(void, glMateriali, (GLenum face, GLenum pname, GLint param))
   6.246 +SDL_PROC_UNUSED(void, glMaterialiv,
   6.247 +                (GLenum face, GLenum pname, const GLint * params))
   6.248 +SDL_PROC(void, glMatrixMode, (GLenum mode))
   6.249 +SDL_PROC_UNUSED(void, glMultMatrixd, (const GLdouble * m))
   6.250 +SDL_PROC_UNUSED(void, glMultMatrixf, (const GLfloat * m))
   6.251 +SDL_PROC_UNUSED(void, glNewList, (GLuint list, GLenum mode))
   6.252 +SDL_PROC_UNUSED(void, glNormal3b, (GLbyte nx, GLbyte ny, GLbyte nz))
   6.253 +SDL_PROC_UNUSED(void, glNormal3bv, (const GLbyte * v))
   6.254 +SDL_PROC_UNUSED(void, glNormal3d, (GLdouble nx, GLdouble ny, GLdouble nz))
   6.255 +SDL_PROC_UNUSED(void, glNormal3dv, (const GLdouble * v))
   6.256 +SDL_PROC_UNUSED(void, glNormal3f, (GLfloat nx, GLfloat ny, GLfloat nz))
   6.257 +SDL_PROC_UNUSED(void, glNormal3fv, (const GLfloat * v))
   6.258 +SDL_PROC_UNUSED(void, glNormal3i, (GLint nx, GLint ny, GLint nz))
   6.259 +SDL_PROC_UNUSED(void, glNormal3iv, (const GLint * v))
   6.260 +SDL_PROC_UNUSED(void, glNormal3s, (GLshort nx, GLshort ny, GLshort nz))
   6.261 +SDL_PROC_UNUSED(void, glNormal3sv, (const GLshort * v))
   6.262 +SDL_PROC_UNUSED(void, glNormalPointer,
   6.263 +                (GLenum type, GLsizei stride, const GLvoid * pointer))
   6.264 +SDL_PROC(void, glOrtho,
   6.265 +         (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top,
   6.266 +          GLdouble zNear, GLdouble zFar))
   6.267 +SDL_PROC_UNUSED(void, glPassThrough, (GLfloat token))
   6.268 +SDL_PROC_UNUSED(void, glPixelMapfv,
   6.269 +                (GLenum map, GLsizei mapsize, const GLfloat * values))
   6.270 +SDL_PROC_UNUSED(void, glPixelMapuiv,
   6.271 +                (GLenum map, GLsizei mapsize, const GLuint * values))
   6.272 +SDL_PROC_UNUSED(void, glPixelMapusv,
   6.273 +                (GLenum map, GLsizei mapsize, const GLushort * values))
   6.274 +SDL_PROC_UNUSED(void, glPixelStoref, (GLenum pname, GLfloat param))
   6.275 +SDL_PROC(void, glPixelStorei, (GLenum pname, GLint param))
   6.276 +SDL_PROC_UNUSED(void, glPixelTransferf, (GLenum pname, GLfloat param))
   6.277 +SDL_PROC_UNUSED(void, glPixelTransferi, (GLenum pname, GLint param))
   6.278 +SDL_PROC_UNUSED(void, glPixelZoom, (GLfloat xfactor, GLfloat yfactor))
   6.279 +SDL_PROC(void, glPointSize, (GLfloat size))
   6.280 +SDL_PROC_UNUSED(void, glPolygonMode, (GLenum face, GLenum mode))
   6.281 +SDL_PROC_UNUSED(void, glPolygonOffset, (GLfloat factor, GLfloat units))
   6.282 +SDL_PROC_UNUSED(void, glPolygonStipple, (const GLubyte * mask))
   6.283 +SDL_PROC_UNUSED(void, glPopAttrib, (void))
   6.284 +SDL_PROC_UNUSED(void, glPopClientAttrib, (void))
   6.285 +SDL_PROC_UNUSED(void, glPopMatrix, (void))
   6.286 +SDL_PROC_UNUSED(void, glPopName, (void))
   6.287 +SDL_PROC_UNUSED(void, glPrioritizeTextures,
   6.288 +                (GLsizei n, const GLuint * textures,
   6.289 +                 const GLclampf * priorities))
   6.290 +SDL_PROC_UNUSED(void, glPushAttrib, (GLbitfield mask))
   6.291 +SDL_PROC_UNUSED(void, glPushClientAttrib, (GLbitfield mask))
   6.292 +SDL_PROC_UNUSED(void, glPushMatrix, (void))
   6.293 +SDL_PROC_UNUSED(void, glPushName, (GLuint name))
   6.294 +SDL_PROC_UNUSED(void, glRasterPos2d, (GLdouble x, GLdouble y))
   6.295 +SDL_PROC_UNUSED(void, glRasterPos2dv, (const GLdouble * v))
   6.296 +SDL_PROC_UNUSED(void, glRasterPos2f, (GLfloat x, GLfloat y))
   6.297 +SDL_PROC_UNUSED(void, glRasterPos2fv, (const GLfloat * v))
   6.298 +SDL_PROC(void, glRasterPos2i, (GLint x, GLint y))
   6.299 +SDL_PROC_UNUSED(void, glRasterPos2iv, (const GLint * v))
   6.300 +SDL_PROC_UNUSED(void, glRasterPos2s, (GLshort x, GLshort y))
   6.301 +SDL_PROC_UNUSED(void, glRasterPos2sv, (const GLshort * v))
   6.302 +SDL_PROC_UNUSED(void, glRasterPos3d, (GLdouble x, GLdouble y, GLdouble z))
   6.303 +SDL_PROC_UNUSED(void, glRasterPos3dv, (const GLdouble * v))
   6.304 +SDL_PROC_UNUSED(void, glRasterPos3f, (GLfloat x, GLfloat y, GLfloat z))
   6.305 +SDL_PROC_UNUSED(void, glRasterPos3fv, (const GLfloat * v))
   6.306 +SDL_PROC_UNUSED(void, glRasterPos3i, (GLint x, GLint y, GLint z))
   6.307 +SDL_PROC_UNUSED(void, glRasterPos3iv, (const GLint * v))
   6.308 +SDL_PROC_UNUSED(void, glRasterPos3s, (GLshort x, GLshort y, GLshort z))
   6.309 +SDL_PROC_UNUSED(void, glRasterPos3sv, (const GLshort * v))
   6.310 +SDL_PROC_UNUSED(void, glRasterPos4d,
   6.311 +                (GLdouble x, GLdouble y, GLdouble z, GLdouble w))
   6.312 +SDL_PROC_UNUSED(void, glRasterPos4dv, (const GLdouble * v))
   6.313 +SDL_PROC_UNUSED(void, glRasterPos4f,
   6.314 +                (GLfloat x, GLfloat y, GLfloat z, GLfloat w))
   6.315 +SDL_PROC_UNUSED(void, glRasterPos4fv, (const GLfloat * v))
   6.316 +SDL_PROC_UNUSED(void, glRasterPos4i, (GLint x, GLint y, GLint z, GLint w))
   6.317 +SDL_PROC_UNUSED(void, glRasterPos4iv, (const GLint * v))
   6.318 +SDL_PROC_UNUSED(void, glRasterPos4s,
   6.319 +                (GLshort x, GLshort y, GLshort z, GLshort w))
   6.320 +SDL_PROC_UNUSED(void, glRasterPos4sv, (const GLshort * v))
   6.321 +SDL_PROC(void, glReadBuffer, (GLenum mode))
   6.322 +SDL_PROC(void, glReadPixels,
   6.323 +         (GLint x, GLint y, GLsizei width, GLsizei height,
   6.324 +          GLenum format, GLenum type, GLvoid * pixels))
   6.325 +SDL_PROC_UNUSED(void, glRectd,
   6.326 +                (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2))
   6.327 +SDL_PROC_UNUSED(void, glRectdv, (const GLdouble * v1, const GLdouble * v2))
   6.328 +SDL_PROC_UNUSED(void, glRectf,
   6.329 +                (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2))
   6.330 +SDL_PROC_UNUSED(void, glRectfv, (const GLfloat * v1, const GLfloat * v2))
   6.331 +SDL_PROC(void, glRecti, (GLint x1, GLint y1, GLint x2, GLint y2))
   6.332 +SDL_PROC_UNUSED(void, glRectiv, (const GLint * v1, const GLint * v2))
   6.333 +SDL_PROC_UNUSED(void, glRects,
   6.334 +                (GLshort x1, GLshort y1, GLshort x2, GLshort y2))
   6.335 +SDL_PROC_UNUSED(void, glRectsv, (const GLshort * v1, const GLshort * v2))
   6.336 +SDL_PROC_UNUSED(GLint, glRenderMode, (GLenum mode))
   6.337 +SDL_PROC_UNUSED(void, glRotated,
   6.338 +                (GLdouble angle, GLdouble x, GLdouble y, GLdouble z))
   6.339 +SDL_PROC_UNUSED(void, glRotatef,
   6.340 +                (GLfloat angle, GLfloat x, GLfloat y, GLfloat z))
   6.341 +SDL_PROC_UNUSED(void, glScaled, (GLdouble x, GLdouble y, GLdouble z))
   6.342 +SDL_PROC_UNUSED(void, glScalef, (GLfloat x, GLfloat y, GLfloat z))
   6.343 +SDL_PROC_UNUSED(void, glScissor,
   6.344 +                (GLint x, GLint y, GLsizei width, GLsizei height))
   6.345 +SDL_PROC_UNUSED(void, glSelectBuffer, (GLsizei size, GLuint * buffer))
   6.346 +SDL_PROC_UNUSED(void, glShadeModel, (GLenum mode))
   6.347 +SDL_PROC_UNUSED(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask))
   6.348 +SDL_PROC_UNUSED(void, glStencilMask, (GLuint mask))
   6.349 +SDL_PROC_UNUSED(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass))
   6.350 +SDL_PROC_UNUSED(void, glTexCoord1d, (GLdouble s))
   6.351 +SDL_PROC_UNUSED(void, glTexCoord1dv, (const GLdouble * v))
   6.352 +SDL_PROC_UNUSED(void, glTexCoord1f, (GLfloat s))
   6.353 +SDL_PROC_UNUSED(void, glTexCoord1fv, (const GLfloat * v))
   6.354 +SDL_PROC_UNUSED(void, glTexCoord1i, (GLint s))
   6.355 +SDL_PROC_UNUSED(void, glTexCoord1iv, (const GLint * v))
   6.356 +SDL_PROC_UNUSED(void, glTexCoord1s, (GLshort s))
   6.357 +SDL_PROC_UNUSED(void, glTexCoord1sv, (const GLshort * v))
   6.358 +SDL_PROC_UNUSED(void, glTexCoord2d, (GLdouble s, GLdouble t))
   6.359 +SDL_PROC_UNUSED(void, glTexCoord2dv, (const GLdouble * v))
   6.360 +SDL_PROC(void, glTexCoord2f, (GLfloat s, GLfloat t))
   6.361 +SDL_PROC_UNUSED(void, glTexCoord2fv, (const GLfloat * v))
   6.362 +SDL_PROC_UNUSED(void, glTexCoord2i, (GLint s, GLint t))
   6.363 +SDL_PROC_UNUSED(void, glTexCoord2iv, (const GLint * v))
   6.364 +SDL_PROC_UNUSED(void, glTexCoord2s, (GLshort s, GLshort t))
   6.365 +SDL_PROC_UNUSED(void, glTexCoord2sv, (const GLshort * v))
   6.366 +SDL_PROC_UNUSED(void, glTexCoord3d, (GLdouble s, GLdouble t, GLdouble r))
   6.367 +SDL_PROC_UNUSED(void, glTexCoord3dv, (const GLdouble * v))
   6.368 +SDL_PROC_UNUSED(void, glTexCoord3f, (GLfloat s, GLfloat t, GLfloat r))
   6.369 +SDL_PROC_UNUSED(void, glTexCoord3fv, (const GLfloat * v))
   6.370 +SDL_PROC_UNUSED(void, glTexCoord3i, (GLint s, GLint t, GLint r))
   6.371 +SDL_PROC_UNUSED(void, glTexCoord3iv, (const GLint * v))
   6.372 +SDL_PROC_UNUSED(void, glTexCoord3s, (GLshort s, GLshort t, GLshort r))
   6.373 +SDL_PROC_UNUSED(void, glTexCoord3sv, (const GLshort * v))
   6.374 +SDL_PROC_UNUSED(void, glTexCoord4d,
   6.375 +                (GLdouble s, GLdouble t, GLdouble r, GLdouble q))
   6.376 +SDL_PROC_UNUSED(void, glTexCoord4dv, (const GLdouble * v))
   6.377 +SDL_PROC_UNUSED(void, glTexCoord4f,
   6.378 +                (GLfloat s, GLfloat t, GLfloat r, GLfloat q))
   6.379 +SDL_PROC_UNUSED(void, glTexCoord4fv, (const GLfloat * v))
   6.380 +SDL_PROC_UNUSED(void, glTexCoord4i, (GLint s, GLint t, GLint r, GLint q))
   6.381 +SDL_PROC_UNUSED(void, glTexCoord4iv, (const GLint * v))
   6.382 +SDL_PROC_UNUSED(void, glTexCoord4s,
   6.383 +                (GLshort s, GLshort t, GLshort r, GLshort q))
   6.384 +SDL_PROC_UNUSED(void, glTexCoord4sv, (const GLshort * v))
   6.385 +SDL_PROC_UNUSED(void, glTexCoordPointer,
   6.386 +                (GLint size, GLenum type, GLsizei stride,
   6.387 +                 const GLvoid * pointer))
   6.388 +SDL_PROC(void, glTexEnvf, (GLenum target, GLenum pname, GLfloat param))
   6.389 +SDL_PROC_UNUSED(void, glTexEnvfv,
   6.390 +                (GLenum target, GLenum pname, const GLfloat * params))
   6.391 +SDL_PROC_UNUSED(void, glTexEnvi, (GLenum target, GLenum pname, GLint param))
   6.392 +SDL_PROC_UNUSED(void, glTexEnviv,
   6.393 +                (GLenum target, GLenum pname, const GLint * params))
   6.394 +SDL_PROC_UNUSED(void, glTexGend, (GLenum coord, GLenum pname, GLdouble param))
   6.395 +SDL_PROC_UNUSED(void, glTexGendv,
   6.396 +                (GLenum coord, GLenum pname, const GLdouble * params))
   6.397 +SDL_PROC_UNUSED(void, glTexGenf, (GLenum coord, GLenum pname, GLfloat param))
   6.398 +SDL_PROC_UNUSED(void, glTexGenfv,
   6.399 +                (GLenum coord, GLenum pname, const GLfloat * params))
   6.400 +SDL_PROC_UNUSED(void, glTexGeni, (GLenum coord, GLenum pname, GLint param))
   6.401 +SDL_PROC_UNUSED(void, glTexGeniv,
   6.402 +                (GLenum coord, GLenum pname, const GLint * params))
   6.403 +SDL_PROC_UNUSED(void, glTexImage1D,
   6.404 +                (GLenum target, GLint level, GLint internalformat,
   6.405 +                 GLsizei width, GLint border, GLenum format, GLenum type,
   6.406 +                 const GLvoid * pixels))
   6.407 +SDL_PROC(void, glTexImage2D,
   6.408 +         (GLenum target, GLint level, GLint internalformat, GLsizei width,
   6.409 +          GLsizei height, GLint border, GLenum format, GLenum type,
   6.410 +          const GLvoid * pixels))
   6.411 +SDL_PROC_UNUSED(void, glTexParameterf,
   6.412 +                (GLenum target, GLenum pname, GLfloat param))
   6.413 +SDL_PROC_UNUSED(void, glTexParameterfv,
   6.414 +                (GLenum target, GLenum pname, const GLfloat * params))
   6.415 +SDL_PROC(void, glTexParameteri, (GLenum target, GLenum pname, GLint param))
   6.416 +SDL_PROC_UNUSED(void, glTexParameteriv,
   6.417 +                (GLenum target, GLenum pname, const GLint * params))
   6.418 +SDL_PROC_UNUSED(void, glTexSubImage1D,
   6.419 +                (GLenum target, GLint level, GLint xoffset, GLsizei width,
   6.420 +                 GLenum format, GLenum type, const GLvoid * pixels))
   6.421 +SDL_PROC(void, glTexSubImage2D,
   6.422 +         (GLenum target, GLint level, GLint xoffset, GLint yoffset,
   6.423 +          GLsizei width, GLsizei height, GLenum format, GLenum type,
   6.424 +          const GLvoid * pixels))
   6.425 +SDL_PROC_UNUSED(void, glTranslated, (GLdouble x, GLdouble y, GLdouble z))
   6.426 +SDL_PROC_UNUSED(void, glTranslatef, (GLfloat x, GLfloat y, GLfloat z))
   6.427 +SDL_PROC_UNUSED(void, glVertex2d, (GLdouble x, GLdouble y))
   6.428 +SDL_PROC_UNUSED(void, glVertex2dv, (const GLdouble * v))
   6.429 +SDL_PROC(void, glVertex2f, (GLfloat x, GLfloat y))
   6.430 +SDL_PROC_UNUSED(void, glVertex2fv, (const GLfloat * v))
   6.431 +SDL_PROC_UNUSED(void, glVertex2i, (GLint x, GLint y))
   6.432 +SDL_PROC_UNUSED(void, glVertex2iv, (const GLint * v))
   6.433 +SDL_PROC_UNUSED(void, glVertex2s, (GLshort x, GLshort y))
   6.434 +SDL_PROC_UNUSED(void, glVertex2sv, (const GLshort * v))
   6.435 +SDL_PROC_UNUSED(void, glVertex3d, (GLdouble x, GLdouble y, GLdouble z))
   6.436 +SDL_PROC_UNUSED(void, glVertex3dv, (const GLdouble * v))
   6.437 +SDL_PROC_UNUSED(void, glVertex3f, (GLfloat x, GLfloat y, GLfloat z))
   6.438 +SDL_PROC_UNUSED(void, glVertex3fv, (const GLfloat * v))
   6.439 +SDL_PROC_UNUSED(void, glVertex3i, (GLint x, GLint y, GLint z))
   6.440 +SDL_PROC_UNUSED(void, glVertex3iv, (const GLint * v))
   6.441 +SDL_PROC_UNUSED(void, glVertex3s, (GLshort x, GLshort y, GLshort z))
   6.442 +SDL_PROC_UNUSED(void, glVertex3sv, (const GLshort * v))
   6.443 +SDL_PROC_UNUSED(void, glVertex4d,
   6.444 +                (GLdouble x, GLdouble y, GLdouble z, GLdouble w))
   6.445 +SDL_PROC_UNUSED(void, glVertex4dv, (const GLdouble * v))
   6.446 +SDL_PROC_UNUSED(void, glVertex4f,
   6.447 +                (GLfloat x, GLfloat y, GLfloat z, GLfloat w))
   6.448 +SDL_PROC_UNUSED(void, glVertex4fv, (const GLfloat * v))
   6.449 +SDL_PROC_UNUSED(void, glVertex4i, (GLint x, GLint y, GLint z, GLint w))
   6.450 +SDL_PROC_UNUSED(void, glVertex4iv, (const GLint * v))
   6.451 +SDL_PROC_UNUSED(void, glVertex4s,
   6.452 +                (GLshort x, GLshort y, GLshort z, GLshort w))
   6.453 +SDL_PROC_UNUSED(void, glVertex4sv, (const GLshort * v))
   6.454 +SDL_PROC_UNUSED(void, glVertexPointer,
   6.455 +                (GLint size, GLenum type, GLsizei stride,
   6.456 +                 const GLvoid * pointer))
   6.457 +SDL_PROC(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height))
   6.458 +
   6.459 +/* vi: set ts=4 sw=4 expandtab: */
     7.1 --- a/src/render/opengl/SDL_render_gl.c	Sun Feb 06 00:48:41 2011 -0800
     7.2 +++ b/src/render/opengl/SDL_render_gl.c	Sun Feb 06 02:35:14 2011 -0800
     7.3 @@ -88,7 +88,7 @@
     7.4  
     7.5      /* OpenGL functions */
     7.6  #define SDL_PROC(ret,func,params) ret (APIENTRY *func) params;
     7.7 -#include "../../video/SDL_glfuncs.h"
     7.8 +#include "SDL_glfuncs.h"
     7.9  #undef SDL_PROC
    7.10  
    7.11      void (*glTextureRangeAPPLE) (GLenum target, GLsizei length,
    7.12 @@ -161,7 +161,7 @@
    7.13      } while ( 0 );
    7.14  #endif /* __SDL_NOGETPROCADDR__ */
    7.15  
    7.16 -#include "../../video/SDL_glfuncs.h"
    7.17 +#include "SDL_glfuncs.h"
    7.18  #undef SDL_PROC
    7.19      return 0;
    7.20  }
    7.21 @@ -213,11 +213,6 @@
    7.22  
    7.23      renderer->info.flags = SDL_RENDERER_ACCELERATED;
    7.24  
    7.25 -    if (GL_LoadFunctions(data) < 0) {
    7.26 -        GL_DestroyRenderer(renderer);
    7.27 -        return NULL;
    7.28 -    }
    7.29 -
    7.30      data->context = SDL_GL_CreateContext(window);
    7.31      if (!data->context) {
    7.32          GL_DestroyRenderer(renderer);
    7.33 @@ -227,6 +222,12 @@
    7.34          GL_DestroyRenderer(renderer);
    7.35          return NULL;
    7.36      }
    7.37 +
    7.38 +    if (GL_LoadFunctions(data) < 0) {
    7.39 +        GL_DestroyRenderer(renderer);
    7.40 +        return NULL;
    7.41 +    }
    7.42 +
    7.43  #ifdef __MACOSX__
    7.44      /* Enable multi-threaded rendering */
    7.45      /* Disabled until Ryan finishes his VBO/PBO code...
     8.1 --- a/src/render/opengles/SDL_render_gles.c	Sun Feb 06 00:48:41 2011 -0800
     8.2 +++ b/src/render/opengles/SDL_render_gles.c	Sun Feb 06 02:35:14 2011 -0800
     8.3 @@ -88,18 +88,8 @@
     8.4      SDL_bool updateSize;
     8.5      int blendMode;
     8.6  
     8.7 -#ifndef APIENTRY
     8.8 -#define APIENTRY
     8.9 -#endif
    8.10 -
    8.11      SDL_bool useDrawTexture;
    8.12      SDL_bool GL_OES_draw_texture_supported;
    8.13 -
    8.14 -    /* OpenGL ES functions */
    8.15 -#define SDL_PROC(ret,func,params) ret (APIENTRY *func) params;
    8.16 -#include "../../video/SDL_glesfuncs.h"
    8.17 -#undef SDL_PROC
    8.18 -
    8.19  } GLES_RenderData;
    8.20  
    8.21  typedef struct
    8.22 @@ -148,18 +138,6 @@
    8.23      SDL_SetError("%s: %s", prefix, error);
    8.24  }
    8.25  
    8.26 -static int
    8.27 -GLES_LoadFunctions(GLES_RenderData * data)
    8.28 -{
    8.29 -
    8.30 -#define SDL_PROC(ret,func,params) \
    8.31 -    data->func = func;
    8.32 -#include "../../video/SDL_glesfuncs.h"
    8.33 -#undef SDL_PROC
    8.34 -
    8.35 -    return 0;
    8.36 -}
    8.37 -
    8.38  SDL_Renderer *
    8.39  GLES_CreateRenderer(SDL_Window * window, Uint32 flags)
    8.40  {
    8.41 @@ -206,11 +184,6 @@
    8.42  
    8.43      renderer->info.flags = SDL_RENDERER_ACCELERATED;
    8.44  
    8.45 -    if (GLES_LoadFunctions(data) < 0) {
    8.46 -        GLES_DestroyRenderer(renderer);
    8.47 -        return NULL;
    8.48 -    }
    8.49 -
    8.50      data->context = SDL_GL_CreateContext(window);
    8.51      if (!data->context) {
    8.52          GLES_DestroyRenderer(renderer);
    8.53 @@ -243,19 +216,19 @@
    8.54      }
    8.55  #endif
    8.56  
    8.57 -    data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
    8.58 +    glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
    8.59      renderer->info.max_texture_width = value;
    8.60 -    data->glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
    8.61 +    glGetIntegerv(GL_MAX_TEXTURE_SIZE, &value);
    8.62      renderer->info.max_texture_height = value;
    8.63  
    8.64      /* Set up parameters for rendering */
    8.65      data->blendMode = -1;
    8.66 -    data->glDisable(GL_DEPTH_TEST);
    8.67 -    data->glDisable(GL_CULL_FACE);
    8.68 +    glDisable(GL_DEPTH_TEST);
    8.69 +    glDisable(GL_CULL_FACE);
    8.70      data->updateSize = SDL_TRUE;
    8.71  
    8.72 -    data->glEnableClientState(GL_VERTEX_ARRAY);
    8.73 -    data->glEnableClientState(GL_TEXTURE_COORD_ARRAY);
    8.74 +    glEnableClientState(GL_VERTEX_ARRAY);
    8.75 +    glEnableClientState(GL_TEXTURE_COORD_ARRAY);
    8.76      
    8.77      return renderer;
    8.78  }
    8.79 @@ -278,12 +251,12 @@
    8.80          int w, h;
    8.81  
    8.82          SDL_GetWindowSize(window, &w, &h);
    8.83 -        data->glMatrixMode(GL_PROJECTION);
    8.84 -        data->glLoadIdentity();
    8.85 -        data->glMatrixMode(GL_MODELVIEW);
    8.86 -        data->glLoadIdentity();
    8.87 -        data->glViewport(0, 0, w, h);
    8.88 -        data->glOrthof(0.0, (GLfloat) w, (GLfloat) h, 0.0, 0.0, 1.0);
    8.89 +        glMatrixMode(GL_PROJECTION);
    8.90 +        glLoadIdentity();
    8.91 +        glMatrixMode(GL_MODELVIEW);
    8.92 +        glLoadIdentity();
    8.93 +        glViewport(0, 0, w, h);
    8.94 +        glOrthof(0.0, (GLfloat) w, (GLfloat) h, 0.0, 0.0, 1.0);
    8.95          data->updateSize = SDL_FALSE;
    8.96      }
    8.97      return 0;
    8.98 @@ -353,9 +326,9 @@
    8.99  
   8.100      texture->driverdata = data;
   8.101  
   8.102 -    renderdata->glGetError();
   8.103 -    renderdata->glEnable(GL_TEXTURE_2D);
   8.104 -    renderdata->glGenTextures(1, &data->texture);
   8.105 +    glGetError();
   8.106 +    glEnable(GL_TEXTURE_2D);
   8.107 +    glGenTextures(1, &data->texture);
   8.108  
   8.109      data->type = GL_TEXTURE_2D;
   8.110      /* no NPOV textures allowed in OpenGL ES (yet) */
   8.111 @@ -366,21 +339,21 @@
   8.112  
   8.113      data->format = format;
   8.114      data->formattype = type;
   8.115 -    renderdata->glBindTexture(data->type, data->texture);
   8.116 -    renderdata->glTexParameteri(data->type, GL_TEXTURE_MIN_FILTER,
   8.117 +    glBindTexture(data->type, data->texture);
   8.118 +    glTexParameteri(data->type, GL_TEXTURE_MIN_FILTER,
   8.119                                  GL_LINEAR);
   8.120 -    renderdata->glTexParameteri(data->type, GL_TEXTURE_MAG_FILTER,
   8.121 +    glTexParameteri(data->type, GL_TEXTURE_MAG_FILTER,
   8.122                                  GL_LINEAR);
   8.123 -    renderdata->glTexParameteri(data->type, GL_TEXTURE_WRAP_S,
   8.124 +    glTexParameteri(data->type, GL_TEXTURE_WRAP_S,
   8.125                                  GL_CLAMP_TO_EDGE);
   8.126 -    renderdata->glTexParameteri(data->type, GL_TEXTURE_WRAP_T,
   8.127 +    glTexParameteri(data->type, GL_TEXTURE_WRAP_T,
   8.128                                  GL_CLAMP_TO_EDGE);
   8.129  
   8.130 -    renderdata->glTexImage2D(data->type, 0, internalFormat, texture_w,
   8.131 +    glTexImage2D(data->type, 0, internalFormat, texture_w,
   8.132                               texture_h, 0, format, type, NULL);
   8.133 -    renderdata->glDisable(GL_TEXTURE_2D);
   8.134 +    glDisable(GL_TEXTURE_2D);
   8.135  
   8.136 -    result = renderdata->glGetError();
   8.137 +    result = glGetError();
   8.138      if (result != GL_NO_ERROR) {
   8.139          GLES_SetError("glTexImage2D()", result);
   8.140          return -1;
   8.141 @@ -402,10 +375,10 @@
   8.142  
   8.143      GLES_ActivateRenderer(renderer);
   8.144  
   8.145 -    renderdata->glGetError();
   8.146 -    renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
   8.147 -    renderdata->glEnable(data->type);
   8.148 -    renderdata->glBindTexture(data->type, data->texture);
   8.149 +    glGetError();
   8.150 +    glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
   8.151 +    glEnable(data->type);
   8.152 +    glBindTexture(data->type, data->texture);
   8.153  
   8.154      if( rect->w * bpp == pitch ) {
   8.155           temp_buffer = (void *)pixels; /* No need to reformat */
   8.156 @@ -420,7 +393,7 @@
   8.157           }
   8.158      }
   8.159  
   8.160 -    renderdata->glTexSubImage2D(data->type, 0, rect->x, rect->y, rect->w,
   8.161 +    glTexSubImage2D(data->type, 0, rect->x, rect->y, rect->w,
   8.162                                  rect->h, data->format, data->formattype,
   8.163                                  temp_buffer);
   8.164  
   8.165 @@ -428,8 +401,8 @@
   8.166          SDL_free(temp_buffer);
   8.167      }
   8.168  
   8.169 -    renderdata->glDisable(data->type);
   8.170 -    result = renderdata->glGetError();
   8.171 +    glDisable(data->type);
   8.172 +    result = glGetError();
   8.173      if (result != GL_NO_ERROR) {
   8.174          GLES_SetError("glTexSubImage2D()", result);
   8.175          return -1;
   8.176 @@ -458,13 +431,13 @@
   8.177  
   8.178      GLES_ActivateRenderer(renderer);
   8.179  
   8.180 -    renderdata->glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
   8.181 -    renderdata->glEnable(data->type);
   8.182 -    renderdata->glBindTexture(data->type, data->texture);
   8.183 -    renderdata->glTexSubImage2D(data->type, 0, 0, 0, texture->w,
   8.184 +    glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
   8.185 +    glEnable(data->type);
   8.186 +    glBindTexture(data->type, data->texture);
   8.187 +    glTexSubImage2D(data->type, 0, 0, 0, texture->w,
   8.188                                  texture->h, data->format, data->formattype,
   8.189                                  data->pixels);
   8.190 -    renderdata->glDisable(data->type);
   8.191 +    glDisable(data->type);
   8.192  }
   8.193  
   8.194  static void
   8.195 @@ -473,23 +446,23 @@
   8.196      if (blendMode != data->blendMode) {
   8.197          switch (blendMode) {
   8.198          case SDL_BLENDMODE_NONE:
   8.199 -            data->glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
   8.200 -            data->glDisable(GL_BLEND);
   8.201 +            glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
   8.202 +            glDisable(GL_BLEND);
   8.203              break;
   8.204          case SDL_BLENDMODE_BLEND:
   8.205 -            data->glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
   8.206 -            data->glEnable(GL_BLEND);
   8.207 -            data->glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
   8.208 +            glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
   8.209 +            glEnable(GL_BLEND);
   8.210 +            glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
   8.211              break;
   8.212          case SDL_BLENDMODE_ADD:
   8.213 -            data->glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
   8.214 -            data->glEnable(GL_BLEND);
   8.215 -            data->glBlendFunc(GL_SRC_ALPHA, GL_ONE);
   8.216 +            glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
   8.217 +            glEnable(GL_BLEND);
   8.218 +            glBlendFunc(GL_SRC_ALPHA, GL_ONE);
   8.219              break;
   8.220          case SDL_BLENDMODE_MOD:
   8.221 -            data->glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
   8.222 -            data->glEnable(GL_BLEND);
   8.223 -            data->glBlendFunc(GL_ZERO, GL_SRC_COLOR);
   8.224 +            glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
   8.225 +            glEnable(GL_BLEND);
   8.226 +            glBlendFunc(GL_ZERO, GL_SRC_COLOR);
   8.227              break;
   8.228          }
   8.229          data->blendMode = blendMode;
   8.230 @@ -508,7 +481,7 @@
   8.231  
   8.232      GLES_SetBlendMode(data, renderer->blendMode);
   8.233  
   8.234 -    data->glColor4f((GLfloat) renderer->r * inv255f,
   8.235 +    glColor4f((GLfloat) renderer->r * inv255f,
   8.236                      (GLfloat) renderer->g * inv255f,
   8.237                      (GLfloat) renderer->b * inv255f,
   8.238                      (GLfloat) renderer->a * inv255f);
   8.239 @@ -518,8 +491,8 @@
   8.240          vertices[2*i+0] = (GLshort)points[i].x;
   8.241          vertices[2*i+1] = (GLshort)points[i].y;
   8.242      }
   8.243 -    data->glVertexPointer(2, GL_SHORT, 0, vertices);
   8.244 -    data->glDrawArrays(GL_POINTS, 0, count);
   8.245 +    glVertexPointer(2, GL_SHORT, 0, vertices);
   8.246 +    glDrawArrays(GL_POINTS, 0, count);
   8.247      SDL_stack_free(vertices);
   8.248  
   8.249      return 0;
   8.250 @@ -537,7 +510,7 @@
   8.251  
   8.252      GLES_SetBlendMode(data, renderer->blendMode);
   8.253  
   8.254 -    data->glColor4f((GLfloat) renderer->r * inv255f,
   8.255 +    glColor4f((GLfloat) renderer->r * inv255f,
   8.256                      (GLfloat) renderer->g * inv255f,
   8.257                      (GLfloat) renderer->b * inv255f,
   8.258                      (GLfloat) renderer->a * inv255f);
   8.259 @@ -547,14 +520,14 @@
   8.260          vertices[2*i+0] = (GLshort)points[i].x;
   8.261          vertices[2*i+1] = (GLshort)points[i].y;
   8.262      }
   8.263 -    data->glVertexPointer(2, GL_SHORT, 0, vertices);
   8.264 +    glVertexPointer(2, GL_SHORT, 0, vertices);
   8.265      if (count > 2 && 
   8.266          points[0].x == points[count-1].x && points[0].y == points[count-1].y) {
   8.267          /* GL_LINE_LOOP takes care of the final segment */
   8.268          --count;
   8.269 -        data->glDrawArrays(GL_LINE_LOOP, 0, count);
   8.270 +        glDrawArrays(GL_LINE_LOOP, 0, count);
   8.271      } else {
   8.272 -        data->glDrawArrays(GL_LINE_STRIP, 0, count);
   8.273 +        glDrawArrays(GL_LINE_STRIP, 0, count);
   8.274      }
   8.275      SDL_stack_free(vertices);
   8.276  
   8.277 @@ -572,7 +545,7 @@
   8.278  
   8.279      GLES_SetBlendMode(data, renderer->blendMode);
   8.280  
   8.281 -    data->glColor4f((GLfloat) renderer->r * inv255f,
   8.282 +    glColor4f((GLfloat) renderer->r * inv255f,
   8.283                      (GLfloat) renderer->g * inv255f,
   8.284                      (GLfloat) renderer->b * inv255f,
   8.285                      (GLfloat) renderer->a * inv255f);
   8.286 @@ -593,8 +566,8 @@
   8.287          vertices[6] = maxx;
   8.288          vertices[7] = maxy;
   8.289  
   8.290 -        data->glVertexPointer(2, GL_SHORT, 0, vertices);
   8.291 -        data->glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
   8.292 +        glVertexPointer(2, GL_SHORT, 0, vertices);
   8.293 +        glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
   8.294      }
   8.295  
   8.296      return 0;
   8.297 @@ -615,17 +588,17 @@
   8.298  
   8.299      GLES_ActivateRenderer(renderer);
   8.300  
   8.301 -    data->glEnable(GL_TEXTURE_2D);
   8.302 +    glEnable(GL_TEXTURE_2D);
   8.303  
   8.304 -    data->glBindTexture(texturedata->type, texturedata->texture);
   8.305 +    glBindTexture(texturedata->type, texturedata->texture);
   8.306  
   8.307      if (texture->modMode) {
   8.308 -        data->glColor4f((GLfloat) texture->r * inv255f,
   8.309 +        glColor4f((GLfloat) texture->r * inv255f,
   8.310                          (GLfloat) texture->g * inv255f,
   8.311                          (GLfloat) texture->b * inv255f,
   8.312                          (GLfloat) texture->a * inv255f);
   8.313      } else {
   8.314 -        data->glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
   8.315 +        glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
   8.316      }
   8.317  
   8.318      GLES_SetBlendMode(data, texture->blendMode);
   8.319 @@ -641,9 +614,9 @@
   8.320          cropRect[1] = srcrect->y + srcrect->h;
   8.321          cropRect[2] = srcrect->w;
   8.322          cropRect[3] = -srcrect->h;
   8.323 -        data->glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES,
   8.324 +        glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES,
   8.325                                 cropRect);
   8.326 -        data->glDrawTexiOES(dstrect->x, h - dstrect->y - dstrect->h, 0,
   8.327 +        glDrawTexiOES(dstrect->x, h - dstrect->y - dstrect->h, 0,
   8.328                              dstrect->w, dstrect->h);
   8.329      } else {
   8.330  
   8.331 @@ -682,12 +655,12 @@
   8.332          texCoords[6] = maxu;
   8.333          texCoords[7] = maxv;
   8.334  
   8.335 -        data->glVertexPointer(2, GL_SHORT, 0, vertices);
   8.336 -        data->glTexCoordPointer(2, GL_FLOAT, 0, texCoords);
   8.337 -        data->glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
   8.338 +        glVertexPointer(2, GL_SHORT, 0, vertices);
   8.339 +        glTexCoordPointer(2, GL_FLOAT, 0, texCoords);
   8.340 +        glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
   8.341      }
   8.342  
   8.343 -    data->glDisable(GL_TEXTURE_2D);
   8.344 +    glDisable(GL_TEXTURE_2D);
   8.345  
   8.346      return 0;
   8.347  }
     9.1 --- a/src/render/opengles2/SDL_render_gles2.c	Sun Feb 06 00:48:41 2011 -0800
     9.2 +++ b/src/render/opengles2/SDL_render_gles2.c	Sun Feb 06 02:35:14 2011 -0800
     9.3 @@ -25,13 +25,7 @@
     9.4  
     9.5  #if SDL_VIDEO_RENDER_OGL_ES2
     9.6  
     9.7 -#ifdef __IPHONEOS__
     9.8 -#include <OpenGLES/ES2/gl.h>
     9.9 -#include <OpenGLES/ES2/glext.h>
    9.10 -#else
    9.11 -#include <GLES2/gl2.h>
    9.12 -#include <GLES2/gl2ext.h>
    9.13 -#endif
    9.14 +#include "SDL_opengles2.h"
    9.15  #include "../SDL_sysrender.h"
    9.16  #include "SDL_shaders_gles2.h"
    9.17  
    9.18 @@ -1098,6 +1092,8 @@
    9.19      renderer->window = window;
    9.20      renderer->driverdata = rdata;
    9.21  
    9.22 +    renderer->info.flags = SDL_RENDERER_ACCELERATED;
    9.23 +
    9.24      /* Create the GL context */
    9.25      rdata->context = SDL_GL_CreateContext(window);
    9.26      if (!rdata->context)
    10.1 --- a/src/render/opengles2/SDL_shaders_gles2.c	Sun Feb 06 00:48:41 2011 -0800
    10.2 +++ b/src/render/opengles2/SDL_shaders_gles2.c	Sun Feb 06 02:35:14 2011 -0800
    10.3 @@ -25,14 +25,8 @@
    10.4  
    10.5  #if SDL_VIDEO_RENDER_OGL_ES2
    10.6  
    10.7 -#ifdef __IPHONEOS__
    10.8 -#include <OpenGLES/ES2/gl.h>
    10.9 -#include <OpenGLES/ES2/glext.h>
   10.10 -#else
   10.11 -#include <GLES2/gl2.h>
   10.12 -#include <GLES2/gl2ext.h>
   10.13 -#endif
   10.14  #include "SDL_video.h"
   10.15 +#include "SDL_opengles2.h"
   10.16  #include "SDL_shaders_gles2.h"
   10.17  #include "SDL_stdinc.h"
   10.18  
    11.1 --- a/src/render/opengles2/SDL_shaders_gles2.h	Sun Feb 06 00:48:41 2011 -0800
    11.2 +++ b/src/render/opengles2/SDL_shaders_gles2.h	Sun Feb 06 02:35:14 2011 -0800
    11.3 @@ -28,12 +28,6 @@
    11.4  #ifndef SDL_shaderdata_h_
    11.5  #define SDL_shaderdata_h_
    11.6  
    11.7 -#ifdef __IPHONEOS__
    11.8 -#include <OpenGLES/ES2/gl.h>
    11.9 -#else
   11.10 -#include <GLES2/gl2.h>
   11.11 -#endif
   11.12 -
   11.13  typedef struct GLES2_ShaderInstance
   11.14  {
   11.15      GLenum type;
    12.1 --- a/src/video/SDL_glesfuncs.h	Sun Feb 06 00:48:41 2011 -0800
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,229 +0,0 @@
    12.4 -/* list of OpenGL ES functions sorted alphabetically
    12.5 -   If you need to use a GLES function from the SDL video subsystem,
    12.6 -   change it's entry from SDL_PROC_UNUSED to SDL_PROC and rebuild.
    12.7 -*/
    12.8 -#define SDL_PROC_UNUSED(ret,func,params)
    12.9 -
   12.10 -SDL_PROC_UNUSED(void, glAlphaFunc, (GLenum func, GLclampf ref))
   12.11 -SDL_PROC(void, glClearColor,
   12.12 -         (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha))
   12.13 -SDL_PROC_UNUSED(void, glClearDepthf, (GLclampf depth))
   12.14 -SDL_PROC_UNUSED(void, glClipPlanef, (GLenum plane, const GLfloat * equation))
   12.15 -SDL_PROC(void, glColor4f,
   12.16 -         (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha))
   12.17 -SDL_PROC_UNUSED(void, glDepthRangef, (GLclampf zNear, GLclampf zFar))
   12.18 -SDL_PROC_UNUSED(void, glFogf, (GLenum pname, GLfloat param))
   12.19 -SDL_PROC_UNUSED(void, glFogfv, (GLenum pname, const GLfloat * params))
   12.20 -SDL_PROC_UNUSED(void, glFrustumf,
   12.21 -                (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
   12.22 -                 GLfloat zNear, GLfloat zFar))
   12.23 -SDL_PROC_UNUSED(void, glGetClipPlanef, (GLenum pname, GLfloat eqn[4]))
   12.24 -SDL_PROC(void, glGetFloatv, (GLenum pname, GLfloat * params))
   12.25 -SDL_PROC_UNUSED(void, glGetLightfv,
   12.26 -                (GLenum light, GLenum pname, GLfloat * params))
   12.27 -SDL_PROC_UNUSED(void, glGetMaterialfv,
   12.28 -                (GLenum face, GLenum pname, GLfloat * params))
   12.29 -SDL_PROC_UNUSED(void, glGetTexEnvfv,
   12.30 -                (GLenum env, GLenum pname, GLfloat * params))
   12.31 -SDL_PROC_UNUSED(void, glGetTexParameterfv,
   12.32 -                (GLenum target, GLenum pname, GLfloat * params))
   12.33 -SDL_PROC_UNUSED(void, glLightModelf, (GLenum pname, GLfloat param))
   12.34 -SDL_PROC_UNUSED(void, glLightModelfv, (GLenum pname, const GLfloat * params))
   12.35 -SDL_PROC_UNUSED(void, glLightf, (GLenum light, GLenum pname, GLfloat param))
   12.36 -SDL_PROC_UNUSED(void, glLightfv,
   12.37 -                (GLenum light, GLenum pname, const GLfloat * params))
   12.38 -SDL_PROC_UNUSED(void, glLineWidth, (GLfloat width))
   12.39 -SDL_PROC_UNUSED(void, glLoadMatrixf, (const GLfloat * m))
   12.40 -SDL_PROC_UNUSED(void, glMaterialf, (GLenum face, GLenum pname, GLfloat param))
   12.41 -SDL_PROC_UNUSED(void, glMaterialfv,
   12.42 -                (GLenum face, GLenum pname, const GLfloat * params))
   12.43 -SDL_PROC_UNUSED(void, glMultMatrixf, (const GLfloat * m))
   12.44 -SDL_PROC_UNUSED(void, glMultiTexCoord4f,
   12.45 -                (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q))
   12.46 -SDL_PROC_UNUSED(void, glNormal3f, (GLfloat nx, GLfloat ny, GLfloat nz))
   12.47 -SDL_PROC(void, glOrthof,
   12.48 -         (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
   12.49 -          GLfloat zNear, GLfloat zFar))
   12.50 -SDL_PROC_UNUSED(void, glPointParameterf, (GLenum pname, GLfloat param))
   12.51 -SDL_PROC_UNUSED(void, glPointParameterfv,
   12.52 -                (GLenum pname, const GLfloat * params))
   12.53 -SDL_PROC_UNUSED(void, glPointSize, (GLfloat size))
   12.54 -SDL_PROC_UNUSED(void, glPolygonOffset, (GLfloat factor, GLfloat units))
   12.55 -SDL_PROC_UNUSED(void, glRotatef,
   12.56 -                (GLfloat angle, GLfloat x, GLfloat y, GLfloat z))
   12.57 -SDL_PROC_UNUSED(void, glScalef, (GLfloat x, GLfloat y, GLfloat z))
   12.58 -SDL_PROC(void, glTexEnvf, (GLenum target, GLenum pname, GLfloat param))
   12.59 -SDL_PROC_UNUSED(void, glTexEnvfv,
   12.60 -                (GLenum target, GLenum pname, const GLfloat * params))
   12.61 -SDL_PROC(void, glTexParameterf, (GLenum target, GLenum pname, GLfloat param))
   12.62 -SDL_PROC_UNUSED(void, glTexParameterfv,
   12.63 -                (GLenum target, GLenum pname, const GLfloat * params))
   12.64 -SDL_PROC_UNUSED(void, glTranslatef, (GLfloat x, GLfloat y, GLfloat z))
   12.65 -
   12.66 -/* Available in both Common and Common-Lite profiles */
   12.67 -SDL_PROC_UNUSED(void, glActiveTexture, (GLenum texture))
   12.68 -SDL_PROC_UNUSED(void, glAlphaFuncx, (GLenum func, GLclampx ref))
   12.69 -SDL_PROC_UNUSED(void, glBindBuffer, (GLenum target, GLuint buffer))
   12.70 -SDL_PROC(void, glBindTexture, (GLenum target, GLuint texture))
   12.71 -SDL_PROC(void, glBlendFunc, (GLenum sfactor, GLenum dfactor))
   12.72 -SDL_PROC_UNUSED(void, glBufferData,
   12.73 -                (GLenum target, GLsizeiptr size, const GLvoid * data,
   12.74 -                 GLenum usage))
   12.75 -SDL_PROC_UNUSED(void, glBufferSubData,
   12.76 -                (GLenum target, GLintptr offset, GLsizeiptr size,
   12.77 -                 const GLvoid * data))
   12.78 -SDL_PROC(void, glClear, (GLbitfield mask))
   12.79 -SDL_PROC_UNUSED(void, glClearColorx,
   12.80 -                (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha))
   12.81 -SDL_PROC_UNUSED(void, glClearDepthx, (GLclampx depth))
   12.82 -SDL_PROC_UNUSED(void, glClearStencil, (GLint s))
   12.83 -SDL_PROC_UNUSED(void, glClientActiveTexture, (GLenum texture))
   12.84 -SDL_PROC_UNUSED(void, glClipPlanex, (GLenum plane, const GLfixed * equation))
   12.85 -SDL_PROC_UNUSED(void, glColor4ub,
   12.86 -                (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha))
   12.87 -SDL_PROC_UNUSED(void, glColor4x,
   12.88 -                (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha))
   12.89 -SDL_PROC_UNUSED(void, glColorMask,
   12.90 -                (GLboolean red, GLboolean green, GLboolean blue,
   12.91 -                 GLboolean alpha))
   12.92 -SDL_PROC(void, glColorPointer,
   12.93 -         (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
   12.94 -SDL_PROC_UNUSED(void, glCompressedTexImage2D,
   12.95 -                (GLenum target, GLint level, GLenum internalformat,
   12.96 -                 GLsizei width, GLsizei height, GLint border,
   12.97 -                 GLsizei imageSize, const GLvoid * data))
   12.98 -SDL_PROC_UNUSED(void, glCompressedTexSubImage2D,
   12.99 -                (GLenum target, GLint level, GLint xoffset, GLint yoffset,
  12.100 -                 GLsizei width, GLsizei height, GLenum format,
  12.101 -                 GLsizei imageSize, const GLvoid * data))
  12.102 -SDL_PROC_UNUSED(void, glCopyTexImage2D,
  12.103 -                (GLenum target, GLint level, GLenum internalformat, GLint x,
  12.104 -                 GLint y, GLsizei width, GLsizei height, GLint border))
  12.105 -SDL_PROC_UNUSED(void, glCopyTexSubImage2D,
  12.106 -                (GLenum target, GLint level, GLint xoffset, GLint yoffset,
  12.107 -                 GLint x, GLint y, GLsizei width, GLsizei height))
  12.108 -SDL_PROC_UNUSED(void, glCullFace, (GLenum mode))
  12.109 -SDL_PROC_UNUSED(void, glDeleteBuffers, (GLsizei n, const GLuint * buffers))
  12.110 -SDL_PROC_UNUSED(void, glDeleteTextures, (GLsizei n, const GLuint * textures))
  12.111 -SDL_PROC_UNUSED(void, glDepthFunc, (GLenum func))
  12.112 -SDL_PROC_UNUSED(void, glDepthMask, (GLboolean flag))
  12.113 -SDL_PROC_UNUSED(void, glDepthRangex, (GLclampx zNear, GLclampx zFar))
  12.114 -SDL_PROC(void, glDisable, (GLenum cap))
  12.115 -SDL_PROC(void, glDisableClientState, (GLenum array))
  12.116 -SDL_PROC(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count))
  12.117 -SDL_PROC_UNUSED(void, glDrawElements,
  12.118 -                (GLenum mode, GLsizei count, GLenum type,
  12.119 -                 const GLvoid * indices))
  12.120 -SDL_PROC(void, glEnable, (GLenum cap))
  12.121 -SDL_PROC(void, glEnableClientState, (GLenum array))
  12.122 -SDL_PROC_UNUSED(void, glFinish, (void))
  12.123 -SDL_PROC_UNUSED(void, glFlush, (void))
  12.124 -SDL_PROC_UNUSED(void, glFogx, (GLenum pname, GLfixed param))
  12.125 -SDL_PROC_UNUSED(void, glFogxv, (GLenum pname, const GLfixed * params))
  12.126 -SDL_PROC_UNUSED(void, glFrontFace, (GLenum mode))
  12.127 -SDL_PROC_UNUSED(void, glFrustumx,
  12.128 -                (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
  12.129 -                 GLfixed zNear, GLfixed zFar))
  12.130 -SDL_PROC_UNUSED(void, glGetBooleanv, (GLenum pname, GLboolean * params))
  12.131 -SDL_PROC_UNUSED(void, glGetBufferParameteriv,
  12.132 -                (GLenum target, GLenum pname, GLint * params))
  12.133 -SDL_PROC_UNUSED(void, glGetClipPlanex, (GLenum pname, GLfixed eqn[4]))
  12.134 -SDL_PROC_UNUSED(void, glGenBuffers, (GLsizei n, GLuint * buffers))
  12.135 -SDL_PROC(void, glGenTextures, (GLsizei n, GLuint * textures))
  12.136 -SDL_PROC(GLenum, glGetError, (void))
  12.137 -SDL_PROC_UNUSED(void, glGetFixedv, (GLenum pname, GLfixed * params))
  12.138 -SDL_PROC(void, glGetIntegerv, (GLenum pname, GLint * params))
  12.139 -SDL_PROC_UNUSED(void, glGetLightxv,
  12.140 -                (GLenum light, GLenum pname, GLfixed * params))
  12.141 -SDL_PROC_UNUSED(void, glGetMaterialxv,
  12.142 -                (GLenum face, GLenum pname, GLfixed * params))
  12.143 -SDL_PROC_UNUSED(void, glGetPointerv, (GLenum pname, void **params))
  12.144 -SDL_PROC_UNUSED(const GLubyte *, glGetString, (GLenum name))
  12.145 -SDL_PROC_UNUSED(void, glGetTexEnviv,
  12.146 -                (GLenum env, GLenum pname, GLint * params))
  12.147 -SDL_PROC_UNUSED(void, glGetTexEnvxv,
  12.148 -                (GLenum env, GLenum pname, GLfixed * params))
  12.149 -SDL_PROC_UNUSED(void, glGetTexParameteriv,
  12.150 -                (GLenum target, GLenum pname, GLint * params))
  12.151 -SDL_PROC_UNUSED(void, glGetTexParameterxv,
  12.152 -                (GLenum target, GLenum pname, GLfixed * params))
  12.153 -SDL_PROC_UNUSED(void, glHint, (GLenum target, GLenum mode))
  12.154 -SDL_PROC_UNUSED(GLboolean, glIsBuffer, (GLuint buffer))
  12.155 -SDL_PROC_UNUSED(GLboolean, glIsEnabled, (GLenum cap))
  12.156 -SDL_PROC_UNUSED(GLboolean, glIsTexture, (GLuint texture))
  12.157 -SDL_PROC_UNUSED(void, glLightModelx, (GLenum pname, GLfixed param))
  12.158 -SDL_PROC_UNUSED(void, glLightModelxv, (GLenum pname, const GLfixed * params))
  12.159 -SDL_PROC_UNUSED(void, glLightx, (GLenum light, GLenum pname, GLfixed param))
  12.160 -SDL_PROC_UNUSED(void, glLightxv,
  12.161 -                (GLenum light, GLenum pname, const GLfixed * params))
  12.162 -SDL_PROC_UNUSED(void, glLineWidthx, (GLfixed width))
  12.163 -SDL_PROC(void, glLoadIdentity, (void))
  12.164 -SDL_PROC_UNUSED(void, glLoadMatrixx, (const GLfixed * m))
  12.165 -SDL_PROC_UNUSED(void, glLogicOp, (GLenum opcode))
  12.166 -SDL_PROC_UNUSED(void, glMaterialx, (GLenum face, GLenum pname, GLfixed param))
  12.167 -SDL_PROC_UNUSED(void, glMaterialxv,
  12.168 -                (GLenum face, GLenum pname, const GLfixed * params))
  12.169 -SDL_PROC(void, glMatrixMode, (GLenum mode))
  12.170 -SDL_PROC_UNUSED(void, glMultMatrixx, (const GLfixed * m))
  12.171 -SDL_PROC_UNUSED(void, glMultiTexCoord4x,
  12.172 -                (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q))
  12.173 -SDL_PROC_UNUSED(void, glNormal3x, (GLfixed nx, GLfixed ny, GLfixed nz))
  12.174 -SDL_PROC_UNUSED(void, glNormalPointer,
  12.175 -                (GLenum type, GLsizei stride, const GLvoid * pointer))
  12.176 -SDL_PROC_UNUSED(void, glOrthox,
  12.177 -                (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
  12.178 -                 GLfixed zNear, GLfixed zFar))
  12.179 -SDL_PROC(void, glPixelStorei, (GLenum pname, GLint param))
  12.180 -SDL_PROC_UNUSED(void, glPointParameterx, (GLenum pname, GLfixed param))
  12.181 -SDL_PROC_UNUSED(void, glPointParameterxv,
  12.182 -                (GLenum pname, const GLfixed * params))
  12.183 -SDL_PROC_UNUSED(void, glPointSizex, (GLfixed size))
  12.184 -SDL_PROC_UNUSED(void, glPolygonOffsetx, (GLfixed factor, GLfixed units))
  12.185 -SDL_PROC_UNUSED(void, glPopMatrix, (void))
  12.186 -SDL_PROC_UNUSED(void, glPushMatrix, (void))
  12.187 -SDL_PROC_UNUSED(void, glReadPixels,
  12.188 -                (GLint x, GLint y, GLsizei width, GLsizei height,
  12.189 -                 GLenum format, GLenum type, GLvoid * pixels))
  12.190 -SDL_PROC_UNUSED(void, glRotatex,
  12.191 -                (GLfixed angle, GLfixed x, GLfixed y, GLfixed z))
  12.192 -SDL_PROC_UNUSED(void, glSampleCoverage, (GLclampf value, GLboolean invert))
  12.193 -SDL_PROC_UNUSED(void, glSampleCoveragex, (GLclampx value, GLboolean invert))
  12.194 -SDL_PROC_UNUSED(void, glScalex, (GLfixed x, GLfixed y, GLfixed z))
  12.195 -SDL_PROC(void, glScissor, (GLint x, GLint y, GLsizei width, GLsizei height))
  12.196 -SDL_PROC_UNUSED(void, glShadeModel, (GLenum mode))
  12.197 -SDL_PROC_UNUSED(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask))
  12.198 -SDL_PROC_UNUSED(void, glStencilMask, (GLuint mask))
  12.199 -SDL_PROC_UNUSED(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass))
  12.200 -SDL_PROC(void, glTexCoordPointer,
  12.201 -         (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
  12.202 -SDL_PROC_UNUSED(void, glTexEnvi, (GLenum target, GLenum pname, GLint param))
  12.203 -SDL_PROC_UNUSED(void, glTexEnvx, (GLenum target, GLenum pname, GLfixed param))
  12.204 -SDL_PROC_UNUSED(void, glTexEnviv,
  12.205 -                (GLenum target, GLenum pname, const GLint * params))
  12.206 -SDL_PROC_UNUSED(void, glTexEnvxv,
  12.207 -                (GLenum target, GLenum pname, const GLfixed * params))
  12.208 -SDL_PROC(void, glTexImage2D,
  12.209 -         (GLenum target, GLint level, GLint internalformat, GLsizei width,
  12.210 -          GLsizei height, GLint border, GLenum format, GLenum type,
  12.211 -          const GLvoid * pixels))
  12.212 -SDL_PROC(void, glTexParameteri, (GLenum target, GLenum pname, GLint param))
  12.213 -SDL_PROC_UNUSED(void, glTexParameterx,
  12.214 -                (GLenum target, GLenum pname, GLfixed param))
  12.215 -SDL_PROC(void, glTexParameteriv,
  12.216 -         (GLenum target, GLenum pname, const GLint * params))
  12.217 -SDL_PROC_UNUSED(void, glTexParameterxv,
  12.218 -                (GLenum target, GLenum pname, const GLfixed * params))
  12.219 -SDL_PROC(void, glTexSubImage2D,
  12.220 -         (GLenum target, GLint level, GLint xoffset, GLint yoffset,
  12.221 -          GLsizei width, GLsizei height, GLenum format, GLenum type,
  12.222 -          const GLvoid * pixels))
  12.223 -SDL_PROC_UNUSED(void, glTranslatex, (GLfixed x, GLfixed y, GLfixed z))
  12.224 -SDL_PROC(void, glVertexPointer,
  12.225 -         (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
  12.226 -SDL_PROC(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height))
  12.227 -
  12.228 -/* extension functions used */
  12.229 -SDL_PROC(void, glDrawTexiOES,
  12.230 -         (GLint x, GLint y, GLint z, GLint width, GLint height))
  12.231 -
  12.232 -/* vi: set ts=4 sw=4 expandtab: */
    13.1 --- a/src/video/SDL_glfuncs.h	Sun Feb 06 00:48:41 2011 -0800
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,455 +0,0 @@
    13.4 -/* list of OpenGL functions sorted alphabetically
    13.5 -   If you need to use a GL function from the SDL video subsystem,
    13.6 -   change it's entry from SDL_PROC_UNUSED to SDL_PROC and rebuild.
    13.7 -*/
    13.8 -#define SDL_PROC_UNUSED(ret,func,params)
    13.9 -SDL_PROC_UNUSED(void, glAccum, (GLenum, GLfloat))
   13.10 -SDL_PROC_UNUSED(void, glAlphaFunc, (GLenum, GLclampf))
   13.11 -SDL_PROC_UNUSED(GLboolean, glAreTexturesResident,
   13.12 -                (GLsizei, const GLuint *, GLboolean *))
   13.13 -SDL_PROC_UNUSED(void, glArrayElement, (GLint))
   13.14 -SDL_PROC(void, glBegin, (GLenum))
   13.15 -SDL_PROC(void, glBindTexture, (GLenum, GLuint))
   13.16 -SDL_PROC_UNUSED(void, glBitmap,
   13.17 -                (GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat,
   13.18 -                 const GLubyte *))
   13.19 -SDL_PROC(void, glBlendFunc, (GLenum, GLenum))
   13.20 -SDL_PROC_UNUSED(void, glCallList, (GLuint))
   13.21 -SDL_PROC_UNUSED(void, glCallLists, (GLsizei, GLenum, const GLvoid *))
   13.22 -SDL_PROC(void, glClear, (GLbitfield))
   13.23 -SDL_PROC_UNUSED(void, glClearAccum, (GLfloat, GLfloat, GLfloat, GLfloat))
   13.24 -SDL_PROC(void, glClearColor, (GLclampf, GLclampf, GLclampf, GLclampf))
   13.25 -SDL_PROC_UNUSED(void, glClearDepth, (GLclampd))
   13.26 -SDL_PROC_UNUSED(void, glClearIndex, (GLfloat))
   13.27 -SDL_PROC_UNUSED(void, glClearStencil, (GLint))
   13.28 -SDL_PROC_UNUSED(void, glClipPlane, (GLenum, const GLdouble *))
   13.29 -SDL_PROC_UNUSED(void, glColor3b, (GLbyte, GLbyte, GLbyte))
   13.30 -SDL_PROC_UNUSED(void, glColor3bv, (const GLbyte *))
   13.31 -SDL_PROC_UNUSED(void, glColor3d, (GLdouble, GLdouble, GLdouble))
   13.32 -SDL_PROC_UNUSED(void, glColor3dv, (const GLdouble *))
   13.33 -SDL_PROC_UNUSED(void, glColor3f, (GLfloat, GLfloat, GLfloat))
   13.34 -SDL_PROC_UNUSED(void, glColor3fv, (const GLfloat *))
   13.35 -SDL_PROC_UNUSED(void, glColor3i, (GLint, GLint, GLint))
   13.36 -SDL_PROC_UNUSED(void, glColor3iv, (const GLint *))
   13.37 -SDL_PROC_UNUSED(void, glColor3s, (GLshort, GLshort, GLshort))
   13.38 -SDL_PROC_UNUSED(void, glColor3sv, (const GLshort *))
   13.39 -SDL_PROC_UNUSED(void, glColor3ub, (GLubyte, GLubyte, GLubyte))
   13.40 -SDL_PROC_UNUSED(void, glColor3ubv, (const GLubyte *))
   13.41 -SDL_PROC_UNUSED(void, glColor3ui, (GLuint, GLuint, GLuint))
   13.42 -SDL_PROC_UNUSED(void, glColor3uiv, (const GLuint *))
   13.43 -SDL_PROC_UNUSED(void, glColor3us, (GLushort, GLushort, GLushort))
   13.44 -SDL_PROC_UNUSED(void, glColor3usv, (const GLushort *))
   13.45 -SDL_PROC_UNUSED(void, glColor4b, (GLbyte, GLbyte, GLbyte, GLbyte))
   13.46 -SDL_PROC_UNUSED(void, glColor4bv, (const GLbyte *))
   13.47 -SDL_PROC_UNUSED(void, glColor4d, (GLdouble, GLdouble, GLdouble, GLdouble))
   13.48 -SDL_PROC_UNUSED(void, glColor4dv, (const GLdouble *))
   13.49 -SDL_PROC(void, glColor4f, (GLfloat, GLfloat, GLfloat, GLfloat))
   13.50 -SDL_PROC_UNUSED(void, glColor4fv, (const GLfloat *))
   13.51 -SDL_PROC_UNUSED(void, glColor4i, (GLint, GLint, GLint, GLint))
   13.52 -SDL_PROC_UNUSED(void, glColor4iv, (const GLint *))
   13.53 -SDL_PROC_UNUSED(void, glColor4s, (GLshort, GLshort, GLshort, GLshort))
   13.54 -SDL_PROC_UNUSED(void, glColor4sv, (const GLshort *))
   13.55 -SDL_PROC_UNUSED(void, glColor4ub,
   13.56 -                (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha))
   13.57 -SDL_PROC_UNUSED(void, glColor4ubv, (const GLubyte * v))
   13.58 -SDL_PROC_UNUSED(void, glColor4ui,
   13.59 -                (GLuint red, GLuint green, GLuint blue, GLuint alpha))
   13.60 -SDL_PROC_UNUSED(void, glColor4uiv, (const GLuint * v))
   13.61 -SDL_PROC_UNUSED(void, glColor4us,
   13.62 -                (GLushort red, GLushort green, GLushort blue, GLushort alpha))
   13.63 -SDL_PROC_UNUSED(void, glColor4usv, (const GLushort * v))
   13.64 -SDL_PROC_UNUSED(void, glColorMask,
   13.65 -                (GLboolean red, GLboolean green, GLboolean blue,
   13.66 -                 GLboolean alpha))
   13.67 -SDL_PROC_UNUSED(void, glColorMaterial, (GLenum face, GLenum mode))
   13.68 -SDL_PROC_UNUSED(void, glColorPointer,
   13.69 -                (GLint size, GLenum type, GLsizei stride,
   13.70 -                 const GLvoid * pointer))
   13.71 -SDL_PROC_UNUSED(void, glCopyPixels,
   13.72 -                (GLint x, GLint y, GLsizei width, GLsizei height,
   13.73 -                 GLenum type))
   13.74 -SDL_PROC_UNUSED(void, glCopyTexImage1D,
   13.75 -                (GLenum target, GLint level, GLenum internalFormat, GLint x,
   13.76 -                 GLint y, GLsizei width, GLint border))
   13.77 -SDL_PROC_UNUSED(void, glCopyTexImage2D,
   13.78 -                (GLenum target, GLint level, GLenum internalFormat, GLint x,
   13.79 -                 GLint y, GLsizei width, GLsizei height, GLint border))
   13.80 -SDL_PROC_UNUSED(void, glCopyTexSubImage1D,
   13.81 -                (GLenum target, GLint level, GLint xoffset, GLint x, GLint y,
   13.82 -                 GLsizei width))
   13.83 -SDL_PROC_UNUSED(void, glCopyTexSubImage2D,
   13.84 -                (GLenum target, GLint level, GLint xoffset, GLint yoffset,
   13.85 -                 GLint x, GLint y, GLsizei width, GLsizei height))
   13.86 -SDL_PROC_UNUSED(void, glCullFace, (GLenum mode))
   13.87 -SDL_PROC_UNUSED(void, glDeleteLists, (GLuint list, GLsizei range))
   13.88 -SDL_PROC(void, glDeleteTextures, (GLsizei n, const GLuint * textures))
   13.89 -SDL_PROC_UNUSED(void, glDepthFunc, (GLenum func))
   13.90 -SDL_PROC_UNUSED(void, glDepthMask, (GLboolean flag))
   13.91 -SDL_PROC_UNUSED(void, glDepthRange, (GLclampd zNear, GLclampd zFar))
   13.92 -SDL_PROC(void, glDisable, (GLenum cap))
   13.93 -SDL_PROC_UNUSED(void, glDisableClientState, (GLenum array))
   13.94 -SDL_PROC_UNUSED(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count))
   13.95 -SDL_PROC_UNUSED(void, glDrawBuffer, (GLenum mode))
   13.96 -SDL_PROC_UNUSED(void, glDrawElements,
   13.97 -                (GLenum mode, GLsizei count, GLenum type,
   13.98 -                 const GLvoid * indices))
   13.99 -SDL_PROC(void, glDrawPixels,
  13.100 -         (GLsizei width, GLsizei height, GLenum format, GLenum type,
  13.101 -          const GLvoid * pixels))
  13.102 -SDL_PROC_UNUSED(void, glEdgeFlag, (GLboolean flag))
  13.103 -SDL_PROC_UNUSED(void, glEdgeFlagPointer,
  13.104 -                (GLsizei stride, const GLvoid * pointer))
  13.105 -SDL_PROC_UNUSED(void, glEdgeFlagv, (const GLboolean * flag))
  13.106 -SDL_PROC(void, glEnable, (GLenum cap))
  13.107 -SDL_PROC_UNUSED(void, glEnableClientState, (GLenum array))
  13.108 -SDL_PROC(void, glEnd, (void))
  13.109 -SDL_PROC_UNUSED(void, glEndList, (void))
  13.110 -SDL_PROC_UNUSED(void, glEvalCoord1d, (GLdouble u))
  13.111 -SDL_PROC_UNUSED(void, glEvalCoord1dv, (const GLdouble * u))
  13.112 -SDL_PROC_UNUSED(void, glEvalCoord1f, (GLfloat u))
  13.113 -SDL_PROC_UNUSED(void, glEvalCoord1fv, (const GLfloat * u))
  13.114 -SDL_PROC_UNUSED(void, glEvalCoord2d, (GLdouble u, GLdouble v))
  13.115 -SDL_PROC_UNUSED(void, glEvalCoord2dv, (const GLdouble * u))
  13.116 -SDL_PROC_UNUSED(void, glEvalCoord2f, (GLfloat u, GLfloat v))
  13.117 -SDL_PROC_UNUSED(void, glEvalCoord2fv, (const GLfloat * u))
  13.118 -SDL_PROC_UNUSED(void, glEvalMesh1, (GLenum mode, GLint i1, GLint i2))
  13.119 -SDL_PROC_UNUSED(void, glEvalMesh2,
  13.120 -                (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2))
  13.121 -SDL_PROC_UNUSED(void, glEvalPoint1, (GLint i))
  13.122 -SDL_PROC_UNUSED(void, glEvalPoint2, (GLint i, GLint j))
  13.123 -SDL_PROC_UNUSED(void, glFeedbackBuffer,
  13.124 -                (GLsizei size, GLenum type, GLfloat * buffer))
  13.125 -SDL_PROC_UNUSED(void, glFinish, (void))
  13.126 -SDL_PROC_UNUSED(void, glFlush, (void))
  13.127 -SDL_PROC_UNUSED(void, glFogf, (GLenum pname, GLfloat param))
  13.128 -SDL_PROC_UNUSED(void, glFogfv, (GLenum pname, const GLfloat * params))
  13.129 -SDL_PROC_UNUSED(void, glFogi, (GLenum pname, GLint param))
  13.130 -SDL_PROC_UNUSED(void, glFogiv, (GLenum pname, const GLint * params))
  13.131 -SDL_PROC_UNUSED(void, glFrontFace, (GLenum mode))
  13.132 -SDL_PROC_UNUSED(void, glFrustum,
  13.133 -                (GLdouble left, GLdouble right, GLdouble bottom,
  13.134 -                 GLdouble top, GLdouble zNear, GLdouble zFar))
  13.135 -SDL_PROC_UNUSED(GLuint, glGenLists, (GLsizei range))
  13.136 -SDL_PROC(void, glGenTextures, (GLsizei n, GLuint * textures))
  13.137 -SDL_PROC_UNUSED(void, glGetBooleanv, (GLenum pname, GLboolean * params))
  13.138 -SDL_PROC_UNUSED(void, glGetClipPlane, (GLenum plane, GLdouble * equation))
  13.139 -SDL_PROC_UNUSED(void, glGetDoublev, (GLenum pname, GLdouble * params))
  13.140 -SDL_PROC(GLenum, glGetError, (void))
  13.141 -SDL_PROC_UNUSED(void, glGetFloatv, (GLenum pname, GLfloat * params))
  13.142 -SDL_PROC(void, glGetIntegerv, (GLenum pname, GLint * params))
  13.143 -SDL_PROC_UNUSED(void, glGetLightfv,
  13.144 -                (GLenum light, GLenum pname, GLfloat * params))
  13.145 -SDL_PROC_UNUSED(void, glGetLightiv,
  13.146 -                (GLenum light, GLenum pname, GLint * params))
  13.147 -SDL_PROC_UNUSED(void, glGetMapdv, (GLenum target, GLenum query, GLdouble * v))
  13.148 -SDL_PROC_UNUSED(void, glGetMapfv, (GLenum target, GLenum query, GLfloat * v))
  13.149 -SDL_PROC_UNUSED(void, glGetMapiv, (GLenum target, GLenum query, GLint * v))
  13.150 -SDL_PROC_UNUSED(void, glGetMaterialfv,
  13.151 -                (GLenum face, GLenum pname, GLfloat * params))
  13.152 -SDL_PROC_UNUSED(void, glGetMaterialiv,
  13.153 -                (GLenum face, GLenum pname, GLint * params))
  13.154 -SDL_PROC_UNUSED(void, glGetPixelMapfv, (GLenum map, GLfloat * values))
  13.155 -SDL_PROC_UNUSED(void, glGetPixelMapuiv, (GLenum map, GLuint * values))
  13.156 -SDL_PROC_UNUSED(void, glGetPixelMapusv, (GLenum map, GLushort * values))
  13.157 -SDL_PROC_UNUSED(void, glGetPointerv, (GLenum pname, GLvoid * *params))
  13.158 -SDL_PROC_UNUSED(void, glGetPolygonStipple, (GLubyte * mask))
  13.159 -SDL_PROC(const GLubyte *, glGetString, (GLenum name))
  13.160 -SDL_PROC_UNUSED(void, glGetTexEnvfv,
  13.161 -                (GLenum target, GLenum pname, GLfloat * params))
  13.162 -SDL_PROC_UNUSED(void, glGetTexEnviv,
  13.163 -                (GLenum target, GLenum pname, GLint * params))
  13.164 -SDL_PROC_UNUSED(void, glGetTexGendv,
  13.165 -                (GLenum coord, GLenum pname, GLdouble * params))
  13.166 -SDL_PROC_UNUSED(void, glGetTexGenfv,
  13.167 -                (GLenum coord, GLenum pname, GLfloat * params))
  13.168 -SDL_PROC_UNUSED(void, glGetTexGeniv,
  13.169 -                (GLenum coord, GLenum pname, GLint * params))
  13.170 -SDL_PROC_UNUSED(void, glGetTexImage,
  13.171 -                (GLenum target, GLint level, GLenum format, GLenum type,
  13.172 -                 GLvoid * pixels))
  13.173 -SDL_PROC_UNUSED(void, glGetTexLevelParameterfv,
  13.174 -                (GLenum target, GLint level, GLenum pname, GLfloat * params))
  13.175 -SDL_PROC_UNUSED(void, glGetTexLevelParameteriv,
  13.176 -                (GLenum target, GLint level, GLenum pname, GLint * params))
  13.177 -SDL_PROC_UNUSED(void, glGetTexParameterfv,
  13.178 -                (GLenum target, GLenum pname, GLfloat * params))
  13.179 -SDL_PROC_UNUSED(void, glGetTexParameteriv,
  13.180 -                (GLenum target, GLenum pname, GLint * params))
  13.181 -SDL_PROC_UNUSED(void, glHint, (GLenum target, GLenum mode))
  13.182 -SDL_PROC_UNUSED(void, glIndexMask, (GLuint mask))
  13.183 -SDL_PROC_UNUSED(void, glIndexPointer,
  13.184 -                (GLenum type, GLsizei stride, const GLvoid * pointer))
  13.185 -SDL_PROC_UNUSED(void, glIndexd, (GLdouble c))
  13.186 -SDL_PROC_UNUSED(void, glIndexdv, (const GLdouble * c))
  13.187 -SDL_PROC_UNUSED(void, glIndexf, (GLfloat c))
  13.188 -SDL_PROC_UNUSED(void, glIndexfv, (const GLfloat * c))
  13.189 -SDL_PROC_UNUSED(void, glIndexi, (GLint c))
  13.190 -SDL_PROC_UNUSED(void, glIndexiv, (const GLint * c))
  13.191 -SDL_PROC_UNUSED(void, glIndexs, (GLshort c))
  13.192 -SDL_PROC_UNUSED(void, glIndexsv, (const GLshort * c))
  13.193 -SDL_PROC_UNUSED(void, glIndexub, (GLubyte c))
  13.194 -SDL_PROC_UNUSED(void, glIndexubv, (const GLubyte * c))
  13.195 -SDL_PROC_UNUSED(void, glInitNames, (void))
  13.196 -SDL_PROC_UNUSED(void, glInterleavedArrays,
  13.197 -                (GLenum format, GLsizei stride, const GLvoid * pointer))
  13.198 -SDL_PROC_UNUSED(GLboolean, glIsEnabled, (GLenum cap))
  13.199 -SDL_PROC_UNUSED(GLboolean, glIsList, (GLuint list))
  13.200 -SDL_PROC_UNUSED(GLboolean, glIsTexture, (GLuint texture))
  13.201 -SDL_PROC_UNUSED(void, glLightModelf, (GLenum pname, GLfloat param))
  13.202 -SDL_PROC_UNUSED(void, glLightModelfv, (GLenum pname, const GLfloat * params))
  13.203 -SDL_PROC_UNUSED(void, glLightModeli, (GLenum pname, GLint param))
  13.204 -SDL_PROC_UNUSED(void, glLightModeliv, (GLenum pname, const GLint * params))
  13.205 -SDL_PROC_UNUSED(void, glLightf, (GLenum light, GLenum pname, GLfloat param))
  13.206 -SDL_PROC_UNUSED(void, glLightfv,
  13.207 -                (GLenum light, GLenum pname, const GLfloat * params))
  13.208 -SDL_PROC_UNUSED(void, glLighti, (GLenum light, GLenum pname, GLint param))
  13.209 -SDL_PROC_UNUSED(void, glLightiv,
  13.210 -                (GLenum light, GLenum pname, const GLint * params))
  13.211 -SDL_PROC_UNUSED(void, glLineStipple, (GLint factor, GLushort pattern))
  13.212 -SDL_PROC(void, glLineWidth, (GLfloat width))
  13.213 -SDL_PROC_UNUSED(void, glListBase, (GLuint base))
  13.214 -SDL_PROC(void, glLoadIdentity, (void))
  13.215 -SDL_PROC_UNUSED(void, glLoadMatrixd, (const GLdouble * m))
  13.216 -SDL_PROC_UNUSED(void, glLoadMatrixf, (const GLfloat * m))
  13.217 -SDL_PROC_UNUSED(void, glLoadName, (GLuint name))
  13.218 -SDL_PROC_UNUSED(void, glLogicOp, (GLenum opcode))
  13.219 -SDL_PROC_UNUSED(void, glMap1d,
  13.220 -                (GLenum target, GLdouble u1, GLdouble u2, GLint stride,
  13.221 -                 GLint order, const GLdouble * points))
  13.222 -SDL_PROC_UNUSED(void, glMap1f,
  13.223 -                (GLenum target, GLfloat u1, GLfloat u2, GLint stride,
  13.224 -                 GLint order, const GLfloat * points))
  13.225 -SDL_PROC_UNUSED(void, glMap2d,
  13.226 -                (GLenum target, GLdouble u1, GLdouble u2, GLint ustride,
  13.227 -                 GLint uorder, GLdouble v1, GLdouble v2, GLint vstride,
  13.228 -                 GLint vorder, const GLdouble * points))
  13.229 -SDL_PROC_UNUSED(void, glMap2f,
  13.230 -                (GLenum target, GLfloat u1, GLfloat u2, GLint ustride,
  13.231 -                 GLint uorder, GLfloat v1, GLfloat v2, GLint vstride,
  13.232 -                 GLint vorder, const GLfloat * points))
  13.233 -SDL_PROC_UNUSED(void, glMapGrid1d, (GLint un, GLdouble u1, GLdouble u2))
  13.234 -SDL_PROC_UNUSED(void, glMapGrid1f, (GLint un, GLfloat u1, GLfloat u2))
  13.235 -SDL_PROC_UNUSED(void, glMapGrid2d,
  13.236 -                (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1,
  13.237 -                 GLdouble v2))
  13.238 -SDL_PROC_UNUSED(void, glMapGrid2f,
  13.239 -                (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1,
  13.240 -                 GLfloat v2))
  13.241 -SDL_PROC_UNUSED(void, glMaterialf, (GLenum face, GLenum pname, GLfloat param))
  13.242 -SDL_PROC_UNUSED(void, glMaterialfv,
  13.243 -                (GLenum face, GLenum pname, const GLfloat * params))
  13.244 -SDL_PROC_UNUSED(void, glMateriali, (GLenum face, GLenum pname, GLint param))
  13.245 -SDL_PROC_UNUSED(void, glMaterialiv,
  13.246 -                (GLenum face, GLenum pname, const GLint * params))
  13.247 -SDL_PROC(void, glMatrixMode, (GLenum mode))
  13.248 -SDL_PROC_UNUSED(void, glMultMatrixd, (const GLdouble * m))
  13.249 -SDL_PROC_UNUSED(void, glMultMatrixf, (const GLfloat * m))
  13.250 -SDL_PROC_UNUSED(void, glNewList, (GLuint list, GLenum mode))
  13.251 -SDL_PROC_UNUSED(void, glNormal3b, (GLbyte nx, GLbyte ny, GLbyte nz))
  13.252 -SDL_PROC_UNUSED(void, glNormal3bv, (const GLbyte * v))
  13.253 -SDL_PROC_UNUSED(void, glNormal3d, (GLdouble nx, GLdouble ny, GLdouble nz))
  13.254 -SDL_PROC_UNUSED(void, glNormal3dv, (const GLdouble * v))
  13.255 -SDL_PROC_UNUSED(void, glNormal3f, (GLfloat nx, GLfloat ny, GLfloat nz))
  13.256 -SDL_PROC_UNUSED(void, glNormal3fv, (const GLfloat * v))
  13.257 -SDL_PROC_UNUSED(void, glNormal3i, (GLint nx, GLint ny, GLint nz))
  13.258 -SDL_PROC_UNUSED(void, glNormal3iv, (const GLint * v))
  13.259 -SDL_PROC_UNUSED(void, glNormal3s, (GLshort nx, GLshort ny, GLshort nz))
  13.260 -SDL_PROC_UNUSED(void, glNormal3sv, (const GLshort * v))
  13.261 -SDL_PROC_UNUSED(void, glNormalPointer,
  13.262 -                (GLenum type, GLsizei stride, const GLvoid * pointer))
  13.263 -SDL_PROC(void, glOrtho,
  13.264 -         (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top,
  13.265 -          GLdouble zNear, GLdouble zFar))
  13.266 -SDL_PROC_UNUSED(void, glPassThrough, (GLfloat token))
  13.267 -SDL_PROC_UNUSED(void, glPixelMapfv,
  13.268 -                (GLenum map, GLsizei mapsize, const GLfloat * values))
  13.269 -SDL_PROC_UNUSED(void, glPixelMapuiv,
  13.270 -                (GLenum map, GLsizei mapsize, const GLuint * values))
  13.271 -SDL_PROC_UNUSED(void, glPixelMapusv,
  13.272 -                (GLenum map, GLsizei mapsize, const GLushort * values))
  13.273 -SDL_PROC_UNUSED(void, glPixelStoref, (GLenum pname, GLfloat param))
  13.274 -SDL_PROC(void, glPixelStorei, (GLenum pname, GLint param))
  13.275 -SDL_PROC_UNUSED(void, glPixelTransferf, (GLenum pname, GLfloat param))
  13.276 -SDL_PROC_UNUSED(void, glPixelTransferi, (GLenum pname, GLint param))
  13.277 -SDL_PROC_UNUSED(void, glPixelZoom, (GLfloat xfactor, GLfloat yfactor))
  13.278 -SDL_PROC(void, glPointSize, (GLfloat size))
  13.279 -SDL_PROC_UNUSED(void, glPolygonMode, (GLenum face, GLenum mode))
  13.280 -SDL_PROC_UNUSED(void, glPolygonOffset, (GLfloat factor, GLfloat units))
  13.281 -SDL_PROC_UNUSED(void, glPolygonStipple, (const GLubyte * mask))
  13.282 -SDL_PROC_UNUSED(void, glPopAttrib, (void))
  13.283 -SDL_PROC_UNUSED(void, glPopClientAttrib, (void))
  13.284 -SDL_PROC_UNUSED(void, glPopMatrix, (void))
  13.285 -SDL_PROC_UNUSED(void, glPopName, (void))
  13.286 -SDL_PROC_UNUSED(void, glPrioritizeTextures,
  13.287 -                (GLsizei n, const GLuint * textures,
  13.288 -                 const GLclampf * priorities))
  13.289 -SDL_PROC_UNUSED(void, glPushAttrib, (GLbitfield mask))
  13.290 -SDL_PROC_UNUSED(void, glPushClientAttrib, (GLbitfield mask))
  13.291 -SDL_PROC_UNUSED(void, glPushMatrix, (void))
  13.292 -SDL_PROC_UNUSED(void, glPushName, (GLuint name))
  13.293 -SDL_PROC_UNUSED(void, glRasterPos2d, (GLdouble x, GLdouble y))
  13.294 -SDL_PROC_UNUSED(void, glRasterPos2dv, (const GLdouble * v))
  13.295 -SDL_PROC_UNUSED(void, glRasterPos2f, (GLfloat x, GLfloat y))
  13.296 -SDL_PROC_UNUSED(void, glRasterPos2fv, (const GLfloat * v))
  13.297 -SDL_PROC(void, glRasterPos2i, (GLint x, GLint y))
  13.298 -SDL_PROC_UNUSED(void, glRasterPos2iv, (const GLint * v))
  13.299 -SDL_PROC_UNUSED(void, glRasterPos2s, (GLshort x, GLshort y))
  13.300 -SDL_PROC_UNUSED(void, glRasterPos2sv, (const GLshort * v))
  13.301 -SDL_PROC_UNUSED(void, glRasterPos3d, (GLdouble x, GLdouble y, GLdouble z))
  13.302 -SDL_PROC_UNUSED(void, glRasterPos3dv, (const GLdouble * v))
  13.303 -SDL_PROC_UNUSED(void, glRasterPos3f, (GLfloat x, GLfloat y, GLfloat z))
  13.304 -SDL_PROC_UNUSED(void, glRasterPos3fv, (const GLfloat * v))
  13.305 -SDL_PROC_UNUSED(void, glRasterPos3i, (GLint x, GLint y, GLint z))
  13.306 -SDL_PROC_UNUSED(void, glRasterPos3iv, (const GLint * v))
  13.307 -SDL_PROC_UNUSED(void, glRasterPos3s, (GLshort x, GLshort y, GLshort z))
  13.308 -SDL_PROC_UNUSED(void, glRasterPos3sv, (const GLshort * v))
  13.309 -SDL_PROC_UNUSED(void, glRasterPos4d,
  13.310 -                (GLdouble x, GLdouble y, GLdouble z, GLdouble w))
  13.311 -SDL_PROC_UNUSED(void, glRasterPos4dv, (const GLdouble * v))
  13.312 -SDL_PROC_UNUSED(void, glRasterPos4f,
  13.313 -                (GLfloat x, GLfloat y, GLfloat z, GLfloat w))
  13.314 -SDL_PROC_UNUSED(void, glRasterPos4fv, (const GLfloat * v))
  13.315 -SDL_PROC_UNUSED(void, glRasterPos4i, (GLint x, GLint y, GLint z, GLint w))
  13.316 -SDL_PROC_UNUSED(void, glRasterPos4iv, (const GLint * v))
  13.317 -SDL_PROC_UNUSED(void, glRasterPos4s,
  13.318 -                (GLshort x, GLshort y, GLshort z, GLshort w))
  13.319 -SDL_PROC_UNUSED(void, glRasterPos4sv, (const GLshort * v))
  13.320 -SDL_PROC(void, glReadBuffer, (GLenum mode))
  13.321 -SDL_PROC(void, glReadPixels,
  13.322 -         (GLint x, GLint y, GLsizei width, GLsizei height,
  13.323 -          GLenum format, GLenum type, GLvoid * pixels))
  13.324 -SDL_PROC_UNUSED(void, glRectd,
  13.325 -                (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2))
  13.326 -SDL_PROC_UNUSED(void, glRectdv, (const GLdouble * v1, const GLdouble * v2))
  13.327 -SDL_PROC_UNUSED(void, glRectf,
  13.328 -                (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2))
  13.329 -SDL_PROC_UNUSED(void, glRectfv, (const GLfloat * v1, const GLfloat * v2))
  13.330 -SDL_PROC(void, glRecti, (GLint x1, GLint y1, GLint x2, GLint y2))
  13.331 -SDL_PROC_UNUSED(void, glRectiv, (const GLint * v1, const GLint * v2))
  13.332 -SDL_PROC_UNUSED(void, glRects,
  13.333 -                (GLshort x1, GLshort y1, GLshort x2, GLshort y2))
  13.334 -SDL_PROC_UNUSED(void, glRectsv, (const GLshort * v1, const GLshort * v2))
  13.335 -SDL_PROC_UNUSED(GLint, glRenderMode, (GLenum mode))
  13.336 -SDL_PROC_UNUSED(void, glRotated,
  13.337 -                (GLdouble angle, GLdouble x, GLdouble y, GLdouble z))
  13.338 -SDL_PROC_UNUSED(void, glRotatef,
  13.339 -                (GLfloat angle, GLfloat x, GLfloat y, GLfloat z))
  13.340 -SDL_PROC_UNUSED(void, glScaled, (GLdouble x, GLdouble y, GLdouble z))
  13.341 -SDL_PROC_UNUSED(void, glScalef, (GLfloat x, GLfloat y, GLfloat z))
  13.342 -SDL_PROC_UNUSED(void, glScissor,
  13.343 -                (GLint x, GLint y, GLsizei width, GLsizei height))
  13.344 -SDL_PROC_UNUSED(void, glSelectBuffer, (GLsizei size, GLuint * buffer))
  13.345 -SDL_PROC_UNUSED(void, glShadeModel, (GLenum mode))
  13.346 -SDL_PROC_UNUSED(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask))
  13.347 -SDL_PROC_UNUSED(void, glStencilMask, (GLuint mask))
  13.348 -SDL_PROC_UNUSED(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass))
  13.349 -SDL_PROC_UNUSED(void, glTexCoord1d, (GLdouble s))
  13.350 -SDL_PROC_UNUSED(void, glTexCoord1dv, (const GLdouble * v))
  13.351 -SDL_PROC_UNUSED(void, glTexCoord1f, (GLfloat s))
  13.352 -SDL_PROC_UNUSED(void, glTexCoord1fv, (const GLfloat * v))
  13.353 -SDL_PROC_UNUSED(void, glTexCoord1i, (GLint s))
  13.354 -SDL_PROC_UNUSED(void, glTexCoord1iv, (const GLint * v))
  13.355 -SDL_PROC_UNUSED(void, glTexCoord1s, (GLshort s))
  13.356 -SDL_PROC_UNUSED(void, glTexCoord1sv, (const GLshort * v))
  13.357 -SDL_PROC_UNUSED(void, glTexCoord2d, (GLdouble s, GLdouble t))
  13.358 -SDL_PROC_UNUSED(void, glTexCoord2dv, (const GLdouble * v))
  13.359 -SDL_PROC(void, glTexCoord2f, (GLfloat s, GLfloat t))
  13.360 -SDL_PROC_UNUSED(void, glTexCoord2fv, (const GLfloat * v))
  13.361 -SDL_PROC_UNUSED(void, glTexCoord2i, (GLint s, GLint t))
  13.362 -SDL_PROC_UNUSED(void, glTexCoord2iv, (const GLint * v))
  13.363 -SDL_PROC_UNUSED(void, glTexCoord2s, (GLshort s, GLshort t))
  13.364 -SDL_PROC_UNUSED(void, glTexCoord2sv, (const GLshort * v))
  13.365 -SDL_PROC_UNUSED(void, glTexCoord3d, (GLdouble s, GLdouble t, GLdouble r))
  13.366 -SDL_PROC_UNUSED(void, glTexCoord3dv, (const GLdouble * v))
  13.367 -SDL_PROC_UNUSED(void, glTexCoord3f, (GLfloat s, GLfloat t, GLfloat r))
  13.368 -SDL_PROC_UNUSED(void, glTexCoord3fv, (const GLfloat * v))
  13.369 -SDL_PROC_UNUSED(void, glTexCoord3i, (GLint s, GLint t, GLint r))
  13.370 -SDL_PROC_UNUSED(void, glTexCoord3iv, (const GLint * v))
  13.371 -SDL_PROC_UNUSED(void, glTexCoord3s, (GLshort s, GLshort t, GLshort r))
  13.372 -SDL_PROC_UNUSED(void, glTexCoord3sv, (const GLshort * v))
  13.373 -SDL_PROC_UNUSED(void, glTexCoord4d,
  13.374 -                (GLdouble s, GLdouble t, GLdouble r, GLdouble q))
  13.375 -SDL_PROC_UNUSED(void, glTexCoord4dv, (const GLdouble * v))
  13.376 -SDL_PROC_UNUSED(void, glTexCoord4f,
  13.377 -                (GLfloat s, GLfloat t, GLfloat r, GLfloat q))
  13.378 -SDL_PROC_UNUSED(void, glTexCoord4fv, (const GLfloat * v))
  13.379 -SDL_PROC_UNUSED(void, glTexCoord4i, (GLint s, GLint t, GLint r, GLint q))
  13.380 -SDL_PROC_UNUSED(void, glTexCoord4iv, (const GLint * v))
  13.381 -SDL_PROC_UNUSED(void, glTexCoord4s,
  13.382 -                (GLshort s, GLshort t, GLshort r, GLshort q))
  13.383 -SDL_PROC_UNUSED(void, glTexCoord4sv, (const GLshort * v))
  13.384 -SDL_PROC_UNUSED(void, glTexCoordPointer,
  13.385 -                (GLint size, GLenum type, GLsizei stride,
  13.386 -                 const GLvoid * pointer))
  13.387 -SDL_PROC(void, glTexEnvf, (GLenum target, GLenum pname, GLfloat param))
  13.388 -SDL_PROC_UNUSED(void, glTexEnvfv,
  13.389 -                (GLenum target, GLenum pname, const GLfloat * params))
  13.390 -SDL_PROC_UNUSED(void, glTexEnvi, (GLenum target, GLenum pname, GLint param))
  13.391 -SDL_PROC_UNUSED(void, glTexEnviv,
  13.392 -                (GLenum target, GLenum pname, const GLint * params))
  13.393 -SDL_PROC_UNUSED(void, glTexGend, (GLenum coord, GLenum pname, GLdouble param))
  13.394 -SDL_PROC_UNUSED(void, glTexGendv,
  13.395 -                (GLenum coord, GLenum pname, const GLdouble * params))
  13.396 -SDL_PROC_UNUSED(void, glTexGenf, (GLenum coord, GLenum pname, GLfloat param))
  13.397 -SDL_PROC_UNUSED(void, glTexGenfv,
  13.398 -                (GLenum coord, GLenum pname, const GLfloat * params))
  13.399 -SDL_PROC_UNUSED(void, glTexGeni, (GLenum coord, GLenum pname, GLint param))
  13.400 -SDL_PROC_UNUSED(void, glTexGeniv,
  13.401 -                (GLenum coord, GLenum pname, const GLint * params))
  13.402 -SDL_PROC_UNUSED(void, glTexImage1D,
  13.403 -                (GLenum target, GLint level, GLint internalformat,
  13.404 -                 GLsizei width, GLint border, GLenum format, GLenum type,
  13.405 -                 const GLvoid * pixels))
  13.406 -SDL_PROC(void, glTexImage2D,
  13.407 -         (GLenum target, GLint level, GLint internalformat, GLsizei width,
  13.408 -          GLsizei height, GLint border, GLenum format, GLenum type,
  13.409 -          const GLvoid * pixels))
  13.410 -SDL_PROC_UNUSED(void, glTexParameterf,
  13.411 -                (GLenum target, GLenum pname, GLfloat param))
  13.412 -SDL_PROC_UNUSED(void, glTexParameterfv,
  13.413 -                (GLenum target, GLenum pname, const GLfloat * params))
  13.414 -SDL_PROC(void, glTexParameteri, (GLenum target, GLenum pname, GLint param))
  13.415 -SDL_PROC_UNUSED(void, glTexParameteriv,
  13.416 -                (GLenum target, GLenum pname, const GLint * params))
  13.417 -SDL_PROC_UNUSED(void, glTexSubImage1D,
  13.418 -                (GLenum target, GLint level, GLint xoffset, GLsizei width,
  13.419 -                 GLenum format, GLenum type, const GLvoid * pixels))
  13.420 -SDL_PROC(void, glTexSubImage2D,
  13.421 -         (GLenum target, GLint level, GLint xoffset, GLint yoffset,
  13.422 -          GLsizei width, GLsizei height, GLenum format, GLenum type,
  13.423 -          const GLvoid * pixels))
  13.424 -SDL_PROC_UNUSED(void, glTranslated, (GLdouble x, GLdouble y, GLdouble z))
  13.425 -SDL_PROC_UNUSED(void, glTranslatef, (GLfloat x, GLfloat y, GLfloat z))
  13.426 -SDL_PROC_UNUSED(void, glVertex2d, (GLdouble x, GLdouble y))
  13.427 -SDL_PROC_UNUSED(void, glVertex2dv, (const GLdouble * v))
  13.428 -SDL_PROC(void, glVertex2f, (GLfloat x, GLfloat y))
  13.429 -SDL_PROC_UNUSED(void, glVertex2fv, (const GLfloat * v))
  13.430 -SDL_PROC_UNUSED(void, glVertex2i, (GLint x, GLint y))
  13.431 -SDL_PROC_UNUSED(void, glVertex2iv, (const GLint * v))
  13.432 -SDL_PROC_UNUSED(void, glVertex2s, (GLshort x, GLshort y))
  13.433 -SDL_PROC_UNUSED(void, glVertex2sv, (const GLshort * v))
  13.434 -SDL_PROC_UNUSED(void, glVertex3d, (GLdouble x, GLdouble y, GLdouble z))
  13.435 -SDL_PROC_UNUSED(void, glVertex3dv, (const GLdouble * v))
  13.436 -SDL_PROC_UNUSED(void, glVertex3f, (GLfloat x, GLfloat y, GLfloat z))
  13.437 -SDL_PROC_UNUSED(void, glVertex3fv, (const GLfloat * v))
  13.438 -SDL_PROC_UNUSED(void, glVertex3i, (GLint x, GLint y, GLint z))
  13.439 -SDL_PROC_UNUSED(void, glVertex3iv, (const GLint * v))
  13.440 -SDL_PROC_UNUSED(void, glVertex3s, (GLshort x, GLshort y, GLshort z))
  13.441 -SDL_PROC_UNUSED(void, glVertex3sv, (const GLshort * v))
  13.442 -SDL_PROC_UNUSED(void, glVertex4d,
  13.443 -                (GLdouble x, GLdouble y, GLdouble z, GLdouble w))
  13.444 -SDL_PROC_UNUSED(void, glVertex4dv, (const GLdouble * v))
  13.445 -SDL_PROC_UNUSED(void, glVertex4f,
  13.446 -                (GLfloat x, GLfloat y, GLfloat z, GLfloat w))
  13.447 -SDL_PROC_UNUSED(void, glVertex4fv, (const GLfloat * v))
  13.448 -SDL_PROC_UNUSED(void, glVertex4i, (GLint x, GLint y, GLint z, GLint w))
  13.449 -SDL_PROC_UNUSED(void, glVertex4iv, (const GLint * v))
  13.450 -SDL_PROC_UNUSED(void, glVertex4s,
  13.451 -                (GLshort x, GLshort y, GLshort z, GLshort w))
  13.452 -SDL_PROC_UNUSED(void, glVertex4sv, (const GLshort * v))
  13.453 -SDL_PROC_UNUSED(void, glVertexPointer,
  13.454 -                (GLint size, GLenum type, GLsizei stride,
  13.455 -                 const GLvoid * pointer))
  13.456 -SDL_PROC(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height))
  13.457 -
  13.458 -/* vi: set ts=4 sw=4 expandtab: */
    14.1 --- a/src/video/android/SDL_androidgl.c	Sun Feb 06 00:48:41 2011 -0800
    14.2 +++ b/src/video/android/SDL_androidgl.c	Sun Feb 06 02:35:14 2011 -0800
    14.3 @@ -56,7 +56,7 @@
    14.4  Android_GL_CreateContext(_THIS, SDL_Window * window)
    14.5  {
    14.6      Android_JNI_CreateContext();
    14.7 -    return 1;
    14.8 +    return (SDL_GLContext)1;
    14.9  }
   14.10  
   14.11  int