Struct three_d::io::Loader [−][src]
pub struct Loader {}
Expand description
Functionality for loading any type of resource runtime on both desktop and web.
Implementations
impl Loader
[src]
impl Loader
[src]pub fn load<F, P: AsRef<Path>>(paths: &[P], on_done: F) where
F: 'static + FnOnce(&mut Loaded<'_>),
[src]
pub fn load<F, P: AsRef<Path>>(paths: &[P], on_done: F) where
F: 'static + FnOnce(&mut Loaded<'_>),
[src]Loads all of the resources in the given paths then calls on_done
with all of the loaded resources.
pub fn load_with_progress<F, G, P>(
paths: &[P],
progress_callback: G,
on_done: F
) where
G: 'static + Fn(f32),
F: 'static + FnOnce(&mut Loaded<'_>),
P: AsRef<Path>,
[src]
pub fn load_with_progress<F, G, P>(
paths: &[P],
progress_callback: G,
on_done: F
) where
G: 'static + Fn(f32),
F: 'static + FnOnce(&mut Loaded<'_>),
P: AsRef<Path>,
[src]Loads all of the resources in the given paths then calls on_done
with all of the loaded resources.
Will continuously call progress_callback
while loading.