From a159945db9d97e79a30cb34e2aaa45fd28dea576 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Sat, 31 Oct 2020 19:40:33 +0900 Subject: [PATCH] Add document for `TinyGLTF::SetPreserveimageChannels`. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 830ef29..bcf53fd 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,10 @@ if (!ret) { } ``` +#### Loader options + +* `TinyGLTF::SetPreserveimageChannels(bool onoff)`. `true` to preserve image channels as stored in image file for loaded image. `false` by default for backward compatibility(image channels are widen to `RGBA` 4 channels). Effective only when using builtin image loader(STB image loader). + ## 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.