Enum PrimitiveType
- All Implemented Interfaces:
Comparable<PrimitiveType>
The geometric primitive a
Mesh is assembled from. These map directly to
the equivalent draw primitives on every backend (OpenGL ES, WebGL and Metal).-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA connected polyline, one segment between each consecutive vertex.A list of unconnected line segments, two vertices per line.A list of unconnected points, one per vertex.A connected triangle strip sharing edges between consecutive triangles.A list of independent triangles, three vertices per triangle. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrimitiveTypeReturns 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.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
POINTS
A list of unconnected points, one per vertex. -
LINES
A list of unconnected line segments, two vertices per line. -
LINE_STRIP
A connected polyline, one segment between each consecutive vertex. -
TRIANGLES
A list of independent triangles, three vertices per triangle. -
TRIANGLE_STRIP
A connected triangle strip sharing edges between consecutive triangles.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-