Crate gltf_importer [] [src]

The reference loader implementation for the gltf crate.

Examples

Importing some glTF 2.0

let path = "path/to/asset.gltf";
let mut importer = gltf_importer::Importer::new(path);
match importer.import() {
    Ok(gltf) => println!("{:#?}", gltf.as_json()),
    Err(err) => println!("error: {:?}", err),
}

Reexports

pub use self::config::Config;

Modules

config

Contains parameters for import configuration.

Structs

Importer

An Importer loads glTF and all of its buffer data from the file system.

Enums

Error

Error encountered when importing a glTF 2.0 asset.