pub struct LayerShadingFlag(pub i32);Expand description
Shader and rendering flags
Bit flags. Combine with |, test with LayerShadingFlag::contains.
Tuple Fields§
§0: i32Implementations§
Source§impl LayerShadingFlag
impl LayerShadingFlag
pub const NONE: Self
Sourcepub const SPHERE_ENV_MAP: Self
pub const SPHERE_ENV_MAP: Self
Spherical environment mapping
Sourcepub const WRAP_WIDTH: Self
pub const WRAP_WIDTH: Self
Texture U-wrap
Sourcepub const WRAP_HEIGHT: Self
pub const WRAP_HEIGHT: Self
Texture V-wrap
Sourcepub const NO_DEPTH_TEST: Self
pub const NO_DEPTH_TEST: Self
Disable depth testing
Sourcepub const NO_DEPTH_SET: Self
pub const NO_DEPTH_SET: Self
Don’t write to depth buffer
pub const fn contains(self, other: Self) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl BitAnd for LayerShadingFlag
impl BitAnd for LayerShadingFlag
Source§impl BitOr for LayerShadingFlag
impl BitOr for LayerShadingFlag
Source§impl Clone for LayerShadingFlag
impl Clone for LayerShadingFlag
Source§fn clone(&self) -> LayerShadingFlag
fn clone(&self) -> LayerShadingFlag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LayerShadingFlag
Source§impl Debug for LayerShadingFlag
impl Debug for LayerShadingFlag
Source§impl Default for LayerShadingFlag
impl Default for LayerShadingFlag
Source§fn default() -> LayerShadingFlag
fn default() -> LayerShadingFlag
Returns the “default value” for a type. Read more
impl Eq for LayerShadingFlag
Source§impl Hash for LayerShadingFlag
impl Hash for LayerShadingFlag
Source§impl Not for LayerShadingFlag
impl Not for LayerShadingFlag
Source§impl PartialEq for LayerShadingFlag
impl PartialEq for LayerShadingFlag
impl StructuralPartialEq for LayerShadingFlag
Auto Trait Implementations§
impl Freeze for LayerShadingFlag
impl RefUnwindSafe for LayerShadingFlag
impl Send for LayerShadingFlag
impl Sync for LayerShadingFlag
impl Unpin for LayerShadingFlag
impl UnsafeUnpin for LayerShadingFlag
impl UnwindSafe for LayerShadingFlag
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more