Jump to content

QPic

From modding.dev WIKI
Revision as of 22:02, 31 December 2025 by XBLAH (talk | contribs) (Created page with "A simple image of any size. Specific images of this format can be found in these wad files: * cached.wad - The loading screen and the drop-down console background (WON version only) * gfx.wad - The "LOADING" and "PAUSED" images among others = File Structure QPic = {{binary_struct|Width|type=uint32|length=4|description=Image width, in pixels. Must be divisible by 16.}} {{binary_struct|Height|type=uint32|length=4|description=Image height, in pixels. Must be divisible by 1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A simple image of any size. Specific images of this format can be found in these wad files:

  • cached.wad - The loading screen and the drop-down console background (WON version only)
  • gfx.wad - The "LOADING" and "PAUSED" images among others

File Structure QPic

Width <uint32> (4 bytes)
 
Image width, in pixels. Must be divisible by 16.
Height <uint32> (4 bytes)
 
Image height, in pixels. Must be divisible by 16.
Pixels <byte[]> (width*height bytes)
 
The color index within the pallete.
ColorsUsed <uint16> (2 bytes)
 
Number of colors used in the palette (always 256 for GoldSrc).
Pallete <color[]> (256 * 3 bytes)
 
Up to 256 RGB colors used in the texture. Each group of 3 uint32 form a R G B color.