当前位置: 首页>>代码示例>>Java>>正文


Java GL4.glDeleteTransformFeedbacks方法代码示例

本文整理汇总了Java中com.jogamp.opengl.GL4.glDeleteTransformFeedbacks方法的典型用法代码示例。如果您正苦于以下问题:Java GL4.glDeleteTransformFeedbacks方法的具体用法?Java GL4.glDeleteTransformFeedbacks怎么用?Java GL4.glDeleteTransformFeedbacks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.jogamp.opengl.GL4的用法示例。


在下文中一共展示了GL4.glDeleteTransformFeedbacks方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: 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.glDeleteVertexArrays(Program.MAX, vertexArrayName);
    BufferUtils.destroyDirectBuffer(vertexArrayName);
    gl4.glDeleteBuffers(Buffer.MAX, bufferName);
    BufferUtils.destroyDirectBuffer(bufferName);
    gl4.glDeleteProgram(programName[Program.FEEDBACK]);
    gl4.glDeleteProgram(programName[Program.TRANSFORM]);
    gl4.glDeleteProgramPipelines(Program.MAX, pipelineName);
    BufferUtils.destroyDirectBuffer(pipelineName);
    gl4.glDeleteTransformFeedbacks(1, feedbackName);
    BufferUtils.destroyDirectBuffer(feedbackName);

    return true;
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:26,代码来源:Gl_450_transform_feedback_arb.java

示例2: end

import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {

    GL4 gl4 = (GL4) gl;

    gl4.glDeleteVertexArrays(VertexArray.MAX, vertexArrayName);
    gl4.glDeleteBuffers(Buffer.MAX, bufferName);
    gl4.glDeleteProgram(transformProgramName);
    gl4.glDeleteProgram(feedbackProgramName);
    gl4.glDeleteTransformFeedbacks(1, feedbackName);

    BufferUtils.destroyDirectBuffer(vertexArrayName);
    BufferUtils.destroyDirectBuffer(bufferName);
    BufferUtils.destroyDirectBuffer(feedbackName);

    return checkError(gl4, "end");
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:18,代码来源:Gl_400_transform_feedback_object.java

示例3: end

import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {

    GL4 gl4 = (GL4) gl;

    gl4.glDeleteVertexArrays(VertexArray.MAX, vertexArrayName);
    gl4.glDeleteBuffers(Buffer.MAX, bufferName);
    gl4.glDeleteProgram(transformProgramName);
    gl4.glDeleteProgram(feedbackProgramName);

    gl4.glDeleteTransformFeedbacks(1, feedbackName);

    BufferUtils.destroyDirectBuffer(vertexArrayName);
    BufferUtils.destroyDirectBuffer(bufferName);
    BufferUtils.destroyDirectBuffer(feedbackName);

    return checkError(gl4, "end");
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:19,代码来源:Gl_400_transform_feedback_stream.java

示例4: end

import com.jogamp.opengl.GL4; //导入方法依赖的package包/类
@Override
protected boolean end(GL gl) {

    GL4 gl4 = (GL4) gl;

    gl4.glDeleteProgramPipelines(Pipeline.MAX, pipelineName);
    gl4.glDeleteVertexArrays(Pipeline.MAX, vertexArrayName);
    gl4.glDeleteBuffers(Buffer.MAX, bufferName);
    gl4.glDeleteProgram(programName[Pipeline.TRANSFORM]);
    gl4.glDeleteProgram(programName[Pipeline.FEEDBACK]);
    gl4.glDeleteTransformFeedbacks(1, feedbackName);

    BufferUtils.destroyDirectBuffer(pipelineName);
    BufferUtils.destroyDirectBuffer(vertexArrayName);
    BufferUtils.destroyDirectBuffer(bufferName);
    BufferUtils.destroyDirectBuffer(feedbackName);

    return true;
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:20,代码来源:Gl_420_transform_feedback_instanced.java

示例5: 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;
}
 
开发者ID:java-opengl-labs,项目名称:jogl-samples,代码行数:22,代码来源:Gl_440_transform_feedback.java


注:本文中的com.jogamp.opengl.GL4.glDeleteTransformFeedbacks方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。