Namespace: ElementType

ElementType

ElementType described the type of geometry is described by the index buffer.

Properties:
Name Type Description
POINTS

Every index represents a point.

LINES

Every two indices represent a line.

LINE_STRIP

The indices represent a set of connected lines.

LINE_LOOP

The indices represent a set of connected lines. The last index is also connected to the first.

TRIANGLES

Every three indices represent a line.

TRIANGLE_STRIP

The indices represent a set of connected triangles, in such a way that any consecutive 3 indices form a triangle.

TRIANGLE_FAN

The indices represent a set of connected triangles, fanning out with the first index shared.