Enum sierra::PrimitiveTopology
source · pub enum PrimitiveTopology {
PointList,
LineList,
LineStrip,
TriangleList,
TriangleStrip,
TriangleFan,
}
Expand description
Topology of primitives.
Variants§
PointList
Vertices are assembled into points. Each vertex form one point primitive.
Example
Vertirces a
, b
, c
, d
will form points a
, b
, c
, d
.
LineList
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
.
LineStrip
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
.
TriangleList
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
.
TriangleStrip
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
.
TriangleFan
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§
source§impl Clone for PrimitiveTopology
impl Clone for PrimitiveTopology
source§fn clone(&self) -> PrimitiveTopology
fn clone(&self) -> PrimitiveTopology
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PrimitiveTopology
impl Debug for PrimitiveTopology
source§impl Default for PrimitiveTopology
impl Default for PrimitiveTopology
source§impl Hash for PrimitiveTopology
impl Hash for PrimitiveTopology
source§impl PartialEq<PrimitiveTopology> for PrimitiveTopology
impl PartialEq<PrimitiveTopology> for PrimitiveTopology
source§fn eq(&self, other: &PrimitiveTopology) -> bool
fn eq(&self, other: &PrimitiveTopology) -> bool
self
and other
values to be equal, and is used
by ==
.