gltf icon indicating copy to clipboard operation
gltf copied to clipboard

Add more public import facilities

Open digama0 opened this issue 3 years ago • 0 comments

Fixes #222. New public API:

  • gltf::import module (debatable: it would also be possible to keep this private and re-export the other functions)
  • gltf::import::import and gltf::import::import_slice: These were already available as gltf::import and gltf::import_slice but now you can also see them at this path
  • gltf::import::{import_buffer_data, import_image_data}: These already existed but they are now pub. 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 that import::Scheme is not made public here.
  • gltf::image::Data::from_source: Same thing but for images. Most of the logic from import_image_data is now in this function.

digama0 avatar Apr 26 '22 01:04 digama0