Enum gltf::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
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Mode
[src]
impl Debug for Mode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl PartialEq<Mode> for Mode
[src]
fn eq(&self, __arg_0: &Mode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Default for Mode
[src]
impl<'de> Deserialize<'de> for Mode
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Mode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Mode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,