Struct luminance::face_culling::FaceCulling
source · [−]pub struct FaceCulling {
pub order: FaceCullingOrder,
pub mode: FaceCullingMode,
}
Expand description
Face culling setup.
Fields
order: FaceCullingOrder
Face culling order.
mode: FaceCullingMode
Face culling mode.
Implementations
sourceimpl FaceCulling
impl FaceCulling
sourcepub fn new(order: FaceCullingOrder, mode: FaceCullingMode) -> Self
pub fn new(order: FaceCullingOrder, mode: FaceCullingMode) -> Self
Create a new FaceCulling
.
Trait Implementations
sourceimpl Clone for FaceCulling
impl Clone for FaceCulling
sourcefn clone(&self) -> FaceCulling
fn clone(&self) -> FaceCulling
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FaceCulling
impl Debug for FaceCulling
sourceimpl Default for FaceCulling
impl Default for FaceCulling
Default implementation of FaceCulling
.
- Order is
FaceCullingOrder::CCW
. - Mode is
FaceCullingMode::Back
.
sourceimpl PartialEq<FaceCulling> for FaceCulling
impl PartialEq<FaceCulling> for FaceCulling
sourcefn eq(&self, other: &FaceCulling) -> bool
fn eq(&self, other: &FaceCulling) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FaceCulling) -> bool
fn ne(&self, other: &FaceCulling) -> bool
This method tests for !=
.
impl Copy for FaceCulling
impl Eq for FaceCulling
impl StructuralEq for FaceCulling
impl StructuralPartialEq for FaceCulling
Auto Trait Implementations
impl RefUnwindSafe for FaceCulling
impl Send for FaceCulling
impl Sync for FaceCulling
impl Unpin for FaceCulling
impl UnwindSafe for FaceCulling
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more