From c1c8dcbb0d51e4e2a902db129e5a6991d84c5fc9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 31 Jul 2011 19:25:13 +0200 Subject: JOGL: Add GLBase::isGLES2Compatible() Indicates whether this GL object is compatible with OpenGL ES2, i.e. has the extension GL_ARB_ES2_compatibility --- src/jogl/classes/javax/media/opengl/GLBase.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/jogl/classes/javax/media/opengl/GLBase.java') 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 @@ -153,6 +153,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 GL_ARB_ES2_compatibility, 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 -- cgit v1.2.3