diff options
Diffstat (limited to 'src/tile-defs.hpp')
-rw-r--r-- | src/tile-defs.hpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/tile-defs.hpp b/src/tile-defs.hpp index 2a8a7865..0853552b 100644 --- a/src/tile-defs.hpp +++ b/src/tile-defs.hpp @@ -1,20 +1,11 @@ #pragma once -#include <Magnum/Math/Vector2.h> -#include <Magnum/Math/Vector3.h> namespace floormat { using variant_t = uint16_t; - constexpr inline uint32_t TILE_MAX_DIM = 16; constexpr inline size_t TILE_COUNT = size_t{TILE_MAX_DIM}*size_t{TILE_MAX_DIM}; - -constexpr inline auto TILE_MAX_DIM20d = Magnum::Math::Vector3<double> { TILE_MAX_DIM, TILE_MAX_DIM, 0 }; -constexpr inline auto iTILE_SIZE = Magnum::Math::Vector3<Int> { 64, 64, 192 }; -constexpr inline auto iTILE_SIZE2 = Magnum::Math::Vector2<Int> { iTILE_SIZE.x(), iTILE_SIZE.y() }; -constexpr inline auto TILE_SIZE = Magnum::Math::Vector3<float> { iTILE_SIZE }; -constexpr inline auto dTILE_SIZE = Magnum::Math::Vector3<double> { iTILE_SIZE }; -constexpr inline auto TILE_SIZE2 = Magnum::Math::Vector2<float> { iTILE_SIZE2 }; -constexpr inline auto TILE_SIZE20 = Magnum::Math::Vector3<float> { (float)iTILE_SIZE.x(), (float)iTILE_SIZE.y(), 0 }; +constexpr inline int32_t tile_size_xy = 64; +constexpr inline int32_t tile_size_z = 192; } // namespace floormat |