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. --- make/config/jogl/gl-impl-CustomJavaCode-gles3.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'make/config/jogl/gl-impl-CustomJavaCode-gles3.java') diff --git a/make/config/jogl/gl-impl-CustomJavaCode-gles3.java b/make/config/jogl/gl-impl-CustomJavaCode-gles3.java index f5075c919..5c58f6cc4 100644 --- a/make/config/jogl/gl-impl-CustomJavaCode-gles3.java +++ b/make/config/jogl/gl-impl-CustomJavaCode-gles3.java @@ -71,6 +71,11 @@ public final boolean isGL2ES2() { return true; } +@Override +public final boolean isGL2ES3() { + return _isES3; +} + @Override public final boolean isGL3ES3() { return _isES3; @@ -172,6 +177,14 @@ public final GL2ES2 getGL2ES2() throws GLException { return this; } +@Override +public final GL2ES3 getGL2ES3() throws GLException { + if(!_isES3) { + throw new GLException("Not a GL2ES3 implementation"); + } + return this; +} + @Override public final GL3ES3 getGL3ES3() throws GLException { if(!_isES3) { -- cgit v1.2.3