Enum gltf::json::mesh::Mode
[−]
[src]
pub enum Mode { Points, Lines, LineLoop, LineStrip, Triangles, TriangleStrip, TriangleFan, }
The type of primitives to render.
Variants
Points
Corresponds to GL_POINTS
.
Lines
Corresponds to GL_LINES
.
LineLoop
Corresponds to GL_LINE_LOOP
.
LineStrip
Corresponds to GL_LINE_STRIP
.
Triangles
Corresponds to GL_TRIANGLES
.
TriangleStrip
Corresponds to GL_TRIANGLE_STRIP
.
TriangleFan
Corresponds to GL_TRIANGLE_FAN
.
Trait Implementations
impl Clone for Mode
[src]
fn clone(&self) -> Mode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more