IamEasy_Man

Filled With Confidence , And Never Say Give Up !

【原创】OpenglES画图元基础知识

Primitive FlagDescription
GL_POINTSA point is placed at each vertex.
GL_LINESA line is drawn for every pair of vertices that are given.
GL_LINE_STRIPA continuous set of lines are drawn. After the first vertex, a line is drawn between every successive vertex and the vertex before it.
GL_LINE_LOOPThis is the same as GL_LINE_STRIP except that the start and end vertices are connected as well.
GL_TRIANGLESFor every triplet of vertices, a triangle is drawn with corners specified by the coordinates of the vertices.
GL_TRIANGLE_STRIPAfter the first 2 vertices, every successive vertex uses the previous 2 vertices to draw a triangle.
GL_TRIANGLE_FANAfter the first 2 vertices, every successive vertex uses the previous vertex and the first vertex to draw a triangle. This is used to draw cone-like shapes.

 在Zeus上看到的一个关于OpenglES画图元的基础知识,记录一下。

posted on 2010-01-26 10:06  IamEasy_Man  阅读(584)  评论(0)    收藏  举报

导航