Vocabulary
gpu.render

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