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
Hleb Valoshka
50deb54bff
Remove unneeded fs::path.string() conversions
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
4f913eb3ad
Collapse nested namespaces
2021-12-28 21:14:29 +01:00
Hleb Valoshka
29d76471f2
Fix search for stars orbiting barycenters
...
Closes : #1126
2021-12-24 14:50:58 +03:00
Hleb Valoshka
14af83a391
Implement Logger to replace raw cerr/cout and DPRINTF usage
2021-12-20 17:54:50 +03:00
Hleb Valoshka
08b0cd0682
Use custom gettext file to translated object names
2021-12-14 13:16:18 +03:00
Levin Li
b9b02beb0e
Use localized names at bottom right
2021-12-05 18:30:44 +08:00
Andrew Tribick
2793756f91
Components inherit visibility from first non-component ancestor
...
- Share visibility logic between Component and SurfaceFeature
- Avoid null dereference for Component/SurfaceFeature defined on stars
2021-12-04 22:48:46 +01:00
Andrew Tribick
a670d8e3be
Cleanup and fix celutil/util.h; rename to tzutil.h
...
- Replace deleteFunc with lambdas
- Remove unused printlineFunc, memsize
- string_view does not allow returning the TZ name, replace with std::string&
2021-12-04 11:44:36 +01:00
Andrew Tribick
82ddd20fe2
Code analysis cleanup
...
- Move modelview/projection matrices to render contexts that use them
- Do not create an unused second light in cmodview
2021-12-04 09:49:52 +01:00
Andrew Tribick
7c5c903f47
Remove pointers from mesh and model vectors
...
- Hold models in unique_ptr
2021-12-04 09:49:52 +01:00
Andrew Tribick
8684543580
Store vertex data as array of 4-byte words
2021-12-04 09:49:52 +01:00
Andrew Tribick
019411dc21
Remove pointers from VertexDescription and PrimitiveGroup indices
2021-12-04 09:49:52 +01:00
Andrew Tribick
b79959979a
Extract inner types from Material and Mesh
...
- Remove using namspace cmod
- Convert enums to enum classes
2021-12-04 09:49:52 +01:00
Andrew Tribick
474057221b
Refactor 3DS loading to avoid excessive use of unique_ptr
2021-12-04 09:49:52 +01:00
Hleb Valoshka
f46a00f4f1
Remove automatic mipmap mode, as it duplicates the default mode
2021-11-29 12:26:19 +03:00
Hleb Valoshka
7228d408e0
Remove condition which is always true
2021-11-29 12:26:19 +03:00
Hleb Valoshka
8113dae087
Remove GLU usage in texture.cpp
2021-11-29 12:26:19 +03:00
Hleb Valoshka
cd2293f6c6
Refactor texture caps
2021-11-29 12:26:19 +03:00
Andrew Tribick
79234cda24
Remove inheritance from Material maps, Model destructor
...
- Reference texture maps by ResourceHandles in cmod Materials
- Add basic path manager for integration tests and tools
- Remove virtual destructor on Model class as nothing inherits from it
2021-11-25 19:11:06 +01:00
Hleb Valoshka
8a903b0d0d
[celx] Add acceleration time to observer:gotoselection()
...
+ replace magic values with constants
+ small cleanup
2021-11-25 16:22:09 +03:00
Levin Li
5f947cfa2c
Add atmosphere height to culling radius
2021-11-17 17:24:52 +08:00
Levin Li
7c933c576d
Correctly finish rendering point stars before drawing new ones
2021-11-16 21:13:15 +08:00
Andrew Tribick
f79b21e7d3
Use existing tokenizer to parse ASCII cmod files
2021-11-15 18:28:06 +01:00
Andrew Tribick
5e141eef21
Refactor random number and Perlin noise
2021-11-14 19:42:39 +01:00
Andrew Tribick
debcca3a1c
Further celmath cleanup
...
- Tidy up includes and namespace handling
- Replace Ray with Eigen::ParametrizedLine
2021-11-14 19:42:39 +01:00
Levin Li
2cf37d3e70
Abandon line strips that are of size 0/1
2021-11-12 20:00:41 +08:00
Andrew Tribick
da5f621a19
Set up common binary IO functions
2021-11-10 19:14:19 +01:00
Andrew Tribick
368d94c0ad
Remove unused catalogxref code
2021-11-10 19:13:39 +01:00
Andrew Tribick
dc2a506839
Remove unused celmath files
2021-11-08 23:29:00 +01:00
Andrew Tribick
80d098f3c9
Remove using namespace from headers
2021-11-06 16:28:45 +01:00
Andrew Tribick
61850bfb9b
Use unique_ptr to indicate ownership in cel3ds
2021-11-05 19:53:05 +01:00
Andrew Tribick
ef10800e7c
Clean up headers/using namespace in cel3ds
2021-11-05 19:53:05 +01:00
Andrew Tribick
ec232b7fad
Fix for debug builds
...
- Include fmt/ostream.h in debug.h to allow formatting filesystem paths
- Avoid including headers via debug.h on non-debug builds
2021-10-26 10:17:48 +03:00
Levin Li
dff29425fe
Fix crash displaying localized DSOs
2021-10-23 17:35:18 +08:00
Hleb Valoshka
28f674565e
Add and use Overlay::printf instead of Overlay::operator<<
2021-10-23 12:15:01 +03:00
Hleb Valoshka
ccd01c460f
Fix fs::path printing using fmt
2021-10-23 12:15:01 +03:00
Hleb Valoshka
42790d9013
Replace deprecated fmt::fprintf calls
2021-10-19 19:35:23 +03:00
Levin Li
1613542c5d
Fix duplicate in Body as well
2021-10-19 17:42:49 +08:00
Levin Li
cb0fe13ecd
Remove duplciates in star/dso name index
2021-10-19 17:42:49 +08:00
Andrew Tribick
11c0361324
Fixes for the Windows build
...
- Move the compatibility classes into the cel17 namespace
- Skip generating resource translations if Perl not present
- Use fmt/ostream.h instead of fmt/printf.h for string_view
2021-10-18 09:58:33 +03:00
Andrew Tribick
e987a7035d
Skip UTF-8 BOM if present
2021-10-18 09:58:19 +03:00
Andrew Tribick
df94a78658
Rewrite tokenizer and remove custom float parsing
2021-10-18 09:58:19 +03:00