public enum PrimitiveType extends Enum<PrimitiveType>
VertexArray
Enum Constant and Description |
---|
LINE_STRIP
A list of connected lines, where each point gets connected to the previous point.
|
LINES
A list of individual lines.
|
POINTS
A list of individual points.
|
QUADS
A list of individual quads.
|
TRIANGLE_FAN
A list of connected triangles, where each point uses the common center and the
previous point to form a triangle.
|
TRIANGLE_STRIP
A list of connected triangles, where ech point uses the two previous points
to form a triangle.
|
TRIANGLES
A list of individual triangles.
|
Modifier and Type | Method and Description |
---|---|
static PrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveType POINTS
public static final PrimitiveType LINES
public static final PrimitiveType LINE_STRIP
public static final PrimitiveType TRIANGLES
public static final PrimitiveType TRIANGLE_STRIP
public static final PrimitiveType TRIANGLE_FAN
public static final PrimitiveType QUADS
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType 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 null