public enum PrimitiveType
- Object
- Enum<PrimitiveType>
- PrimitiveType
ImplementsComparable<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 constants
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. |
Methods
public static PrimitiveType[] values() | |
public static PrimitiveType valueOf(String name) |
Inherited methods
Enum constant details
POINTS
POINTSA list of unconnected points, one per vertex.
LINES
LINESA list of unconnected line segments, two vertices per line.
LINE_STRIP
LINE_STRIPA connected polyline, one segment between each consecutive vertex.
TRIANGLES
TRIANGLESA list of independent triangles, three vertices per triangle.
TRIANGLE_STRIP
TRIANGLE_STRIPA connected triangle strip sharing edges between consecutive triangles.
Method details
values
public static PrimitiveType[] values()valueOf
public static PrimitiveType valueOf(String name)