Enum gltf_json::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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Mode
impl UnwindSafe for Mode
Blanket Implementations
Mutably borrows from an owned value. Read more