namespace SabreTools.Data.Models.WAD3
{
///
public sealed class QpicImage : FileEntry
{
///
/// Dimensions of the texture (must be divisible by 16)
///
public uint Width;
///
/// Dimensions of the texture (must be divisible by 16)
///
public uint Height;
///
/// Raw image data. Each byte points to an index in the palette
///
/// [height][width]
public byte[][] Data { get; set; } = [];
///
/// Number of colors used in the palette (always 256 for GoldSrc)
///
public ushort ColorsUsed;
///
/// The color palette for the mipmaps (always 256 * 3 = 768 for GoldSrc)
///
/// [ColorsUsed][3]
public byte[][] Palette { get; set; } = [];
}
}