#[repr(u32)]
pub enum DrawMode {
Points,
Lines,
LineStrip,
LineLoop,
Triangles,
TriangleStrip,
TriangleFan,
}
Expand description
Specifies what kind of primitives to render.
Variants
Points
Draws verticies as discrete points.
Lines
Draws pairs of verticies as discrete lines.
LineStrip
Draws a single connected line, with each additional vertex past the first extending the line by another segment.
LineLoop
Draws a single connected line, with each additional vertex past the first extending the line by another segment, with the last vertex connecting back to the first.
Triangles
Draws sets of 3 verticies as discrete triangles.
TriangleStrip
Draws a single connected polygon of triangles, with each additional vertex past the second extends the polygon by another triangle.
TriangleFan
Draws a single connected polygon of triangles, with each additional vertex past the second extends the polygon by another triangle. All triangles share a vertex with the first vertex provided.
Trait Implementations
impl Copy for DrawMode
impl StructuralPartialEq for DrawMode
Auto Trait Implementations
impl RefUnwindSafe for DrawMode
impl Send for DrawMode
impl Sync for DrawMode
impl Unpin for DrawMode
impl UnwindSafe for DrawMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more