pub enum Mode {
Points,
Lines,
LineLoop,
LineStrip,
Triangles,
TriangleStrip,
TriangleFan,
}
Expand description
The type of primitives to render.
To find more information for each mode and how to render them check Khronos Primitive Documentation.
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
.
Trait Implementations§
source§impl PartialEq for Mode
impl PartialEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
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
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.