Module gltf::import [] [src]

Contains functions for importing glTF 2.0 assets.

glTF JSON, buffers, and images may come from a range of external sources, so customization is an important design goal of the import module. The Source trait is provided to facilitate customization of the data loading process.

For convenience, the library contains one implementation of the Source trait, namely FromPath, which allows loading from file system and also from embedded base64 encoded data. This implementation may be used as reference for other schemes such as http.

Reexports

pub use self::config::Config;
pub use self::data::Data;
pub use self::from_path::FromPath;

Modules

config

Contains data structures for import configuration.

data

Contains import data.

from_path

Contains the reference Source implementation, namely FromPath.

Structs

Import

A Future that drives the importation of glTF.

Enums

Error

Error encountered when importing a glTF 2.0 asset.

Traits

Source

A trait for representing sources of glTF data that may be read by an importer.