【原创】OpenglES画图元基础知识
| Primitive Flag | Description | 
| GL_POINTS | A point is placed at each vertex. | 
| GL_LINES | A line is drawn for every pair of vertices that are given. | 
| GL_LINE_STRIP | A 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_LOOP | This is the same as GL_LINE_STRIP except that the start and end vertices are connected as well. | 
| GL_TRIANGLES | For every triplet of vertices, a triangle is drawn with corners specified by the coordinates of the vertices. | 
| GL_TRIANGLE_STRIP | After the first 2 vertices, every successive vertex uses the previous 2 vertices to draw a triangle. | 
| GL_TRIANGLE_FAN | After 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) 收藏 举报
 
                    
                     
                    
                 
                    
                 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号