Struct gltf::Primitive [−][src]
pub struct Primitive<'a> { /* fields omitted */ }
Geometry to be rendered with the given material.
Methods
impl<'a> Primitive<'a>
[src]
impl<'a> Primitive<'a>
pub fn bounding_box(&self) -> BoundingBox
[src]
pub fn bounding_box(&self) -> BoundingBox
Returns the bounds of the POSITION
vertex attribute.
pub fn extras(&self) -> &Extras
[src]
pub fn extras(&self) -> &Extras
Optional application specific data.
pub fn get(&self, semantic: &Semantic) -> Option<Accessor>
[src]
pub fn get(&self, semantic: &Semantic) -> Option<Accessor>
Return the accessor with the given semantic.
pub fn index(&self) -> usize
[src]
pub fn index(&self) -> usize
Returns the internal JSON index.
pub fn indices(&self) -> Option<Accessor>
[src]
pub fn indices(&self) -> Option<Accessor>
Returns the accessor containing the primitive indices, if provided.
ⓘImportant traits for Attributes<'a>pub fn attributes(&self) -> Attributes
[src]
ⓘImportant traits for Attributes<'a>
pub fn attributes(&self) -> Attributes
Returns an Iterator
that visits the vertex attributes.
pub fn material(&self) -> Material
[src]
pub fn material(&self) -> Material
Returns the material to apply to this primitive when rendering
pub fn mode(&self) -> Mode
[src]
pub fn mode(&self) -> Mode
The type of primitives to render.
ⓘImportant traits for MorphTargets<'a>pub fn morph_targets(&self) -> MorphTargets
[src]
ⓘImportant traits for MorphTargets<'a>
pub fn morph_targets(&self) -> MorphTargets
Returns an Iterator
that visits the morph targets of the primitive.
pub fn reader<'s, F>(&'a self, get_buffer_data: F) -> Reader<'a, 's, F> where
F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>,
[src]
pub fn reader<'s, F>(&'a self, get_buffer_data: F) -> Reader<'a, 's, F> where
F: Clone + Fn(Buffer<'a>) -> Option<&'s [u8]>,
Constructs the primitive reader.
Trait Implementations
impl<'a> Clone for Primitive<'a>
[src]
impl<'a> Clone for Primitive<'a>
fn clone(&self) -> Primitive<'a>
[src]
fn clone(&self) -> Primitive<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for Primitive<'a>
[src]
impl<'a> Debug for Primitive<'a>