StencilOperation
enum StencilOperation
Package: dev.joid.lib.bridge.render.state · Module: core · Source: StencilOperation.java
What a draw does to the stored stencil value after the stencil and depth tests.
Description
Section titled “Description”Each value matches the OpenGL operation of the same name, on an 8-bit stencil.
The order of the constants is part of the contract: StencilEmulation sends their ordinal to the shader.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
KEEP | Leaves the stored value as it is. |
ZERO | Sets the stored value to 0. |
REPLACE | Sets the stored value to the reference of the StencilState. |
INCREMENT | Adds one to the stored value, clamped at 255. |
DECREMENT | Subtracts one from the stored value, clamped at 0. |
INVERT | Flips every bit of the stored value. |
Value details
Section titled “Value details”KEEP
Leaves the stored value as it is.
ZERO
Sets the stored value to 0.
REPLACE
Section titled “REPLACE”REPLACE
Sets the stored value to the reference of the StencilState.
INCREMENT
Section titled “INCREMENT”INCREMENT
Adds one to the stored value, clamped at 255.
DECREMENT
Section titled “DECREMENT”DECREMENT
Subtracts one from the stored value, clamped at 0.
INVERT
Section titled “INVERT”INVERT
Flips every bit of the stored value.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
