Commit Graph

11685 Commits

Author SHA1 Message Date
Lars Mueller
451978dc2c Move everything to sections of one big "gltf" test case 2024-06-12 17:57:08 +02:00
Lars Mueller
59a173b51b Clean up unit tests 2024-06-12 17:57:08 +02:00
Lars Mueller
50c8604de1 Fix snow man test texture coordinates
The current texture coordinates specified in the test did not use sufficient precision.
It is unfortunately common for software to round away the last bit when displaying floats.
This issue was previously masked by Irrlicht using a float comparison with tolerance for vectors,
which was changed in 3452857 to an exact float comparison for unrelated reasons.
Manual inspection of the buffer reveals that the values produced by the reader are correct.
2024-06-12 17:57:08 +02:00
Lars Mueller
50d20a854c Fix -Wsign-compare warning 2024-06-12 17:57:08 +02:00
Josiah VanderZee
d5450c62bf Add f postfix to floating point test values 2024-06-12 17:57:08 +02:00
Josiah VanderZee
2a9e570cbc Fix strict aliasing violations in glTF tests 2024-06-12 17:57:08 +02:00
Josiah VanderZee
8f6c24cbe9 Fix improper unit tests paths again 2024-06-12 17:57:08 +02:00
Josiah VanderZee
d4d9035ee5 Fix improper unit test paths 2024-06-12 17:57:08 +02:00
Josiah VanderZee
0eef3b07b8 Fix minetestserver build 2024-06-12 17:57:08 +02:00
Josiah VanderZee
b45aa1cd72 Get unit tests to build 2024-06-12 17:57:08 +02:00
Lars Mueller
8c35461af2 Fix/improve reading from accessors
- Alignment issues
- Use os::Byteswap::byteswap
- Directly write into matrices
2024-06-12 17:57:08 +02:00
Lars Mueller
be375cdfb6 Do not stack-allocate SSkinMeshBuffer 2024-06-12 17:57:08 +02:00
Josiah VanderZee
b419d0e445 Use __BIG_ENDIAN_
This also corrects the function name to be snake_case because it is
not a method.
2024-06-12 17:57:08 +02:00
Josiah VanderZee
3a4dde48e8 Remove unneeded header 2024-06-12 17:57:08 +02:00
JosiahWI
28299e7910 Program more defensively
Co-authored-by: sfan5 <sfan5@live.de>
2024-06-12 17:57:08 +02:00
Lars Mueller
942d46d37c Remove unused includes 2024-06-12 17:57:08 +02:00
Lars Mueller
88383e40db Reduce verbosity by introducing SelfType alias 2024-06-12 17:57:08 +02:00
Lars Mueller
d4de89cbe7 Remove unnecessary constructor 2024-06-12 17:57:07 +02:00
Lars Mueller
b734119d05 Move data directly rather than copying 2024-06-12 17:57:07 +02:00
Lars Mueller
818ac9ea3d Replace some spaces with tabs 2024-06-12 17:57:07 +02:00
Lars Mueller
a372397416 Remove now obsolete getters for accessor indices 2024-06-12 17:57:07 +02:00
Lars Mueller
a2311dc734 Check that enough bytes could be read 2024-06-12 17:57:07 +02:00
Lars Mueller
00d23d65e0 Add SPDX-License-Identifiers 2024-06-12 17:57:07 +02:00
Josiah VanderZee
315c03b99a Change "reflecting" to "mirroring" for readability 2024-06-12 17:57:07 +02:00
Lars Mueller
411969c87c Bring accessor implementation from other branch over 2024-06-12 17:57:07 +02:00
Josiah VanderZee
8a2cae1065 Mark transformation matrices as const 2024-06-12 17:57:07 +02:00
Josiah VanderZee
5bd1d052ad Remove unused method isSparseAccessor 2024-06-12 17:57:07 +02:00
Josiah VanderZee
b95dcb7e7a Preallocate the indices vector 2024-06-12 17:57:07 +02:00
Josiah VanderZee
da722a833f Compile with runtime type information 2024-06-12 17:57:07 +02:00
Josiah VanderZee
c803a9c895 Add comment clarifying linking of object libraries 2024-06-12 17:57:07 +02:00
Josiah VanderZee
b9b03557c6 Use main project cxx standard for unit tests 2024-06-12 17:57:07 +02:00
Josiah VanderZee
1baa3f1e34 Clean up code style 2024-06-12 17:57:07 +02:00
Josiah VanderZee
26276729ed Remove EAMT_GLTF as it serves no purpose 2024-06-12 17:57:07 +02:00
JosiahWI
ec5950033f Add glTF loader for static meshes 2024-06-12 17:57:07 +02:00
Mikita Wiśniewski
9def45aa80
Add zstd to Void Linux dependencies (#14748) 2024-06-12 12:39:15 +02:00
grorp
85878d894a
Android: Fix back button sometimes not working as ESC (#14743) 2024-06-11 22:37:57 +02:00
Lars Mueller
ae4cd1ebf1 Corresponding code changes 2024-06-10 21:15:30 +02:00
minetest
781c7a800f Replace Catch2 with v3 amalgamation 2024-06-10 21:15:30 +02:00
sfan5
5133ae52df Update vcpkg used in CI 2024-06-10 18:49:43 +02:00
sfan5
3539af7d77 Set some useful SDL hints
fixes #14596
2024-06-10 18:49:43 +02:00
sfan5
c03894321a Fix file write warning in devtest
closes #14721
2024-06-10 18:49:43 +02:00
sfan5
b7e886a740 Rename sha256 header
fixes #14710
2024-06-10 18:49:43 +02:00
sfan5
8268c61b9f Make safeWriteToFile safe for thread-concurrent use 2024-06-10 18:49:43 +02:00
sfan5
fee6e8e11b Identify when compiled with openresty LuaJIT
Debian testing ships it
2024-06-10 18:49:43 +02:00
sfan5
558d749d54 A few clean ups in log.cpp 2024-06-10 18:49:43 +02:00
sfan5
27cb54c1db Stop misusing volatile keyword 2024-06-10 18:49:43 +02:00
cx384
4c9be808a7 Improve register_on_leaveplayer documentation 2024-06-09 13:21:54 +02:00
sfan5
71893807b3
Call malloc_trim() regularly to improve deallocation behavior (#14707) 2024-06-07 16:57:30 +02:00
SmallJoker
08485f6781 Chat: Remove tailing punctuation from clickable links 2024-06-05 20:11:47 +02:00
sfan5
87232358d3
Update some workflows to newer Ubuntu versions (#14668) 2024-06-03 20:39:02 +02:00