Commit Graph

124 Commits

Author SHA1 Message Date
Kevin Ring 999c382cc1 Merge remote-tracking branch 'origin/main' into gltf-extensions 2021-04-16 16:07:23 +10:00
Samuel Vargas b03dac82af
Add trailing newline to misc files [ skip ci ] 2021-04-06 13:07:48 -04:00
Samuel Vargas 94c77dd89e
Merge tag 'post-clang-format' into gltf-writer-clang-format
The commit that ran clang-format on the entire codebase and made no other changes.
2021-03-09 16:36:39 -05:00
Samuel Vargas a65dac301b
Implement basic triangle serialization test 2021-03-05 14:29:48 -05:00
Samuel Vargas 0d803ba646
Add detailed doxygen for the serialization functions [ skip ci ] 2021-03-05 13:18:27 -05:00
Samuel Vargas 7de726a364
Add trailing newlines [skip ci] 2021-03-05 11:38:53 -05:00
Samuel Vargas 6babc551a0
Replace std::uint8_t with std::byte for data containers 2021-03-05 10:16:12 -05:00
Samuel Vargas 477576d1a6
Fix extras writing for other glTF objects
They need a object created on their behalf.
2021-03-05 07:41:23 -05:00
Samuel Vargas 510f5a6d8c
Add missing camera orthographic extensions serialzier 2021-03-05 07:41:23 -05:00
Samuel Vargas 53801b27e7
Only serialize JsonValue::Objects as extensions 2021-03-05 07:41:23 -05:00
Samuel Vargas fefc4c3b8f
Update ImageWriter to work like BufferWriter
- Now supports writing images to the user lambda
- Now supports auto converting pixelData to base64
2021-03-05 07:41:22 -05:00
Samuel Vargas e0463a54dc
Update base64 include path, update comment 2021-03-05 07:41:22 -05:00
Samuel Vargas 37b0d11c1a
Move Base64 encoding to dedicated .cpp 2021-03-05 07:41:21 -05:00
Samuel Vargas 5e55a3a7f3
Remove extraneous space in WriteFlags.h 2021-03-05 07:41:21 -05:00
Samuel Vargas 1000fe2e15
Throw exception if GLB or GLTF not passed to writeModel 2021-03-05 07:41:21 -05:00
Samuel Vargas 98480a4c02
Increase BufferWriter coverage to 100% 2021-03-05 07:41:20 -05:00
Samuel Vargas adc0317b60
Add toString() / toStringView() methods for CesiumGltf::JsonWriter 2021-03-05 07:41:20 -05:00
Samuel Vargas 6601266f7d
Add mutual exclusion test 2021-03-05 07:41:19 -05:00
Samuel Vargas 7337177771
Add test for root array / single primitive value 2021-03-05 07:41:19 -05:00
Samuel Vargas 080a4bdd85
Remove FindMinMax / PrimitiveVectorToLittleEndian 2021-03-05 07:41:19 -05:00
Samuel Vargas 865388c0dc
Add additional smoketests for glTF / GLB generation 2021-03-05 07:41:18 -05:00
Samuel Vargas d636270d37
Rename GLTF_VERSION to GLB_CONTAINER_VERSION 2021-03-05 07:41:18 -05:00
Samuel Vargas 7bfb800ab9
Rework the Writer / BufferWriter API
- Removed unused EmbedImages / EmbedBuffers / ExternalBuffers parameters
- Split the writing function into two separate functions.
2021-03-05 07:41:17 -05:00
Samuel Vargas f643405726
Add CesiumGltfWriter 2021-03-05 07:41:16 -05:00