This commit is contained in:
@clasher113 2023-12-05 09:27:00 +02:00
commit 9e5d1eec5f
34 changed files with 485 additions and 410 deletions

View file

@ -3,15 +3,12 @@
#include "../typedefs.h"
#define BLOCK_DIR_PX 0x1
#define BLOCK_DIR_PY 0x0
#define BLOCK_DIR_PZ 0x2
#define BLOCK_DIR_MX 0x3
#define BLOCK_DIR_MY 0x4
#define BLOCK_DIR_MZ 0x5
#define BLOCK_DIR_X 0x1
#define BLOCK_DIR_Y 0x0
#define BLOCK_DIR_Z 0x2
// limited to 16 block orientations
#define BLOCK_ROT_MASK 0xF
const int BLOCK_ROT_MASK = 0xF;
struct voxel {
blockid_t id;