Enum sierra::PrimitiveTopology [−][src]
pub enum PrimitiveTopology { PointList, LineList, LineStrip, TriangleList, TriangleStrip, TriangleFan, }
Expand description
Topology of primitives.
Variants
Vertices are assembled into points. Each vertex form one point primitive.
Example
Vertirces a
, b
, c
, d
will form points a
, b
, c
, d
.
Vertices are assembled into lines. Each separate pair of vertices forms one line primitive.
Example
Vertirces a
, b
, c
, d
will form lines a, b
and c, d
.
Vertices are assembled into lines. Each pair of vertices forms one line primitive.
Example
Vertirces a
, b
, c
, d
will form lines a, b
, b, c
and c, d
.
Vertices are assempled into triangles. Each separate triplet of vertices forms one triangle primitive.
Example
Vertirces a
, b
, c
, d
, e
, f
will form triangles a, b, c
and d, e, f
.
Vertices are assempled into triangles. Each triplet of vertices forms one triangle primitive.
Example
Vertirces a
, b
, c
, d
, e
, f
will form triangles a, b, c
,
b, c, d
, c, d, e
and d, e, f
.
Vertices are assempled into triangles. First vertex is shared with all triangles. Then each pair and shared vertex form one triangle primitive.
Example
Vertirces a
, b
, c
, d
, e
, f
will form triangles a, b, c
,
a, c, d
, a, d, e
and a, e, f
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveTopology
impl Send for PrimitiveTopology
impl Sync for PrimitiveTopology
impl Unpin for PrimitiveTopology
impl UnwindSafe for PrimitiveTopology
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more