[][src]Enum web_glitz::pipeline::graphics::WindingOrder

pub enum WindingOrder {
    Clockwise,
    CounterClockwise,
}

Enumerates the possible winding orders for triangles that may be used by a [Rasterizer].

A triangle is considered to have 2 sides or 'faces': a front-face and a back-face. The winding order determines which face is considered the front-face, and thus by extension which face is considered the back-face.

Each triangle is defined by 3 points: a first point (point a), a second point (point b), and a third point (point c):

//        a
//       /\
//      /  \
//     /    \
//    /      \
//   /________\
//  c          b

In the above example we are looking at just one face of a triangle: the face that is facing toward us. If we trace the outline of this triangle from a -> b -> c -> a, we'll notice that we've followed a clockwise path. If the winding order is defined to be WindingOrder::Clockwise, then we are looking at the front-face of this triangle. If the winding order is defined to be WindingOrder::CounterClockwise, then we are looking at the back-face of this triangle.

Variants

Clockwise
CounterClockwise

Trait Implementations

impl Clone for WindingOrder[src]

impl Copy for WindingOrder[src]

impl Debug for WindingOrder[src]

impl Hash for WindingOrder[src]

impl PartialEq<WindingOrder> for WindingOrder[src]

impl StructuralPartialEq for WindingOrder[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[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.