openGL之API学习(六十五)glDrawTransformFeedback

从变换反馈Transform Feedback的缓冲区中绘制图元。与glDrawArrays不同的是不需要指定顶点的数量。

void glDrawTransformFeedback(     GLenum mode,
      GLuint id);

mode

    Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_LINE_STRIP_ADJACENCY, GL_LINES_ADJACENCY, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_TRIANGLE_STRIP_ADJACENCY, GL_TRIANGLES_ADJACENCY, and GL_PATCHES are accepted.

指定图元的拓扑关系
id

    Specifies the name of a transform feedback object from which to retrieve a primitive count.

指定Transform Feedback的标识

 

 

 

 

你可能感兴趣的:(opengl,图形学,着色器,GLSL,openGL之API学习)