Graphics hardware supports rendering of different primitive types. The way indices are interpreted will depend on the indexprimitivetype.
- lineloop ()
- returns: (primitivetype)
closed line loop. Each index is a line point connected to previous index, a last line segment is added automatically to first index. Rendersurface interface can be used to influence appearance.
- lines ()
- returns: (primitivetype)
line list. Every two indices make a line. Rendersurface interface can be used to influence appearance.
- linestrip ()
- returns: (primitivetype)
line strip. Each index is a line point connected to previous index, not closed. Rendersurface interface can be used to influence appearance.
- points ()
- returns: (primitivetype)
points. Each index will be a point. Using vertexshaders pointsize can be influenced.
- polygon ()
- returns: (primitivetype)
polygon. All indices create the outer closed line of a polygon, which becomes triangulated by the driver internally, undefined behavior for non-convex polygons.
- quads ()
- returns: (primitivetype)
quad list. Every four indices make a quad.
- quadstrip ()
- returns: (primitivetype)
quad strip. After the first 2 indices, each 2 new indices creat a quad with last 4 indices.
- trianglefan ()
- returns: (primitivetype)
triangle fan. First index becomes center, all others are connected to it and previous index.
- triangles ()
- returns: (primitivetype)
triangle list. Every 3 indices make a triangle.
- trianglestrip ()
- returns: (primitivetype)
triangle strip. After the first 2 indices, each new index spans a triangle with last 3 indices.