summaryrefslogtreecommitdiffhomepage
path: root/src/tile.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-06 09:49:23 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-06 09:57:50 +0200
commit89acc4653fe7ea3a76dd49711b3ac6b704ed509d (patch)
treedcff8947d840f50ee348e375aca311829dad2e7a /src/tile.cpp
parent595c113b88dc1e81802b4b1381122f25c0eece74 (diff)
a
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