diff options
Diffstat (limited to 'make/config/jogl/gl-es3-impl.cfg')
-rw-r--r-- | make/config/jogl/gl-es3-impl.cfg | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/make/config/jogl/gl-es3-impl.cfg b/make/config/jogl/gl-es3-impl.cfg index 22acdbdeb..443f91c1c 100644 --- a/make/config/jogl/gl-es3-impl.cfg +++ b/make/config/jogl/gl-es3-impl.cfg @@ -2,6 +2,14 @@ JavaOutputDir gensrc/classes NativeOutputDir gensrc/native/jogl/es3 +# Inform the glue code generator of the association between #defines +# and functions and the extensions in which they are defined +# _for_ code generation. This shall match the parsed header files! +GLSemHeader GLES2/gl2ext-supplement.h +GLSemHeader GLES3/gl31.h +GLSemHeader GLES3/gl3ext.h +GLSemHeader GLES2/gl2ext.h + ExtendedInterfaceSymbolsIgnore ../build-temp/gensrc/classes/com/jogamp/opengl/GL.java ExtendedInterfaceSymbolsIgnore ../build-temp/gensrc/classes/com/jogamp/opengl/GL2ES2.java ExtendedInterfaceSymbolsIgnore ../build-temp/gensrc/classes/com/jogamp/opengl/GLES2.java @@ -27,6 +35,7 @@ Include gl-common.cfg Include gl-common-extensions.cfg Include gl2_es3-common.cfg Include gl2_es2-CustomJavaCode.cfg +Include gl-desktop-ignores.cfg ForceExtension GL_ARB_ES3_compatibility @@ -50,27 +59,17 @@ TagNativeBinding true # Add PixelStorei StateTracker # CustomJavaCode GLES3Impl private static final int params_offset = 0; // just a helper for JavaPrologue .. +CustomJavaCode GLES3Impl private static final int data_offset = 0; // just a helper for JavaPrologue .. JavaPrologue glPixelStorei glStateTracker.setInt(pname, param); -JavaPrologue glGetIntegerv if ( glStateTracker.getInt(pname, params, params_offset) ) { return; } - -CustomCCode #include <stdio.h> /* android */ -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 <GLES3/gl3.h> -CustomCCode #include <GLES3/gl3ext.h> -CustomCCode #include <GLES2/gl2ext.h> -CustomCCode #include <stdlib.h> +JavaPrologue glGetIntegerv if ( glStateTracker.getInt(pname, data, data_offset) ) { return; } IncludeAs CustomJavaCode GLES3Impl gl-impl-CustomJavaCode-common.java IncludeAs CustomJavaCode GLES3Impl gl-impl-CustomJavaCode-gles3.java -IncludeAs CustomJavaCode GLES3Impl gl-impl-CustomJavaCode-embedded.java IncludeAs CustomJavaCode GLES3Impl gl-impl-CustomJavaCode-gl2_es2.java + +Include es3-headers.cfg IncludeAs CustomCCode gl-impl-CustomCCode-gles3.c Import com.jogamp.opengl.GLBase |