summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/config/jogl/gl-impl-CustomJavaCode-gl4bc.java13
-rw-r--r--make/config/jogl/gl-impl-CustomJavaCode-gles1.java10
-rw-r--r--make/config/jogl/gl-impl-CustomJavaCode-gles3.java13
3 files changed, 36 insertions, 0 deletions
diff --git a/make/config/jogl/gl-impl-CustomJavaCode-gl4bc.java b/make/config/jogl/gl-impl-CustomJavaCode-gl4bc.java
index e4959a32d..d1a4ceda0 100644
--- a/make/config/jogl/gl-impl-CustomJavaCode-gl4bc.java
+++ b/make/config/jogl/gl-impl-CustomJavaCode-gl4bc.java
@@ -90,6 +90,11 @@ public final boolean isGL2ES2() {
}
@Override
+public final boolean isGL2ES3() {
+ return _context.isGL2ES3();
+}
+
+@Override
public final boolean isGL3ES3() {
return _context.isGL3ES3();
}
@@ -191,6 +196,14 @@ public final GL2ES2 getGL2ES2() throws GLException {
}
@Override
+public final GL2ES3 getGL2ES3() throws GLException {
+ if(!isGL2ES3()) {
+ throw new GLException("Not a GL2ES3 implementation");
+ }
+ return this;
+}
+
+@Override
public final GL3ES3 getGL3ES3() throws GLException {
if(!isGL3ES3()) {
throw new GLException("Not a GL3ES3 implementation");
diff --git a/make/config/jogl/gl-impl-CustomJavaCode-gles1.java b/make/config/jogl/gl-impl-CustomJavaCode-gles1.java
index 5d0af6913..deb73e042 100644
--- a/make/config/jogl/gl-impl-CustomJavaCode-gles1.java
+++ b/make/config/jogl/gl-impl-CustomJavaCode-gles1.java
@@ -68,6 +68,11 @@ public final boolean isGL2ES2() {
}
@Override
+public final boolean isGL2ES3() {
+ return false;
+}
+
+@Override
public final boolean isGL3ES3() {
return false;
}
@@ -163,6 +168,11 @@ public final GL2ES1 getGL2ES1() throws GLException {
}
@Override
+public final GL2ES3 getGL2ES3() throws GLException {
+ throw new GLException("Not a GL2ES3 implementation");
+}
+
+@Override
public final GL2ES2 getGL2ES2() throws GLException {
throw new GLException("Not a GL2ES2 implementation");
}
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
@@ -72,6 +72,11 @@ public final boolean isGL2ES2() {
}
@Override
+public final boolean isGL2ES3() {
+ return _isES3;
+}
+
+@Override
public final boolean isGL3ES3() {
return _isES3;
}
@@ -173,6 +178,14 @@ public final GL2ES2 getGL2ES2() throws GLException {
}
@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) {
throw new GLException("Not a GL3ES3 implementation");