summaryrefslogtreecommitdiffhomepage
path: root/tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tile.cpp')
-rw-r--r--tile.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tile.cpp b/tile.cpp
index e1b22a21..e5cb9a97 100644
--- a/tile.cpp
+++ b/tile.cpp
@@ -1,6 +1,12 @@
#include "tile.hpp"
+
#include "tile-atlas.hpp"
namespace Magnum::Examples {
+local_coords::local_coords(std::size_t x, std::size_t y) : x{(std::uint8_t)x}, y{(std::uint8_t)y}
+{
+ CORRADE_INTERNAL_ASSERT(x <= 0xff && y <= 0xff);
+}
+
} // namespace Magnum::Examples