您的位置:首页 > 运维架构

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

2010-01-26 10:06 211 查看
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画图元的基础知识,记录一下。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐