Java Code Examples for javax.microedition.khronos.opengles.GL11ExtensionPack#glDeleteFramebuffersOES()
The following examples show how to use
javax.microedition.khronos.opengles.GL11ExtensionPack#glDeleteFramebuffersOES() .
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: PLRenderer.java From PanoramaGL with Apache License 2.0 | 6 votes |
protected void destroyFramebuffer(GL11ExtensionPack gl11ep) { if(mContextSupportsFrameBufferObject) { if(mDefaultFramebuffer[0] != 0) { gl11ep.glDeleteFramebuffersOES(1, mDefaultFramebuffer, 0); mDefaultFramebuffer[0] = 0; } if(mColorRenderbuffer[0] != 0) { gl11ep.glDeleteRenderbuffersOES(1, mColorRenderbuffer, 0); mColorRenderbuffer[0] = 0; } } }
Example 2
Source File: GLES11Canvas.java From PhotoMovie with Apache License 2.0 | 5 votes |
private void setRenderTarget(RawTexture texture) { GL11ExtensionPack gl11ep = (GL11ExtensionPack) mGL; if (mTargetTexture == null && texture != null) { mGLId.glGenBuffers(1, mFrameBuffer, 0); gl11ep.glBindFramebufferOES( GL11ExtensionPack.GL_FRAMEBUFFER_OES, mFrameBuffer[0]); } if (mTargetTexture != null && texture == null) { gl11ep.glBindFramebufferOES(GL11ExtensionPack.GL_FRAMEBUFFER_OES, 0); gl11ep.glDeleteFramebuffersOES(1, mFrameBuffer, 0); } mTargetTexture = texture; if (texture == null) { setSize(mScreenWidth, mScreenHeight); } else { setSize(texture.getWidth(), texture.getHeight()); if (!texture.isLoaded()) { texture.prepare(this); } gl11ep.glFramebufferTexture2DOES( GL11ExtensionPack.GL_FRAMEBUFFER_OES, GL11ExtensionPack.GL_COLOR_ATTACHMENT0_OES, GL11.GL_TEXTURE_2D, texture.getId(), 0); checkFramebufferStatus(gl11ep); } }
Example 3
Source File: PLRenderer.java From panoramagl with Apache License 2.0 | 5 votes |
protected void destroyFramebuffer(GL11ExtensionPack gl11ep) { if (mContextSupportsFrameBufferObject) { if (mDefaultFramebuffer[0] != 0) { gl11ep.glDeleteFramebuffersOES(1, mDefaultFramebuffer, 0); mDefaultFramebuffer[0] = 0; } if (mColorRenderbuffer[0] != 0) { gl11ep.glDeleteRenderbuffersOES(1, mColorRenderbuffer, 0); mColorRenderbuffer[0] = 0; } } }
Example 4
Source File: GLES11IdImpl.java From PhotoMovie with Apache License 2.0 | 4 votes |
@Override public void glDeleteFramebuffers(GL11ExtensionPack gl11ep, int n, int[] buffers, int offset) { synchronized (sLock) { gl11ep.glDeleteFramebuffersOES(n, buffers, offset); } }