primitive-mode - Factor Documentation (original) (raw)
Class description
The primitive-mode slot of a render-set tells render what kind of primitives to generate and how to assemble them from the selected elements of the active vertex-array.
• | points-mode causes each element to generate a point. |
---|---|
• | lines-mode causes each pair of elements to generate a disconnected line. |
• | line-strip-mode causes each consecutive pair of elements to generate a connected strip of lines. |
• | line-loop-mode causes each consecutive pair of elements to generate a connected loop of lines, with an extra line connecting the last and first elements. |
• | triangles-mode causes every 3 elements to generate an independent triangle. |
• | triangle-strip-mode causes every consecutive group of 3 elements to generate a connected strip of triangles. |
• | triangle-fan-mode causes a triangle to be generated from the first element and every subsequent consecutive pair of elements in a fan pattern. |
See also
points-mode, lines-mode, line-strip-mode, line-loop-mode, triangles-mode, triangle-strip-mode, triangle-fan-mode
Definition
MIXIN: primitive-mode
INSTANCE: points-mode primitive-mode
INSTANCE: lines-mode primitive-mode
INSTANCE: line-strip-mode primitive-mode
INSTANCE: lines-with-adjacency-mode primitive-mode
INSTANCE: line-strip-with-adjacency-mode primitive-mode
INSTANCE: line-loop-mode primitive-mode
INSTANCE: triangles-mode primitive-mode
INSTANCE: triangle-strip-mode primitive-mode
INSTANCE: triangles-with-adjacency-mode primitive-mode
INSTANCE: triangle-strip-with-adjacency-mode primitive-mode
INSTANCE: triangle-fan-mode primitive-mode