本文整理汇总了Java中com.jogamp.opengl.GL4.glDeleteProgram方法的典型用法代码示例。如果您正苦于以下问题:Java GL4.glDeleteProgram方法的具体用法?Java GL4.glDeleteProgram怎么用?Java GL4.glDeleteProgram使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jogamp.opengl.GL4
的用法示例。
在下文中一共展示了GL4.glDeleteProgram方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteFramebuffers(Framebuffer.MAX, framebufferName);
for (int i = 0; i < Program.MAX; ++i) {
gl4.glDeleteProgram(programName[i]);
}
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
gl4.glDeleteTextures(Texture.MAX, textureName);
gl4.glDeleteVertexArrays(Program.MAX, vertexArrayName);
BufferUtils.destroyDirectBuffer(framebufferName);
BufferUtils.destroyDirectBuffer(bufferName);
BufferUtils.destroyDirectBuffer(textureName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
return checkError(gl4, "end");
}
示例2: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@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");
}
示例3: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@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;
}
示例4: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
if (uniformPointer == null) {
gl4.glBindBuffer(GL_UNIFORM_BUFFER, bufferName.get(Buffer.TRANSFORM));
gl4.glUnmapBuffer(GL_UNIFORM_BUFFER);
BufferUtils.destroyDirectBuffer(uniformPointer);
}
gl4.glDeleteProgramPipelines(1, pipelineName);
BufferUtils.destroyDirectBuffer(pipelineName);
gl4.glDeleteProgram(programName);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
BufferUtils.destroyDirectBuffer(bufferName);
gl4.glDeleteTextures(1, textureName);
BufferUtils.destroyDirectBuffer(textureName);
gl4.glDeleteVertexArrays(1, vertexArrayName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
return true;
}
示例5: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteFramebuffers(1, framebufferName);
BufferUtils.destroyDirectBuffer(framebufferName);
gl4.glDeleteProgram(programName[Program.SPLASH]);
gl4.glDeleteProgram(programName[Program.TEXTURE]);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
BufferUtils.destroyDirectBuffer(bufferName);
gl4.glDeleteTextures(Texture.MAX, textureName);
BufferUtils.destroyDirectBuffer(textureName);
gl4.glDeleteVertexArrays(Program.MAX, vertexArrayName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
return true;
}
示例6: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@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;
}
示例7: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteProgramPipelines(Program.MAX, pipelineName);
BufferUtils.destroyDirectBuffer(pipelineName);
gl4.glDeleteProgram(programName[Program.GRAPHICS]);
gl4.glDeleteProgram(programName[Program.COMPUTE]);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
BufferUtils.destroyDirectBuffer(bufferName);
gl4.glDeleteTextures(Texture.MAX, textureName);
BufferUtils.destroyDirectBuffer(textureName);
gl4.glDeleteVertexArrays(1, vertexArrayName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
return true;
}
示例8: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
boolean validated = true;
gl4.glDeleteProgramPipelines(1, pipelineName);
gl4.glDeleteVertexArrays(1, vertexArrayName);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
gl4.glDeleteProgram(programName);
BufferUtils.destroyDirectBuffer(pipelineName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
BufferUtils.destroyDirectBuffer(bufferName);
return validated;
}
示例9: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteProgramPipelines(1, pipelineName);
gl4.glDeleteProgram(programName[Program.FRAGMENT]);
gl4.glDeleteProgram(programName[Program.VERTEX]);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
gl4.glDeleteTextures(1, textureName);
gl4.glDeleteVertexArrays(1, vertexArrayName);
BufferUtils.destroyDirectBuffer(pipelineName);
BufferUtils.destroyDirectBuffer(bufferName);
BufferUtils.destroyDirectBuffer(textureName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
return true;
}
示例10: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteFramebuffers(1, framebufferName);
gl4.glDeleteProgram(programName[Program.SPLASH]);
gl4.glDeleteProgram(programName[Program.TEXTURE]);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
gl4.glDeleteTextures(Texture.MAX, textureName);
gl4.glDeleteVertexArrays(Program.MAX, vertexArrayName);
BufferUtils.destroyDirectBuffer(framebufferName);
BufferUtils.destroyDirectBuffer(bufferName);
BufferUtils.destroyDirectBuffer(textureName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
return true;
}
示例11: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteProgramPipelines(1, pipelineName);
BufferUtils.destroyDirectBuffer(pipelineName);
gl4.glDeleteProgram(programName);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
BufferUtils.destroyDirectBuffer(bufferName);
gl4.glDeleteVertexArrays(1, vertexArrayName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
gl4.glDeleteQueries(1, queryName);
BufferUtils.destroyDirectBuffer(queryName);
return checkError(gl4, "end");
}
示例12: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteProgramPipelines(1, pipelineName);
gl4.glDeleteProgram(programName);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
gl4.glDeleteTextures(1, textureName);
gl4.glDeleteVertexArrays(1, vertexArrayName);
BufferUtils.destroyDirectBuffer(pipelineName);
BufferUtils.destroyDirectBuffer(bufferName);
BufferUtils.destroyDirectBuffer(textureName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
return true;
}
示例13: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
if (uniformPointer == null) {
gl4.glBindBuffer(GL_UNIFORM_BUFFER, bufferName[Buffer.TRANSFORM]);
gl4.glUnmapBuffer(GL_UNIFORM_BUFFER);
BufferUtils.destroyDirectBuffer(uniformPointer);
}
gl4.glDeleteVertexArrays(Program.MAX, vertexArrayName, 0);
gl4.glDeleteBuffers(Buffer.MAX, bufferName, 0);
gl4.glDeleteProgram(programName[Program.FEEDBACK]);
gl4.glDeleteProgram(programName[Program.TRANSFORM]);
gl4.glDeleteProgramPipelines(Program.MAX, pipelineName, 0);
gl4.glDeleteTransformFeedbacks(1, feedbackName, 0);
return true;
}
示例14: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
gl4.glDeleteProgram(programName);
gl4.glDeleteProgramPipelines(1, pipelineName);
gl4.glDeleteVertexArrays(1, vertexArrayName);
gl4.glDeleteTextures(1, textureName);
BufferUtils.destroyDirectBuffer(bufferName);
BufferUtils.destroyDirectBuffer(pipelineName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
BufferUtils.destroyDirectBuffer(textureName);
return true;
}
示例15: end
import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {
GL4 gl4 = (GL4) gl;
gl4.glDeleteProgramPipelines(1, pipelineName);
gl4.glDeleteProgram(programName);
gl4.glDeleteBuffers(Buffer.MAX, bufferName);
gl4.glDeleteVertexArrays(1, vertexArrayName);
BufferUtils.destroyDirectBuffer(pipelineName);
BufferUtils.destroyDirectBuffer(bufferName);
BufferUtils.destroyDirectBuffer(vertexArrayName);
return true;
}