mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
Merge pull request #34 from A-lex-Ra/main
Лёгкий рефакторинг, взят курс на избавление от define`ов
This commit is contained in:
commit
24b3048c73
6 changed files with 124 additions and 113 deletions
|
|
@ -3,12 +3,12 @@
|
|||
|
||||
#include "../typedefs.h"
|
||||
|
||||
#define BLOCK_DIR_X 0x1
|
||||
#define BLOCK_DIR_Y 0x0
|
||||
#define BLOCK_DIR_Z 0x2
|
||||
const int BLOCK_DIR_X = 0x1;
|
||||
const int BLOCK_DIR_Y = 0x0;
|
||||
const int 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue