summaryrefslogtreecommitdiffhomepage
path: root/src/tile-defs.hpp
blob: b260fe8a65100c4051046daa9cafd6f9bb30be50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include <Magnum/Math/Vector2.h>
#include <Magnum/Math/Vector3.h>

namespace floormat {

constexpr inline unsigned char TILE_MAX_DIM = 16;
constexpr inline 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 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 };
constexpr inline auto dTILE_SIZE2     = Magnum::Math::Vector2<double> { TILE_SIZE2 };
constexpr inline auto TILE_SIZE20     = Magnum::Math::Vector3<float>  { (float)iTILE_SIZE[0], (float)iTILE_SIZE[1], 0 };

} // namespace floormat