Marc Gilleron
922f361cb0
Made it compile in Godot 4
...
- Made a bunch of changes to comply with Godot 4 API
- Use Godot's Vector3i and add the missing stuff with helper functions
- Transvoxel uses custom attributes API, the old way would not work
- Wrap MeshOptimizer in a unique namespace (see build script why)
- Added clang-format file for the module as some rules now differ
- Prevent thirdparty code and lookup tables from being clang-formatted
- Very likely full of runtime bugs that need fixing
2021-12-13 21:38:10 +00:00
Marc Gilleron
00c228851d
Fix signedness
2021-09-26 16:36:08 +01:00
Marc Gilleron
30db0c5193
Split VoxelBuffer in two, script-facing wrapper and internal.
...
The internal is the main use within the voxel engine,
and does not inherit Reference.
2021-09-26 04:14:50 +01:00
Marc Gilleron
967dcbd04c
Don't save meta file on loading, not sure why that was done before
2021-08-01 15:42:24 +01:00
Marc Gilleron
6ea6ce9581
Initialize to the same defaults as in VoxelBuffer
2021-08-01 15:41:23 +01:00
Marc Gilleron
059f490669
Renamed udiv => floordiv
2021-07-31 15:15:43 +01:00
Marc Gilleron
da8dc36590
Return all channels supported with region files and SQLite
...
This fixes a node configuration warning,
because before these were always returning no channels at all.
2021-06-14 18:51:19 +01:00
Marc Gilleron
84e00ccbaf
Another size_t conversion
2021-06-13 17:15:11 +01:00
Marc Gilleron
6374c9831c
Convert size_t to comply with Variant conversion problem on some compilers
2021-06-13 17:03:45 +01:00
Marc Gilleron
73af17e65f
Avoid using size_t to comply with Variant conversion ambiguity that occurs on some compilers
2021-06-12 17:13:46 +01:00
Marc Gilleron
1ee5bcb80d
Renamed Rect3i -> Box3i
2021-05-31 17:12:04 +01:00
Marc Gilleron
f1e2ea9ad4
Update to latest Godot's threading primitives
2021-02-19 01:30:22 +00:00
Marc Gilleron
d1207bdd96
Reorganized some utility files
2021-02-17 20:34:35 +00:00
Marc Gilleron
b66b9a01a9
Removed VoxelStreamFile
2021-02-01 22:25:25 +00:00
Marc Gilleron
4353939eb4
Move region stuff to a folder
2021-01-31 16:51:42 +00:00