diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-19 23:28:56 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-19 23:28:56 +0000 |
commit | 60ca9a1cdec3685e1b8496bd9c9dc7c9486157e7 (patch) | |
tree | ec8b8651dd252519be549192ac8de2c9cad9929a /assetFactory | |
parent | Make perf tests depend on their functional equivalent (diff) | |
download | ilt-60ca9a1cdec3685e1b8496bd9c9dc7c9486157e7.tar.bz2 ilt-60ca9a1cdec3685e1b8496bd9c9dc7c9486157e7.tar.xz ilt-60ca9a1cdec3685e1b8496bd9c9dc7c9486157e7.zip |
Add aggregrate constructor to TexturePacker::Area as required
Diffstat (limited to 'assetFactory')
-rw-r--r-- | assetFactory/texturePacker.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/assetFactory/texturePacker.h b/assetFactory/texturePacker.h index 7e00f1a..ca0d67a 100644 --- a/assetFactory/texturePacker.h +++ b/assetFactory/texturePacker.h @@ -10,6 +10,10 @@ public: using Size = glm::uvec2; struct Area { +#ifndef __cpp_aggregate_paren_init + constexpr Area(Position p, Size s) : position {std::move(p)}, size {std::move(s)} { } +#endif + Position position; Size size; bool |