Jazz2::Formats::LevelPreview::TilePixels struct

Pixels of a tile as stored in its tile set.

Public functions

auto GetPixel(std::int32_t x, std::int32_t y, const std::uint32_t* palette) const -> std::uint32_t
Returns the pixel as R | G << 8 | B << 16 | A << 24, flipped as the tile is.

Public variables

const std::uint8_t* Pixels
Pixels in the tile set.
const std::uint8_t* Remapping
Palette indices of the level for those of the tile set, if it's remapped.
bool TrueColor
Whether the pixels are RGBA instead of palette indices.
std::uint8_t Flags
Flags of the tile, see TileRecord.