Skip to content

StencilFunction

enum StencilFunction
Package: dev.joid.lib.bridge.render.state · Module: core · Source: StencilFunction.java

The comparison of a stencil test between the masked reference and the masked stored value.

Each value matches the OpenGL function of the same name, with the reference on the left: LESS passes when the reference is lower than the stored value. The order of the constants is part of the contract: StencilEmulation sends their ordinal to the shader.

ValueSummary
NEVERThe test always fails.
LESSPasses when the reference is lower than the stored value.
LESS_EQUALPasses when the reference is lower than or equal to the stored value.
GREATERPasses when the reference is greater than the stored value.
GREATER_EQUALPasses when the reference is greater than or equal to the stored value.
EQUALPasses when the reference equals the stored value.
NOT_EQUALPasses when the reference differs from the stored value.
ALWAYSThe test always passes.

NEVER

The test always fails.

LESS

Passes when the reference is lower than the stored value.

LESS_EQUAL

Passes when the reference is lower than or equal to the stored value.

GREATER

Passes when the reference is greater than the stored value.

GREATER_EQUAL

Passes when the reference is greater than or equal to the stored value.

EQUAL

Passes when the reference equals the stored value.

NOT_EQUAL

Passes when the reference differs from the stored value.

ALWAYS

The test always passes.


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