Java Code Examples for com.jogamp.opengl.GL3#glDeleteFramebuffers()
The following examples show how to use
com.jogamp.opengl.GL3#glDeleteFramebuffers() .
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: Gl_320_fbo_shadow.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; for (int i = 0; i < Program.MAX; ++i) { gl3.glDeleteProgram(programName[i]); } gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(1, textureName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); BufferUtils.destroyDirectBuffer(clearDepth); return checkError(gl3, "end"); }
Example 2
Source File: Gl_320_fbo_srgb_decode_ext.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteProgram(programName[Program.TEXTURE]); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColorSRGB); BufferUtils.destroyDirectBuffer(clearDepth); return true; }
Example 3
Source File: Gl_320_fbo_multisample_explicit.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; for (int i = 0; i < Program.MAX; ++i) { gl3.glDeleteProgram(programName[i]); } gl3.glDeleteBuffers(1, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteFramebuffers(1, framebufferRenderName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferRenderName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl3, "end"); }
Example 4
Source File: Gl_320_fbo_blit.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteProgram(programName); gl3.glDeleteBuffers(1, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteRenderbuffers(1, colorRenderbufferName); gl3.glDeleteFramebuffers(Framebuffer.MAX, framebufferName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(colorRenderbufferName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 5
Source File: Gl_320_fbo_srgb.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteProgram(programName[Program.TEXTURE]); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); BufferUtils.destroyDirectBuffer(clearDepth); return true; }
Example 6
Source File: Gl_320_fbo_multisample_integer.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(1, bufferName); gl3.glDeleteProgram(programName[Program.RENDER]); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteFramebuffers(Framebuffer.MAX, framebufferName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl3, "end"); }
Example 7
Source File: Gl_320_fbo_rtt.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; for (int i = 0; i < Program.MAX; ++i) { gl3.glDeleteProgram(programName[i]); } gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return checkError(gl3, "end"); }
Example 8
Source File: Gl_300_fbo_multisample.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(1, bufferName); gl3.glDeleteProgram(programName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteRenderbuffers(1, colorRenderbufferName); gl3.glDeleteFramebuffers(Framebuffer.MAX, framebufferName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(colorRenderbufferName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 9
Source File: Gl_320_fbo_depth_stencil.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteProgram(programName[Program.TEXTURE]); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 10
Source File: Gl_320_fbo_multisample.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(1, bufferName); gl3.glDeleteProgram(programName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteFramebuffers(Framebuffer.MAX, framebufferName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 11
Source File: Gl_320_fbo_integer.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(1, bufferName); gl3.glDeleteProgram(programName[Program.RENDER]); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl3, "end"); }
Example 12
Source File: Gl_330_fbo_multisample_explicit_nv.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(1, bufferName); for (int i = 0; i < Program.MAX; ++i) { gl3.glDeleteProgram(programName[i]); } gl3.glDeleteSamplers(1, samplerName); gl3.glDeleteRenderbuffers(Renderbuffer.MAX, renderbufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(samplerName); BufferUtils.destroyDirectBuffer(renderbufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl3, "end"); }
Example 13
Source File: Gl_320_fbo_srgb_blend.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteProgram(programName[Program.TEXTURE]); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return true; }
Example 14
Source File: Gl_320_fbo_integer_blit.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(1, bufferName); gl3.glDeleteProgram(programName[Program.RENDER]); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteFramebuffers(Framebuffer.MAX, framebufferName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl3, "end"); }
Example 15
Source File: Gl_320_fbo_layered.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; for (int i = 0; i < Program.MAX; ++i) { gl3.glDeleteProgram(programName[i]); } gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(1, textureColorbufferName); gl3.glDeleteFramebuffers(1, framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureColorbufferName); BufferUtils.destroyDirectBuffer(framebufferName); return checkError(gl3, "end"); }
Example 16
Source File: Gl_330_blend_rtt.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(1, bufferName); gl3.glDeleteProgram(programNameSingle); gl3.glDeleteTextures(Texture.MAX, texture2dName); gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteSamplers(1, samplerName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(texture2dName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(samplerName); return checkError(gl3, "end"); }
Example 17
Source File: Gl_320_fbo_blend_points.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteProgram(programName[Program.RENDER]); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 18
Source File: Gl_320_fbo.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteFramebuffers(1, framebufferName); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteProgram(programName[Program.TEXTURE]); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 19
Source File: Gl_320_primitive_line_msaa.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteFramebuffers(Texture.MAX, framebufferName); gl3.glDeleteProgram(programName[Program.SPLASH]); gl3.glDeleteProgram(programName[Program.TEXTURE]); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(Texture.MAX, textureName); gl3.glDeleteVertexArrays(Program.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return true; }
Example 20
Source File: HitTester.java From constellation with Apache License 2.0 | 5 votes |
@Override public void dispose(final GLAutoDrawable drawable) { final GL3 gl = drawable.getGL().getGL3(); gl.glDeleteRenderbuffers(1, hitTestRboName, 0); gl.glDeleteRenderbuffers(1, hitTestDepthBufferName, 0); gl.glDeleteFramebuffers(1, hitTestFboName, 0); }