Struct gltf::MeshPrimitive [] [src]

pub struct MeshPrimitive {
    pub attributes: Map<String, Id>,
    pub extensions: Option<Map<String, Value>>,
    pub extras: Option<Map<String, Value>>,
    pub indices: Option<Id>,
    pub material: Id,
    pub mode: u32,
}

Fields

Mapping of attribute names to Accessor IDs

Optional data targeting official extensions

Optional application specific data

Optional ID of the Accessor containing index data

ID of the material to apply to this primitive when rendering

The type of primitives to render (for example GL_TRIANGLES)

Trait Implementations

impl Debug for MeshPrimitive
[src]

Formats the value using the given formatter.

impl Default for MeshPrimitive
[src]

Returns the "default value" for a type. Read more