Hleb Valoshka
f2004da817
debug
2022-01-26 19:11:06 +02:00
Hleb Valoshka
c13ea716a0
test
2022-01-18 23:12:42 +02:00
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
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
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
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
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
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
d978e275dd
Reject zero-sized chunks in 3DS reader
2021-12-28 20:23:34 +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
Andrew Tribick
c85e4550a7
Use submodule for Gaia EDR3 tool
2021-12-26 22:21:02 +01: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
Andrew Tribick
9385415788
Fix loop iteration in randutils
2021-12-26 18:09:58 +01:00
Levin Li
968199915c
Add support for different temperature scales
2021-12-25 23:10:10 +08:00
Hleb Valoshka
ab409356c1
Add versioned local config file support
2021-12-24 21:32:27 +03:00
Hleb Valoshka
29d76471f2
Fix search for stars orbiting barycenters
...
Closes : #1126
2021-12-24 14:50:58 +03:00
Hleb Valoshka
f34111c117
[glut] add missing using celestia::util::Level
2021-12-20 22:36:03 +03:00