mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
voxels renderer rebuilt, WorldFiles fix
This commit is contained in:
parent
0576316282
commit
754c5b80d0
44 changed files with 1141 additions and 524 deletions
17
src/constants.h
Normal file
17
src/constants.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef SRC_CONSTANTS_H_
|
||||
#define SRC_CONSTANTS_H_
|
||||
|
||||
#include "typedefs.h"
|
||||
|
||||
#define CHUNK_W 16
|
||||
#define CHUNK_H 256
|
||||
#define CHUNK_D 16
|
||||
#define CHUNK_VOL (CHUNK_W * CHUNK_H * CHUNK_D)
|
||||
|
||||
#define BLOCK_VOID (blockid_t)((2 << (sizeof(blockid_t)*8)) - 1)
|
||||
|
||||
inline uint vox_index(int x, int y, int z, int w, int d) {
|
||||
return (y * d + z) * w + x;
|
||||
}
|
||||
|
||||
#endif // SRC_CONSTANTS_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue