aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/GLContext.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-09-03 15:24:10 +0200
committerSven Gothel <[email protected]>2013-09-03 15:24:10 +0200
commit54dcdf1f53c9fc1f7124cf77bbf5aa952d42053a (patch)
tree1acd6a02b71eb257b228231faed372a8e2355814 /src/jogl/classes/javax/media/opengl/GLContext.java
parent14eab8af439e6e7ce7ee08a9ca13fec3f3a80d25 (diff)
GL*, GLContext: Expose isGL2ES3() and getGL2ES3() for convenience.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLContext.java')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLContext.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java
index 0c5459b57..f6c03b537 100644
--- a/src/jogl/classes/javax/media/opengl/GLContext.java
+++ b/src/jogl/classes/javax/media/opengl/GLContext.java
@@ -1114,6 +1114,15 @@ public abstract class GLContext {
}
/**
+ * Indicates whether this GLContext is capable of GL2ES3. <p>Includes [ GL4bc, GL4, GL3bc, GL3, GLES3, GL3ES3, GL2, GL2GL3 ].</p>
+ * @see GLProfile#isGL3ES3()
+ * @see GLProfile#isGL2GL3()
+ */
+ public final boolean isGL2ES3() {
+ return isGL3ES3() || isGL2GL3();
+ }
+
+ /**
* Indicates whether this GLContext is capable of GL3ES3. <p>Includes [ GL4bc, GL4, GL3bc, GL3, GLES3 ].</p>
* @see GLProfile#isGL3ES3()
*/