Enum Class RenderState.BlendEquation

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

public static enum RenderState.BlendEquation extends Enum<RenderState.BlendEquation>
BlendEquation specifies the blending equation to combine pixels.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Sets the blend equation so that the source and destination data are added.
    Sets the blend equation so that each component of the result color is the maximum of the corresponding components of the source and destination colors.
    Sets the blend equation so that each component of the result color is the minimum of the corresponding components of the source and destination colors.
    Same as Subtract, but the order is reversed (Dst - Src).
    Sets the blend equation so that the source and destination data are subtracted (Src - Dest).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Add

      public static final RenderState.BlendEquation Add
      Sets the blend equation so that the source and destination data are added. (Default) Clamps to [0,1] Useful for things like antialiasing and transparency.
    • Subtract

      public static final RenderState.BlendEquation Subtract
      Sets the blend equation so that the source and destination data are subtracted (Src - Dest). Clamps to [0,1] Falls back to Add if supportsSubtract is false.
    • ReverseSubtract

      public static final RenderState.BlendEquation ReverseSubtract
      Same as Subtract, but the order is reversed (Dst - Src). Clamps to [0,1] Falls back to Add if supportsSubtract is false.
    • Min

      public static final RenderState.BlendEquation Min
      Sets the blend equation so that each component of the result color is the minimum of the corresponding components of the source and destination colors. This and Max are useful for applications that analyze image data (image thresholding against a constant color, for example). Falls back to Add if supportsMinMax is false.
    • Max

      public static final RenderState.BlendEquation Max
      Sets the blend equation so that each component of the result color is the maximum of the corresponding components of the source and destination colors. This and Min are useful for applications that analyze image data (image thresholding against a constant color, for example). Falls back to Add if supportsMinMax is false.
  • Method Details

    • values

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