Hleb Valoshka
904e4220a8
[ci] build with glut support
2021-12-20 22:36:03 +03:00
Hleb Valoshka
f34111c117
[glut] add missing using celestia::util::Level
2021-12-20 22:36:03 +03:00
Hleb Valoshka
14af83a391
Implement Logger to replace raw cerr/cout and DPRINTF usage
2021-12-20 17:54:50 +03:00
Andrew Tribick
b94d084af3
Fix floating point from_chars implementation
...
- Do not assume a zero-byte terminator exists in the source
- Ignore exponent if format does not contain scientific
- Require exponent if format does not contain fixed
- Add support for hexfloat parsing
- Fail if a plus sign is present
- Add bitwise operations to chars_format
- Avoid use of unnamed namespace in header file
- Detect whether charconv is present and if floating point charconv is supported
2021-12-16 16:33:27 +01:00
Georgi
63d4de9d81
Bulgarian language update
...
adopted the latest changes
2021-12-14 23:49:23 +03:00
Hleb Valoshka
498dc6083c
[po] Remove po2, update po
2021-12-14 13:16:18 +03:00
Hleb Valoshka
08b0cd0682
Use custom gettext file to translated object names
2021-12-14 13:16:18 +03:00
Andrew Tribick
2baab87bf0
[qt] Fix storing window state on transition to fullscreen
2021-12-10 20:33:09 +01:00
Hleb Valoshka
a5f80d0608
[tests] fix catch_main linkage
...
This fixes the following error on my Ubuntu 18.04 with CMake 3.10.2:
CMake Error at cmake/TestCase.cmake:8 (target_link_libraries):
Target "catch_main" of type OBJECT_LIBRARY may not be linked into another
target. One may link only to STATIC or SHARED libraries, or to executables
with the ENABLE_EXPORTS property set.
Call Stack (most recent call first):
test/unit/CMakeLists.txt:6 (test_case)
2021-12-06 22:48:18 +03:00
Andrew Tribick
30dda19ef9
Fix warnings in celmodel
...
- Remove unused variables in createLinePrimitiveGroup
- Ensure result is always set in default case in BinaryModelWrite::writeVertices
2021-12-05 20:32:44 +01:00
Levin Li
9a94e2dc6b
Allow to use a custom date formatter for display
2021-12-05 18:56:30 +08: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
bcbd538d0a
Remove const_cast in cmodview by implementing Model::setMaterial
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
3a02e59b83
Cleanup of operators and material uniquification
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
41936fc6bf
Remove old fonts support
2021-11-30 14:39:33 +03: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
965ee69a98
Replace C++-style comments with C-style comments in gtkegl.c
2021-11-26 19:02:19 +01:00
Andrew Tribick
9f7262bcce
Refactor Material and Material::Color comparison operators
2021-11-25 19:11:06 +01:00
Andrew Tribick
990163ac35
Clean up namespaces and includes in model.cpp/model.h
2021-11-25 19:11:06 +01: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
Hleb Valoshka
189f6372e3
[celx] handle locations in object:localname()
2021-11-25 01:12:46 +03:00
Andrew Tribick
aac69395bb
Enforce minimum fmt version 6.1.0 to ensure float roundtrip
2021-11-21 14:39:49 +01:00
Andrew Tribick
7c38b34683
Add test for CMOD binary to ASCII to binary roundtrip
2021-11-21 14:39:49 +01:00
Andrew Tribick
4132f41889
Remove duplicated code from cmodfix
2021-11-21 12:32:37 +01:00
Andrew Tribick
06613bda27
Add unit tests for the tokenizer
...
- Added tests for the tokenizer
- Reorganized the tests so that the catch main method is only compiled once
- Fixed missing error return in the tokenizer found by the tests
2021-11-18 22:43:03 +01:00
Hleb Valoshka
6b853ce47f
Fix fault due to result expanded to int
2021-11-19 00:41:52 +03:00
Hleb Valoshka
2ff075d843
[celx] Fix location type returned by loc:getinfo()
...
getFeatureType() returns std::uint64_t
+ C++14 style for lambda
+ tiny-tiny optimization around std::string usage
2021-11-18 10:57:42 +03:00
Andrew Tribick
e92c3d9bd5
More forgiving handling of invalid UTF-8 sequences
...
- Report an error (once per stream)
- In string literals, append U+FFFD REPLACEMENT CHARACTER
2021-11-17 12:29:54 +01:00
Andrew Tribick
8ae1fcb88e
Additional format checks for string escapes and numbers
...
- Disallow invalid string escapes
- Disallow numbers ending with a sign character (e.g. + or 3.2e-)
- Disallow exponents immediately after a sign (e.g. +e32)
2021-11-17 12:29:54 +01:00
Levin Li
5f947cfa2c
Add atmosphere height to culling radius
2021-11-17 17:24:52 +08:00
Andrew Tribick
e686619f2e
Don't read DDS header twice, reallow triggering eof()
2021-11-17 08:26:09 +01:00
Hleb Valoshka
6e7787faf3
[ci] Split line for better readability
2021-11-17 09:49:32 +03:00
Hleb Valoshka
204fe018a8
[ci] Build both on Ubuntu 18.04 & latest
2021-11-17 09:49:32 +03:00
Levin Li
2c044240d7
Sync content repo
2021-11-17 14:00:11 +08:00
Andrew Tribick
e78b51ad07
Fix ASCII material loading
2021-11-16 21:33:56 +01:00
Andrew Tribick
d82043f914
Fix for fmt 4.0 (as used by Ubuntu 18.04 LTS)
2021-11-16 18:56:43 +01:00
Levin Li
7c933c576d
Correctly finish rendering point stars before drawing new ones
2021-11-16 21:13:15 +08:00
Andrew Tribick
b3efa631d9
Enforce maximum token length, error on invalid UTF-8 sequences
2021-11-15 18:28:06 +01:00