[−][src]Enum web_glitz::pipeline::graphics::WindingOrder
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
Trait Implementations
impl Clone for WindingOrder[src]
fn clone(&self) -> WindingOrder[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for WindingOrder[src]
impl Debug for WindingOrder[src]
impl Hash for WindingOrder[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<WindingOrder> for WindingOrder[src]
fn eq(&self, other: &WindingOrder) -> bool[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralPartialEq for WindingOrder[src]
Auto Trait Implementations
impl RefUnwindSafe for WindingOrder
impl Send for WindingOrder
impl Sync for WindingOrder
impl Unpin for WindingOrder
impl UnwindSafe for WindingOrder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<D, T> IntoBuffer<T> for D where
D: Borrow<T> + 'static,
T: Copy + 'static, [src]
D: Borrow<T> + 'static,
T: Copy + 'static,
fn into_buffer<Rc>(Self, &Rc, BufferId, UsageHint) -> Buffer<T> where
Rc: RenderingContext + Clone + 'static, [src]
Rc: RenderingContext + Clone + 'static,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,