----------------------
.Wal -> .Pcx for Win32
by Trey Harrison
December 13, 1997
----------------------

I threw together this .wal -> .pcx so that we could
marvel at the cool textures in the Quake 2 .pak file.
I also threw in the source code, cause, well, I thought
people would wanna see it. The .wal format is the same (isnt it?)
format used for textures in .bsp files.

Usage:

wal2pcx <.wal mask> <-s> <-1>

If you specify -s, it will name the output .pcx files like this:

[base name]_[width]_[height].pcx

ex.:
        grate2_4_64_64.pcx
        grate2_4_32_32.pcx
        grate2_4_16_16.pcx
        grate2_4_8_8.pcx

If you dont specify -s, it will name the .pcx files like this:

[base name]_[mip number].pcx

ex.:
        grate2_4_1.pcx
        grate2_4_2.pcx
        grate2_4_3.pcx
        grate2_4_4.pcx

If you specify -1, it will generate the 1st mip level only,
leaving the base .wal name unmodified (ie, grate2_4.wal
becomes grate2_4.pcx). You cannot specify both -1 and -s.

Thanks to Manero and Vuh for supplying some sample .wal
files for me to examine, and to Vuh for sending me the
Quake 2 palette data.

Trey Harrison
http://crack.com/games/golgotha
trey@crack.com
