From http://www.jwz.org/xscreensaver/xscreensaver-5.40.tar.gz
[xscreensaver] / jwxyz / jwzgles.h
1 /* xscreensaver, Copyright (c) 2012 Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11
12 /* A compatibility shim to allow OpenGL 1.3 source code to work in an
13    OpenGLES environment, where almost every OpenGL 1.3 function has
14    been "deprecated".  See jwzgles.c for details.
15  */
16
17 #ifndef __JWZGLES_H__
18 #define __JWZGLES_H__
19
20 #ifndef HAVE_JWZGLES
21 # error: do not include this without HAVE_JWZGLES
22 #endif
23
24
25 #include "jwzglesI.h"
26
27
28 /* These are the OpenGL 1.3 functions that are not present in OpenGLES 1.
29    As you can see from the length of this list, OpenGL and OpenGLES have
30    almost nothing to do with each other.  To claim that GLES is a dialect
31    of OpenGL is absurd -- English and Latin have more in common!
32  */
33
34 #define glAccum                         jwzgles_glAccum
35 #define glAntialiasing                  jwzgles_glAntialiasing
36 #define glAreTexturesResident           jwzgles_glAreTexturesResident
37 #define glArrayElement                  jwzgles_glArrayElement
38 #define glBegin                         jwzgles_glBegin
39 #define glBitmap                        jwzgles_glBitmap
40 #define glBlendColor                    jwzgles_glBlendColor
41 #define glBlendEquation                 jwzgles_glBlendEquation
42 #define glCallList                      jwzgles_glCallList
43 #define glCallLists                     jwzgles_glCallLists
44 #define glClearAccum                    jwzgles_glClearAccum
45 #define glClearDepth                    jwzgles_glClearDepth
46 #define glClearIndex                    jwzgles_glClearIndex
47 #define glClipPlane                     jwzgles_glClipPlane
48 #define glColor3b                       jwzgles_glColor3b
49 #define glColor3bv                      jwzgles_glColor3bv
50 #define glColor3d                       jwzgles_glColor3f
51 #define glColor3dv                      jwzgles_glColor3dv
52 #define glColor3f                       jwzgles_glColor3f
53 #define glColor3fv                      jwzgles_glColor3fv
54 #define glColor3i                       jwzgles_glColor3i
55 #define glColor3iv                      jwzgles_glColor3iv
56 #define glColor3s                       jwzgles_glColor3s
57 #define glColor3sv                      jwzgles_glColor3sv
58 #define glColor3ub                      jwzgles_glColor3ub
59 #define glColor3ubv                     jwzgles_glColor3ubv
60 #define glColor3ui                      jwzgles_glColor3ui
61 #define glColor3uiv                     jwzgles_glColor3uiv
62 #define glColor3us                      jwzgles_glColor3us
63 #define glColor3usv                     jwzgles_glColor3usv
64 #define glColor4b                       jwzgles_glColor4b
65 #define glColor4bv                      jwzgles_glColor4bv
66 #define glColor4d                       jwzgles_glColor4d
67 #define glColor4dv                      jwzgles_glColor4dv
68 #define glColor4fv                      jwzgles_glColor4fv
69 #define glColor4i                       jwzgles_glColor4i
70 #define glColor4iv                      jwzgles_glColor4iv
71 #define glColor4s                       jwzgles_glColor4s
72 #define glColor4sv                      jwzgles_glColor4sv
73 #define glColor4ub                      jwzgles_glColor4ub
74 #define glColor4ubv                     jwzgles_glColor4ubv
75 #define glColor4ui                      jwzgles_glColor4ui
76 #define glColor4uiv                     jwzgles_glColor4uiv
77 #define glColor4us                      jwzgles_glColor4us
78 #define glColor4usv                     jwzgles_glColor4usv
79 #define glColorMaterial                 jwzgles_glColorMaterial
80 #define glColorSubTable                 jwzgles_glColorSubTable
81 #define glColorTable                    jwzgles_glColorTable
82 #define glColorTableParameter           jwzgles_glColorTableParameter
83 #define glColorTableParameterfv         jwzgles_glColorTableParameterfv
84 #define glColorub                       jwzgles_glColorub
85 #define glColorui                       jwzgles_glColorui
86 #define glColorus                       jwzgles_glColorus
87 #define glCompressedTexImage            jwzgles_glCompressedTexImage
88 #define glCompressedTexImage1D          jwzgles_glCompressedTexImage1D
89 #define glCompressedTexImage3D          jwzgles_glCompressedTexImage3D
90 #define glCompressedTexSubImage1D       jwzgles_glCompressedTexSubImage1D
91 #define glCompressedTexSubImage3D       jwzgles_glCompressedTexSubImage3D
92 #define glConvolutionFilter1D           jwzgles_glConvolutionFilter1D
93 #define glConvolutionFilter2D           jwzgles_glConvolutionFilter2D
94 #define glConvolutionParameter          jwzgles_glConvolutionParameter
95 #define glConvolutionParameterfv        jwzgles_glConvolutionParameterfv
96 #define glConvolutionParameteriv        jwzgles_glConvolutionParameteriv
97 #define glCopyColorSubTable             jwzgles_glCopyColorSubTable
98 #define glCopyColorTable                jwzgles_glCopyColorTable
99 #define glCopyConvolutionFilter1D       jwzgles_glCopyConvolutionFilter1D
100 #define glCopyConvolutionFilter2D       jwzgles_glCopyConvolutionFilter2D
101 #define glCopyPixels                    jwzgles_glCopyPixels
102 #define glCopyTexImage1D                jwzgles_glCopyTexImage1D
103 #define glCopyTexImage3D                jwzgles_glCopyTexImage3D
104 #define glCopyTexSubImage1D             jwzgles_glCopyTexSubImage1D
105 #define glCopyTexSubImage3D             jwzgles_glCopyTexSubImage3D
106 #define glDeleteLists                   jwzgles_glDeleteLists
107 #define glDepthRange                    jwzgles_glDepthRange
108 #define glDrawBuffer                    jwzgles_glDrawBuffer
109 #define glDrawPixels                    jwzgles_glDrawPixels
110 #define glDrawRangeElements             jwzgles_glDrawRangeElements
111 #define glEdgeFlag                      jwzgles_glEdgeFlag
112 #define glEdgeFlagPointer               jwzgles_glEdgeFlagPointer
113 #define glEdgeFlagv                     jwzgles_glEdgeFlagv
114 #define glEnd                           jwzgles_glEnd
115 #define glEndList                       jwzgles_glEndList
116 #define glEvalCoord1d                   jwzgles_glEvalCoord1d
117 #define glEvalCoord1dv                  jwzgles_glEvalCoord1dv
118 #define glEvalCoord1f                   jwzgles_glEvalCoord1f
119 #define glEvalCoord1fv                  jwzgles_glEvalCoord1fv
120 #define glEvalCoord2d                   jwzgles_glEvalCoord2d
121 #define glEvalCoord2dv                  jwzgles_glEvalCoord2dv
122 #define glEvalCoord2f                   jwzgles_glEvalCoord2f
123 #define glEvalCoord2fv                  jwzgles_glEvalCoord2fv
124 #define glEvalMesh1                     jwzgles_glEvalMesh1
125 #define glEvalMesh2                     jwzgles_glEvalMesh2
126 #define glEvalPoint1                    jwzgles_glEvalPoint1
127 #define glEvalPoint2                    jwzgles_glEvalPoint2
128 #define glFeedbackBuffer                jwzgles_glFeedbackBuffer
129 #define glFogi                          jwzgles_glFogi
130 #define glFogiv                         jwzgles_glFogiv
131 #define glFrustum                       jwzgles_glFrustum
132 #define glGenLists                      jwzgles_glGenLists
133 #define glGet                           jwzgles_glGet
134 #define glGetBooleanv                   jwzgles_glGetBooleanv
135 #define glGetClipPlane                  jwzgles_glGetClipPlane
136 #define glGetColorTable                 jwzgles_glGetColorTable
137 #define glGetColorTableParameter        jwzgles_glGetColorTableParameter
138 #define glGetCompressedTexImage         jwzgles_glGetCompressedTexImage
139 #define glGetConvolutionFilter          jwzgles_glGetConvolutionFilter
140 #define glGetConvolutionParameter       jwzgles_glGetConvolutionParameter
141 #define glGetConvolutionParameteriv     jwzgles_glGetConvolutionParameteriv
142 #define glGetDoublev                    jwzgles_glGetDoublev
143 #define glGetFloatv                     jwzgles_glGetFloatv
144 #define glGetHistogram                  jwzgles_glGetHistogram
145 #define glGetHistogramParameter         jwzgles_glGetHistogramParameter
146 #define glGetLightfv                    jwzgles_glGetLightfv
147 #define glGetLightiv                    jwzgles_glGetLightiv
148 #define glGetMapdv                      jwzgles_glGetMapdv
149 #define glGetMapfv                      jwzgles_glGetMapfv
150 #define glGetMapiv                      jwzgles_glGetMapiv
151 #define glGetMaterialfv                 jwzgles_glGetMaterialfv
152 #define glGetMaterialiv                 jwzgles_glGetMaterialiv
153 #define glGetPixelMapfv                 jwzgles_glGetPixelMapfv
154 #define glGetPixelMapuiv                jwzgles_glGetPixelMapuiv
155 #define glGetPixelMapusv                jwzgles_glGetPixelMapusv
156 #define glGetPointerv                   jwzgles_glGetPointerv
157 #define glGetPolygonStipple             jwzgles_glGetPolygonStipple
158 #define glGetSeparableFilter            jwzgles_glGetSeparableFilter
159 #define glGetTexEnvfv                   jwzgles_glGetTexEnvfv
160 #define glGetTexEnviv                   jwzgles_glGetTexEnviv
161 #define glGetTexGendv                   jwzgles_glGetTexGendv
162 #define glGetTexGenfv                   jwzgles_glGetTexGenfv
163 #define glGetTexGeniv                   jwzgles_glGetTexGeniv
164 #define glGetTexImage                   jwzgles_glGetTexImage
165 #define glGetTexImage1D                 jwzgles_glGetTexImage1D
166 #define glGetTexImage2D                 jwzgles_glGetTexImage2D
167 #define glGetTexImage3D                 jwzgles_glGetTexImage3D
168 #define glGetTexLevelParameterfv        jwzgles_glGetTexLevelParameterfv
169 #define glGetTexLevelParameteriv        jwzgles_glGetTexLevelParameteriv
170 #define glGetTexParameterfv             jwzgles_glGetTexParameterfv
171 #define glGetTexParameteriv             jwzgles_glGetTexParameteriv
172 #define glHistogram                     jwzgles_glHistogram
173 #define glIndex                         jwzgles_glIndex
174 #define glIndexMask                     jwzgles_glIndexMask
175 #define glIndexPointer                  jwzgles_glIndexPointer
176 #define glIndexd                        jwzgles_glIndexd
177 #define glIndexdv                       jwzgles_glIndexdv
178 #define glIndexf                        jwzgles_glIndexf
179 #define glIndexfv                       jwzgles_glIndexfv
180 /*#define glIndexi                      jwzgles_glIndexi*/
181 #define glIndexiv                       jwzgles_glIndexiv
182 #define glIndexs                        jwzgles_glIndexs
183 #define glIndexsv                       jwzgles_glIndexsv
184 #define glIndexub                       jwzgles_glIndexub
185 #define glIndexubv                      jwzgles_glIndexubv
186 #define glInitNames                     jwzgles_glInitNames
187 #define glInterleavedArrays             jwzgles_glInterleavedArrays
188 #define glIsEnabled                     jwzgles_glIsEnabled
189 #define glIsList                        jwzgles_glIsList
190 #define glIsTexture                     jwzgles_glIsTexture
191 #define glLightModeli                   jwzgles_glLightModeli
192 #define glLightModeliv                  jwzgles_glLightModeliv
193 #define glLighti                        jwzgles_glLighti
194 #define glLightiv                       jwzgles_glLightiv
195 #define glLightf                        jwzgles_glLightf
196 #define glLightfv                       jwzgles_glLightfv
197 #define glLineStipple                   jwzgles_glLineStipple
198 #define glListBase                      jwzgles_glListBase
199 #define glLoadMatrix                    jwzgles_glLoadMatrix
200 #define glLoadMatrixd                   jwzgles_glLoadMatrixd
201 #define glLoadName                      jwzgles_glLoadName
202 #define glLoadTransposeMatrix           jwzgles_glLoadTransposeMatrix
203 #define glLoadTransposeMatrixd          jwzgles_glLoadTransposeMatrixd
204 #define glLoadTransposeMatrixf          jwzgles_glLoadTransposeMatrixf
205 #define glMap1d                         jwzgles_glMap1d
206 #define glMap1f                         jwzgles_glMap1f
207 #define glMap2d                         jwzgles_glMap2d
208 #define glMap2f                         jwzgles_glMap2f
209 #define glMapGrid1d                     jwzgles_glMapGrid1d
210 #define glMapGrid1f                     jwzgles_glMapGrid1f
211 #define glMapGrid2d                     jwzgles_glMapGrid2d
212 #define glMapGrid2f                     jwzgles_glMapGrid2f
213 #define glMateriali                     jwzgles_glMateriali
214 #define glMaterialiv                    jwzgles_glMaterialiv
215 #define glMultMatrixd                   jwzgles_glMultMatrixd
216 #define glMultTransposeMatrix           jwzgles_glMultTransposeMatrix
217 #define glMultTransposeMatrixd          jwzgles_glMultTransposeMatrixd
218 #define glMultTransposeMatrixf          jwzgles_glMultTransposeMatrixf
219 #define glMultiTexCoord                 jwzgles_glMultiTexCoord
220 #define glNewList                       jwzgles_glNewList
221 #define glNormal3b                      jwzgles_glNormal3b
222 #define glNormal3bv                     jwzgles_glNormal3bv
223 #define glNormal3d                      jwzgles_glNormal3f
224 #define glNormal3dv                     jwzgles_glNormal3dv
225 #define glNormal3fv                     jwzgles_glNormal3fv
226 #define glNormal3i                      jwzgles_glNormal3i
227 #define glNormal3iv                     jwzgles_glNormal3iv
228 #define glNormal3s                      jwzgles_glNormal3s
229 #define glNormal3sv                     jwzgles_glNormal3sv
230 #define glOrtho                         jwzgles_glOrtho
231 #define glPassThrough                   jwzgles_glPassThrough
232 #define glPixelMapfv                    jwzgles_glPixelMapfv
233 #define glPixelMapuiv                   jwzgles_glPixelMapuiv
234 #define glPixelMapusv                   jwzgles_glPixelMapusv
235 #define glPixelStoref                   jwzgles_glPixelStoref
236 #define glPixelTransferf                jwzgles_glPixelTransferf
237 #define glPixelTransferi                jwzgles_glPixelTransferi
238 #define glPixelZoom                     jwzgles_glPixelZoom
239 #define glPolygonMode                   jwzgles_glPolygonMode
240 #define glPolygonStipple                jwzgles_glPolygonStipple
241 #define glPopAttrib                     jwzgles_glPopAttrib
242 #define glPopClientAttrib               jwzgles_glPopClientAttrib
243 #define glPopName                       jwzgles_glPopName
244 #define glPrioritizeTextures            jwzgles_glPrioritizeTextures
245 #define glPushAttrib                    jwzgles_glPushAttrib
246 #define glPushClientAttrib              jwzgles_glPushClientAttrib
247 #define glPushName                      jwzgles_glPushName
248 #define glRasterPos2d                   jwzgles_glRasterPos2d
249 #define glRasterPos2dv                  jwzgles_glRasterPos2dv
250 #define glRasterPos2f                   jwzgles_glRasterPos2f
251 #define glRasterPos2fv                  jwzgles_glRasterPos2fv
252 #define glRasterPos2i                   jwzgles_glRasterPos2i
253 #define glRasterPos2iv                  jwzgles_glRasterPos2iv
254 #define glRasterPos2s                   jwzgles_glRasterPos2s
255 #define glRasterPos2sv                  jwzgles_glRasterPos2sv
256 #define glRasterPos3d                   jwzgles_glRasterPos3d
257 #define glRasterPos3dv                  jwzgles_glRasterPos3dv
258 #define glRasterPos3f                   jwzgles_glRasterPos3f
259 #define glRasterPos3fv                  jwzgles_glRasterPos3fv
260 #define glRasterPos3i                   jwzgles_glRasterPos3i
261 #define glRasterPos3iv                  jwzgles_glRasterPos3iv
262 #define glRasterPos3s                   jwzgles_glRasterPos3s
263 #define glRasterPos3sv                  jwzgles_glRasterPos3sv
264 #define glRasterPos4d                   jwzgles_glRasterPos4d
265 #define glRasterPos4dv                  jwzgles_glRasterPos4dv
266 #define glRasterPos4f                   jwzgles_glRasterPos4f
267 #define glRasterPos4fv                  jwzgles_glRasterPos4fv
268 #define glRasterPos4i                   jwzgles_glRasterPos4i
269 #define glRasterPos4iv                  jwzgles_glRasterPos4iv
270 #define glRasterPos4s                   jwzgles_glRasterPos4s
271 #define glRasterPos4sv                  jwzgles_glRasterPos4sv
272 #define glReadBuffer                    jwzgles_glReadBuffer
273 #define glRectd                         jwzgles_glRectf
274 #define glRectdv                        jwzgles_glRectdv
275 #define glRectf                         jwzgles_glRectf
276 #define glRectfv                        jwzgles_glRectfv
277 #define glRecti                         jwzgles_glRecti
278 #define glRectiv                        jwzgles_glRectiv
279 #define glRects                         jwzgles_glRects
280 #define glRectsv                        jwzgles_glRectsv
281 #define glRenderMode                    jwzgles_glRenderMode
282 #define glResetHistogram                jwzgles_glResetHistogram
283 #define glResetMinmax                   jwzgles_glResetMinmax
284 #define glRotated                       jwzgles_glRotated
285 #define glScaled                        jwzgles_glScalef
286 #define glSelectBuffer                  jwzgles_glSelectBuffer
287 #define glSeparableFilter2D             jwzgles_glSeparableFilter2D
288 #define glTexCoord1d                    jwzgles_glTexCoord1d
289 #define glTexCoord1dv                   jwzgles_glTexCoord1dv
290 #define glTexCoord1f                    jwzgles_glTexCoord1f
291 #define glTexCoord1fv                   jwzgles_glTexCoord1fv
292 #define glTexCoord1i                    jwzgles_glTexCoord1i
293 #define glTexCoord1iv                   jwzgles_glTexCoord1iv
294 #define glTexCoord1s                    jwzgles_glTexCoord1s
295 #define glTexCoord1sv                   jwzgles_glTexCoord1sv
296 #define glTexCoord2d                    jwzgles_glTexCoord2f
297 #define glTexCoord2dv                   jwzgles_glTexCoord2dv
298 #define glTexCoord2f                    jwzgles_glTexCoord2f
299 #define glTexCoord2fv                   jwzgles_glTexCoord2fv
300 #define glTexCoord2i                    jwzgles_glTexCoord2i
301 #define glTexCoord2iv                   jwzgles_glTexCoord2iv
302 #define glTexCoord2s                    jwzgles_glTexCoord2s
303 #define glTexCoord2sv                   jwzgles_glTexCoord2sv
304 #define glTexCoord3d                    jwzgles_glTexCoord3d
305 #define glTexCoord3dv                   jwzgles_glTexCoord3dv
306 #define glTexCoord3f                    jwzgles_glTexCoord3f
307 #define glTexCoord3fv                   jwzgles_glTexCoord3fv
308 #define glTexCoord3i                    jwzgles_glTexCoord3i
309 #define glTexCoord3iv                   jwzgles_glTexCoord3iv
310 #define glTexCoord3s                    jwzgles_glTexCoord3s
311 #define glTexCoord3sv                   jwzgles_glTexCoord3sv
312 #define glTexCoord4d                    jwzgles_glTexCoord4d
313 #define glTexCoord4dv                   jwzgles_glTexCoord4dv
314 #define glTexCoord4f                    jwzgles_glTexCoord4f
315 #define glTexCoord4fv                   jwzgles_glTexCoord4fv
316 #define glTexCoord4i                    jwzgles_glTexCoord4i
317 #define glTexCoord4iv                   jwzgles_glTexCoord4iv
318 #define glTexCoord4s                    jwzgles_glTexCoord4s
319 #define glTexCoord4sv                   jwzgles_glTexCoord4sv
320 #define glTexEnvi                       jwzgles_glTexEnvi
321 #define glTexEnviv                      jwzgles_glTexEnviv
322 #define glTexGend                       jwzgles_glTexGend
323 #define glTexGendv                      jwzgles_glTexGendv
324 #define glTexGenf                       jwzgles_glTexGenf
325 #define glTexGenfv                      jwzgles_glTexGenfv
326 #define glTexGeni                       jwzgles_glTexGeni
327 #define glTexGeniv                      jwzgles_glTexGeniv
328 #define glTexImage1D                    jwzgles_glTexImage1D
329 #define glTexImage3D                    jwzgles_glTexImage3D
330 #define glTexParameterfv                jwzgles_glTexParameterfv
331 #define glTexParameteri                 jwzgles_glTexParameteri
332 #define glTexParameteriv                jwzgles_glTexParameteriv
333 #define glTexSubImage1D                 jwzgles_glTexSubImage1D
334 #define glTexSubImage3D                 jwzgles_glTexSubImage3D
335 #define glTranslated                    jwzgles_glTranslatef
336 #define glVertex2d                      jwzgles_glVertex2d
337 #define glVertex2dv                     jwzgles_glVertex2dv
338 #define glVertex2f                      jwzgles_glVertex2f
339 #define glVertex2fv                     jwzgles_glVertex2fv
340 #define glVertex2i                      jwzgles_glVertex2i
341 #define glVertex2iv                     jwzgles_glVertex2iv
342 #define glVertex2s                      jwzgles_glVertex2s
343 #define glVertex2sv                     jwzgles_glVertex2sv
344 #define glVertex3d                      jwzgles_glVertex3f
345 #define glVertex3dv                     jwzgles_glVertex3dv
346 #define glVertex3f                      jwzgles_glVertex3f
347 #define glVertex3fv                     jwzgles_glVertex3fv
348 #define glVertex3i                      jwzgles_glVertex3i
349 #define glVertex3iv                     jwzgles_glVertex3iv
350 #define glVertex3s                      jwzgles_glVertex3s
351 #define glVertex3sv                     jwzgles_glVertex3sv
352 #define glVertex4d                      jwzgles_glVertex4d
353 #define glVertex4dv                     jwzgles_glVertex4dv
354 #define glVertex4f                      jwzgles_glVertex4f
355 #define glVertex4fv                     jwzgles_glVertex4fv
356 #define glVertex4i                      jwzgles_glVertex4i
357 #define glVertex4iv                     jwzgles_glVertex4iv
358 #define glVertex4s                      jwzgles_glVertex4s
359 #define glVertex4sv                     jwzgles_glVertex4sv
360
361 #define gluOrtho2D(L,R,B,T)             glOrtho(L,R,B,T,-1,1)
362 #define gluPerspective                  jwzgles_gluPerspective
363
364 #define glXChooseVisual                 jwzgles_glXChooseVisual
365 #define glXCopyContext                  jwzgles_glXCopyContext
366 /*#define glXCreateContext              jwzgles_glXCreateContext*/
367 #define glXCreateGLXPixmap              jwzgles_glXCreateGLXPixmap
368 #define glXDestroyContext               jwzgles_glXDestroyContext
369 #define glXDestroyGLXPixmap             jwzgles_glXDestroyGLXPixmap
370 #define glXFreeContextEXT               jwzgles_glXFreeContextEXT
371 #define glXGetClientString              jwzgles_glXGetClientString
372 #define glXGetConfig                    jwzgles_glXGetConfig
373 #define glXGetContextIDEXT              jwzgles_glXGetContextIDEXT
374 #define glXGetCurrentContext            jwzgles_glXGetCurrentContext
375 #define glXGetCurrentDisplay            jwzgles_glXGetCurrentDisplay
376 #define glXGetCurrentDrawable           jwzgles_glXGetCurrentDrawable
377 #define glXImportContextEXT             jwzgles_glXImportContextEXT
378 #define glXIntro                        jwzgles_glXIntro
379 #define glXIsDirect                     jwzgles_glXIsDirect
380 /*#define glXMakeCurrent                jwzgles_glXMakeCurrent*/
381 #define glXQueryContextInfoEXT          jwzgles_glXQueryContextInfoEXT
382 #define glXQueryExtension               jwzgles_glXQueryExtension
383 #define glXQueryExtensionsString        jwzgles_glXQueryExtensionsString
384 #define glXQueryServerString            jwzgles_glXQueryServerString
385 #define glXQueryVersion                 jwzgles_glXQueryVersion
386 /*#define glXSwapBuffers                jwzgles_glXSwapBuffers*/
387 #define glXUseXFont                     jwzgles_glXUseXFont
388 #define glXWaitGL                       jwzgles_glXWaitGL
389 #define glXWaitX                        jwzgles_glXWaitX
390
391 #define gluBeginCurve                   jwzgles_gluBeginCurve
392 #define gluBeginPolygon                 jwzgles_gluBeginPolygon
393 #define gluBeginSurface                 jwzgles_gluBeginSurface
394 #define gluBeginTrim                    jwzgles_gluBeginTrim
395 #define gluBuild1DMipmaps               jwzgles_gluBuild1DMipmaps
396 #define gluBuild2DMipmaps               jwzgles_gluBuild2DMipmaps
397 #define gluCheckExtension               jwzgles_gluCheckExtension
398 #define gluCylinder                     jwzgles_gluCylinder
399 #define gluDeleteNurbsRenderer          jwzgles_gluDeleteNurbsRenderer
400 #define gluDeleteQuadric                jwzgles_gluDeleteQuadric
401 #define gluDeleteTess                   jwzgles_gluDeleteTess
402 #define gluDisk                         jwzgles_gluDisk
403 #define gluEndCurve                     jwzgles_gluEndCurve
404 #define gluEndPolygon                   jwzgles_gluEndPolygon
405 #define gluEndSurface                   jwzgles_gluEndSurface
406 #define gluEndTrim                      jwzgles_gluEndTrim
407 #define gluErrorString                  jwzgles_gluErrorString
408 #define gluGetNurbsProperty             jwzgles_gluGetNurbsProperty
409 #define gluGetString                    jwzgles_gluGetString
410 #define gluGetTessProperty              jwzgles_gluGetTessProperty
411 #define gluLoadSamplingMatrices         jwzgles_gluLoadSamplingMatrices
412 #define gluLookAt                       jwzgles_gluLookAt
413 #define gluNewNurbsRenderer             jwzgles_gluNewNurbsRenderer
414 #define gluNewQuadric                   jwzgles_gluNewQuadric
415 #define gluNewTess                      jwzgles_gluNewTess
416 #define gluNextContour                  jwzgles_gluNextContour
417 #define gluNurbsCallback                jwzgles_gluNurbsCallback
418 #define gluNurbsCurve                   jwzgles_gluNurbsCurve
419 #define gluNurbsProperty                jwzgles_gluNurbsProperty
420 #define gluNurbsSurface                 jwzgles_gluNurbsSurface
421 #define gluPartialDisk                  jwzgles_gluPartialDisk
422 #define gluPickMatrix                   jwzgles_gluPickMatrix
423 #define gluProject                      jwzgles_gluProject
424 #define gluPwlCurve                     jwzgles_gluPwlCurve
425 #define gluQuadricCallback              jwzgles_gluQuadricCallback
426 #define gluQuadricDrawStyle             jwzgles_gluQuadricDrawStyle
427 #define gluQuadricNormals               jwzgles_gluQuadricNormals
428 #define gluQuadricOrientation           jwzgles_gluQuadricOrientation
429 #define gluQuadricTexture               jwzgles_gluQuadricTexture
430 #define gluScaleImage                   jwzgles_gluScaleImage
431 #define gluSphere                       jwzgles_gluSphere
432 #define gluTessBeginContour             jwzgles_gluTessBeginContour
433 #define gluTessBeginPolygon             jwzgles_gluTessBeginPolygon
434 #define gluTessCallback                 jwzgles_gluTessCallback
435 #define gluTessEndPolygon               jwzgles_gluTessEndPolygon
436 #define gluTessEndContour               jwzgles_gluTessEndContour
437 #define gluTessNormal                   jwzgles_gluTessNormal
438 #define gluTessProperty                 jwzgles_gluTessProperty
439 #define gluTessVertex                   jwzgles_gluTessVertex
440 #define gluUnProject                    jwzgles_gluUnProject
441
442
443 /* These functions are present in both OpenGL 1.1 and in OpenGLES 1,
444    but are allowed within glNewList/glEndList, so we must wrap them
445    to allow them to be recorded.
446  */
447 #define glActiveTexture                 jwzgles_glActiveTexture
448 #define glAlphaFunc                     jwzgles_glAlphaFunc
449 #define glBindTexture                   jwzgles_glBindTexture
450 #define glBlendFunc                     jwzgles_glBlendFunc
451 #define glClear                         jwzgles_glClear
452 #define glClearColor                    jwzgles_glClearColor
453 #define glClearStencil                  jwzgles_glClearStencil
454 #define glColor4f                       jwzgles_glColor4f
455 #define glColorMask                     jwzgles_glColorMask
456 #define glColorPointer                  jwzgles_glColorPointer
457 #define glCompressedTexImage2D          jwzgles_glCompressedTexImage2D
458 #define glCompressedTexSubImage2D       jwzgles_glCompressedTexSubImage2D
459 #define glCopyTexImage2D                jwzgles_glCopyTexImage2D
460 #define glCopyTexSubImage2D             jwzgles_glCopyTexSubImage2D
461 #define glCullFace                      jwzgles_glCullFace
462 #define glDeleteTextures                jwzgles_glDeleteTextures
463 #define glDepthFunc                     jwzgles_glDepthFunc
464 #define glDepthMask                     jwzgles_glDepthMask
465 #define glDisable                       jwzgles_glDisable
466 #define glDrawArrays                    jwzgles_glDrawArrays
467 #define glDrawElements                  jwzgles_glDrawElements
468 #define glEnable                        jwzgles_glEnable
469 #define glFinish                        jwzgles_glFinish
470 #define glFlush                         jwzgles_glFlush
471 #define glFogf                          jwzgles_glFogf
472 #define glFogfv                         jwzgles_glFogfv
473 #define glFrontFace                     jwzgles_glFrontFace
474 #define glGenTextures                   jwzgles_glGenTextures
475 #define glGetIntegerv                   jwzgles_glGetIntegerv
476 #define glHint                          jwzgles_glHint
477 #define glLightModelf                   jwzgles_glLightModelf
478 #define glLightModelfv                  jwzgles_glLightModelfv
479 #define glLightf                        jwzgles_glLightf
480 #define glLightfv                       jwzgles_glLightfv
481 #define glLineWidth                     jwzgles_glLineWidth
482 #define glLoadIdentity                  jwzgles_glLoadIdentity
483 #define glLoadMatrixf                   jwzgles_glLoadMatrixf
484 #define glLogicOp                       jwzgles_glLogicOp
485 #define glMaterialf                     jwzgles_glMaterialf
486 #define glMateriali                     jwzgles_glMateriali
487 #define glMaterialfv                    jwzgles_glMaterialfv
488 #define glMaterialiv                    jwzgles_glMaterialiv
489 #define glMatrixMode                    jwzgles_glMatrixMode
490 #define glMultMatrixf                   jwzgles_glMultMatrixf
491 #define glNormal3f                      jwzgles_glNormal3f
492 #define glNormalPointer                 jwzgles_glNormalPointer
493 #define glPixelStorei                   jwzgles_glPixelStorei
494 #define glPointSize                     jwzgles_glPointSize
495 #define glPolygonOffset                 jwzgles_glPolygonOffset
496 #define glPopMatrix                     jwzgles_glPopMatrix
497 #define glPushMatrix                    jwzgles_glPushMatrix
498 #define glReadPixels                    jwzgles_glReadPixels
499 #define glRotatef                       jwzgles_glRotatef
500 #define glScalef                        jwzgles_glScalef
501 #define glSampleCoverage                jwzgles_glSampleCoverage
502 #define glScissor                       jwzgles_glScissor
503 #define glShadeModel                    jwzgles_glShadeModel
504 #define glStencilFunc                   jwzgles_glStencilFunc
505 #define glStencilMask                   jwzgles_glStencilMask
506 #define glStencilOp                     jwzgles_glStencilOp
507 #define glTexCoordPointer               jwzgles_glTexCoordPointer
508 #define glTexEnvf                       jwzgles_glTexEnvf
509 #define glTexEnvfv                      jwzgles_glTexEnvfv
510 #define glTexImage2D                    jwzgles_glTexImage2D
511 #define glTexParameterf                 jwzgles_glTexParameterf
512 #define glTexSubImage2D                 jwzgles_glTexSubImage2D
513 #define glTranslatef                    jwzgles_glTranslatef
514 #define glVertexPointer                 jwzgles_glVertexPointer
515 #define glViewport                      jwzgles_glViewport
516 #define glEnableClientState             jwzgles_glEnableClientState
517 #define glDisableClientState            jwzgles_glDisableClientState
518 #define glClipPlane                     jwzgles_glClipPlane
519
520 #endif /* __JWZGLES_H__ */