Commit Graph

6393 Commits (spacecruft)

Author SHA1 Message Date
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
Andrew Tribick 0f1ed583ae Move internal cmod parsing code to unnamed namespace 2021-11-15 18:28:06 +01:00
Andrew Tribick 0d636696eb Add error checking in cmod read/write 2021-11-15 18:28:06 +01: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
Andrew Tribick 43f0cc416e Fix spelling of 'opening' 2021-11-14 12:12:52 +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 e00f5b7d2c Fix tools, cleanup, remove reinterpret_cast undefined behaviour 2021-11-05 19:53:05 +01:00
Andrew Tribick 61850bfb9b Use unique_ptr to indicate ownership in cel3ds 2021-11-05 19:53:05 +01:00
Andrew Tribick f3e5444003 Add error checking to 3DS loader 2021-11-05 19:53:05 +01:00
Andrew Tribick 71bfec795c Use templated functions in 3dsread (improve type safety) 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
SevenSpheres ab6bdd75fc Remove content section of README & add help files from 1.6.x branch 2021-10-25 10:13:47 -05:00
SevenSpheres 9f96552540 Some small fixes to documentation
Mostly ported from 1.6.x branch
2021-10-25 10:13:47 -05:00
Andrew Tribick c5d100f698 [qt] Fix info panel for retrograde and subsynchronous rotators 2021-10-24 14:51:57 +02:00
Levin Li dff29425fe Fix crash displaying localized DSOs 2021-10-23 17:35:18 +08:00
Hleb Valoshka 98768a5ea2 [ci] Add build in C++17 mode 2021-10-23 12:15:01 +03:00
Hleb Valoshka b6da4a73f9 [tests] Build filesystem test only if building own fs library 2021-10-23 12:15:01 +03:00
Hleb Valoshka 28f674565e Add and use Overlay::printf instead of Overlay::operator<< 2021-10-23 12:15:01 +03:00