diff options
author | Sven Gothel <[email protected]> | 2015-03-06 09:45:48 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-06 09:45:48 +0100 |
commit | 0d59bd4c655ef9a27f127000848aae7f07f240ae (patch) | |
tree | 3ac18e10e105ad70227bbb2205294ac3e6462c0e /make/config/jogl/gl-impl-CustomJavaCode-gles3.java | |
parent | 0674a3678d747335ad36f0f57e3bdc9c168f0dcf (diff) |
Bug 1135 - Change all GlueGen config files, supporting EGL 1.5 , ES 3.1 and GL 4.5
Diffstat (limited to 'make/config/jogl/gl-impl-CustomJavaCode-gles3.java')
-rw-r--r-- | make/config/jogl/gl-impl-CustomJavaCode-gles3.java | 30 |
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 |