pub fn compress(
input: impl AsRef<Path>,
output: impl AsRef<Path>,
) -> Result<(), i32>Expand description
Compress a glTF/GLB file with maximum compression (equivalent to gltfpack -cc)
§Arguments
input- Path to input file (.obj/.gltf/.glb)output- Path to output file (.gltf/.glb)
§Returns
Ok(())on successErr(i32)with error code on failure
§Example
use gltfpack_sys::compress;
compress("model.glb", "model_compressed.glb").unwrap();