Enum gltf::mesh::Mode [−][src]
pub enum Mode {
Points,
Lines,
LineLoop,
LineStrip,
Triangles,
TriangleStrip,
TriangleFan,
}The type of primitives to render.
Variants
PointsCorresponds to GL_POINTS.
LinesCorresponds to GL_LINES.
LineLoopCorresponds to GL_LINE_LOOP.
LineStripCorresponds to GL_LINE_STRIP.
TrianglesCorresponds to GL_TRIANGLES.
TriangleStripCorresponds to GL_TRIANGLE_STRIP.
TriangleFanCorresponds to GL_TRIANGLE_FAN.
Methods
impl Mode[src]
impl Modepub fn as_gl_enum(self) -> u32[src]
pub fn as_gl_enum(self) -> u32Returns the equivalent GLenum.
Trait Implementations
impl Serialize for Mode[src]
impl Serialize for Modefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, [src]
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl Clone for Mode[src]
impl Clone for Modefn clone(&self) -> Mode[src]
fn clone(&self) -> ModeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for Mode[src]
impl Default for Modeimpl Debug for Mode[src]
impl Debug for Modefn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Copy for Mode[src]
impl Copy for Modeimpl PartialEq<Mode> for Mode[src]
impl PartialEq<Mode> for Modefn eq(&self, other: &Mode) -> bool[src]
fn eq(&self, other: &Mode) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl<'de> Deserialize<'de> for Mode[src]
impl<'de> Deserialize<'de> for Modefn deserialize<__D>(
__deserializer: __D
) -> Result<Mode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Mode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more