Commit Graph

185 Commits

Author SHA1 Message Date
Marco Hutter 47d49ecca0 Changed const to constexpr
C26814: The const variable ... can be computed at compile-time.
Consider using constexpr
2021-09-15 16:20:35 +02:00
Marco Hutter de8145ab9e Added missing const keyword
C26496: The variable ... is assigned only once, mark it as const
2021-09-15 15:37:29 +02:00
Marco Hutter 588c5a1ab9 Add noexcept for default constructors
C26455: Default constructor may not throw.
2021-09-15 01:35:34 +02:00
Marco Hutter 97a2757e39 Added missing noexcept specifiers
Reported as "C26440 Function ... can be declared noexcept"
2021-09-14 16:12:50 +02:00
Kevin Ring 5c6062ab99 Add Math::roundUp and roundDown. 2021-08-23 20:52:40 +10:00
Daniel Krupka 0c740d2609 Move ExtensibleObject to CesiumUtility 2021-07-29 09:02:42 -04:00
Kevin Ring 449068c3d6
Merge pull request #281 from CesiumGS/feature-metadata-extension
Upgrade batch table to EXT_feature_metadata extension
2021-07-24 21:32:14 +10:00
Kevin Ring 52c52984b5 ReinterpretCastSpan -> reinterpretCastSpan. 2021-07-24 20:50:15 +10:00
Bao Tran 303bc24f4f add reintepret_cast for span 2021-07-23 13:23:24 -04:00
Kevin Ring 4e45bab460 Use angle brackets to #include catch2. 2021-07-04 22:57:11 +10:00
Kevin Ring 192920e218 Normalize all the line endings. 2021-07-01 16:34:08 +10:00
Kevin Ring bf25e2b925 Changes from review. 2021-06-30 09:53:24 +10:00
Kevin Ring 839e3b3f06 Avoid VS2019 internal compiler error.
Apparently caused by a trailing comma in a lambda capture.
2021-06-26 22:26:51 +10:00
Kevin Ring e6e9ec0065 Cleanup tracing. 2021-06-26 21:44:30 +10:00
Kevin Ring 76ee53fdca Move tracing classes to the Impl namespace. 2021-06-26 15:59:28 +10:00
Kevin Ring 38a1faea12 Better names for tracing macros. 2021-06-26 00:11:52 +10:00
Kevin Ring 8b7832ba83 WIP overhaul of macros for tracing across threads. 2021-06-25 21:11:40 +10:00
Kevin Ring 6ece726757 Fix problems when tracing is disabled. 2021-06-22 17:19:33 +10:00
Kevin Ring f7e4bb9d66 Allow trace begin/end to be outside async process. 2021-06-22 14:06:50 +10:00
Kevin Ring 09b4e393de More cleanup of tracing macros. 2021-06-22 12:26:07 +10:00
Kevin Ring 44a69d4cda Clean up tracing API. 2021-06-21 17:33:59 +10:00
Kevin Ring 5b88b652b7 Make ContinuationFutureType actually a Future. 2021-06-16 15:22:29 +10:00
Kevin Ring 0b4618914c Better request tracing. 2021-06-09 11:28:06 +10:00
Kevin Ring b5d54f07a9 Better macro names. 2021-06-09 10:21:35 +10:00
Kevin Ring 6f109b05c9 Trace overlay loading. 2021-06-08 16:22:55 +10:00
Kevin Ring 0648cb07d2 Allocate unique IDs for tileset loading slots. 2021-06-08 15:23:36 +10:00
Kevin Ring ca9cc41064 Improved load tracing. 2021-06-07 22:57:45 +10:00
Kevin Ring 58d7ffd36f Enlist threads into async processes. 2021-06-07 18:37:50 +10:00
Kevin Ring b40028c2c8 Use our profiler instead of minitrace. 2021-06-07 16:36:11 +10:00
Kevin Ring 491531147d Merge remote-tracking branch 'origin/profiler' into load-tracing 2021-06-07 16:35:19 +10:00
Marco Hutter 51e43bbd49 Comment fixes for clang formatting 2021-04-29 17:06:34 +02:00
Kevin Ring b3d7dfa652 Encoding NaN/Inf as null instead of throwing.
Consistent with behavior in JavaScript and elsewhere.
2021-04-19 10:23:03 +10:00
Kevin Ring 3bd97b37b6 Don't use try/catch to detect int narrowing in JsonValue. 2021-04-19 10:01:05 +10:00
Kevin Ring 710011cb97 Add missing const on some JsonValue methods. 2021-04-16 16:19:20 +10:00
Kevin Ring 999c382cc1 Merge remote-tracking branch 'origin/main' into gltf-extensions 2021-04-16 16:07:23 +10:00
Kevin Ring 02e3be9b03 Merge remote-tracking branch 'origin/main' into gltf-extensions 2021-04-15 21:54:03 +10:00
Kevin Ring 88795c0045 Move JsonValue to CesiumUtility. 2021-04-13 23:24:53 +10:00
Jordi Torres 6333b1cb0a First pass of clang tidy
Mainly caching else after return, not using empty() instead of size() == 0, missing const references to avoid copies and removing redundant initializations
2021-04-12 13:22:03 +02:00
Bao Tran cfdfb02d03 add tracer for upsample terrain 2021-03-24 16:22:12 -04:00
Bao Tran 2afc995420 turn off clang format for some macro 2021-03-24 15:07:53 -04:00
Bao Tran d8d21a4ed4 format 2021-03-24 15:04:45 -04:00
Bao Tran 08357c8f78 add support for tracing lambda 2021-03-24 15:04:00 -04:00
Bao Tran ee36a7f646 format 2021-03-24 14:12:19 -04:00
Bao Tran fee94a204d add profiler 2021-03-24 13:56:55 -04:00
Kevin Ring 92312deb78 Correctly detaches rasters when removing an overlay. 2021-03-16 18:24:51 +11:00
Shehzan Mohammed 8a2957d32f Run clang format 2021-03-08 20:39:46 -05:00
Shehzan Mohammed ef8bf72710 Fix missing header files 2021-03-08 20:30:50 -05:00
Shehzan Mohammed 887744202d Remove other PRIVATE flags from link libraries 2021-03-04 10:50:19 -05:00
Kevin Ring ddfc584baa Don't qualify class name unnecessarily. 2021-03-04 18:23:12 +11:00
Shehzan Mohammed 3faff010d7 Installing thirdparty deps working on linux 2021-03-03 20:47:31 -05:00
Kevin Ring 34bbd2aa31 WIP cmake install. 2021-03-04 09:48:09 +11:00
Samuel Vargas 7946ef2305
Add missing 'uriparser' target to CesiumUtility 2021-03-02 14:43:54 -05:00
Samuel Vargas 5d03477551
Rearchitecture cesium-native's CMake structure
This is necessary to support using cesium-native as submodule in
in asset-pipeline

- `draco` and `sqlite3` are guarded with if target blocks to allow
  asset-pipeline to provide their own version of the targets.
- Tests are now a dedicated target that clients don't have to build
- Test sources / headers are now a target property instead of using the $<BUILD_INTERFACE... hack
- Added common include variables in extern/CMakeLists.txt
- Defined `RAPIDJSON_HAS_CXX11_RVALUE_REFS` for move support for RapidJson
- Private include directories are automatically extracted via CMake magic
  for use in catch tests
- Globbing is now wrapped in a dedicated function that allows one to use
  CONFIGURE_DEPENDS depending on their preferences (defaults to OFF)
  to retain the old behavior.
2021-03-02 14:28:04 -05:00
Kevin Ring a69628b785 Merge remote-tracking branch 'origin/master' into ion-ui 2021-02-24 12:59:44 +11:00
Marco Hutter 67dce23a30 Doxygen fixes 2021-02-15 17:14:49 +01:00
Kevin Ring bb882a15f4 Support listing and creating tokens. 2021-02-15 23:49:04 +11:00
Kevin Ring d10bd2a16d Move JsonHelps to CesiumUtility, at ion "me" service. 2021-02-09 22:50:18 +11:00
Kevin Ring f7caafa626 Add CesiumIonClient library.
Also move Uri to CesiumUtility, and add a `post` method to
`IAssetAccessor`.
2021-02-08 21:59:53 +11:00
Kevin Ring 56feb198df List of errors and warnings instead of a single string for each. 2021-01-20 19:32:14 +11:00
Kevin Ring b654781b10 Merge remote-tracking branch 'origin/master' into upsample-skirt 2021-01-05 15:01:58 +11:00
unknown c1c1408160 add option to expose private src for other libraries. Add tests for SkirtMeshMetadata 2020-12-23 15:57:08 -05:00
Kevin Ring 251d2d46f6 Finish replacing nlohmann with RapidJSON. 2020-12-21 17:41:56 +11:00
Nithin Pranesh 89b88f14ed Marked classes final
All classes marked final except for RasterOverlay, RasterOverlayTileProvider, ITaskProcessor, IPrepareRendererResources, and IAsset*.
2020-12-07 10:45:47 -05:00
Kevin Ring e2a3f0d2db Add constexpr and noexcept in a bunch of places. 2020-12-03 23:18:32 +11:00
Kevin Ring 7f284ab837 Basics working again after changing everything. 2020-11-25 17:25:00 +11:00
Marco Hutter e1e8782f00 Added last documentation. Minor fixes. 2020-11-11 16:25:35 +01:00
Kevin Ring 7260ddca4d Merge remote-tracking branch 'origin/master' into upsample-bounding-volumes 2020-11-04 15:14:43 +11:00
Kevin Ring 20af9ee5cc Compute tighter bounding volumes for upsampled tiles. 2020-11-04 13:11:01 +11:00
Marco Hutter ecab20fe03 Documentation fixes from review comments 2020-11-03 18:31:27 +01:00
Marco Hutter 40dc4bd883
Apply basic suggestions from code review
This contains the changes that could be applied directly (typos and 
minor wording changes). Further suggestions will be addressed 
with a separate commit.

Co-authored-by: Kevin Ring <kevin@kotachrome.com>
2020-11-03 15:17:25 +01:00
Marco Hutter 8ee683a39e Documentation fixes, pedantic mode. 2020-11-01 16:46:54 +01:00
Kevin Ring 2f2cdd1074 Use glm funcs, avoid public cutouts field. 2020-10-29 10:25:51 +11:00
Marco Hutter f3925517dc Documentation fixes for Math
Some parameter names had been wrong
2020-10-26 23:50:59 +01:00
Marco Hutter b72787029d Documentation for namespaces
Without them, typedefs of these namespaces did not
appear in the documentation
2020-10-26 23:50:21 +01:00
Marco Hutter d424c601b3 Documentation for basic classes and TileSelectionState 2020-10-26 23:06:29 +01:00
Marco Hutter 2b4cdc95ac First, basic doxygen fixes
Mainly fixing broken links from invalid "see" references,
missing classes, and basic elements that had been undocumented
2020-10-26 19:07:18 +01:00
Kevin Ring 8782333ef1 Improvements to CMake build. 2020-10-01 22:46:16 +10:00
Kevin Ring 9ca08620ad Terrain normals, ion auth via header instead of URL. 2020-08-25 16:36:17 +10:00
Kevin Ring 2070215b6c Create a glTF from a quantized-mesh-1.0 terrain tile. 2020-08-20 21:46:55 +10:00
Kevin Ring b7bb648f24 Add CesiumGeoreference actor. 2020-08-11 16:33:16 +10:00
Kevin Ring e2d8872707 Basic support for additive refinement. 2020-07-29 15:04:34 +10:00
Kevin Ring 00cb9024e2 Fix more linux compile errors. 2020-07-25 23:48:18 +10:00
Kevin Ring 08b4348c60 Move tests into library directories. 2020-07-25 22:56:53 +10:00
Kevin Ring 3b138ec145 Put everything in the right namespace. 2020-07-24 22:59:53 +10:00
Kevin Ring 6d4beea85d Better physical org of files. 2020-07-24 21:15:46 +10:00