public static enum Mesh.Primitive extends Enum<Mesh.Primitive>
Enum Constant and Description |
---|
LINE
Deprecated.
in API 16
Vertex pairs will be rendered as lines
|
LINE_STRIP
Deprecated.
in API 16
Vertex data will be rendered as a connected line strip
|
POINT
Deprecated.
in API 16
Vertex data will be rendered as a series of points
|
TRIANGLE
Deprecated.
in API 16
Vertices will be rendered as individual triangles
|
TRIANGLE_FAN
Deprecated.
in API 16
Vertices will be rendered as a sequence of triangles that all
share first vertex as the origin
|
TRIANGLE_STRIP
Deprecated.
in API 16
Vertices will be rendered as a connected triangle strip
defined by the first three vertices with each additional
triangle defined by a new vertex
|
Modifier and Type | Method and Description |
---|---|
static Mesh.Primitive |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static Mesh.Primitive[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mesh.Primitive POINT
public static final Mesh.Primitive LINE
public static final Mesh.Primitive LINE_STRIP
public static final Mesh.Primitive TRIANGLE
public static final Mesh.Primitive TRIANGLE_STRIP
public static final Mesh.Primitive TRIANGLE_FAN
public static Mesh.Primitive[] values()
for (Mesh.Primitive c : Mesh.Primitive.values()) System.out.println(c);
public static Mesh.Primitive 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