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/javax/media/opengl/GLBase.java | |
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/javax/media/opengl/GLBase.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLBase.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLBase.java b/src/jogl/classes/javax/media/opengl/GLBase.java index 90b320ed3..f93d443e0 100644 --- a/src/jogl/classes/javax/media/opengl/GLBase.java +++ b/src/jogl/classes/javax/media/opengl/GLBase.java @@ -154,6 +154,13 @@ public interface GLBase { public boolean isGL2ES2(); /** + * Indicates whether this GL object is compatible with OpenGL ES2. + * @return true if this context is an ES2 context or implements + * the extension <code>GL_ARB_ES2_compatibility</code>, otherwise false + */ + public boolean isGLES2Compatible(); + + /** * Indicates whether this GL object conforms to the GL2GL3 compatible profile. * @return whether this GL object conforms to the GL2GL3 profile */ |