From 54dcdf1f53c9fc1f7124cf77bbf5aa952d42053a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 3 Sep 2013 15:24:10 +0200 Subject: GL*, GLContext: Expose isGL2ES3() and getGL2ES3() for convenience. --- src/jogl/classes/javax/media/opengl/GLBase.java | 12 ++++++++++++ 1 file changed, 12 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 a9de70698..07dfc7e72 100644 --- a/src/jogl/classes/javax/media/opengl/GLBase.java +++ b/src/jogl/classes/javax/media/opengl/GLBase.java @@ -167,6 +167,12 @@ public interface GLBase { */ public boolean isGL2ES2(); + /** + * Indicates whether this GL object conforms to a either a GL2GL3 or GL3ES3 compatible profile. + * @see GLContext#isGL2ES3() + */ + public boolean isGL2ES3(); + /** * Indicates whether this GL object conforms to a GL3ES3 compatible profile. * @see GLContext#isGL3ES3() @@ -317,6 +323,12 @@ public interface GLBase { */ public GL2ES2 getGL2ES2() throws GLException; + /** + * Casts this object to the GL2ES3 interface. + * @throws GLException if this object is not a GL2ES3 implementation + */ + public GL2ES3 getGL2ES3() throws GLException; + /** * Casts this object to the GL3ES3 interface. * @throws GLException if this object is not a GL3ES3 implementation -- cgit v1.2.3