#[repr(u32)]pub enum DrawMode {
Points = 0,
LineStrip = 3,
LineLoop = 2,
Lines = 1,
TriangleStrip = 5,
TriangleFan = 6,
Triangles = 4,
}
Expand description
Draw mode.
This enum lists the draw modes supported by WebGL2.
Variants§
Points = 0
Draw as points.
LineStrip = 3
Draw as a line strip.
LineLoop = 2
Draw as a line loop.
Lines = 1
Draw as lines.
TriangleStrip = 5
Draw as a triangle strip.
TriangleFan = 6
Draw as a triangle fan.
Triangles = 4
Draw as triangles.
Trait Implementations§
impl Copy for DrawMode
impl Eq for DrawMode
impl StructuralPartialEq for DrawMode
Auto Trait Implementations§
impl Freeze for DrawMode
impl RefUnwindSafe for DrawMode
impl Send for DrawMode
impl Sync for DrawMode
impl Unpin for DrawMode
impl UnwindSafe for DrawMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more