Added platform independent OpenGL header - SDL_opengl.h
authorSam Lantinga <slouken@libsdl.org>
Thu, 25 Oct 2001 05:37:32 +0000
changeset 2140e5d6dd77bda
parent 213 c79890792bfb
child 215 041cd6816a05
Added platform independent OpenGL header - SDL_opengl.h
docs.html
include/Makefile.am
include/SDL_opengl.h
test/configure.in
test/testgl.c
     1.1 --- a/docs.html	Thu Oct 25 04:35:42 2001 +0000
     1.2 +++ b/docs.html	Thu Oct 25 05:37:32 2001 +0000
     1.3 @@ -16,6 +16,7 @@
     1.4  Major changes since SDL 1.0.0:
     1.5  </H2>
     1.6  <UL>
     1.7 +	<LI> 1.2.3: Added platform independent OpenGL header - SDL_opengl.h
     1.8  	<LI> 1.2.3: Fixed flashing the screen when creating a window on BeOS
     1.9  	<LI> 1.2.3: Added double-buffering support for SVGAlib (thanks Kutak!)
    1.10  	<LI> 1.2.3: Fixed crash when using double-buffering with DGA
     2.1 --- a/include/Makefile.am	Thu Oct 25 04:35:42 2001 +0000
     2.2 +++ b/include/Makefile.am	Thu Oct 25 05:37:32 2001 +0000
     2.3 @@ -21,6 +21,7 @@
     2.4  	SDL_main.h		\
     2.5  	SDL_mouse.h		\
     2.6  	SDL_mutex.h		\
     2.7 +	SDL_opengl.h		\
     2.8  	SDL_quit.h		\
     2.9  	SDL_rwops.h		\
    2.10  	SDL_syswm.h		\
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/include/SDL_opengl.h	Thu Oct 25 05:37:32 2001 +0000
     3.3 @@ -0,0 +1,307 @@
     3.4 +/*
     3.5 +    SDL - Simple DirectMedia Layer
     3.6 +    Copyright (C) 1997, 1998, 1999, 2000, 2001  Sam Lantinga
     3.7 +
     3.8 +    This library is free software; you can redistribute it and/or
     3.9 +    modify it under the terms of the GNU Library General Public
    3.10 +    License as published by the Free Software Foundation; either
    3.11 +    version 2 of the License, or (at your option) any later version.
    3.12 +
    3.13 +    This library is distributed in the hope that it will be useful,
    3.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    3.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    3.16 +    Library General Public License for more details.
    3.17 +
    3.18 +    You should have received a copy of the GNU Library General Public
    3.19 +    License along with this library; if not, write to the Free
    3.20 +    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    3.21 +
    3.22 +    Sam Lantinga
    3.23 +    slouken@devolution.com
    3.24 +*/
    3.25 +
    3.26 +#ifdef SAVE_RCSID
    3.27 +static char rcsid =
    3.28 + "@(#) $Id$";
    3.29 +#endif
    3.30 +
    3.31 +/* This is a simple file to encapsulate the OpenGL API headers */
    3.32 +
    3.33 +#ifdef WIN32
    3.34 +#define WIN32_LEAN_AND_MEAN
    3.35 +#include <windows.h>
    3.36 +#endif
    3.37 +#if defined(__APPLE__) && defined(__MACH__)
    3.38 +#include <OpenGL/gl.h>	/* Header File For The OpenGL Library */
    3.39 +#include <OpenGL/glu.h>	/* Header File For The GLU Library */
    3.40 +#else
    3.41 +#ifndef NO_SDL_GLEXT
    3.42 +#define __glext_h_  /* Don't let gl.h include glext.h */
    3.43 +#endif
    3.44 +#include <GL/gl.h>	/* Header File For The OpenGL Library */
    3.45 +#include <GL/glu.h>	/* Header File For The GLU Library */
    3.46 +#ifndef NO_SDL_GLEXT
    3.47 +#undef __glext_h_
    3.48 +#endif
    3.49 +#endif
    3.50 +
    3.51 +/* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials.
    3.52 +   It is included here because glext.h is not available on some systems.
    3.53 +   If you don't want this version included, simply define "NO_SDL_GLEXT"
    3.54 + */
    3.55 +#ifndef NO_SDL_GLEXT
    3.56 +#ifndef __glext_h_
    3.57 +#define __glext_h_
    3.58 +
    3.59 +#ifdef __cplusplus
    3.60 +extern "C" {
    3.61 +#endif
    3.62 +
    3.63 +#ifndef APIENTRY
    3.64 +#define APIENTRY
    3.65 +#endif
    3.66 +
    3.67 +/*
    3.68 +** Copyright 1992-1999 Silicon Graphics, Inc.
    3.69 +** All Rights Reserved.
    3.70 +**
    3.71 +** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
    3.72 +** the contents of this file may not be disclosed to third parties, copied or
    3.73 +** duplicated in any form, in whole or in part, without the prior written
    3.74 +** permission of Silicon Graphics, Inc.
    3.75 +**
    3.76 +** RESTRICTED RIGHTS LEGEND:
    3.77 +** Use, duplication or disclosure by the Government is subject to restrictions
    3.78 +** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
    3.79 +** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
    3.80 +** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
    3.81 +** rights reserved under the Copyright Laws of the United States.
    3.82 +*/
    3.83 +
    3.84 +#define GL_ARB_multitexture                 1
    3.85 +#define GL_EXT_abgr                         1
    3.86 +#define GL_EXT_bgra                         1
    3.87 +#define GL_EXT_clip_volume_hint             1
    3.88 +#define GL_EXT_compiled_vertex_array        1
    3.89 +#define GL_EXT_cull_vertex                  1
    3.90 +#define GL_EXT_packed_pixels                1
    3.91 +#define GL_EXT_point_parameters             1
    3.92 +#define GL_EXT_stencil_wrap                 1
    3.93 +#define GL_EXT_texture_env_add              1
    3.94 +#define GL_EXT_texture_env_combine          1
    3.95 +#define GL_EXT_vertex_array                 1
    3.96 +#define GL_NV_texgen_reflection             1
    3.97 +#define GL_NV_texture_env_combine4          1
    3.98 +#define GL_WIN_swap_hint                    1
    3.99 +
   3.100 +/* EXT_abgr */
   3.101 +#define GL_ABGR_EXT                         0x8000
   3.102 +
   3.103 +/* EXT_packed_pixels */
   3.104 +#define GL_UNSIGNED_BYTE_3_3_2_EXT          0x8032
   3.105 +#define GL_UNSIGNED_SHORT_4_4_4_4_EXT       0x8033
   3.106 +#define GL_UNSIGNED_SHORT_5_5_5_1_EXT       0x8034
   3.107 +#define GL_UNSIGNED_INT_8_8_8_8_EXT         0x8035
   3.108 +#define GL_UNSIGNED_INT_10_10_10_2_EXT      0x8036
   3.109 +
   3.110 +/* EXT_vertex_array */
   3.111 +#define GL_VERTEX_ARRAY_EXT                 0x8074
   3.112 +#define GL_NORMAL_ARRAY_EXT                 0x8075
   3.113 +#define GL_COLOR_ARRAY_EXT                  0x8076
   3.114 +#define GL_INDEX_ARRAY_EXT                  0x8077
   3.115 +#define GL_TEXTURE_COORD_ARRAY_EXT          0x8078
   3.116 +#define GL_EDGE_FLAG_ARRAY_EXT              0x8079
   3.117 +#define GL_VERTEX_ARRAY_SIZE_EXT            0x807A
   3.118 +#define GL_VERTEX_ARRAY_TYPE_EXT            0x807B
   3.119 +#define GL_VERTEX_ARRAY_STRIDE_EXT          0x807C
   3.120 +#define GL_VERTEX_ARRAY_COUNT_EXT           0x807D
   3.121 +#define GL_NORMAL_ARRAY_TYPE_EXT            0x807E
   3.122 +#define GL_NORMAL_ARRAY_STRIDE_EXT          0x807F
   3.123 +#define GL_NORMAL_ARRAY_COUNT_EXT           0x8080
   3.124 +#define GL_COLOR_ARRAY_SIZE_EXT             0x8081
   3.125 +#define GL_COLOR_ARRAY_TYPE_EXT             0x8082
   3.126 +#define GL_COLOR_ARRAY_STRIDE_EXT           0x8083
   3.127 +#define GL_COLOR_ARRAY_COUNT_EXT            0x8084
   3.128 +#define GL_INDEX_ARRAY_TYPE_EXT             0x8085
   3.129 +#define GL_INDEX_ARRAY_STRIDE_EXT           0x8086
   3.130 +#define GL_INDEX_ARRAY_COUNT_EXT            0x8087
   3.131 +#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT     0x8088
   3.132 +#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT     0x8089
   3.133 +#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT   0x808A
   3.134 +#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT    0x808B
   3.135 +#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT       0x808C
   3.136 +#define GL_EDGE_FLAG_ARRAY_COUNT_EXT        0x808D
   3.137 +#define GL_VERTEX_ARRAY_POINTER_EXT         0x808E
   3.138 +#define GL_NORMAL_ARRAY_POINTER_EXT         0x808F
   3.139 +#define GL_COLOR_ARRAY_POINTER_EXT          0x8090
   3.140 +#define GL_INDEX_ARRAY_POINTER_EXT          0x8091
   3.141 +#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT  0x8092
   3.142 +#define GL_EDGE_FLAG_ARRAY_POINTER_EXT      0x8093
   3.143 +
   3.144 +/* EXT_bgra */
   3.145 +#define GL_BGR_EXT                          0x80E0
   3.146 +#define GL_BGRA_EXT                         0x80E1
   3.147 +
   3.148 +/* EXT_clip_volume_hint */
   3.149 +#define GL_CLIP_VOLUME_CLIPPING_HINT_EXT    0x80F0
   3.150 +
   3.151 +/* EXT_point_parameters */
   3.152 +#define GL_POINT_SIZE_MIN_EXT               0x8126
   3.153 +#define GL_POINT_SIZE_MAX_EXT               0x8127
   3.154 +#define GL_POINT_FADE_THRESHOLD_SIZE_EXT    0x8128
   3.155 +#define GL_DISTANCE_ATTENUATION_EXT         0x8129
   3.156 +
   3.157 +/* EXT_compiled_vertex_array */
   3.158 +#define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT     0x81A8
   3.159 +#define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT     0x81A9
   3.160 +
   3.161 +/* EXT_cull_vertex */
   3.162 +#define GL_CULL_VERTEX_EXT                  0x81AA
   3.163 +#define GL_CULL_VERTEX_EYE_POSITION_EXT     0x81AB
   3.164 +#define GL_CULL_VERTEX_OBJECT_POSITION_EXT  0x81AC
   3.165 +
   3.166 +/* ARB_multitexture */
   3.167 +#define GL_ACTIVE_TEXTURE_ARB               0x84E0
   3.168 +#define GL_CLIENT_ACTIVE_TEXTURE_ARB        0x84E1
   3.169 +#define GL_MAX_TEXTURE_UNITS_ARB            0x84E2
   3.170 +#define GL_TEXTURE0_ARB                     0x84C0
   3.171 +#define GL_TEXTURE1_ARB                     0x84C1
   3.172 +#define GL_TEXTURE2_ARB                     0x84C2
   3.173 +#define GL_TEXTURE3_ARB                     0x84C3
   3.174 +#define GL_TEXTURE4_ARB                     0x84C4
   3.175 +#define GL_TEXTURE5_ARB                     0x84C5
   3.176 +#define GL_TEXTURE6_ARB                     0x84C6
   3.177 +#define GL_TEXTURE7_ARB                     0x84C7
   3.178 +#define GL_TEXTURE8_ARB                     0x84C8
   3.179 +#define GL_TEXTURE9_ARB                     0x84C9
   3.180 +#define GL_TEXTURE10_ARB                    0x84CA
   3.181 +#define GL_TEXTURE11_ARB                    0x84CB
   3.182 +#define GL_TEXTURE12_ARB                    0x84CC
   3.183 +#define GL_TEXTURE13_ARB                    0x84CD
   3.184 +#define GL_TEXTURE14_ARB                    0x84CE
   3.185 +#define GL_TEXTURE15_ARB                    0x84CF
   3.186 +#define GL_TEXTURE16_ARB                    0x84D0
   3.187 +#define GL_TEXTURE17_ARB                    0x84D1
   3.188 +#define GL_TEXTURE18_ARB                    0x84D2
   3.189 +#define GL_TEXTURE19_ARB                    0x84D3
   3.190 +#define GL_TEXTURE20_ARB                    0x84D4
   3.191 +#define GL_TEXTURE21_ARB                    0x84D5
   3.192 +#define GL_TEXTURE22_ARB                    0x84D6
   3.193 +#define GL_TEXTURE23_ARB                    0x84D7
   3.194 +#define GL_TEXTURE24_ARB                    0x84D8
   3.195 +#define GL_TEXTURE25_ARB                    0x84D9
   3.196 +#define GL_TEXTURE26_ARB                    0x84DA
   3.197 +#define GL_TEXTURE27_ARB                    0x84DB
   3.198 +#define GL_TEXTURE28_ARB                    0x84DC
   3.199 +#define GL_TEXTURE29_ARB                    0x84DD
   3.200 +#define GL_TEXTURE30_ARB                    0x84DE
   3.201 +#define GL_TEXTURE31_ARB                    0x84DF
   3.202 +
   3.203 +/* EXT_stencil_wrap */
   3.204 +#define GL_INCR_WRAP_EXT                    0x8507
   3.205 +#define GL_DECR_WRAP_EXT                    0x8508
   3.206 +
   3.207 +/* NV_texgen_reflection */
   3.208 +#define GL_NORMAL_MAP_NV                    0x8511
   3.209 +#define GL_REFLECTION_MAP_NV                0x8512
   3.210 +
   3.211 +/* EXT_texture_env_combine */
   3.212 +#define GL_COMBINE_EXT                      0x8570
   3.213 +#define GL_COMBINE_RGB_EXT                  0x8571
   3.214 +#define GL_COMBINE_ALPHA_EXT                0x8572
   3.215 +#define GL_RGB_SCALE_EXT                    0x8573
   3.216 +#define GL_ADD_SIGNED_EXT                   0x8574
   3.217 +#define GL_INTERPOLATE_EXT                  0x8575
   3.218 +#define GL_CONSTANT_EXT                     0x8576
   3.219 +#define GL_PRIMARY_COLOR_EXT                0x8577
   3.220 +#define GL_PREVIOUS_EXT                     0x8578
   3.221 +#define GL_SOURCE0_RGB_EXT                  0x8580
   3.222 +#define GL_SOURCE1_RGB_EXT                  0x8581
   3.223 +#define GL_SOURCE2_RGB_EXT                  0x8582
   3.224 +#define GL_SOURCE0_ALPHA_EXT                0x8588
   3.225 +#define GL_SOURCE1_ALPHA_EXT                0x8589
   3.226 +#define GL_SOURCE2_ALPHA_EXT                0x858A
   3.227 +#define GL_OPERAND0_RGB_EXT                 0x8590
   3.228 +#define GL_OPERAND1_RGB_EXT                 0x8591
   3.229 +#define GL_OPERAND2_RGB_EXT                 0x8592
   3.230 +#define GL_OPERAND0_ALPHA_EXT               0x8598
   3.231 +#define GL_OPERAND1_ALPHA_EXT               0x8599
   3.232 +#define GL_OPERAND2_ALPHA_EXT               0x859A
   3.233 +
   3.234 +/* NV_texture_env_combine4 */
   3.235 +#define GL_COMBINE4_NV                      0x8503
   3.236 +#define GL_SOURCE3_RGB_NV                   0x8583
   3.237 +#define GL_SOURCE3_ALPHA_NV                 0x858B
   3.238 +#define GL_OPERAND3_RGB_NV                  0x8593
   3.239 +#define GL_OPERAND3_ALPHA_NV                0x859B
   3.240 +
   3.241 +/*************************************************************/
   3.242 +
   3.243 +/* EXT_vertex_array */
   3.244 +typedef void (APIENTRY * PFNGLARRAYELEMENTEXTPROC) (GLint i);
   3.245 +typedef void (APIENTRY * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
   3.246 +typedef void (APIENTRY * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
   3.247 +typedef void (APIENTRY * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
   3.248 +typedef void (APIENTRY * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params);
   3.249 +typedef void (APIENTRY * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
   3.250 +typedef void (APIENTRY * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
   3.251 +typedef void (APIENTRY * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
   3.252 +typedef void (APIENTRY * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
   3.253 +
   3.254 +/* ARB_multitexture */
   3.255 +typedef void (APIENTRY * PFNGLMULTITEXCOORD1DARBPROC) (GLenum target, GLdouble s);
   3.256 +typedef void (APIENTRY * PFNGLMULTITEXCOORD1DVARBPROC) (GLenum target, const GLdouble *v);
   3.257 +typedef void (APIENTRY * PFNGLMULTITEXCOORD1FARBPROC) (GLenum target, GLfloat s);
   3.258 +typedef void (APIENTRY * PFNGLMULTITEXCOORD1FVARBPROC) (GLenum target, const GLfloat *v);
   3.259 +typedef void (APIENTRY * PFNGLMULTITEXCOORD1IARBPROC) (GLenum target, GLint s);
   3.260 +typedef void (APIENTRY * PFNGLMULTITEXCOORD1IVARBPROC) (GLenum target, const GLint *v);
   3.261 +typedef void (APIENTRY * PFNGLMULTITEXCOORD1SARBPROC) (GLenum target, GLshort s);
   3.262 +typedef void (APIENTRY * PFNGLMULTITEXCOORD1SVARBPROC) (GLenum target, const GLshort *v);
   3.263 +typedef void (APIENTRY * PFNGLMULTITEXCOORD2DARBPROC) (GLenum target, GLdouble s, GLdouble t);
   3.264 +typedef void (APIENTRY * PFNGLMULTITEXCOORD2DVARBPROC) (GLenum target, const GLdouble *v);
   3.265 +typedef void (APIENTRY * PFNGLMULTITEXCOORD2FARBPROC) (GLenum target, GLfloat s, GLfloat t);
   3.266 +typedef void (APIENTRY * PFNGLMULTITEXCOORD2FVARBPROC) (GLenum target, const GLfloat *v);
   3.267 +typedef void (APIENTRY * PFNGLMULTITEXCOORD2IARBPROC) (GLenum target, GLint s, GLint t);
   3.268 +typedef void (APIENTRY * PFNGLMULTITEXCOORD2IVARBPROC) (GLenum target, const GLint *v);
   3.269 +typedef void (APIENTRY * PFNGLMULTITEXCOORD2SARBPROC) (GLenum target, GLshort s, GLshort t);
   3.270 +typedef void (APIENTRY * PFNGLMULTITEXCOORD2SVARBPROC) (GLenum target, const GLshort *v);
   3.271 +typedef void (APIENTRY * PFNGLMULTITEXCOORD3DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
   3.272 +typedef void (APIENTRY * PFNGLMULTITEXCOORD3DVARBPROC) (GLenum target, const GLdouble *v);
   3.273 +typedef void (APIENTRY * PFNGLMULTITEXCOORD3FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
   3.274 +typedef void (APIENTRY * PFNGLMULTITEXCOORD3FVARBPROC) (GLenum target, const GLfloat *v);
   3.275 +typedef void (APIENTRY * PFNGLMULTITEXCOORD3IARBPROC) (GLenum target, GLint s, GLint t, GLint r);
   3.276 +typedef void (APIENTRY * PFNGLMULTITEXCOORD3IVARBPROC) (GLenum target, const GLint *v);
   3.277 +typedef void (APIENTRY * PFNGLMULTITEXCOORD3SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
   3.278 +typedef void (APIENTRY * PFNGLMULTITEXCOORD3SVARBPROC) (GLenum target, const GLshort *v);
   3.279 +typedef void (APIENTRY * PFNGLMULTITEXCOORD4DARBPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
   3.280 +typedef void (APIENTRY * PFNGLMULTITEXCOORD4DVARBPROC) (GLenum target, const GLdouble *v);
   3.281 +typedef void (APIENTRY * PFNGLMULTITEXCOORD4FARBPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
   3.282 +typedef void (APIENTRY * PFNGLMULTITEXCOORD4FVARBPROC) (GLenum target, const GLfloat *v);
   3.283 +typedef void (APIENTRY * PFNGLMULTITEXCOORD4IARBPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
   3.284 +typedef void (APIENTRY * PFNGLMULTITEXCOORD4IVARBPROC) (GLenum target, const GLint *v);
   3.285 +typedef void (APIENTRY * PFNGLMULTITEXCOORD4SARBPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
   3.286 +typedef void (APIENTRY * PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLshort *v);
   3.287 +typedef void (APIENTRY * PFNGLACTIVETEXTUREARBPROC) (GLenum target);
   3.288 +typedef void (APIENTRY * PFNGLCLIENTACTIVETEXTUREARBPROC) (GLenum target);
   3.289 +
   3.290 +/* EXT_compiled_vertex_array */
   3.291 +typedef void (APIENTRY * PFNGLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
   3.292 +typedef void (APIENTRY * PFNGLUNLOCKARRAYSEXTPROC) (void);
   3.293 +
   3.294 +/* EXT_cull_vertex */
   3.295 +typedef void (APIENTRY * PFNGLCULLPARAMETERDVEXTPROC) (GLenum pname, GLdouble* params);
   3.296 +typedef void (APIENTRY * PFNGLCULLPARAMETERFVEXTPROC) (GLenum pname, GLfloat* params);
   3.297 +
   3.298 +/* WIN_swap_hint */
   3.299 +typedef void (APIENTRY * PFNGLADDSWAPHINTRECTWINPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
   3.300 +
   3.301 +/* EXT_point_parameter */
   3.302 +typedef void (APIENTRY * PFNGLPOINTPARAMETERFEXTPROC) (GLenum pname, GLfloat param);
   3.303 +typedef void (APIENTRY * PFNGLPOINTPARAMETERFVEXTPROC) (GLenum pname, const GLfloat *params);
   3.304 +
   3.305 +#ifdef __cplusplus
   3.306 +}
   3.307 +#endif
   3.308 +
   3.309 +#endif /* __glext_h_ */
   3.310 +#endif /* NO_SDL_GLEXT */
     4.1 --- a/test/configure.in	Thu Oct 25 04:35:42 2001 +0000
     4.2 +++ b/test/configure.in	Thu Oct 25 05:37:32 2001 +0000
     4.3 @@ -2,7 +2,7 @@
     4.4  AC_INIT(README)
     4.5  
     4.6  dnl Setup for automake
     4.7 -SDL_VERSION=1.2.0
     4.8 +SDL_VERSION=1.2.3
     4.9  
    4.10  dnl Detect the canonical host and target build environment
    4.11  AC_CANONICAL_HOST
     5.1 --- a/test/testgl.c	Thu Oct 25 04:35:42 2001 +0000
     5.2 +++ b/test/testgl.c	Thu Oct 25 05:37:32 2001 +0000
     5.3 @@ -6,13 +6,7 @@
     5.4  #include "SDL.h"
     5.5  
     5.6  #ifdef HAVE_OPENGL
     5.7 -#ifdef WIN32
     5.8 -#include <windows.h>
     5.9 -#endif
    5.10 -#if defined(__APPLE__) && defined(__MACH__)
    5.11 -#include <OpenGL/gl.h>
    5.12 -#else
    5.13 -#include <GL/gl.h>
    5.14 +#include "SDL_opengl.h"
    5.15  #endif
    5.16  
    5.17  #define SHADED_CUBE