public static enum RenderState.TestFunction extends java.lang.Enum<RenderState.TestFunction>
TestFunction
specifies the testing function for stencil test
function.
The reference value given in the stencil command is the input value while the reference is the value already in the stencil buffer.
Enum Constant and Description |
---|
Always
The test always passes
|
Equal
The test succeeds if the input value is equal to the reference value.
|
Greater
The test succeeds if the input value is greater than the reference value.
|
GreaterOrEqual
The test succeeds if the input value is greater than or equal to
the reference value.
|
Less
The test succeeds if the input value is less than the reference value.
|
LessOrEqual
The test succeeds if the input value is less than or equal to
the reference value.
|
Never
The test always fails
|
NotEqual
The test succeeds if the input value does not equal the
reference value.
|
Modifier and Type | Method and Description |
---|---|
static RenderState.TestFunction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RenderState.TestFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenderState.TestFunction Never
public static final RenderState.TestFunction Equal
public static final RenderState.TestFunction Less
public static final RenderState.TestFunction LessOrEqual
public static final RenderState.TestFunction Greater
public static final RenderState.TestFunction GreaterOrEqual
public static final RenderState.TestFunction NotEqual
public static final RenderState.TestFunction Always
public static RenderState.TestFunction[] values()
for (RenderState.TestFunction c : RenderState.TestFunction.values()) System.out.println(c);
public static RenderState.TestFunction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null