pub struct TextureLayerFlag(pub i32);Expand description
Texture layer flags (LAYR.flags)
Bit flags. Combine with |, test with TextureLayerFlag::contains.
Tuple Fields§
§0: i32Implementations§
Source§impl TextureLayerFlag
impl TextureLayerFlag
pub const NONE: Self
Sourcepub const COLOR_INVERT: Self
pub const COLOR_INVERT: Self
Invert color
Sourcepub const COLOR_CLAMP: Self
pub const COLOR_CLAMP: Self
Clamp to [0,1]
Sourcepub const COLOR_MULTIPLY: Self
pub const COLOR_MULTIPLY: Self
Multiplicative blending
Sourcepub const PARTICLE_UV_FLIPBOOK: Self
pub const PARTICLE_UV_FLIPBOOK: Self
Flipbook UVs for particles
Sourcepub const REPLACE_TEXTURE_SOURCE: Self
pub const REPLACE_TEXTURE_SOURCE: Self
Override texture source
Sourcepub const FRESNEL_TRANSFORM: Self
pub const FRESNEL_TRANSFORM: Self
Fresnel-based UV transform
Sourcepub const FRESNEL_NORMALIZE: Self
pub const FRESNEL_NORMALIZE: Self
Normalize fresnel values
pub const fn contains(self, other: Self) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl BitAnd for TextureLayerFlag
impl BitAnd for TextureLayerFlag
Source§impl BitOr for TextureLayerFlag
impl BitOr for TextureLayerFlag
Source§impl Clone for TextureLayerFlag
impl Clone for TextureLayerFlag
Source§fn clone(&self) -> TextureLayerFlag
fn clone(&self) -> TextureLayerFlag
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 TextureLayerFlag
Source§impl Debug for TextureLayerFlag
impl Debug for TextureLayerFlag
Source§impl Default for TextureLayerFlag
impl Default for TextureLayerFlag
Source§fn default() -> TextureLayerFlag
fn default() -> TextureLayerFlag
Returns the “default value” for a type. Read more
impl Eq for TextureLayerFlag
Source§impl Hash for TextureLayerFlag
impl Hash for TextureLayerFlag
Source§impl Not for TextureLayerFlag
impl Not for TextureLayerFlag
Source§impl PartialEq for TextureLayerFlag
impl PartialEq for TextureLayerFlag
impl StructuralPartialEq for TextureLayerFlag
Auto Trait Implementations§
impl Freeze for TextureLayerFlag
impl RefUnwindSafe for TextureLayerFlag
impl Send for TextureLayerFlag
impl Sync for TextureLayerFlag
impl Unpin for TextureLayerFlag
impl UnsafeUnpin for TextureLayerFlag
impl UnwindSafe for TextureLayerFlag
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