Module lump

Module lump 

Source
Expand description

Data lumps as used in WAD archive or as loose files

Modules§

kind
Lump identifiers

Structs§

Image
Image stored as palette indices (0..256) in row-major order
MipTexture
Mip-mapped texture. Contains exactly 4 mips (including the full resolution image).
MipTextureHead
Lump header for mip-mapped textures

Enums§

Lump
Enum w/ variants for each known lump kind

Functions§

parse_image
Attempt to parse a 2D image
parse_mip_texture
Attempt to parse bytes into a mip-mapped texture
parse_palette
Attempt to parse 768 bytes into a palette
read_raw
Read length bytes into a boxed slice