diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 09:49:23 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-06 09:57:50 +0200 |
commit | 89acc4653fe7ea3a76dd49711b3ac6b704ed509d (patch) | |
tree | dcff8947d840f50ee348e375aca311829dad2e7a /src/tile.cpp | |
parent | 595c113b88dc1e81802b4b1381122f25c0eece74 (diff) |
a
Diffstat (limited to 'src/tile.cpp')
-rw-r--r-- | src/tile.cpp | 11 |
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 |