[][src]Enum fna3d::PrimitiveType

#[repr(u32)]pub enum PrimitiveType {
    TriangleList,
    TriangleStrip,
    LineList,
    LineStrip,
    PointListExt,
}

Specifies primitive type used for drawing

Variants

TriangleList

Renders the specified vertices as a sequence of isolated triangles. Each group of three vertices defines a separate triangle. Back-face culling is affected by the current winding-order render state.

TriangleStrip

Renders the vertices as a triangle strip. The back-face culling flag is flipped automatically on even-numbered triangles.

LineList

Renders the vertices as a list of isolated straight line segments; the count may be any positive integer.

LineStrip

Renders the vertices as a single polyline; the count may be any positive integer.

PointListExt

Treats each vertex as a single point. Vertex n defines point n. N points are drawn.

Trait Implementations

impl Clone for PrimitiveType[src]

impl Copy for PrimitiveType[src]

impl Debug for PrimitiveType[src]

impl Eq for PrimitiveType[src]

impl FromPrimitive for PrimitiveType[src]

impl Hash for PrimitiveType[src]

impl PartialEq<PrimitiveType> for PrimitiveType[src]

impl StructuralEq for PrimitiveType[src]

impl StructuralPartialEq for PrimitiveType[src]

impl ToPrimitive for PrimitiveType[src]

impl TryFrom<i16> for PrimitiveType[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i32> for PrimitiveType[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i64> for PrimitiveType[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<i8> for PrimitiveType[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u16> for PrimitiveType[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u32> for PrimitiveType[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u64> for PrimitiveType[src]

type Error = &'static str

The type returned in the event of a conversion error.

impl TryFrom<u8> for PrimitiveType[src]

type Error = &'static str

The type returned in the event of a conversion error.

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, 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.