Enum Class AccumOperation

java.lang.Object
java.lang.Enum<AccumOperation>
com.blackrook.gloop.opengl.enums.AccumOperation
All Implemented Interfaces:
Serializable, Comparable<AccumOperation>, java.lang.constant.Constable

public enum AccumOperation extends Enum<AccumOperation>
Accumulation operation enum.
Author:
Matthew Tropiano
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Reads from the current read frame buffer, multiplied by the value, and added to the accum buffer.
    Adds value to each R, G, B, and A in the accumulation buffer.
    Accumulate from the current read frame buffer, replacing it.
    Multiplies each R, G, B, and A in the accumulation buffer by value and returns the scaled component to its corresponding accumulation buffer location.
    Send the contents of the accumulation buffer to the current write frame buffer, after first multiplying by the value.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
  • 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 Object

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

    • ACCUMULATE

      public static final AccumOperation ACCUMULATE
      Reads from the current read frame buffer, multiplied by the value, and added to the accum buffer.
    • LOAD

      public static final AccumOperation LOAD
      Accumulate from the current read frame buffer, replacing it.
    • MULTIPLY

      public static final AccumOperation MULTIPLY
      Multiplies each R, G, B, and A in the accumulation buffer by value and returns the scaled component to its corresponding accumulation buffer location.
    • ADD

      public static final AccumOperation ADD
      Adds value to each R, G, B, and A in the accumulation buffer.
    • RETURN

      public static final AccumOperation RETURN
      Send the contents of the accumulation buffer to the current write frame buffer, after first multiplying by the value. Stenciling, dithering, and color masking applies.
  • Field Details

    • glValue

      public final int glValue
  • Method Details

    • values

      public static AccumOperation[] 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 AccumOperation 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