public enum RenderPassHint extends Enum<RenderPassHint> implements Enumeration
Set
method to enhance performance when per-position colors are used.Enum Constant and Description |
---|
OPAQUE
The collection of
Colors contains only
opaque colors. |
TRANSLUCENT
The collection of
Colors contains
translucent colors. |
UNKNOWN
It is unknown if the collection of
Colors
contains opaque or translucent colors. |
Modifier and Type | Method and Description |
---|---|
static RenderPassHint |
getDefault()
Get the enum constant that is considered to be the default.
|
static RenderPassHint |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static RenderPassHint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RenderPassHint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RenderPassHint OPAQUE
Colors
contains only
opaque colors. This implies that each color's alpha component is 255.public static final RenderPassHint TRANSLUCENT
Colors
contains
translucent colors. This implies that at least one color has an
alpha component that is not 255.public static final RenderPassHint UNKNOWN
Colors
contains opaque or translucent colors.public static RenderPassHint[] values()
for (RenderPassHint c : RenderPassHint.values()) System.out.println(c);
public static RenderPassHint valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface Enumeration
@Nonnull public static RenderPassHint getFromValue(int value)
value
- a numeric value.@Nonnull public static RenderPassHint getDefault()