aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-es2.cfg
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-06-21 02:33:51 +0000
committerSven Gothel <[email protected]>2008-06-21 02:33:51 +0000
commit006acbb9463af33a8b45aa0b3a298604eba72d82 (patch)
tree2c71662575a2c098b22c4b19b471bb5c732041c5 /make/gl-es2.cfg
parentcbc45e816f4ee81031bffce19a99550681462a24 (diff)
2nd big refactoring.
Goals are orthogonal components for: - OS Windowing system - NEWT, X11, Windows, MacOsX - GL Windowing GLUE - EGL, GLX, WGL, CGL - GL profiles - core and util packages - generate all Java components from any platform All above goals are achieved. TODO: - Native compilation fix and test - Check/Fix Win32, MacOSX and the mobile devices - .. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1665 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/gl-es2.cfg')
-rwxr-xr-xmake/gl-es2.cfg36
1 files changed, 24 insertions, 12 deletions
diff --git a/make/gl-es2.cfg b/make/gl-es2.cfg
index f2e2194f3..f190bebbe 100755
--- a/make/gl-es2.cfg
+++ b/make/gl-es2.cfg
@@ -1,26 +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 GLES2
+Extends GLES2 GL
+Extends GLES2 GL2ES2
+ImplPackage com.sun.opengl.impl.es2
+ImplJavaClass GLES2Impl
Include gl-common-es2.cfg
+Include gl-ignore-gl2_es-enums.cfg
+Include gl-ignore-gl2_es2-enums.cfg
EmitProcAddressTable true
-ProcAddressTableClassName GLProcAddressTable
-GetProcAddressTableExpr _context.getGLProcAddressTable()
+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
-# For the time being, ignore glMapBufferOES (FIXME)
-Ignore glMapBufferOES
-
-# Don't know how to handle glGetBufferPointerivNV yet (FIXME)
-Ignore glGetBufferPointerivNV
-
# 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 +168,14 @@ 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
@@ -183,5 +189,11 @@ CustomCCode typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GL
CustomCCode typedef int intptr_t;
-IncludeAs CustomJavaCode GLImpl gl-impl-CustomJavaCode-gles2.java
+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
+