aboutsummaryrefslogtreecommitdiffstats
path: root/make/config/jogl/gl-impl-CustomJavaCode-common.java
diff options
context:
space:
mode:
Diffstat (limited to 'make/config/jogl/gl-impl-CustomJavaCode-common.java')
-rw-r--r--make/config/jogl/gl-impl-CustomJavaCode-common.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/make/config/jogl/gl-impl-CustomJavaCode-common.java b/make/config/jogl/gl-impl-CustomJavaCode-common.java
new file mode 100644
index 000000000..70413a630
--- /dev/null
+++ b/make/config/jogl/gl-impl-CustomJavaCode-common.java
@@ -0,0 +1,32 @@
+ public final boolean matchesProfile() {
+ return matchesProfile(GLProfile.getProfile());
+ }
+
+ public final boolean matchesProfile(String test_profile) {
+ if(null==test_profile) {
+ return false;
+ }
+ if(test_profile.equals(GLProfile.GL2)) {
+ return isGL2();
+ }
+ if(test_profile.equals(GLProfile.GLES1)) {
+ return isGLES1();
+ }
+ if(test_profile.equals(GLProfile.GLES2)) {
+ return isGLES2();
+ }
+ return false;
+ }
+
+ public int glGetBoundBuffer(int target) {
+ return bufferStateTracker.getBoundBufferObject(target, this);
+ }
+
+ public boolean glIsVBOArrayEnabled() {
+ return checkArrayVBOEnabled(false);
+ }
+
+ public boolean glIsVBOElementEnabled() {
+ return checkElementVBOEnabled(false);
+ }
+