#[non_exhaustive]
pub enum VerticesMode {
Points,
Lines,
LineLoop,
LineStrip,
Triangles,
TriangleStrip,
TriangleFan,
}
Expand description
Different ways of interpreting vertices when drawing.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Points
FIXME, equivalent to
<constant>
GL_POINTS</constant>
Lines
FIXME, equivalent to <constant>
GL_LINES</constant>
LineLoop
FIXME, equivalent to
<constant>
GL_LINE_LOOP</constant>
LineStrip
FIXME, equivalent to
<constant>
GL_LINE_STRIP</constant>
Triangles
FIXME, equivalent to
<constant>
GL_TRIANGLES</constant>
TriangleStrip
FIXME, equivalent to
<constant>
GL_TRIANGLE_STRIP</constant>
TriangleFan
FIXME, equivalent to <constant>
GL_TRIANGLE_FAN</constant>
Trait Implementations
sourceimpl Clone for VerticesMode
impl Clone for VerticesMode
sourcefn clone(&self) -> VerticesMode
fn clone(&self) -> VerticesMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VerticesMode
impl Debug for VerticesMode
sourceimpl Display for VerticesMode
impl Display for VerticesMode
sourceimpl Hash for VerticesMode
impl Hash for VerticesMode
sourceimpl Ord for VerticesMode
impl Ord for VerticesMode
sourceimpl PartialEq<VerticesMode> for VerticesMode
impl PartialEq<VerticesMode> for VerticesMode
sourceimpl PartialOrd<VerticesMode> for VerticesMode
impl PartialOrd<VerticesMode> for VerticesMode
sourcefn partial_cmp(&self, other: &VerticesMode) -> Option<Ordering>
fn partial_cmp(&self, other: &VerticesMode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for VerticesMode
impl Eq for VerticesMode
impl StructuralEq for VerticesMode
impl StructuralPartialEq for VerticesMode
Auto Trait Implementations
impl RefUnwindSafe for VerticesMode
impl Send for VerticesMode
impl Sync for VerticesMode
impl Unpin for VerticesMode
impl UnwindSafe for VerticesMode
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
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.