aboutsummaryrefslogtreecommitdiffstats
path: root/make/config/jogl/gl-impl-CustomJavaCode-gles3.java
diff options
context:
space:
mode:
Diffstat (limited to 'make/config/jogl/gl-impl-CustomJavaCode-gles3.java')
-rw-r--r--make/config/jogl/gl-impl-CustomJavaCode-gles3.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/make/config/jogl/gl-impl-CustomJavaCode-gles3.java b/make/config/jogl/gl-impl-CustomJavaCode-gles3.java
index a0e3c6570..3e0585e96 100644
--- a/make/config/jogl/gl-impl-CustomJavaCode-gles3.java
+++ b/make/config/jogl/gl-impl-CustomJavaCode-gles3.java
@@ -13,6 +13,13 @@ public GLES3Impl(GLProfile glp, GLContextImpl context) {
public final void finalizeInit() {
}
+
+private int[] imageSizeTemp = new int[1];
+
+private final int imageSizeInBytes(int format, int type, int width, int height, int depth, boolean pack) {
+ return GLBuffers.sizeof(this, imageSizeTemp, format, type, width, height, depth, pack) ;
+}
+
@Override
public final boolean isGL4bc() {
return false;
@@ -107,6 +114,10 @@ public final boolean isGLES3Compatible() {
return _isES3;
}
+@Override
+public final boolean isGLES31Compatible() {
+ return _context.isGLES31Compatible();
+}
@Override
public final boolean isGL2GL3() {
@@ -292,6 +303,25 @@ private final boolean checkElementVBOBound(boolean throwException) {
"element vertex_buffer_object", throwException);
}
+private final boolean checkIndirectVBOUnbound(boolean throwException) {
+ if(throwException) {
+ validateCPUSourcedAvail();
+ }
+ return checkBufferObject(true,
+ _isES3, // allowVAO
+ false, // bound
+ GL4ES3.GL_DRAW_INDIRECT_BUFFER,
+ "indirect vertex_buffer_object", throwException);
+}
+
+private final boolean checkIndirectVBOBound(boolean throwException) {
+ return checkBufferObject(true,
+ _isES3, // allowVAO
+ true, // bound
+ GL4ES3.GL_DRAW_INDIRECT_BUFFER,
+ "indirect vertex_buffer_object", throwException);
+}
+
private final boolean checkUnpackPBOUnbound(boolean throwException) {
return checkBufferObject(_isES3,
false, // allowVAO