Trait gltf::import::Source
[−]
[src]
pub trait Source: Debug + Send + Sync + 'static { type Error: Error + Send + Sync; fn source_gltf(&self) -> BoxFuture<Box<[u8]>, Self::Error>; fn source_external_data(
&self,
uri: &str
) -> BoxFuture<Box<[u8]>, Self::Error>; }
A trait for representing sources of glTF data that may be read by an importer.
Associated Types
Required Methods
fn source_gltf(&self) -> BoxFuture<Box<[u8]>, Self::Error>
Read the contents of a .gltf or .glb file.
fn source_external_data(&self, uri: &str) -> BoxFuture<Box<[u8]>, Self::Error>
Read the contents of external data.
Implementors
impl Source for FromPath