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§
source§impl Clone for StencilAction
impl Clone for StencilAction
source§fn clone(&self) -> StencilAction
fn clone(&self) -> StencilAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StencilAction
impl Debug for StencilAction
source§impl PartialEq<StencilAction> for StencilAction
impl PartialEq<StencilAction> for StencilAction
source§fn eq(&self, other: &StencilAction) -> bool
fn eq(&self, other: &StencilAction) -> bool
self
and other
values to be equal, and is used
by ==
.