Enum sierra::PrimitiveTopology[][src]

pub enum PrimitiveTopology {
    PointList,
    LineList,
    LineStrip,
    TriangleList,
    TriangleStrip,
    TriangleFan,
}

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

impl Clone for PrimitiveTopology[src]

impl Copy for PrimitiveTopology[src]

impl Debug for PrimitiveTopology[src]

impl Default for PrimitiveTopology[src]

impl Eq for PrimitiveTopology[src]

impl Hash for PrimitiveTopology[src]

impl PartialEq<PrimitiveTopology> for PrimitiveTopology[src]

impl StructuralEq for PrimitiveTopology[src]

impl StructuralPartialEq for PrimitiveTopology[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.