Enum tetra::graphics::StencilAction [−][src]
#[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
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
Mutably borrows from an owned value. Read more