summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 16:01:42 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 16:01:42 +0100
commit9a355f141e3dd7d5fee8c5674a43fe72f274cf63 (patch)
tree4e0f53da0e6c55b042da74205901023da73ec0c4 /src
parent88f34628e2ca069d1d384c11f2c3d9de6cf2f39d (diff)
src: reduce padding
But it doesn't help yet because it pads to sizeof(void*) at the end.
Diffstat (limited to 'src')
-rw-r--r--src/anim-atlas.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/anim-atlas.hpp b/src/anim-atlas.hpp
index e5446c82..64830efa 100644
--- a/src/anim-atlas.hpp
+++ b/src/anim-atlas.hpp
@@ -52,13 +52,13 @@ struct anim_atlas final
static BitArray make_bitmask(const ImageView2D& tex);
private:
- GL::Texture2D _tex;
String _name;
BitArray _bitmask;
anim_def _info;
std::array<std::uint8_t, (std::size_t)rotation_COUNT> _group_indices = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
};
+ GL::Texture2D _tex;
static decltype(_group_indices) make_group_indices(const anim_def& anim) noexcept;
static std::uint8_t rotation_to_index(StringView name) noexcept;