pub struct Primitive<'a> { /* private fields */ }
Expand description
Geometry to be rendered with the given material.
Implementations§
source§impl<'a> Primitive<'a>
impl<'a> Primitive<'a>
sourcepub fn bounding_box(&self) -> BoundingBox
pub fn bounding_box(&self) -> BoundingBox
Returns the bounds of the POSITION
vertex attribute.
sourcepub fn extensions(&self) -> Option<&Map<String, Value>>
pub fn extensions(&self) -> Option<&Map<String, Value>>
Returns extension data unknown to this crate version.
sourcepub fn extension_value(&self, ext_name: &str) -> Option<&Value>
pub fn extension_value(&self, ext_name: &str) -> Option<&Value>
Queries extension data unknown to this crate version.
sourcepub fn get(&self, semantic: &Semantic) -> Option<Accessor<'a>>
pub fn get(&self, semantic: &Semantic) -> Option<Accessor<'a>>
Return the accessor with the given semantic.
sourcepub fn indices(&self) -> Option<Accessor<'a>>
pub fn indices(&self) -> Option<Accessor<'a>>
Returns the accessor containing the primitive indices, if provided.
sourcepub fn attributes(&self) -> Attributes<'a> ⓘ
pub fn attributes(&self) -> Attributes<'a> ⓘ
Returns an Iterator
that visits the vertex attributes.
sourcepub fn material(&self) -> Material<'a>
pub fn material(&self) -> Material<'a>
Returns the material to apply to this primitive when rendering
sourcepub fn morph_targets(&self) -> MorphTargets<'a> ⓘ
pub fn morph_targets(&self) -> MorphTargets<'a> ⓘ
Returns an Iterator
that visits the morph targets of the primitive.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Primitive<'a>
impl<'a> Send for Primitive<'a>
impl<'a> Sync for Primitive<'a>
impl<'a> Unpin for Primitive<'a>
impl<'a> UnwindSafe for Primitive<'a>
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