Enum tetra::graphics::StencilAction
source · [−]#[non_exhaustive]
pub enum StencilAction {
Keep,
Zero,
Replace,
Increment,
IncrementWrap,
Decrement,
DecrementWrap,
Invert,
}
Expand description
How drawing operations should modify the stencil buffer.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Keep
Drawing operations will not modify the stencil buffer.
Zero
Drawing operations will set the corresponding values in the stencil buffer to 0.
Replace
Drawing operations will replace the corresponding stencil values with the reference value.
Increment
Drawing operations will increment the corresponding stencil values by 1.
IncrementWrap
Drawing operations will increment the corresponding stencil values by 1. If a value of 255 is incremented, it will wrap back around to 0.
Decrement
Drawing operations will decrement the corresponding stencil values by 1.
DecrementWrap
Drawing operations will decrement the corresponding stencil values by 1. If a value of 0 is decremented, it will wrap back around to 255.
Invert
Drawing operations will bitwise invert the corresponding stencil values.
Trait Implementations
sourceimpl Clone for StencilAction
impl Clone for StencilAction
sourcefn clone(&self) -> StencilAction
fn clone(&self) -> StencilAction
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 StencilAction
impl Debug for StencilAction
sourceimpl PartialEq<StencilAction> for StencilAction
impl PartialEq<StencilAction> for StencilAction
impl Copy for StencilAction
impl Eq for StencilAction
impl StructuralEq for StencilAction
impl StructuralPartialEq for StencilAction
Auto Trait Implementations
impl RefUnwindSafe for StencilAction
impl Send for StencilAction
impl Sync for StencilAction
impl Unpin for StencilAction
impl UnwindSafe for StencilAction
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
impl<T> Pointable for T
impl<T> Pointable for T
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more