mod data_source;
mod load_file_contents;
mod web_sockets;
#[cfg(not(target_arch = "wasm32"))]
mod load_file_path;
pub use data_source::DataSource;
pub use web_sockets::connect_to_ws_url;
#[derive(Clone)]
pub struct FileContents {
pub name: String,
pub bytes: std::sync::Arc<[u8]>,
}
pub const SUPPORTED_MESH_EXTENSIONS: &[&str] = &["glb", "gltf", "obj"];
pub const SUPPORTED_IMAGE_EXTENSIONS: &[&str] = &[
"avif", "bmp", "dds", "exr", "farbfeld", "ff", "gif", "hdr", "ico", "jpeg", "jpg", "pam",
"pbm", "pgm", "png", "ppm", "tga", "tif", "tiff", "webp",
];