public enum MarkerBatchSortOrder extends Enum<MarkerBatchSortOrder> implements Enumeration
MarkerBatchPrimitive
Enum Constant and Description |
---|
BACK_TO_FRONT
The markers are sorted in back to front order before rendering.
|
BY_TEXTURE
The markers are sorted by texture.
|
FRONT_TO_BACK
The markers are sorted in front to back order before rendering.
|
Modifier and Type | Method and Description |
---|---|
static MarkerBatchSortOrder |
getDefault()
Get the enum constant that is considered to be the default.
|
static MarkerBatchSortOrder |
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 MarkerBatchSortOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MarkerBatchSortOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MarkerBatchSortOrder BACK_TO_FRONT
ByTexture
, since the CPU has to sort the markers when the camera moves or a marker changes position.public static final MarkerBatchSortOrder FRONT_TO_BACK
ByTexture
, since the CPU has to sort the markers when the camera moves or a marker changes position.public static final MarkerBatchSortOrder BY_TEXTURE
public static MarkerBatchSortOrder[] values()
for (MarkerBatchSortOrder c : MarkerBatchSortOrder.values()) System.out.println(c);
public static MarkerBatchSortOrder 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 MarkerBatchSortOrder getFromValue(int value)
value
- a numeric value.@Nonnull public static MarkerBatchSortOrder getDefault()