export/gltf
src/export/gltf.tur
binary glTF 2.0 (.glb) export from an indexed mesh.
Since: Phase 4
defn
export-glb
(export-glb [mesh : int path : cstr] :)
write an indexed mesh to a binary glTF 2.0 file.
Parameters
| mesh | imesh handle from cmesh-weld | |
| path | destination file path WITHOUT extension (e.g. "/tmp/scene") |
Returns
0 on success, -1 on failure (null handle, zero geometry, or file error).
Example
(export-glb my-imesh "/tmp/output") ; writes /tmp/output.glb
Since: Phase 4