Struct gltf::mesh::Primitive
[−]
[src]
pub struct Primitive<'a> { /* fields omitted */ }
Geometry to be rendered with the given material.
Methods
impl<'a> Primitive<'a>
[src]
fn new(mesh: &'a Mesh<'a>, index: usize, json: &'a Primitive) -> Self
Constructs a Primitive
.
fn as_json(&self) -> &Primitive
Returns the internal JSON item.
fn extras(&self) -> &Extras
Optional application specific data.
fn material(&self) -> Material<'a>
Returns the material to apply to this primitive when rendering
fn mode(&self) -> Mode
The type of primitives to render.
Trait Implementations
impl<'a> Clone for 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
Performs copy-assignment from source
. Read more