#[repr(u32)]pub enum PrimitiveMode {
Points = 0,
Lines = 1,
LineLoop = 2,
LineStrip = 3,
Triangles = 4,
TriangleStrip = 5,
TriangleFan = 6,
}Expand description
glTF primitive topology mode.
Variants§
Points = 0
Independent points.
Lines = 1
Independent line segments.
LineLoop = 2
Closed line loop.
LineStrip = 3
Connected line strip.
Triangles = 4
Independent triangles.
TriangleStrip = 5
Connected triangle strip.
TriangleFan = 6
Connected triangle fan.
Implementations§
Trait Implementations§
Source§impl Clone for PrimitiveMode
impl Clone for PrimitiveMode
Source§fn clone(&self) -> PrimitiveMode
fn clone(&self) -> PrimitiveMode
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 PrimitiveMode
Source§impl Debug for PrimitiveMode
impl Debug for PrimitiveMode
Source§impl Default for PrimitiveMode
impl Default for PrimitiveMode
Source§fn default() -> PrimitiveMode
fn default() -> PrimitiveMode
Returns the “default value” for a type. Read more
impl Eq for PrimitiveMode
Source§impl PartialEq for PrimitiveMode
impl PartialEq for PrimitiveMode
impl StructuralPartialEq for PrimitiveMode
Auto Trait Implementations§
impl Freeze for PrimitiveMode
impl RefUnwindSafe for PrimitiveMode
impl Send for PrimitiveMode
impl Sync for PrimitiveMode
impl Unpin for PrimitiveMode
impl UnsafeUnpin for PrimitiveMode
impl UnwindSafe for PrimitiveMode
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