Package com.jme3.material
Enum Class RenderState.TestFunction
- All Implemented Interfaces:
Serializable
,Comparable<RenderState.TestFunction>
,Constable
- Enclosing class:
- RenderState
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe test always passesThe test succeeds if the input value is equal to the reference value.The test succeeds if the input value is greater than the reference value.The test succeeds if the input value is greater than or equal to the reference value.The test succeeds if the input value is less than the reference value.The test succeeds if the input value is less than or equal to the reference value.The test always failsThe test succeeds if the input value does not equal the reference value. -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderState.TestFunction
Returns the enum constant of this class with the specified name.static RenderState.TestFunction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Never
The test always fails -
Equal
The test succeeds if the input value is 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. -
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. -
NotEqual
The test succeeds if the input value does not equal the reference value. -
Always
The test always passes
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-