mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-06-23 02:21:00 +08:00
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:
parent
d1e1472992
commit
cba5d6caae
@ -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;
|
||||
}
|
||||
|
1852
tiny_gltf.h
1852
tiny_gltf.h
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user