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
attributes: Map<String, Id>
Mapping of attribute names to Accessor
IDs
extensions: Option<Map<String, Value>>
Optional data targeting official extensions
extras: Option<Map<String, Value>>
Optional application specific data
indices: Option<Id>
Optional ID of the Accessor
containing index data
material: Id
ID of the material to apply to this primitive when rendering
mode: u32
The type of primitives to render (for example GL_TRIANGLES
)
Trait Implementations
impl Default for MeshPrimitive
[src]
fn default() -> MeshPrimitive
Returns the "default value" for a type. Read more