Enum Class RenderState.TestFunction

java.lang.Object
java.lang.Enum<RenderState.TestFunction>
com.jme3.material.RenderState.TestFunction
All Implemented Interfaces:
Serializable, Comparable<RenderState.TestFunction>, Constable
Enclosing class:
RenderState

public static enum RenderState.TestFunction extends 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 Details

    • Never

      public static final RenderState.TestFunction Never
      The test always fails
    • Equal

      public static final RenderState.TestFunction Equal
      The test succeeds if the input value is equal to the reference value.
    • Less

      public static final RenderState.TestFunction Less
      The test succeeds if the input value is less than the reference value.
    • LessOrEqual

      public static final RenderState.TestFunction LessOrEqual
      The test succeeds if the input value is less than or equal to the reference value.
    • Greater

      public static final RenderState.TestFunction Greater
      The test succeeds if the input value is greater than the reference value.
    • GreaterOrEqual

      public static final RenderState.TestFunction GreaterOrEqual
      The test succeeds if the input value is greater than or equal to the reference value.
    • NotEqual

      public static final RenderState.TestFunction NotEqual
      The test succeeds if the input value does not equal the reference value.
    • Always

      public static final RenderState.TestFunction Always
      The test always passes
  • Method Details

    • values

      public static RenderState.TestFunction[] 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

      public static RenderState.TestFunction valueOf(String name)
      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 name
      NullPointerException - if the argument is null