public enum StencilOperation extends java.lang.Enum<StencilOperation>
Enum Constant and Description |
---|
Decrement
Decrements the stencil-buffer entry, wrapping to the maximum value if the new value is less than 0.
|
DecrementSaturation
Decrements the stencil-buffer entry, clamping to 0.
|
Increment
Increments the stencil-buffer entry, wrapping to 0 if the new value exceeds the maximum value.
|
IncrementSaturation
Increments the stencil-buffer entry, clamping to the maximum value.
|
Invert
Inverts the bits in the stencil-buffer entry.
|
Keep
Does not update the stencil-buffer entry.
|
Replace
Replaces the stencil-buffer entry with a reference value.
|
Zero
Sets the stencil-buffer entry to 0.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static StencilOperation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StencilOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StencilOperation Keep
public static final StencilOperation Zero
public static final StencilOperation Replace
public static final StencilOperation Increment
public static final StencilOperation Decrement
public static final StencilOperation IncrementSaturation
public static final StencilOperation DecrementSaturation
public static final StencilOperation Invert
public static StencilOperation[] values()
for (StencilOperation c : StencilOperation.values()) System.out.println(c);
public static StencilOperation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()