Commit Graph

1191 Commits

Author SHA1 Message Date
Samuel Vargas eb3cb751bf
Always serialize extensions as a JsonValue::Object for clients to
use directly.

(This will be wrapped in a conditional flag in the next commit)
2021-03-11 09:41:03 -05:00
Kevin Ring c0225f0e7d Flesh out JSON array test. 2021-03-11 10:09:55 +11:00
Kevin Ring d671ae6ee8 Remove unnecessary header. 2021-03-11 10:03:32 +11:00
Kevin Ring 5a3c10a020 Correctly handle elements inside JSON arrays. 2021-03-11 10:02:15 +11: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 2678459aea
Merge tag 'pre-clang-format' into gltf-writer-clang-format
The last commit before we ran clang-format on the entire codebase
2021-03-09 16:31:49 -05:00
Marco Hutter 765c1ad16e Merge remote-tracking branch 'origin/master' into handle-images-404-merge-own 2021-03-09 19:35:58 +01:00
Marco Hutter e4d9a1ced9 Merge tag 'post-clang-format' into handle-images-404-merge-own
The commit that ran clang-format on the entire codebase and made no other changes.
2021-03-09 19:34:15 +01:00
Marco Hutter 890e46b930 Merge tag 'pre-clang-format' into handle-images-404-merge-own
The last commit before we ran clang-format on the entire codebase
2021-03-09 19:30:34 +01:00
Kevin Ring b81f3a71f2
Merge pull request #160 from CesiumGS/formatting
Formatting automation and CI
2021-03-09 17:18:56 +11:00
Kevin Ring b8bb9b79b3 Re-run the formatter. 2021-03-09 16:26:14 +11:00
Kevin Ring be6680cbd5 Actually check for formatting errors. 2021-03-09 16:15:27 +11:00
Kevin Ring 846a208468 Broken formatting to test CI. 2021-03-09 16:09:08 +11:00
Kevin Ring 7f9a12e1fb Add npm install for formatting check on Travis. 2021-03-09 16:05:09 +11:00
Kevin Ring 2153e51a30 Add easy way to format the whole codebase, and check formatting on CI. 2021-03-09 16:02:13 +11:00
Shehzan Mohammed 8a2957d32f Run clang format 2021-03-08 20:39:46 -05:00
Shehzan Mohammed d9172461e2
Merge pull request #158 from CesiumGS/fix-headers
Fix missing header files
2021-03-08 20:39:17 -05:00
Shehzan Mohammed ef8bf72710 Fix missing header files 2021-03-08 20:30:50 -05:00
Marco Hutter c721f01541 Finally, no more sstream 2021-03-08 14:59:33 +01:00
Kevin Ring ebb6ac226c
Merge pull request #156 from CesiumGS/crash
Prevent crash when shutting down and changing imagery
2021-03-08 21:22:49 +11:00
Kevin Ring 0631cb4c99 Merge remote-tracking branch 'origin/master' into crash 2021-03-08 21:14:23 +11:00
Kevin Ring b7de888c32
Merge pull request #157 from CesiumGS/connection-token
Add methods to get the parameters used to construct a CesiumIonClient::Connection
2021-03-08 19:19:18 +11:00
Kevin Ring d20f89c421 Add methods to get other Connection params too. 2021-03-08 19:02:25 +11:00
Kevin Ring ab4efdf555 Add method to get the access token from a Connection. 2021-03-08 18:59:53 +11:00
unknown 26b62c68a4 prevent crash when changing imagery 2021-03-07 17:34:14 -05:00
Marco Hutter 8ae345dc30 Merge remote-tracking branch 'origin/master' into handle-images-404 2021-03-07 19:48:52 +01:00
Marco Hutter b4564edb00 Handle the case that images are 404 2021-03-07 19:47:20 +01:00
Kevin Ring 094e7059bd
Merge pull request #154 from CesiumGS/install-2
Add debug postfixes to libs
2021-03-07 16:52:30 +11:00
Shehzan Mohammed c61e2185b0 Add debug postfixes to libs 2021-03-06 11:59:47 -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 30057e9539
Fix casting warning in Reader.cpp 2021-03-05 10:40:12 -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 506f76c34b
Use std::byte for image.cesium.pixelData 2021-03-05 10:04:10 -05:00
Samuel Vargas a582c7c32f
Remove unused exception variable to prevent MSVC from screaming 2021-03-05 09:59:31 -05:00
Samuel Vargas 5599075907
Remove 'o' typo from CMakeLists.txt 2021-03-05 07:46:08 -05:00
Samuel Vargas e5f90d3b16
Add GSL_INCLUDE_DIR to target_include_directories
This is necessary to link against CesiumGltf as we use
gsl/narrow in JsonValue.h
2021-03-05 07:41:24 -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