Commit Graph

6332 Commits (3f7bd9c13e556602db856ae207d4d2f70ff8e304)

Author SHA1 Message Date
Andrew Tribick 3f7bd9c13e Update floating point compilation options 2022-01-08 16:02:52 +01:00
Andrew Tribick 56751882e6 Minor tokenizer fixes
- Functions in cctype should be called with unsigned char.
- Use charconv to convert numeric tokens.
2022-01-08 15:44:25 +01:00
Hleb Valoshka e04ed379a5 [ci] exclude legacy ui from sonar analysis 2022-01-08 17:21:23 +03:00
Hleb Valoshka 849ce6a5c4 [ci] disable dnf invocation as it fails 2022-01-08 17:21:23 +03:00
Hleb Valoshka 98610c9557 [cmake] suppress "deprecated-declarations" warning for gtk ui 2022-01-08 17:21:23 +03:00
Hleb Valoshka c251dac856 Split greek-letters handling from utf8 and refactor a bit 2022-01-08 17:21:23 +03:00
SevenSpheres eaae852f8f Update celestia.cfg
add pulsars.stc & plutocharon_locs.ssc
2022-01-07 12:43:30 -07:00
Hleb Valoshka eb93a24fcc Fix search for planets around stars with Bayer designations
Closes: #1297

The previos code didn't take into account names like "Ups And Ad" and
interpreted them as "Ups And A".
2022-01-05 15:56:34 +03:00
Hleb Valoshka d0899d29ee Fix ring shadow shaders for planets with several suns
Closes: #1305

Was broken in 32baed9bc
2022-01-05 13:34:51 +03:00
Hleb Valoshka 192359bfa0 [ci] remove ENABLE_DATA from cmake calls 2022-01-04 16:21:52 +03:00
Hleb Valoshka 57c0fe1bde Update spice submodule and enable it in CI build on arm64 2022-01-04 16:21:52 +03:00
Hleb Valoshka e4f7df92b8 [ci] run sonar scanner on a self-managed runner
* legacy frontends won't be checked, only sdl & qt
2022-01-03 18:30:02 +03:00
Hleb Valoshka 5bf9471674 Silence AstroObject::setIndex() unless debug verbosity 2022-01-02 19:32:15 +03:00
Andrew Tribick 7cdf65659d Clamp cosine of phase angle to [-1, 1] 2022-01-02 16:03:52 +01:00
Hleb Valoshka dea8c42eb1 [ci] add a custom job for *.po files 2022-01-01 23:59:32 +03:00
Andrew Tribick 7b762832a4 [qtwin] Fix crash on pasting screenshots
Workaround for an issue with the Windows Qt version where Celestia crashes
when a copied screenshot is pasted into another application. This appears to
be because the data sent to the clipboard still contains a reference to the
data in the destructed Image object, despite the Qt documentation stating that
QClipboard::setImage causes the clipboard to take ownership of the data. This
does not occur if the QImage manages its own buffer.
2022-01-01 21:27:10 +01:00
Andrew Tribick 4a9403ecf5 Fix galaxy hue calculation 2022-01-01 12:38:54 +01:00
Andrew Tribick 33116aad4a Backport C++20 numbers header 2021-12-31 17:25:39 +01:00
Andrew Tribick e8ca56f575 Remove unused code and apply bugfixes to SphereMesh
- Remove unused overload of displace
- Fix some bugs retrieving wrong data element
- Use Eigen::Map to simplify vector code
- Remove dispmap.h/dispmap.cpp
2021-12-31 11:12:53 +01:00
Andrew Tribick 727e4c999b Remove unreachable returns 2021-12-30 22:33:18 +01:00
Andrew Tribick f0e6ff3673 Refactor bigfix and univcoord 2021-12-30 21:30:18 +01:00
Andrew Tribick ee74d05f92 Clamp universal position to within 2^62 microlightyears on x, y and z axes 2021-12-30 21:30:18 +01:00
Andrew Tribick c40c04f595 Remove unused memorypool sources 2021-12-30 21:23:58 +01:00
Andrew Tribick fb45b8461d Enforce lower bound on rings/slices for spheremesh
- Avoid potential division-by-zero errors if nSlices=0
- Remove unused SphereMesh constructors
- Un-deprecate the cms format
2021-12-30 13:29:29 +01:00
Andrew Tribick fd9ea94377 Add managers for galaxy/globular details to avoid destructor issues on exit 2021-12-30 11:58:44 +01:00
Andrew Tribick c632aea62d Use std::uint8_t in procedural texture code 2021-12-30 11:58:44 +01:00
Andrew Tribick 85e5bae406 Additional globular refactoring
- Store vector directly in GlobularForm
- Use local statics
2021-12-30 11:58:44 +01:00
Andrew Tribick 657f127a66 Refactor globular: namespace management 2021-12-30 11:58:44 +01:00
Andrew Tribick e8782ceeb0 Reduce indirection, re-use custom templates if possible 2021-12-30 11:58:44 +01:00
Andrew Tribick 31b67185dd Refactor galaxy: namespace management 2021-12-30 11:58:44 +01:00
Andrew Tribick 73176faeb4 Fix parameter order in 'Error loading star X for asterism Y' 2021-12-30 11:58:22 +01:00
Andrew Tribick f15443bf63 Remove WIP HDR implementation 2021-12-29 14:48:36 +01:00
Andrew Tribick 5678539e05 Remove unused particle system code 2021-12-29 14:48:36 +01:00
Andrew Tribick 86f2aab284 Remove glcontext.* 2021-12-29 14:48:36 +01:00
Andrew Tribick b683c7801d Return std::string_view from Tokenizer::getStringValue to reduce copying 2021-12-29 13:08:54 +01:00
Andrew Tribick 2a533b20d5 Remove getNameValue from tokenizer (duplicate functionality of getStringValue) 2021-12-29 13:08:54 +01:00
Andrew Tribick 1d77f75963 Remove celmath::clamp in favour of std::clamp 2021-12-29 12:32:16 +01:00
Andrew Tribick 657604c69a Replace invalid use of memcpy in curveplot
- Vertex is not trivially copyable, therefore memcpy is not allowed.
- Put local classes and functions into unnamed namespace.
- Remove using namespace std, using namespace Eigen.
- Prefer C++-style casts.
- Use C++17 std::clamp where appropriate.
- Use logger for debugging
2021-12-28 23:04:50 +01:00
Andrew Tribick 2069f1ce68 Use <iosfwd> instead of <iostream> in logger.h 2021-12-28 22:36:10 +01:00
Andrew Tribick ea320060dc Only pass -fno-rtti and -fno-exceptions for C++ 2021-12-28 22:14:51 +01:00
Hleb Valoshka 50deb54bff Remove unneeded fs::path.string() conversions 2021-12-28 21:14:29 +01:00
Andrew Tribick e4ea8e0df4 Remove filesystem compatibility implementation
Keep <experimental/filesystem> support for now, so we still need to use a
compatibility header to alias the namespace.
2021-12-28 21:14:29 +01:00
Andrew Tribick e6a7b32fee Remove string_view compatibility headers 2021-12-28 21:14:29 +01:00
Andrew Tribick d7b896c013 Remove pre-C++17 Eigen alignment code 2021-12-28 21:14:29 +01:00
Andrew Tribick 9651e9e265 Use inline constexpr for constants in header files 2021-12-28 21:14:29 +01:00
Andrew Tribick 1dc01e221e Collapse using declarations 2021-12-28 21:14:29 +01:00
Andrew Tribick 4f913eb3ad Collapse nested namespaces 2021-12-28 21:14:29 +01:00
Andrew Tribick 279c721373 Require C++17, CMake 3.8 2021-12-28 21:14:29 +01:00
Andrew Tribick d978e275dd Reject zero-sized chunks in 3DS reader 2021-12-28 20:23:34 +01:00
Andrew Tribick d541a3c9c6 Update Spice submodule 2021-12-28 20:05:05 +01:00