Struct gltf::Primitive [−][src]
pub struct Primitive<'a> { /* fields omitted */ }Expand description
Geometry to be rendered with the given material.
Implementations
impl<'a> Primitive<'a>[src]
impl<'a> Primitive<'a>[src]pub fn bounding_box(&self) -> BoundingBox[src]
pub fn bounding_box(&self) -> BoundingBox[src]Returns the bounds of the POSITION vertex attribute.
pub fn get(&self, semantic: &Semantic) -> Option<Accessor<'a>>[src]
pub fn get(&self, semantic: &Semantic) -> Option<Accessor<'a>>[src]Return the accessor with the given semantic.
pub fn indices(&self) -> Option<Accessor<'a>>[src]
pub fn indices(&self) -> Option<Accessor<'a>>[src]Returns the accessor containing the primitive indices, if provided.
pub fn attributes(&self) -> Attributes<'a>ⓘNotable traits for Attributes<'a>
impl<'a> Iterator for Attributes<'a> type Item = Attribute<'a>;[src]
pub fn attributes(&self) -> Attributes<'a>ⓘNotable traits for Attributes<'a>
impl<'a> Iterator for Attributes<'a> type Item = Attribute<'a>;[src]Returns an Iterator that visits the vertex attributes.
pub fn material(&self) -> Material<'a>[src]
pub fn material(&self) -> Material<'a>[src]Returns the material to apply to this primitive when rendering
pub fn morph_targets(&self) -> MorphTargets<'a>ⓘNotable traits for MorphTargets<'a>
impl<'a> Iterator for MorphTargets<'a> type Item = MorphTarget<'a>;[src]
pub fn morph_targets(&self) -> MorphTargets<'a>ⓘNotable traits for MorphTargets<'a>
impl<'a> Iterator for MorphTargets<'a> type Item = MorphTarget<'a>;[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more