Enum gfx_core::Primitive
[−]
[src]
pub enum Primitive { PointList, LineList, LineStrip, TriangleList, TriangleStrip, }
Describes what geometric primitives are created from vertex data.
Variants
PointList | Each vertex represents a single point. | |
LineList | 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 |