This commit is contained in:
MihailRis
2024-02-26 01:27:27 +03:00
parent e06350915e
commit 925ef426de
6 changed files with 240 additions and 233 deletions
+7 -7
View File
@@ -11,14 +11,14 @@
#define BLOCK_ITEM_SUFFIX ".item"
const uint FACE_MX = 0;
const uint FACE_PX = 1;
const uint FACE_MY = 2;
const uint FACE_PY = 3;
const uint FACE_MZ = 4;
const uint FACE_PZ = 5;
inline constexpr uint FACE_MX = 0;
inline constexpr uint FACE_PX = 1;
inline constexpr uint FACE_MY = 2;
inline constexpr uint FACE_PY = 3;
inline constexpr uint FACE_MZ = 4;
inline constexpr uint FACE_PZ = 5;
const uint BLOCK_AABB_GRID = 16;
inline constexpr uint BLOCK_AABB_GRID = 16;
struct block_funcs_set {
bool init: 1;
+1 -1
View File
@@ -17,7 +17,7 @@ struct ChunkFlag {
static const int UNSAVED = 0x10;
static const int LOADED_LIGHTS = 0x20;
};
constexpr int CHUNK_DATA_LEN = CHUNK_VOL*4;
inline constexpr int CHUNK_DATA_LEN = CHUNK_VOL*4;
class Lightmap;
class ContentLUT;