[go: up one dir, main page]

Struct gltf::Primitive [] [src]

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

Geometry to be rendered with the given material.

Methods

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

[src]

Returns the bounds of the POSITION vertex attribute when provided.

Panics

Panics for POSITION accessors with missing bounds.

Since POSITION accessors must include bounds information, one can call Gltf::validate_minimally to ensure this data exists.

[src]

Optional application specific data.

[src]

Return the accessor with the given semantic.

[src]

Returns the accessor containing the primitive indices, if provided.

Important traits for Attributes<'a>
[src]

Returns an Iterator that visits the vertex attributes.

[src]

Returns the material to apply to this primitive when rendering

[src]

The type of primitives to render.

Important traits for MorphTargets<'a>
[src]

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

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[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>