Crate gltf_importer [] [src]

The reference loader implementation for the gltf crate.

Examples

Importing some glTF 2.0

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

Reexports

pub use self::config::Config;
pub use self::config::ValidationStrategy;

Modules

config

Contains parameters for import configuration.

Structs

Buffers

Buffer data returned from import.

Enums

Error

Error encountered when importing a glTF 2.0 asset.

Functions

import

Imports glTF 2.0 with default configuration.

import_data_slice
import_with_config

Imports glTF 2.0 with custom configuration.