Enum Class AccumOperation
- All Implemented Interfaces:
Serializable, Comparable<AccumOperation>, java.lang.constant.Constable
Accumulation operation enum.
- Author:
- Matthew Tropiano
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReads 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic AccumOperationReturns the enum constant of this class with the specified name.static AccumOperation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCUMULATE
Reads from the current read frame buffer, multiplied by the value, and added to the accum buffer. -
LOAD
Accumulate from the current read frame buffer, replacing it. -
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
Adds value to each R, G, B, and A in the accumulation buffer. -
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
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
-