diff options
author | Sven Gothel <[email protected]> | 2011-07-31 19:25:13 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-31 19:25:13 +0200 |
commit | c1c8dcbb0d51e4e2a902db129e5a6991d84c5fc9 (patch) | |
tree | fe6e090ba13d84b276b4141d8d75965d06af26e4 /src/jogl/classes/com | |
parent | a7bd295f0fd5740833a0c2fb55c474d995f65819 (diff) |
JOGL: Add GLBase::isGLES2Compatible()
Indicates whether this GL object is compatible with OpenGL ES2,
i.e. has the extension <code>GL_ARB_ES2_compatibility</code>
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java index 11919f9fd..f3d0d37b1 100644 --- a/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java +++ b/src/jogl/classes/com/jogamp/gluegen/opengl/BuildComposablePipeline.java @@ -630,6 +630,9 @@ public class BuildComposablePipeline { output.println(" public boolean isGLES() {"); output.println(" return isGLES2() || isGLES1();"); output.println(" }"); + output.println(" public boolean isGLES2Compatible() {"); + output.println(" return " + getDownstreamObjectName() + ".isGLES2Compatible();"); + output.println(" }"); } /** |