RapidJson 1.1 support + More move semantics

*Support for RapidJson 1.1, use TINYGLTF_USE_RAPIDJSON to toggle between RapidJson and nlohmann

*Lot more move semantics enabled.  All parsing and serialization now move all json objects with far fewer copies
This commit is contained in:
jrkoonce 2019-08-29 11:26:22 -05:00
parent d1e1472992
commit cba5d6caae
2 changed files with 1180 additions and 675 deletions

View File

@ -4,6 +4,7 @@
#define TINYGLTF_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
//#define TINYGLTF_USE_RAPIDJSON
#include "tiny_gltf.h"
#include <cstdio>
@ -742,5 +743,7 @@ int main(int argc, char **argv) {
Dump(model);
gltf_ctx.WriteGltfSceneToFile(&model, "test.gltf");
return 0;
}

File diff suppressed because it is too large Load Diff