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<Mode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
source§impl PartialEq for Mode
impl PartialEq for Mode
source§impl Serialize for Mode
impl Serialize for Mode
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
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
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