Jazz2::Formats::TileSetHeader struct

Uncompressed header of a tile set file.

Read by TileSetFile::ReadHeader(), which leaves the stream at the start of the deflated block with the palette and the masks, which the image content follows.

Public variables

std::uint8_t Flags
Combination of TileSetFile::HasMask, TileSetFile::HasPalette and TileSetFile::ImageLz4.
std::uint8_t ChannelCount
Channels of the image content, 1 for palette indices only, 4 for RGBA.
std::uint32_t Width
Width of the image content in pixels.
std::uint32_t Height
Height of the image content in pixels.
std::uint16_t TileCount
Number of tiles.
std::int32_t BodySize
Size of the deflated block that follows the header.