#[repr(u8)]pub enum PrimitiveType {
Points = 0,
Lines = 1,
LineLoop = 2,
LineStrip = 3,
Triangles = 4,
TriangleStrip = 5,
TriangleFan = 6,
}
Expand description
Type of a primitive
This is set to match the GLTF
Variants§
Points = 0
Points (of an indeterminate size?)
Lines = 1
Lines (n-1) (ab, cd, ef, …)
LineLoop = 2
Close loop of (n) lines (ab, cd, ef, …, za)
LineStrip = 3
Connected (n-1) lines (ab, bc, cd, de, …)
Triangles = 4
Individual (n/3) triangles (one for every three indices)
TriangleStrip = 5
Strip of (n-2) triangles (abc, bcd, cde, def, …)
TriangleFan = 6
Fan of (n-2) triangles (abc, acd, ade, aef, …)
Trait Implementations§
Source§impl Clone for PrimitiveType
impl Clone for PrimitiveType
Source§fn clone(&self) -> PrimitiveType
fn clone(&self) -> PrimitiveType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrimitiveType
impl Debug for PrimitiveType
Source§impl Default for PrimitiveType
impl Default for PrimitiveType
Source§fn default() -> PrimitiveType
fn default() -> PrimitiveType
Returns the “default value” for a type. Read more
Source§impl PartialEq for PrimitiveType
impl PartialEq for PrimitiveType
impl Copy for PrimitiveType
impl Eq for PrimitiveType
impl StructuralPartialEq for PrimitiveType
Auto Trait Implementations§
impl Freeze for PrimitiveType
impl RefUnwindSafe for PrimitiveType
impl Send for PrimitiveType
impl Sync for PrimitiveType
impl Unpin for PrimitiveType
impl UnwindSafe for PrimitiveType
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