Enum gltf::mesh::Mode [−][src]
pub enum Mode {
Points,
Lines,
LineLoop,
LineStrip,
Triangles,
TriangleStrip,
TriangleFan,
}
Expand description
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
.
Implementations
Returns the equivalent GLenum
.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Mode, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for Mode
impl UnwindSafe for Mode
Blanket Implementations
Mutably borrows from an owned value. Read more