gltf
gltf copied to clipboard
Add more public import facilities
Fixes #222. New public API:
gltf::importmodule (debatable: it would also be possible to keep this private and re-export the other functions)gltf::import::importandgltf::import::import_slice: These were already available asgltf::importandgltf::import_slicebut now you can also see them at this pathgltf::import::{import_buffer_data, import_image_data}: These already existed but they are nowpub. This is the part that actually fixes #222.gltf::buffer::Data::{from_source, from_source_and_blob}: This allows importing just one buffer and getting errors about it. Note thatimport::Schemeis not made public here.gltf::image::Data::from_source: Same thing but for images. Most of the logic fromimport_image_datais now in this function.