aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-es2.cfg
blob: 74620253ff4f6417d6f15842f8e3ab50fe1a3927 (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
# This .cfg file is used to generate the GL interface and implementing class.
JavaOutputDir ../build/gensrc/classes
NativeOutputDir ../build/gensrc/native/jogl/es2

Package javax.media.opengl
Style InterfaceAndImpl
JavaClass GLES2
Extends GLES2 GL
Extends GLES2 GL2ES2
ImplPackage com.sun.opengl.impl.es2
ImplJavaClass GLES2Impl
Implements GLES2Impl GL
Implements GLES2Impl GL2ES2
HierarchicalNativeOutput false
Include gl-common.cfg
Include gl-ignore-gl2_es-enums.cfg
Include gl-ignore-gl2_es2-enums.cfg

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

# Inform the glue code generator of the association between #defines
# and functions and the extensions in which they are defined
GLHeader GLES2/gl2.h
GLHeader GLES2/gl2ext.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 glActiveTexture
ForceProcAddressGen glAttachShader
ForceProcAddressGen glBindAttribLocation
ForceProcAddressGen glBindBuffer
ForceProcAddressGen glBindFramebuffer
ForceProcAddressGen glBindRenderbuffer
ForceProcAddressGen glBindTexture
ForceProcAddressGen glBlendColor
ForceProcAddressGen glBlendEquation
ForceProcAddressGen glBlendEquationSeparate
ForceProcAddressGen glBlendFunc
ForceProcAddressGen glBlendFuncSeparate
ForceProcAddressGen glBufferData
ForceProcAddressGen glBufferSubData
ForceProcAddressGen glCheckFramebufferStatus
ForceProcAddressGen glClear
ForceProcAddressGen glClearColor
ForceProcAddressGen glClearDepthf
ForceProcAddressGen glClearStencil
ForceProcAddressGen glColorMask
ForceProcAddressGen glCompileShader
ForceProcAddressGen glCompressedTexImage2D
ForceProcAddressGen glCompressedTexSubImage2D
ForceProcAddressGen glCopyTexImage2D
ForceProcAddressGen glCopyTexSubImage2D
ForceProcAddressGen glCreateProgram
ForceProcAddressGen glCreateShader
ForceProcAddressGen glCullFace
ForceProcAddressGen glDeleteBuffers
ForceProcAddressGen glDeleteFramebuffers
ForceProcAddressGen glDeleteTextures
ForceProcAddressGen glDeleteProgram
ForceProcAddressGen glDeleteRenderbuffers
ForceProcAddressGen glDeleteShader
ForceProcAddressGen glDetachShader
ForceProcAddressGen glDepthFunc
ForceProcAddressGen glDepthMask
ForceProcAddressGen glDepthRangef
ForceProcAddressGen glDisable
ForceProcAddressGen glDisableVertexAttribArray
ForceProcAddressGen glDrawArrays
ForceProcAddressGen glDrawElements
ForceProcAddressGen glEnable
ForceProcAddressGen glEnableVertexAttribArray
ForceProcAddressGen glFinish
ForceProcAddressGen glFlush
ForceProcAddressGen glFramebufferRenderbuffer
ForceProcAddressGen glFramebufferTexture2D
ForceProcAddressGen glFrontFace
ForceProcAddressGen glGenBuffers
ForceProcAddressGen glGenerateMipmap
ForceProcAddressGen glGenFramebuffers
ForceProcAddressGen glGenRenderbuffers
ForceProcAddressGen glGenTextures
ForceProcAddressGen glGetActiveAttrib
ForceProcAddressGen glGetActiveUniform
ForceProcAddressGen glGetAttachedShaders
ForceProcAddressGen glGetAttribLocation
ForceProcAddressGen glGetBooleanv
ForceProcAddressGen glGetBufferParameteriv
ForceProcAddressGen glGetError
ForceProcAddressGen glGetFloatv
ForceProcAddressGen glGetFramebufferAttachmentParameteriv
ForceProcAddressGen glGetIntegerv
ForceProcAddressGen glGetProgramiv
ForceProcAddressGen glGetProgramInfoLog
ForceProcAddressGen glGetRenderbufferParameteriv
ForceProcAddressGen glGetShaderiv
ForceProcAddressGen glGetShaderInfoLog
ForceProcAddressGen glGetShaderPrecisionFormat
ForceProcAddressGen glGetShaderSource
ForceProcAddressGen glGetString
ForceProcAddressGen glGetTexParameterfv
ForceProcAddressGen glGetTexParameteriv
ForceProcAddressGen glGetUniformfv
ForceProcAddressGen glGetUniformiv
ForceProcAddressGen glGetUniformLocation
ForceProcAddressGen glGetVertexAttribfv
ForceProcAddressGen glGetVertexAttribiv
ForceProcAddressGen glGetVertexAttribPointerv
ForceProcAddressGen glHint
ForceProcAddressGen glIsBuffer
ForceProcAddressGen glIsEnabled
ForceProcAddressGen glIsFramebuffer
ForceProcAddressGen glIsProgram
ForceProcAddressGen glIsRenderbuffer
ForceProcAddressGen glIsShader
ForceProcAddressGen glIsTexture
ForceProcAddressGen glLineWidth
ForceProcAddressGen glLinkProgram
ForceProcAddressGen glPixelStorei
ForceProcAddressGen glPolygonOffset
ForceProcAddressGen glReadPixels
ForceProcAddressGen glReleaseShaderCompiler
ForceProcAddressGen glRenderbufferStorage
ForceProcAddressGen glSampleCoverage
ForceProcAddressGen glScissor
ForceProcAddressGen glShaderBinary
ForceProcAddressGen glShaderSource
ForceProcAddressGen glStencilFunc
ForceProcAddressGen glStencilFuncSeparate
ForceProcAddressGen glStencilMask
ForceProcAddressGen glStencilMaskSeparate
ForceProcAddressGen glStencilOp
ForceProcAddressGen glStencilOpSeparate
ForceProcAddressGen glTexImage2D
ForceProcAddressGen glTexParameterf
ForceProcAddressGen glTexParameterfv
ForceProcAddressGen glTexParameteri
ForceProcAddressGen glTexParameteriv
ForceProcAddressGen glTexSubImage2D
ForceProcAddressGen glUniform1f
ForceProcAddressGen glUniform1fv
ForceProcAddressGen glUniform1i
ForceProcAddressGen glUniform1iv
ForceProcAddressGen glUniform2f
ForceProcAddressGen glUniform2fv
ForceProcAddressGen glUniform2i
ForceProcAddressGen glUniform2iv
ForceProcAddressGen glUniform3f
ForceProcAddressGen glUniform3fv
ForceProcAddressGen glUniform3i
ForceProcAddressGen glUniform3iv
ForceProcAddressGen glUniform4f
ForceProcAddressGen glUniform4fv
ForceProcAddressGen glUniform4i
ForceProcAddressGen glUniform4iv
ForceProcAddressGen glUniformMatrix2fv
ForceProcAddressGen glUniformMatrix3fv
ForceProcAddressGen glUniformMatrix4fv
ForceProcAddressGen glUseProgram
ForceProcAddressGen glValidateProgram
ForceProcAddressGen glVertexAttrib1f
ForceProcAddressGen glVertexAttrib1fv
ForceProcAddressGen glVertexAttrib2f
ForceProcAddressGen glVertexAttrib2fv
ForceProcAddressGen glVertexAttrib3f
ForceProcAddressGen glVertexAttrib3fv
ForceProcAddressGen glVertexAttrib4f
ForceProcAddressGen glVertexAttrib4fv
ForceProcAddressGen glVertexAttribPointer
ForceProcAddressGen glViewport

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

CustomJavaCode GLES2     public void glClearDepth(double depth);
CustomJavaCode GLES2Impl public void glClearDepth(double depth) {
CustomJavaCode GLES2Impl   glClearDepthf((float)depth); }

CustomJavaCode GLES2     public void glDepthRange(double zNear, double zFar);
CustomJavaCode GLES2Impl public void glDepthRange(double zNear, double zFar) {
CustomJavaCode GLES2Impl   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 <GLES2/gl2ext.h>
CustomCCode #include <stdlib.h>
Include intptr.cfg

IncludeAs CustomJavaCode GLES2Impl gl-impl-CustomJavaCode-common.java
IncludeAs CustomJavaCode GLES2Impl gl-impl-CustomJavaCode-gles2.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