Skip to content

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.

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.

ValueSummary
KEEPLeaves the stored value as it is.
ZEROSets the stored value to 0.
REPLACESets the stored value to the reference of the StencilState.
INCREMENTAdds one to the stored value, clamped at 255.
DECREMENTSubtracts one from the stored value, clamped at 0.
INVERTFlips every bit of the stored value.

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.


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

Report a problem with this page