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
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