aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-es1.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'make/gl-es1.cfg')
-rwxr-xr-xmake/gl-es1.cfg33
1 files changed, 24 insertions, 9 deletions
diff --git a/make/gl-es1.cfg b/make/gl-es1.cfg
index 19f33f3c4..4dcad5bed 100755
--- a/make/gl-es1.cfg
+++ b/make/gl-es1.cfg
@@ -1,23 +1,24 @@
# This .cfg file is used to generate the GL interface and implementing class.
Package javax.media.opengl
Style InterfaceAndImpl
-JavaClass GL
-ImplPackage com.sun.opengl.impl
-ImplJavaClass GLImpl
+JavaClass GLES1
+Extends GLES1 GL
+Extends GLES1 GL2ES1
+ImplPackage com.sun.opengl.impl.es1
+ImplJavaClass GLES1Impl
Include gl-common-es1.cfg
+Include gl-ignore-gl2_es-enums.cfg
+Include gl-ignore-gl2_es1-enums.cfg
EmitProcAddressTable true
-ProcAddressTableClassName GLProcAddressTable
-GetProcAddressTableExpr _context.getGLProcAddressTable()
+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
-# For the time being, ignore glMapBufferOES (FIXME)
-Ignore glMapBufferOES
-
# 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
@@ -170,6 +171,14 @@ ForceProcAddressGen glPointSizePointerOES
# 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
@@ -184,5 +193,11 @@ CustomCCode #include <stdlib.h>
CustomCCode typedef int intptr_t;
-IncludeAs CustomJavaCode GLImpl gl-impl-CustomJavaCode-gles1.java
+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
+