mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 03:55:53 +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 TINYGLTF_IMPLEMENTATION
|
||||||
#define STB_IMAGE_IMPLEMENTATION
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||||
|
//#define TINYGLTF_USE_RAPIDJSON
|
||||||
#include "tiny_gltf.h"
|
#include "tiny_gltf.h"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@ -742,5 +743,7 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
Dump(model);
|
Dump(model);
|
||||||
|
|
||||||
|
gltf_ctx.WriteGltfSceneToFile(&model, "test.gltf");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
1440
tiny_gltf.h
1440
tiny_gltf.h
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user