-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from MihailRis/v13
refactor and fixes
- Loading branch information
Showing
49 changed files
with
1,140 additions
and
1,347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.