mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-29 14:38:32 +00:00
Adds 'const' to all Serialize*() methods. Updates WriteImageData callback to take a URI out pointer that was previously being written to the Image::uri, which is now const. This breaks the WriteImageData API and as a side effect, Image::uri will no longer contain the written image URI after saving. Adds test serialize-const-image, which verifies the model's image is not changed (because it's const), but the uri written to the gltf json is still correct. Adds test serialize-image-callback that defines a WriteImageDataFunction and also verifies the uri can be overwritten.