Package com.jme3.material
Enum Class RenderState.StencilOperation
- All Implemented Interfaces:
Serializable
,Comparable<RenderState.StencilOperation>
,Constable
- Enclosing class:
- RenderState
StencilOperation
specifies the stencil operation to use
in a certain scenario as specified in RenderState.setStencil(boolean, com.jme3.material.RenderState.StencilOperation, com.jme3.material.RenderState.StencilOperation, com.jme3.material.RenderState.StencilOperation, com.jme3.material.RenderState.StencilOperation, com.jme3.material.RenderState.StencilOperation, com.jme3.material.RenderState.StencilOperation, com.jme3.material.RenderState.TestFunction, com.jme3.material.RenderState.TestFunction)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDecrement the value in the stencil buffer and clamp once reaching 0.Decrement the value in the stencil buffer and wrap to the maximum value when reaching 0.Increment the value in the stencil buffer, clamp once reaching the maximum value.Increment the value in the stencil buffer and wrap to 0 when reaching the maximum value.Does a bitwise invert of the value in the stencil buffer.Keep the current value.Replace the value in the stencil buffer with the reference value.Set the value to 0 -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderState.StencilOperation
Returns the enum constant of this class with the specified name.static RenderState.StencilOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Keep
Keep the current value. -
Zero
Set the value to 0 -
Replace
Replace the value in the stencil buffer with the reference value. -
Increment
Increment the value in the stencil buffer, clamp once reaching the maximum value. -
IncrementWrap
Increment the value in the stencil buffer and wrap to 0 when reaching the maximum value. -
Decrement
Decrement the value in the stencil buffer and clamp once reaching 0. -
DecrementWrap
Decrement the value in the stencil buffer and wrap to the maximum value when reaching 0. -
Invert
Does a bitwise invert of the value in the stencil buffer.
-
-
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
-