Java Code Examples for android.opengl.GLES20#GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
The following examples show how to use
android.opengl.GLES20#GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GLES20Canvas.java From PhotoMovie with Apache License 2.0 | 6 votes |
private static void checkFramebufferStatus() { int status = GLES20.glCheckFramebufferStatus(GLES20.GL_FRAMEBUFFER); if (status != GLES20.GL_FRAMEBUFFER_COMPLETE) { String msg = ""; switch (status) { case GLES20.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: msg = "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_UNSUPPORTED: msg = "GL_FRAMEBUFFER_UNSUPPORTED"; break; } throw new RuntimeException(msg + ":" + Integer.toHexString(status)); } }
Example 2
Source File: GLES20Canvas.java From android-openGL-canvas with Apache License 2.0 | 6 votes |
private static void checkFramebufferStatus() { int status = GLES20.glCheckFramebufferStatus(GLES20.GL_FRAMEBUFFER); if (status != GLES20.GL_FRAMEBUFFER_COMPLETE) { String msg = ""; switch (status) { case GLES20.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: msg = "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_UNSUPPORTED: msg = "GL_FRAMEBUFFER_UNSUPPORTED"; break; } throw new RuntimeException(msg + ":" + Integer.toHexString(status)); } }
Example 3
Source File: GLES20Canvas.java From Trebuchet with GNU General Public License v3.0 | 6 votes |
private static void checkFramebufferStatus() { int status = GLES20.glCheckFramebufferStatus(GLES20.GL_FRAMEBUFFER); if (status != GLES20.GL_FRAMEBUFFER_COMPLETE) { String msg = ""; switch (status) { case GLES20.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: msg = "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_UNSUPPORTED: msg = "GL_FRAMEBUFFER_UNSUPPORTED"; break; } throw new RuntimeException(msg + ":" + Integer.toHexString(status)); } }
Example 4
Source File: GLES20Canvas.java From TurboLauncher with Apache License 2.0 | 6 votes |
private static void checkFramebufferStatus() { int status = GLES20.glCheckFramebufferStatus(GLES20.GL_FRAMEBUFFER); if (status != GLES20.GL_FRAMEBUFFER_COMPLETE) { String msg = ""; switch (status) { case GLES20.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: msg = "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_UNSUPPORTED: msg = "GL_FRAMEBUFFER_UNSUPPORTED"; break; } throw new RuntimeException(msg + ":" + Integer.toHexString(status)); } }
Example 5
Source File: GLState.java From tilt-game-android with MIT License | 6 votes |
public void checkFramebufferStatus() throws GLFrameBufferException, GLException { final int framebufferStatus = this.getFramebufferStatus(); switch (framebufferStatus) { case GLES20.GL_FRAMEBUFFER_COMPLETE: return; case GLES20.GL_FRAMEBUFFER_UNSUPPORTED: throw new GLFrameBufferException(framebufferStatus, "GL_FRAMEBUFFER_UNSUPPORTED"); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: throw new GLFrameBufferException(framebufferStatus, "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: throw new GLFrameBufferException(framebufferStatus, "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: throw new GLFrameBufferException(framebufferStatus, "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"); case 0: this.checkError(); default: throw new GLFrameBufferException(framebufferStatus); } }
Example 6
Source File: GLES20Canvas.java From LB-Launcher with Apache License 2.0 | 6 votes |
private static void checkFramebufferStatus() { int status = GLES20.glCheckFramebufferStatus(GLES20.GL_FRAMEBUFFER); if (status != GLES20.GL_FRAMEBUFFER_COMPLETE) { String msg = ""; switch (status) { case GLES20.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: msg = "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"; break; case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: msg = "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"; break; case GLES20.GL_FRAMEBUFFER_UNSUPPORTED: msg = "GL_FRAMEBUFFER_UNSUPPORTED"; break; } throw new RuntimeException(msg + ":" + Integer.toHexString(status)); } }
Example 7
Source File: GLState.java From 30-android-libraries-in-30-days with Apache License 2.0 | 6 votes |
public void checkFramebufferStatus() throws GLFrameBufferException, GLException { final int framebufferStatus = this.getFramebufferStatus(); switch(framebufferStatus) { case GLES20.GL_FRAMEBUFFER_COMPLETE: return; case GLES20.GL_FRAMEBUFFER_UNSUPPORTED: throw new GLFrameBufferException(framebufferStatus, "GL_FRAMEBUFFER_UNSUPPORTED"); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: throw new GLFrameBufferException(framebufferStatus, "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: throw new GLFrameBufferException(framebufferStatus, "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS"); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: throw new GLFrameBufferException(framebufferStatus, "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT"); case 0: this.checkError(); default: throw new GLFrameBufferException(framebufferStatus); } }
Example 8
Source File: OGLESShaderRenderer.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
private void checkFrameBufferError() { int status = GLES20.glCheckFramebufferStatus(GLES20.GL_FRAMEBUFFER); switch (status) { case GLES20.GL_FRAMEBUFFER_COMPLETE: break; case GLES20.GL_FRAMEBUFFER_UNSUPPORTED: //Choose different formats throw new IllegalStateException("Framebuffer object format is " + "unsupported by the video hardware."); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: throw new IllegalStateException("Framebuffer has erronous attachment."); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: throw new IllegalStateException("Framebuffer doesn't have any renderbuffers attached."); case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: throw new IllegalStateException("Framebuffer attachments must have same dimensions."); // case GLES20.GL_FRAMEBUFFER_INCOMPLETE_FORMATS: // throw new IllegalStateException("Framebuffer attachments must have same formats."); // case GLES20.GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER: // throw new IllegalStateException("Incomplete draw buffer."); // case GLES20.GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT: // throw new IllegalStateException("Incomplete read buffer."); // case GLES20.GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT: // throw new IllegalStateException("Incomplete multisample buffer."); default: //Programming error; will fail on all hardware throw new IllegalStateException("Some video driver error " + "or programming error occured. " + "Framebuffer object status is invalid: " + status); } }