@Environment(value=CLIENT) public static enum VertexFormatElement.Type extends Enum<VertexFormatElement.Type>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
VertexFormatElement.Type.Starter |
Enum Constant and Description |
---|
COLOR |
GENERIC |
NORMAL |
PADDING |
POSITION |
UV |
Modifier and Type | Field and Description |
---|---|
private IntConsumer |
finisher |
private String |
name |
private VertexFormatElement.Type.Starter |
starter |
Modifier and Type | Method and Description |
---|---|
void |
endDrawing(int elementIndex) |
String |
getName() |
private void |
startDrawing(int count,
int glId,
int stride,
long pointer,
int elementIndex) |
static VertexFormatElement.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VertexFormatElement.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VertexFormatElement.Type POSITION
public static final VertexFormatElement.Type NORMAL
public static final VertexFormatElement.Type COLOR
public static final VertexFormatElement.Type UV
public static final VertexFormatElement.Type PADDING
public static final VertexFormatElement.Type GENERIC
private final String name
private final VertexFormatElement.Type.Starter starter
private final IntConsumer finisher
public static VertexFormatElement.Type[] values()
for (VertexFormatElement.Type c : VertexFormatElement.Type.values()) System.out.println(c);
public static VertexFormatElement.Type 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 nullprivate void startDrawing(int count, int glId, int stride, long pointer, int elementIndex)
public void endDrawing(int elementIndex)
public String getName()