pub enum Primitives {
Points = 0,
Lines = 1,
LineLoop = 2,
LineStrip = 3,
Triangles = 4,
TriangleStrip = 5,
TriangleFan = 6,
}
Expand description
Passed to drawElements or drawArrays to draw primitives.
Variants§
Points = 0
Passed to drawElements or drawArrays to draw single points.
Lines = 1
Passed to drawElements or drawArrays to draw lines. Each vertex connects to the one after it.
LineLoop = 2
Passed to drawElements or drawArrays to draw lines. Each set of two vertices is treated as a separate line segment.
LineStrip = 3
Passed to drawElements or drawArrays to draw a connected group of line segments from the first vertex to the last.
Triangles = 4
Passed to drawElements or drawArrays to draw triangles. Each set of three vertices creates a separate triangle.
TriangleStrip = 5
Passed to drawElements or drawArrays to draw a connected group of triangles.
TriangleFan = 6
Passed to drawElements or drawArrays to draw a connected group of triangles. Each vertex connects to the previous and the first vertex in the fan.
Trait Implementations§
Source§impl Clone for Primitives
impl Clone for Primitives
Source§fn clone(&self) -> Primitives
fn clone(&self) -> Primitives
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more