mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
main menu glitch fix + refactor
This commit is contained in:
parent
997cff04d1
commit
ffdeac5c1f
4 changed files with 72 additions and 76 deletions
|
|
@ -3,17 +3,17 @@
|
|||
|
||||
#include "../typedefs.hpp"
|
||||
|
||||
const int BLOCK_DIR_NORTH = 0x0;
|
||||
const int BLOCK_DIR_WEST = 0x1;
|
||||
const int BLOCK_DIR_SOUTH = 0x2;
|
||||
const int BLOCK_DIR_EAST = 0x3;
|
||||
const int BLOCK_DIR_UP = 0x4;
|
||||
const int BLOCK_DIR_DOWN = 0x5;
|
||||
inline constexpr int BLOCK_DIR_NORTH = 0x0;
|
||||
inline constexpr int BLOCK_DIR_WEST = 0x1;
|
||||
inline constexpr int BLOCK_DIR_SOUTH = 0x2;
|
||||
inline constexpr int BLOCK_DIR_EAST = 0x3;
|
||||
inline constexpr int BLOCK_DIR_UP = 0x4;
|
||||
inline constexpr int BLOCK_DIR_DOWN = 0x5;
|
||||
|
||||
// limited to 8 block orientations
|
||||
const int BLOCK_ROT_MASK = 0b0000'0111;
|
||||
inline constexpr int BLOCK_ROT_MASK = 0b0000'0111;
|
||||
// reserved bits
|
||||
const int BLOCK_RESERVED_MASK = 0b1111'1000;
|
||||
inline constexpr int BLOCK_RESERVED_MASK = 0b1111'1000;
|
||||
|
||||
struct voxel {
|
||||
blockid_t id;
|
||||
|
|
@ -28,4 +28,4 @@ struct voxel {
|
|||
}
|
||||
};
|
||||
|
||||
#endif /* VOXELS_VOXEL_HPP_ */
|
||||
#endif // VOXELS_VOXEL_HPP_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue