diff options
author | Sven Gothel <[email protected]> | 2015-03-09 08:57:24 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-09 08:57:24 +0100 |
commit | 99d37df6cf410117cb8d49774ef7550bcf847c7b (patch) | |
tree | e0a8b810dfee33f0ff570bc9e9e3e80115935c96 /make/config/jogl/es3-headers.cfg | |
parent | e3385993b4133f88fd1b8e335438f5f2cd305555 (diff) |
Bug 1135 - (Re-)Include GL header for in generated native code, allowing 'ProcAddrTypedef' validation
Include GL header for in generated native code,
since we need the public 'ProcAddrTypedef' to be validated
against the GlueGen generated variant by the c-compiler.
The 'ProcAddrTypedef' validation semantic has been
introduced in GlueGen w/ commit 10060b091b76bee35246c5165d49ab546ebc4e37.
Originally the GL header were always included,
however, JOGL commit 0d59bd4c655ef9a27f127000848aae7f07f240ae
removed the inclusion to simplify handling GL extension collisions
mitigated via gl*-supplement.h. The latter produces 'redefine'
errors via c-compiler.
The 'redefine' issue above is resolved
by conditional code (#ifdef __GLUEGEN__ ..)
in glext-supplement.h.
Diffstat (limited to 'make/config/jogl/es3-headers.cfg')
-rw-r--r-- | make/config/jogl/es3-headers.cfg | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/make/config/jogl/es3-headers.cfg b/make/config/jogl/es3-headers.cfg index bdf19fa4a..41f6d5a6b 100644 --- a/make/config/jogl/es3-headers.cfg +++ b/make/config/jogl/es3-headers.cfg @@ -1,4 +1,11 @@ CustomCCode #include <stdio.h> /* android */ CustomCCode #include <GLES2/gl2platform.h> -CustomCCode #include <gl-types.h> +CustomCCode // Define GL_GLEXT_PROTOTYPES so that the OpenGL extension prototypes in +CustomCCode // "gl2ext.h" and "gl3ext.h" are parsed. +CustomCCode #define GL_GLEXT_PROTOTYPES +CustomCCode #include <GLES3/gl31.h> +CustomCCode #include <GLES3/gl3ext.h> +CustomCCode /** Shared between ES2 and ES3 .. */ +CustomCCode #include <GLES2/gl2ext.h> +CustomCCode #include <GLES2/gl2ext-supplement.h> CustomCCode #include <stdlib.h> |