diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-28 09:29:58 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-28 19:55:55 +0200 |
| commit | ad1ce7e782e820ce2c5dd2ba3a557341f71793fd (patch) | |
| tree | f2de7e3dc4b3388617cdd2481bce30c3f4de6894 /src/anim-atlas.cpp | |
| parent | 60cdd5ea15970c66e6fe3666f56da9b1d06ad79f (diff) | |
f
Diffstat (limited to 'src/anim-atlas.cpp')
| -rw-r--r-- | src/anim-atlas.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp index 43ba69b2..ee05987f 100644 --- a/src/anim-atlas.cpp +++ b/src/anim-atlas.cpp @@ -11,12 +11,14 @@ namespace floormat { +namespace { +constexpr inline char name_array[][3] = { "n", "ne", "e", "se", "s", "sw", "w", "nw", }; +constexpr inline auto rot_count = size_t(rotation_COUNT); +} // namespace + template class bptr<anim_atlas>; template class bptr<const anim_atlas>; -static constexpr const char name_array[][3] = { "n", "ne", "e", "se", "s", "sw", "w", "nw", }; -static constexpr inline auto rot_count = size_t(rotation_COUNT); - static_assert(array_size(name_array) == rot_count); static_assert(rot_count == 8); |
