Enumeration Primitive

Types of primitives that can be rasterized.

Enumeration Members

LINES: 1

Draws lines between each pair of vertices.

LINE_LOOP: 2

Draws a line between each vertex, then draws a line between the first and last vertices.

LINE_STRIP: 3

Draws a line between each vertex.

POINTS: 0

Draws a dot at each vertex.

TRIANGLES: 4

Draws triangles between every three vertices.

TRIANGLE_FAN: 6

Draws triangles from each vertex, the previous vertex, and the first vertex, starting at the third vertex.

TRIANGLE_STRIP: 5

Draws triangles from each vertex and the previous two, starting at the third vertex.

Generated using TypeDoc