Struct gltf::Primitive[][src]

pub struct Primitive<'a> { /* fields omitted */ }

Geometry to be rendered with the given material.

Methods

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

Returns the bounds of the POSITION vertex attribute.

Optional application specific data.

Return the accessor with the given semantic.

Returns the internal JSON index.

Returns the accessor containing the primitive indices, if provided.

Important traits for Attributes<'a>

Returns an Iterator that visits the vertex attributes.

Returns the material to apply to this primitive when rendering

The type of primitives to render.

Important traits for MorphTargets<'a>

Returns an Iterator that visits the morph targets of the primitive.

Constructs the primitive reader.

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. Read more

Auto Trait Implementations

impl<'a> Send for Primitive<'a>

impl<'a> Sync for Primitive<'a>