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
Andrew Tribick
22291cd795
Add PowerShell and sh scripts to clone/update content directory
2021-12-28 18:37:00 +01:00
Andrew Tribick
a5ea219b27
CMake fixes
...
- [msvc] Remove defaulted /W option to prevent override warnings from Spice
- Fix capitalization of Perl in find_package
- Replace deprecated qt5_use_modules in cmodview
2021-12-28 18:21:38 +01:00
Hleb Valoshka
28f47b0dd8
Remove content submodule
...
Closes : #1260
2021-12-28 15:18:14 +03:00
Hleb Valoshka
3e93c71a95
[ci] Run test builds on ARM64 agent
...
Signed-off-by: Hleb Valoshka <375gnu@gmail.com>
2021-12-27 12:04:43 +03:00
Hleb Valoshka
98e5684e81
[ci] build usual gnu/linux on old ubuntu only and changes to src & workflow
2021-12-27 12:04:43 +03:00
Hleb Valoshka
15ea2f330f
[ci] enable scanning with sonarcloud
2021-12-27 12:04:43 +03:00
Hleb Valoshka
2505e9a51f
Fix Bulgarian translation file
2021-12-27 01:33:41 +03:00
Andrew Tribick
c85e4550a7
Use submodule for Gaia EDR3 tool
2021-12-26 22:21:02 +01:00
transifex-integration[bot]
53439a5cfd
Translate /po/celestia.pot in bg
...
translation completed for the source file '/po/celestia.pot'
on the 'bg' language.
2021-12-26 23:55:42 +03:00
Hleb Valoshka
a264433697
[win32] Create logger earlier to fix segv
...
SplashScreen class uses LoadImageFromFile which calls GetLogger
2021-12-26 23:06:16 +03:00