Java Code Examples for com.jogamp.opengl.GL4#glDeleteTextures()
The following examples show how to use
com.jogamp.opengl.GL4#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_400_fbo_multisample.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(Texture.MAX, textureName); gl4.glDeleteFramebuffers(Framebuffer.MAX, framebufferName); gl4.glDeleteVertexArrays(1, vertexArrayName); gl4.glDeleteSamplers(1, samplerName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(samplerName); return true; }
Example 2
Source File: Gl_450_clip_control.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteProgramPipelines(1, pipelineName); BufferUtils.destroyDirectBuffer(pipelineName); gl4.glDeleteProgram(programName[Program.FRAGMENT]); gl4.glDeleteProgram(programName[Program.VERTEX]); gl4.glDeleteBuffers(Buffer.MAX, bufferName); BufferUtils.destroyDirectBuffer(bufferName); gl4.glDeleteTextures(1, textureName); BufferUtils.destroyDirectBuffer(textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 3
Source File: Gl_450_texture_barrier.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteProgramPipelines(Pipeline.MAX, pipelineName); BufferUtils.destroyDirectBuffer(pipelineName); gl4.glDeleteProgram(programName[Pipeline.SPLASH]); gl4.glDeleteProgram(programName[Pipeline.TEXTURE]); gl4.glDeleteBuffers(Buffer.MAX, bufferName); BufferUtils.destroyDirectBuffer(bufferName); gl4.glDeleteFramebuffers(1, framebufferName); BufferUtils.destroyDirectBuffer(framebufferName); gl4.glDeleteTextures(Texture.MAX, textureName); BufferUtils.destroyDirectBuffer(textureName); gl4.glDeleteVertexArrays(Pipeline.MAX, vertexArrayName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 4
Source File: Gl_500_primitive_bindless_nv.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteBuffers(Buffer.MAX, bufferName); BufferUtils.destroyDirectBuffer(bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(1, textureName); BufferUtils.destroyDirectBuffer(textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(vertexArrayName); gl4.glDeleteProgramPipelines(1, pipelineName); BufferUtils.destroyDirectBuffer(pipelineName); BufferUtils.destroyDirectBuffer(address); return true; }
Example 5
Source File: Gl_420_picking.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteProgramPipelines(1, pipelineName); gl4.glDeleteProgram(programName); gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteTextures(Texture.MAX, textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(pipelineName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 6
Source File: Gl_400_fbo_rtt.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteTextures(Texture.MAX, textureName); gl4.glDeleteFramebuffers(1, framebufferName); gl4.glDeleteProgram(programName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(framebufferName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl4, "end"); }
Example 7
Source File: Gl_420_texture_compressed.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteProgramPipelines(1, pipelineName); gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(Texture.MAX, textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); gl4.glDeleteSamplers(1, samplerName); BufferUtils.destroyDirectBuffer(pipelineName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(samplerName); return true; }
Example 8
Source File: Gl_430_texture_copy.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteProgramPipelines(1, pipelineName); BufferUtils.destroyDirectBuffer(pipelineName); gl4.glDeleteBuffers(Buffer.MAX, bufferName); BufferUtils.destroyDirectBuffer(bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(Texture.MAX, textureName); BufferUtils.destroyDirectBuffer(textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 9
Source File: Gl_400_program_subroutine.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteVertexArrays(1, vertexArrayName); gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(Texture.MAX, textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(subroutineId); return checkError(gl4, "end"); }
Example 10
Source File: Gl_400_sampler_array.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(Texture.MAX, textureName); gl4.glDeleteSamplers(1, samplerName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(samplerName); BufferUtils.destroyDirectBuffer(vertexArrayName); return checkError(gl4, "end"); }
Example 11
Source File: Gl_450_query_statistics_arb.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteProgramPipelines(1, pipelineName); BufferUtils.destroyDirectBuffer(pipelineName); gl4.glDeleteProgram(programName[Program.FRAGMENT]); gl4.glDeleteProgram(programName[Program.VERTEX]); gl4.glDeleteBuffers(Buffer.MAX, bufferName); BufferUtils.destroyDirectBuffer(bufferName); gl4.glDeleteTextures(1, textureName); BufferUtils.destroyDirectBuffer(textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 12
Source File: Gl_420_texture_conversion.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteBuffers(Buffer.MAX, bufferName); for (int i = 0; i < Program.MAX; ++i) { gl4.glDeleteProgram(programName[i]); } gl4.glDeleteTextures(Texture.MAX, textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); gl4.glDeleteProgramPipelines(Program.MAX, pipelineName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(pipelineName); return true; }
Example 13
Source File: Gl_420_sampler_gather.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(1, textureName); gl4.glDeleteSamplers(1, samplerName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(samplerName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 14
Source File: Gl_450_fbo_multisample_explicit.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; for (int i = 0; i < Program.MAX; ++i) { gl4.glDeleteProgram(programName[i]); } gl4.glDeleteProgramPipelines(Program.MAX, pipelineName); BufferUtils.destroyDirectBuffer(pipelineName); gl4.glDeleteBuffers(Buffer.MAX, bufferName); BufferUtils.destroyDirectBuffer(bufferName); gl4.glDeleteTextures(Texture.MAX, textureName); BufferUtils.destroyDirectBuffer(textureName); gl4.glDeleteFramebuffers(Framebuffer.MAX, framebufferName); BufferUtils.destroyDirectBuffer(framebufferName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 15
Source File: Gl_420_texture_array.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(1, textureName); gl4.glDeleteSamplers(1, samplerName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(samplerName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 16
Source File: Gl_430_fbo_without_attachment.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteSamplers(1, samplerName); BufferUtils.destroyDirectBuffer(samplerName); gl4.glDeleteProgramPipelines(Pipeline.MAX, pipelineName); BufferUtils.destroyDirectBuffer(pipelineName); gl4.glDeleteProgram(programName[Pipeline.SPLASH]); gl4.glDeleteProgram(programName[Pipeline.RENDER]); gl4.glDeleteFramebuffers(1, framebufferName); BufferUtils.destroyDirectBuffer(framebufferName); gl4.glDeleteTextures(Texture.MAX, textureName); BufferUtils.destroyDirectBuffer(textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 17
Source File: Gl_420_sampler_fetch.java From jogl-samples with MIT License | 6 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteTextures(Texture.MAX, textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); gl4.glDeleteProgram(programName[Program.FUNC]); gl4.glDeleteProgram(programName[Program.PROG]); gl4.glDeleteProgramPipelines(Program.MAX, pipelineName); gl4.glDeleteFramebuffers(1, framebufferName); BufferUtils.destroyDirectBuffer(bufferName); BufferUtils.destroyDirectBuffer(textureName); BufferUtils.destroyDirectBuffer(vertexArrayName); BufferUtils.destroyDirectBuffer(pipelineName); BufferUtils.destroyDirectBuffer(framebufferName); return true; }
Example 18
Source File: Gl_450_texture_derivative.java From jogl-samples with MIT License | 5 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteBuffers(Buffer.MAX, bufferName); BufferUtils.destroyDirectBuffer(bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteTextures(1, textureName); BufferUtils.destroyDirectBuffer(textureName); gl4.glDeleteVertexArrays(1, vertexArrayName); BufferUtils.destroyDirectBuffer(vertexArrayName); return true; }
Example 19
Source File: Gl_430_texture_buffer.java From jogl-samples with MIT License | 5 votes |
@Override protected boolean end(GL gl) { GL4 gl4 = (GL4) gl; gl4.glDeleteTextures(Texture.MAX, textureName); gl4.glDeleteBuffers(Buffer.MAX, bufferName); gl4.glDeleteProgram(programName); gl4.glDeleteVertexArrays(1, vertexArrayName); return true; }
Example 20
Source File: GLUtil.java From runelite with BSD 2-Clause "Simplified" License | 4 votes |
static void glDeleteTexture(GL4 gl, int texture) { buf[0] = texture; gl.glDeleteTextures(1, buf, 0); }