Enum gfx::device::PrimitiveType
[−]
[src]
pub enum PrimitiveType { Point, Line, LineStrip, TriangleList, TriangleStrip, TriangleFan, }
Describes what geometric primitives are created from vertex data.
Variants
Point | Each vertex represents a single point. |
Line | Each pair of vertices represent a single line segment. For example, with |
LineStrip | Every two consecutive vertices represent a single line segment. Visually forms a "path" of
lines, as they are all connected. For example, with |
TriangleList | Each triplet of vertices represent a single triangle. For example, with |
TriangleStrip | Every three consecutive vertices represent a single triangle. For example, with |
TriangleFan | The first vertex with the last two are forming a triangle. For example, with |