summaryrefslogtreecommitdiffhomepage
path: root/src/tile-defs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile-defs.hpp')
-rw-r--r--src/tile-defs.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tile-defs.hpp b/src/tile-defs.hpp
index f40e81ff..b8ea0387 100644
--- a/src/tile-defs.hpp
+++ b/src/tile-defs.hpp
@@ -1,5 +1,6 @@
#pragma once
#include <cstddef>
+#include <Magnum/Math/Vector2.h>
#include <Magnum/Math/Vector3.h>
namespace floormat {
@@ -8,8 +9,10 @@ constexpr inline unsigned char TILE_MAX_DIM = 16;
constexpr inline std::size_t TILE_COUNT = TILE_MAX_DIM*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, 64 };
-constexpr inline auto iTILE_SIZE2 = Magnum::Math::Vector2<int> { iTILE_SIZE[0], iTILE_SIZE[1] };
+constexpr inline auto iTILE_SIZE = Magnum::Math::Vector3<Int> { 64, 64, 64 };
+constexpr inline auto iTILE_SIZE2 = Magnum::Math::Vector2<Int> { iTILE_SIZE[0], iTILE_SIZE[1] };
+constexpr inline auto sTILE_SIZE2 = Magnum::Math::Vector2<Short> { (Short)iTILE_SIZE[0], (Short)iTILE_SIZE[1] };
+constexpr inline auto usTILE_SIZE2 = Magnum::Math::Vector2<UnsignedShort> { (UnsignedShort)iTILE_SIZE[0], (UnsignedShort)iTILE_SIZE[1] };
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 };