To ease reading, we are currently using the following type:
using Palette8Bit = std::array<Color, 256>;
It facilitates a little easier reading of the ArtFile because we do not have to dynamically resize the palette for each read.
Since Bitmaps could have other sized palettes, I think we should consider removing the type and just using a std::vector to represent the palette. This will take a bit more work to read/write from and ArtFile, but I think will facilitate easier transfer to a normal bitmap file.
using Palette8Bit was moved out of Color.h (generic bitmap code) and into PaletteHeader.h (specific to Outpost 2 sprite loading). I think this is acceptable to close this issue.
To ease reading, we are currently using the following type:
It facilitates a little easier reading of the ArtFile because we do not have to dynamically resize the palette for each read.
Since Bitmaps could have other sized palettes, I think we should consider removing the type and just using a std::vector to represent the palette. This will take a bit more work to read/write from and ArtFile, but I think will facilitate easier transfer to a normal bitmap file.