PrimitiveType

PrimitiveType

DOC_TBA

Source:

Members

<static, constant> :Number

0x0002. Line loop primitive where each vertex (or index) after the first connects a line to the previous vertex, and the last vertex implicitly connects to the first.

<static, constant> :Number

0x0003. Line strip primitive where each vertex (or index) after the first connects a line to the previous vertex.

<static, constant> :Number

0x0001. Lines primitive where each two vertices (or indices) is a line segment. Line segments are not necessarily connected.

<static, constant> :Number

0x0000. Points primitive where each vertex (or index) is a separate point.

<static, constant> :Number

0x0006. Triangle fan primitive where each vertex (or index) after the first two connect to the previous vertex and the first vertex forming a triangle. For example, this can be used to model a cone or circle.

<static, constant> :Number

0x0005. Triangle strip primitive where each vertex (or index) after the first two connect to the previous two vertices forming a triangle. For example, this can be used to model a wall.

<static, constant> :Number

0x0004. Triangles primitive where each three vertices (or indices) is a triangle. Triangles do not necessarily share edges.

Methods

<static>

DOC_TBA

Parameters:
Name Type Description
primitiveType PrimitiveType
Returns: