From bf9f99ebf54fe79d4130c464a9524c62acc5de06 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 5 Mar 2022 21:28:45 +0100 Subject: [PATCH] Reorder `Options` members by usage order --- include/gfx/main.hpp | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/include/gfx/main.hpp b/include/gfx/main.hpp index 8b4adeb0..1a0fb6d5 100644 --- a/include/gfx/main.hpp +++ b/include/gfx/main.hpp @@ -20,30 +20,32 @@ #include "gfx/rgba.hpp" struct Options { - bool beVerbose = false; // -v + bool useColorCurve = false; // -C bool fixInput = false; // -f - bool columnMajor = false; // -Z, previously -h bool allowMirroring = false; // -m bool allowDedup = false; // -u - bool useColorCurve = false; // -C - uint8_t bitDepth = 2; // -d - uint64_t trim = 0; // -x - uint8_t nbPalettes = 8; // -n - uint8_t nbColorsPerPal = 0; // -s; 0 means "auto" = 1 << bitDepth; + bool beVerbose = false; // -v + bool columnMajor = false; // -Z, previously -h + + std::filesystem::path attrmap{}; // -a, -A + std::array baseTileIDs{0, 0}; // -b enum { NO_SPEC, EXPLICIT, EMBEDDED, } palSpecType = NO_SPEC; // -c std::vector> palSpec{}; - std::array unitSize{1, 1}; // -u (in tiles) + uint8_t bitDepth = 2; // -d std::array inputSlice{0, 0, 0, 0}; // -L - std::array baseTileIDs{0, 0}; // -b std::array maxNbTiles{UINT16_MAX, 0}; // -N - std::filesystem::path tilemap{}; // -t, -T - std::filesystem::path attrmap{}; // -a, -A - std::filesystem::path palettes{}; // -p, -P + uint8_t nbPalettes = 8; // -n std::filesystem::path output{}; // -o + std::filesystem::path palettes{}; // -p, -P + uint8_t nbColorsPerPal = 0; // -s; 0 means "auto" = 1 << bitDepth; + std::filesystem::path tilemap{}; // -t, -T + std::array unitSize{1, 1}; // -U (in tiles) + uint64_t trim = 0; // -x + std::filesystem::path input{}; // positional arg format_(printf, 2, 3) void verbosePrint(char const *fmt, ...) const;