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]

Constructs a Primitive.

Returns the internal JSON item.

Optional application specific data.

Returns the material to apply to this primitive when rendering

The type of primitives to render.

Trait Implementations

impl<'a> Clone for Primitive<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for Primitive<'a>
[src]

Formats the value using the given formatter.