diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-07 20:55:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-07 20:55:00 +0100 |
commit | 71bd6fe8a02ee5b1c165bbe5e369462c46477fe7 (patch) | |
tree | 61876106c89aef8c307a8737ce413313226500b2 /test/bitmask.cpp | |
parent | 90d479f07387927e9e5b5870f41309faff37aaed (diff) |
a
Diffstat (limited to 'test/bitmask.cpp')
-rw-r--r-- | test/bitmask.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bitmask.cpp b/test/bitmask.cpp index a9552014..ef8f3b1c 100644 --- a/test/bitmask.cpp +++ b/test/bitmask.cpp @@ -2,13 +2,11 @@ #include "compat/assert.hpp" #include "src/anim-atlas.hpp" #include "loader/loader.hpp" -#include <iterator> #include <Corrade/Containers/ArrayView.h> #include <Corrade/Containers/StridedArrayView.h> #include <Magnum/Trade/ImageData.h> #include <Magnum/ImageView.h> #include <Magnum/PixelFormat.h> -#include <chrono> //#define DO_GENERATE @@ -16,11 +14,13 @@ namespace floormat { namespace { -constexpr size_t data_nbytes = 128; const unsigned char data_door_close[] = { #include "bitmask.embed.inc" }; +constexpr auto data_nbytes = arraySize(data_door_close); +static_assert(data_nbytes == 128); + void bitmask_test() { auto img = loader.texture(loader.SCENERY_PATH, "door-close"_s); |