Allow opting out of STB_IMAGE dependency

Signed-off-by: Squareys <squareys@googlemail.com>
This commit is contained in:
Squareys
2018-03-13 22:40:53 +01:00
parent ff644d82c9
commit 2d3594de22
2 changed files with 9 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ if (!ret) {
## Compile options
* `TINYGLTF_NOEXCEPTION` : Disable C++ exception in JSON parsing. You can use `-fno-exceptions` or by defining the symbol `JSON_NOEXCEPTION` and `TINYGLTF_NOEXCEPTION` to fully remove C++ exception codes when compiling TinyGLTF.
* `TINYGLTF_NO_STB_IMAGE` : Do not load images with stb_image. Instead use `TinyGLTF::SetImageLoader(LoadimageDataFunction LoadImageData, void *user_data)` to set a callback for loading images.
### Saving gltTF 2.0 model