#[repr(u8)]pub enum PolygonType {
SimplePolygon = 0,
TriangleStrip = 1,
TriangleFan = 2,
TriangleList = 3,
Unknown = 4,
}Expand description
Polygon topology. Integer values match the C++ enum.
Variants§
SimplePolygon = 0
A simple polygon with an arbitrary number of vertices and no holes; the last vertex connects back to the first.
TriangleStrip = 1
A triangle strip.
TriangleFan = 2
A triangle fan.
TriangleList = 3
A set of independent triangles; three consecutive vertices form one.
Unknown = 4
Illegal polygon type, used to signal failure.
Trait Implementations§
Source§impl Clone for PolygonType
impl Clone for PolygonType
Source§fn clone(&self) -> PolygonType
fn clone(&self) -> PolygonType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PolygonType
Source§impl Debug for PolygonType
impl Debug for PolygonType
impl Eq for PolygonType
Source§impl PartialEq for PolygonType
impl PartialEq for PolygonType
Source§fn eq(&self, other: &PolygonType) -> bool
fn eq(&self, other: &PolygonType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolygonType
Auto Trait Implementations§
impl Freeze for PolygonType
impl RefUnwindSafe for PolygonType
impl Send for PolygonType
impl Sync for PolygonType
impl Unpin for PolygonType
impl UnsafeUnpin for PolygonType
impl UnwindSafe for PolygonType
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