Java Code Examples for com.jogamp.opengl.GL3#glDeleteTextures()
The following examples show how to use
com.jogamp.opengl.GL3#glDeleteTextures() .
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_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 2
Source File: Gl_300_test_alpha.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(1, texture2dName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(texture2dName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 3
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 4
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 5
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 6
Source File: Gl_320_texture_3d.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(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl3, "end"); }
Example 7
Source File: Gl_320_texture_cube.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(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return true; }
Example 8
Source File: Gl_320_sync.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteSync(syncName); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteProgram(programName); gl3.glDeleteTextures(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return true; }
Example 9
Source File: Gl_330_blend_index.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(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl3, "end"); }
Example 10
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 11
Source File: Gl_320_texture_pixel_store.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteProgram(programName); gl3.glDeleteTextures(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl3, "end"); }
Example 12
Source File: Gl_320_texture_lod.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.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 13
Source File: Gl_320_glsl_builtin_blocks.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteProgram(programName); gl3.glDeleteTextures(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return checkError(gl3, "end"); }
Example 14
Source File: Gl_320_glsl_input_struct.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteProgram(programName); gl3.glDeleteTextures(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return checkError(gl3, "end"); }
Example 15
Source File: Gl_320_texture_2d.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteProgram(programName); gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteTextures(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return true; }
Example 16
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 17
Source File: Gl_320_fbo_rtt_texture_array.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(1, 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 18
Source File: Gl_320_test_scissor.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL3 gl3 = (GL3) gl; gl3.glDeleteBuffers(Buffer.MAX, bufferName); gl3.glDeleteProgram(programName); gl3.glDeleteTextures(1, textureName); gl3.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return true; }
Example 19
Source File: Gl_320_texture_compressed_ext.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.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(clearColor); return true; }
Example 20
Source File: TextureBuffer.java From constellation with Apache License 2.0 | 4 votes |
public void dispose(final GL3 gl) { gl.glDeleteTextures(1, textureName, 0); gl.glDeleteBuffers(1, bufferName, 0); }