Enum tetra::graphics::StencilAction [−][src]
pub enum StencilAction { Keep, Zero, Replace, Increment, IncrementWrap, Decrement, DecrementWrap, Invert, }
Expand description
How drawing operations should modify the stencil buffer.
Variants
Drawing operations will not modify the stencil buffer.
Drawing operations will set the corresponding values in the stencil buffer to 0.
Drawing operations will replace the corresponding stencil values with the reference value.
Drawing operations will increment the corresponding stencil values by 1.
Drawing operations will increment the corresponding stencil values by 1. If a value of 255 is incremented, it will wrap back around to 0.
Drawing operations will decrement the corresponding stencil values by 1.
Drawing operations will decrement the corresponding stencil values by 1. If a value of 0 is decremented, it will wrap back around to 255.
Drawing operations will bitwise invert the corresponding stencil values.
Trait Implementations
impl Clone for StencilAction
[src]
impl Clone for StencilAction
[src]fn clone(&self) -> StencilAction
[src]
fn clone(&self) -> StencilAction
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StencilAction
[src]
impl Debug for StencilAction
[src]impl PartialEq<StencilAction> for StencilAction
[src]
impl PartialEq<StencilAction> for StencilAction
[src]impl Copy for StencilAction
[src]
impl Eq for StencilAction
[src]
impl StructuralEq for StencilAction
[src]
impl StructuralPartialEq for StencilAction
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more