summaryrefslogtreecommitdiffhomepage
path: root/src/tile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile.cpp')
-rw-r--r--src/tile.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tile.cpp b/src/tile.cpp
new file mode 100644
index 00000000..41d11067
--- /dev/null
+++ b/src/tile.cpp
@@ -0,0 +1,11 @@
+#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