aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-es1.cfg
blob: b18e4ea477d52eee38f0a136eac05fae8cc8fcb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
# This .cfg file is used to generate the GL interface and implementing class.
JavaOutputDir ../build/gensrc/classes
NativeOutputDir ../build/gensrc/native/jogl/es1

# There are a few routines we don't handle yet
Ignore glGetBufferPointervOES
Package javax.media.opengl
Style InterfaceAndImpl
JavaClass GLES1
Extends GLES1 GL
Extends GLES1 GL2ES1
ImplPackage com.sun.opengl.impl.es1
ImplJavaClass GLES1Impl
Implements GLES1Impl GL
Implements GLES1Impl GL2ES1
HierarchicalNativeOutput false
Include gl-common.cfg
Include gl-ignore-gl2_es-enums.cfg
Include gl-ignore-gl2_es1-enums.cfg

EmitProcAddressTable true
ProcAddressTableClassName GLES1ProcAddressTable
GetProcAddressTableExpr ((GLES1ProcAddressTable)_context.getGLProcAddressTable())

# Inform the glue code generator of the association between #defines
# and functions and the extensions in which they are defined
GLHeader GLES/gl.h
GLHeader GLES/glext.h

# Force all of the methods to be emitted using dynamic linking so we
# don't need to link against any emulation library on the desktop or
# depend on the presence of an import library for a particular device
ForceProcAddressGen glAlphaFunc
ForceProcAddressGen glClearColor
ForceProcAddressGen glClearDepthf
ForceProcAddressGen glClipPlanef
ForceProcAddressGen glColor4f
ForceProcAddressGen glDepthRangef
ForceProcAddressGen glFogf
ForceProcAddressGen glFogfv
ForceProcAddressGen glFrustumf
ForceProcAddressGen glGetClipPlanef
ForceProcAddressGen glGetFloatv
ForceProcAddressGen glGetLightfv
ForceProcAddressGen glGetMaterialfv
ForceProcAddressGen glGetTexEnvfv
ForceProcAddressGen glGetTexParameterfv
ForceProcAddressGen glLightModelf
ForceProcAddressGen glLightModelfv
ForceProcAddressGen glLightf
ForceProcAddressGen glLightfv
ForceProcAddressGen glLineWidth
ForceProcAddressGen glLoadMatrixf
ForceProcAddressGen glMaterialf
ForceProcAddressGen glMaterialfv
ForceProcAddressGen glMultMatrixf
ForceProcAddressGen glMultiTexCoord4f
ForceProcAddressGen glNormal3f
ForceProcAddressGen glOrthof
ForceProcAddressGen glPointParameterf
ForceProcAddressGen glPointParameterfv
ForceProcAddressGen glPointSize
ForceProcAddressGen glPolygonOffset
ForceProcAddressGen glRotatef
ForceProcAddressGen glScalef
ForceProcAddressGen glTexEnvf
ForceProcAddressGen glTexEnvfv
ForceProcAddressGen glTexParameterf
ForceProcAddressGen glTexParameterfv
ForceProcAddressGen glTranslatef
ForceProcAddressGen glActiveTexture
ForceProcAddressGen glAlphaFuncx
ForceProcAddressGen glBindBuffer
ForceProcAddressGen glBindTexture
ForceProcAddressGen glBlendFunc
ForceProcAddressGen glBufferData
ForceProcAddressGen glBufferSubData
ForceProcAddressGen glClear
ForceProcAddressGen glClearColorx
ForceProcAddressGen glClearDepthx
ForceProcAddressGen glClearStencil
ForceProcAddressGen glClientActiveTexture
ForceProcAddressGen glClipPlanex
ForceProcAddressGen glColor4ub
ForceProcAddressGen glColor4x
ForceProcAddressGen glColorMask
ForceProcAddressGen glColorPointer
ForceProcAddressGen glCompressedTexImage2D
ForceProcAddressGen glCompressedTexSubImage2D
ForceProcAddressGen glCopyTexImage2D
ForceProcAddressGen glCopyTexSubImage2D
ForceProcAddressGen glCullFace
ForceProcAddressGen glDeleteBuffers
ForceProcAddressGen glDeleteTextures
ForceProcAddressGen glDepthFunc
ForceProcAddressGen glDepthMask
ForceProcAddressGen glDepthRangex
ForceProcAddressGen glDisable
ForceProcAddressGen glDisableClientState
ForceProcAddressGen glDrawArrays
ForceProcAddressGen glDrawElements
ForceProcAddressGen glEnable
ForceProcAddressGen glEnableClientState
ForceProcAddressGen glFinish
ForceProcAddressGen glFlush
ForceProcAddressGen glFogx
ForceProcAddressGen glFogxv
ForceProcAddressGen glFrontFace
ForceProcAddressGen glFrustumx
ForceProcAddressGen glGetBooleanv
ForceProcAddressGen glGetBufferParameteriv
ForceProcAddressGen glGetClipPlanex
ForceProcAddressGen glGenBuffers
ForceProcAddressGen glGenTextures
ForceProcAddressGen glGetError
ForceProcAddressGen glGetFixedv
ForceProcAddressGen glGetIntegerv
ForceProcAddressGen glGetLightxv
ForceProcAddressGen glGetMaterialxv
ForceProcAddressGen glGetPointerv
ForceProcAddressGen glGetString
ForceProcAddressGen glGetTexEnviv
ForceProcAddressGen glGetTexEnvxv
ForceProcAddressGen glGetTexParameteriv
ForceProcAddressGen glGetTexParameterxv
ForceProcAddressGen glHint
ForceProcAddressGen glIsBuffer
ForceProcAddressGen glIsEnabled
ForceProcAddressGen glIsTexture
ForceProcAddressGen glLightModelx
ForceProcAddressGen glLightModelxv
ForceProcAddressGen glLightx
ForceProcAddressGen glLightxv
ForceProcAddressGen glLineWidthx
ForceProcAddressGen glLoadIdentity
ForceProcAddressGen glLoadMatrixx
ForceProcAddressGen glLogicOp
ForceProcAddressGen glMaterialx
ForceProcAddressGen glMaterialxv
ForceProcAddressGen glMatrixMode
ForceProcAddressGen glMultMatrixx
ForceProcAddressGen glMultiTexCoord4x
ForceProcAddressGen glNormal3x
ForceProcAddressGen glNormalPointer
ForceProcAddressGen glOrthox
ForceProcAddressGen glPixelStorei
ForceProcAddressGen glPointParameterx
ForceProcAddressGen glPointParameterxv
ForceProcAddressGen glPointSizex
ForceProcAddressGen glPolygonOffsetx
ForceProcAddressGen glPopMatrix
ForceProcAddressGen glPushMatrix
ForceProcAddressGen glReadPixels
ForceProcAddressGen glRotatex
ForceProcAddressGen glSampleCoverage
ForceProcAddressGen glSampleCoveragex
ForceProcAddressGen glScalex
ForceProcAddressGen glScissor
ForceProcAddressGen glShadeModel
ForceProcAddressGen glStencilFunc
ForceProcAddressGen glStencilMask
ForceProcAddressGen glStencilOp
ForceProcAddressGen glTexCoordPointer
ForceProcAddressGen glTexEnvi
ForceProcAddressGen glTexEnvx
ForceProcAddressGen glTexEnviv
ForceProcAddressGen glTexEnvxv
ForceProcAddressGen glTexImage2D
ForceProcAddressGen glTexParameteri
ForceProcAddressGen glTexParameterx
ForceProcAddressGen glTexParameteriv
ForceProcAddressGen glTexParameterxv
ForceProcAddressGen glTexSubImage2D
ForceProcAddressGen glTranslatex
ForceProcAddressGen glVertexPointer
ForceProcAddressGen glViewport
ForceProcAddressGen glPointSizePointerOES

# Also force the calling conventions of the locally generated function
# pointer typedefs for these routines to GL_APIENTRY
LocalProcAddressCallingConvention glAlphaFunc GL_APIENTRY
LocalProcAddressCallingConvention glClearColor GL_APIENTRY
LocalProcAddressCallingConvention glClearDepthf GL_APIENTRY
LocalProcAddressCallingConvention glClipPlanef GL_APIENTRY
LocalProcAddressCallingConvention glColor4f GL_APIENTRY
LocalProcAddressCallingConvention glDepthRangef GL_APIENTRY
LocalProcAddressCallingConvention glFogf GL_APIENTRY
LocalProcAddressCallingConvention glFogfv GL_APIENTRY
LocalProcAddressCallingConvention glFrustumf GL_APIENTRY
LocalProcAddressCallingConvention glGetClipPlanef GL_APIENTRY
LocalProcAddressCallingConvention glGetFloatv GL_APIENTRY
LocalProcAddressCallingConvention glGetLightfv GL_APIENTRY
LocalProcAddressCallingConvention glGetMaterialfv GL_APIENTRY
LocalProcAddressCallingConvention glGetTexEnvfv GL_APIENTRY
LocalProcAddressCallingConvention glGetTexParameterfv GL_APIENTRY
LocalProcAddressCallingConvention glLightModelf GL_APIENTRY
LocalProcAddressCallingConvention glLightModelfv GL_APIENTRY
LocalProcAddressCallingConvention glLightf GL_APIENTRY
LocalProcAddressCallingConvention glLightfv GL_APIENTRY
LocalProcAddressCallingConvention glLineWidth GL_APIENTRY
LocalProcAddressCallingConvention glLoadMatrixf GL_APIENTRY
LocalProcAddressCallingConvention glMaterialf GL_APIENTRY
LocalProcAddressCallingConvention glMaterialfv GL_APIENTRY
LocalProcAddressCallingConvention glMultMatrixf GL_APIENTRY
LocalProcAddressCallingConvention glMultiTexCoord4f GL_APIENTRY
LocalProcAddressCallingConvention glNormal3f GL_APIENTRY
LocalProcAddressCallingConvention glOrthof GL_APIENTRY
LocalProcAddressCallingConvention glPointParameterf GL_APIENTRY
LocalProcAddressCallingConvention glPointParameterfv GL_APIENTRY
LocalProcAddressCallingConvention glPointSize GL_APIENTRY
LocalProcAddressCallingConvention glPolygonOffset GL_APIENTRY
LocalProcAddressCallingConvention glRotatef GL_APIENTRY
LocalProcAddressCallingConvention glScalef GL_APIENTRY
LocalProcAddressCallingConvention glTexEnvf GL_APIENTRY
LocalProcAddressCallingConvention glTexEnvfv GL_APIENTRY
LocalProcAddressCallingConvention glTexParameterf GL_APIENTRY
LocalProcAddressCallingConvention glTexParameterfv GL_APIENTRY
LocalProcAddressCallingConvention glTranslatef GL_APIENTRY
LocalProcAddressCallingConvention glActiveTexture GL_APIENTRY
LocalProcAddressCallingConvention glAlphaFuncx GL_APIENTRY
LocalProcAddressCallingConvention glBindBuffer GL_APIENTRY
LocalProcAddressCallingConvention glBindTexture GL_APIENTRY
LocalProcAddressCallingConvention glBlendFunc GL_APIENTRY
LocalProcAddressCallingConvention glBufferData GL_APIENTRY
LocalProcAddressCallingConvention glBufferSubData GL_APIENTRY
LocalProcAddressCallingConvention glClear GL_APIENTRY
LocalProcAddressCallingConvention glClearColorx GL_APIENTRY
LocalProcAddressCallingConvention glClearDepthx GL_APIENTRY
LocalProcAddressCallingConvention glClearStencil GL_APIENTRY
LocalProcAddressCallingConvention glClientActiveTexture GL_APIENTRY
LocalProcAddressCallingConvention glClipPlanex GL_APIENTRY
LocalProcAddressCallingConvention glColor4ub GL_APIENTRY
LocalProcAddressCallingConvention glColor4x GL_APIENTRY
LocalProcAddressCallingConvention glColorMask GL_APIENTRY
LocalProcAddressCallingConvention glColorPointer GL_APIENTRY
LocalProcAddressCallingConvention glCompressedTexImage2D GL_APIENTRY
LocalProcAddressCallingConvention glCompressedTexSubImage2D GL_APIENTRY
LocalProcAddressCallingConvention glCopyTexImage2D GL_APIENTRY
LocalProcAddressCallingConvention glCopyTexSubImage2D GL_APIENTRY
LocalProcAddressCallingConvention glCullFace GL_APIENTRY
LocalProcAddressCallingConvention glDeleteBuffers GL_APIENTRY
LocalProcAddressCallingConvention glDeleteTextures GL_APIENTRY
LocalProcAddressCallingConvention glDepthFunc GL_APIENTRY
LocalProcAddressCallingConvention glDepthMask GL_APIENTRY
LocalProcAddressCallingConvention glDepthRangex GL_APIENTRY
LocalProcAddressCallingConvention glDisable GL_APIENTRY
LocalProcAddressCallingConvention glDisableClientState GL_APIENTRY
LocalProcAddressCallingConvention glDrawArrays GL_APIENTRY
LocalProcAddressCallingConvention glDrawElements GL_APIENTRY
LocalProcAddressCallingConvention glEnable GL_APIENTRY
LocalProcAddressCallingConvention glEnableClientState GL_APIENTRY
LocalProcAddressCallingConvention glFinish GL_APIENTRY
LocalProcAddressCallingConvention glFlush GL_APIENTRY
LocalProcAddressCallingConvention glFogx GL_APIENTRY
LocalProcAddressCallingConvention glFogxv GL_APIENTRY
LocalProcAddressCallingConvention glFrontFace GL_APIENTRY
LocalProcAddressCallingConvention glFrustumx GL_APIENTRY
LocalProcAddressCallingConvention glGetBooleanv GL_APIENTRY
LocalProcAddressCallingConvention glGetBufferParameteriv GL_APIENTRY
LocalProcAddressCallingConvention glGetClipPlanex GL_APIENTRY
LocalProcAddressCallingConvention glGenBuffers GL_APIENTRY
LocalProcAddressCallingConvention glGenTextures GL_APIENTRY
LocalProcAddressCallingConvention glGetError GL_APIENTRY
LocalProcAddressCallingConvention glGetFixedv GL_APIENTRY
LocalProcAddressCallingConvention glGetIntegerv GL_APIENTRY
LocalProcAddressCallingConvention glGetLightxv GL_APIENTRY
LocalProcAddressCallingConvention glGetMaterialxv GL_APIENTRY
LocalProcAddressCallingConvention glGetPointerv GL_APIENTRY
LocalProcAddressCallingConvention glGetString GL_APIENTRY
LocalProcAddressCallingConvention glGetTexEnviv GL_APIENTRY
LocalProcAddressCallingConvention glGetTexEnvxv GL_APIENTRY
LocalProcAddressCallingConvention glGetTexParameteriv GL_APIENTRY
LocalProcAddressCallingConvention glGetTexParameterxv GL_APIENTRY
LocalProcAddressCallingConvention glHint GL_APIENTRY
LocalProcAddressCallingConvention glIsBuffer GL_APIENTRY
LocalProcAddressCallingConvention glIsEnabled GL_APIENTRY
LocalProcAddressCallingConvention glIsTexture GL_APIENTRY
LocalProcAddressCallingConvention glLightModelx GL_APIENTRY
LocalProcAddressCallingConvention glLightModelxv GL_APIENTRY
LocalProcAddressCallingConvention glLightx GL_APIENTRY
LocalProcAddressCallingConvention glLightxv GL_APIENTRY
LocalProcAddressCallingConvention glLineWidthx GL_APIENTRY
LocalProcAddressCallingConvention glLoadIdentity GL_APIENTRY
LocalProcAddressCallingConvention glLoadMatrixx GL_APIENTRY
LocalProcAddressCallingConvention glLogicOp GL_APIENTRY
LocalProcAddressCallingConvention glMaterialx GL_APIENTRY
LocalProcAddressCallingConvention glMaterialxv GL_APIENTRY
LocalProcAddressCallingConvention glMatrixMode GL_APIENTRY
LocalProcAddressCallingConvention glMultMatrixx GL_APIENTRY
LocalProcAddressCallingConvention glMultiTexCoord4x GL_APIENTRY
LocalProcAddressCallingConvention glNormal3x GL_APIENTRY
LocalProcAddressCallingConvention glNormalPointer GL_APIENTRY
LocalProcAddressCallingConvention glOrthox GL_APIENTRY
LocalProcAddressCallingConvention glPixelStorei GL_APIENTRY
LocalProcAddressCallingConvention glPointParameterx GL_APIENTRY
LocalProcAddressCallingConvention glPointParameterxv GL_APIENTRY
LocalProcAddressCallingConvention glPointSizex GL_APIENTRY
LocalProcAddressCallingConvention glPolygonOffsetx GL_APIENTRY
LocalProcAddressCallingConvention glPopMatrix GL_APIENTRY
LocalProcAddressCallingConvention glPushMatrix GL_APIENTRY
LocalProcAddressCallingConvention glReadPixels GL_APIENTRY
LocalProcAddressCallingConvention glRotatex GL_APIENTRY
LocalProcAddressCallingConvention glSampleCoverage GL_APIENTRY
LocalProcAddressCallingConvention glSampleCoveragex GL_APIENTRY
LocalProcAddressCallingConvention glScalex GL_APIENTRY
LocalProcAddressCallingConvention glScissor GL_APIENTRY
LocalProcAddressCallingConvention glShadeModel GL_APIENTRY
LocalProcAddressCallingConvention glStencilFunc GL_APIENTRY
LocalProcAddressCallingConvention glStencilMask GL_APIENTRY
LocalProcAddressCallingConvention glStencilOp GL_APIENTRY
LocalProcAddressCallingConvention glTexCoordPointer GL_APIENTRY
LocalProcAddressCallingConvention glTexEnvi GL_APIENTRY
LocalProcAddressCallingConvention glTexEnvx GL_APIENTRY
LocalProcAddressCallingConvention glTexEnviv GL_APIENTRY
LocalProcAddressCallingConvention glTexEnvxv GL_APIENTRY
LocalProcAddressCallingConvention glTexImage2D GL_APIENTRY
LocalProcAddressCallingConvention glTexParameteri GL_APIENTRY
LocalProcAddressCallingConvention glTexParameterx GL_APIENTRY
LocalProcAddressCallingConvention glTexParameteriv GL_APIENTRY
LocalProcAddressCallingConvention glTexParameterxv GL_APIENTRY
LocalProcAddressCallingConvention glTexSubImage2D GL_APIENTRY
LocalProcAddressCallingConvention glTranslatex GL_APIENTRY
LocalProcAddressCallingConvention glVertexPointer GL_APIENTRY
LocalProcAddressCallingConvention glViewport GL_APIENTRY
LocalProcAddressCallingConvention glPointSizePointerOES GL_APIENTRY

# Pick up on-line OpenGL javadoc thanks to user cylab on javagaming.org forums
TagNativeBinding true

CustomJavaCode GLES1      public void glClearDepth(double depth);
CustomJavaCode GLES1Impl  public void glClearDepth(double depth) {
CustomJavaCode GLES1Impl   glClearDepthf((float)depth); }

CustomJavaCode GLES1      public void glDepthRange(double zNear, double zFar);
CustomJavaCode GLES1Impl  public void glDepthRange(double zNear, double zFar) {
CustomJavaCode GLES1Impl   glDepthRangef((float)zNear, (float)zFar); }

CustomCCode /* Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in
CustomCCode    "glext.h" are parsed. */
CustomCCode #define GL_GLEXT_PROTOTYPES

CustomCCode /* Include the OpenGL headers */
CustomCCode /* #define GL_APICALL __declspec(dllimport) */
CustomCCode #include <GLES/gl.h>
CustomCCode #include <GLES/glext.h>
CustomCCode #include <stdlib.h>
Include intptr.cfg

IncludeAs CustomJavaCode GLES1Impl gl-impl-CustomJavaCode-common.java
IncludeAs CustomJavaCode GLES1Impl gl-impl-CustomJavaCode-gles1.java
IncludeAs CustomCCode gl-impl-CustomCCode.c

Import javax.media.opengl.GLES1
Import javax.media.opengl.GLES2
Import javax.media.opengl.GL2
Import javax.media.opengl.util.BufferUtil