pub enum Mode {
Points = 1,
Lines = 2,
LineLoop = 3,
LineStrip = 4,
Triangles = 5,
TriangleStrip = 6,
TriangleFan = 7,
}
Expand description
The type of primitives to render.
Variants§
Points = 1
Corresponds to GL_POINTS
.
Lines = 2
Corresponds to GL_LINES
.
LineLoop = 3
Corresponds to GL_LINE_LOOP
.
LineStrip = 4
Corresponds to GL_LINE_STRIP
.
Triangles = 5
Corresponds to GL_TRIANGLES
.
TriangleStrip = 6
Corresponds to GL_TRIANGLE_STRIP
.
TriangleFan = 7
Corresponds to GL_TRIANGLE_FAN
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mode
impl<'de> Deserialize<'de> for Mode
source§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
source§impl PartialEq for Mode
impl PartialEq for Mode
impl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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