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

I threw together this .pcx -> .wal so that we could
put our own cool textures into 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.

pcx2wal only requires 1 input .pcx file (or mask), it generates
the lower mip levels automatically.

Note on the source code: Its ridiculously messy.

Usage:

pcx2wal <.pcx mask> -noadapt

By default, it will check the pallete of the .pcx file
and if its not the same as the Quake 2 pallete, it will
adapt the image to be compatible with the Quake2 pallete.

If you DONT want it to do this, specify -noadapt, and
the .wal that is generated will only work in Quake2 if
you redefine Quake2's palette inside the Quake2 pakfile.

Thanks to Manero and Vuh for supplying some sample .wal
files for me to examine, and to Vuh for sending me
lots of sample files from the Quake 2 pak,
and of course thanks to the wonderful people at
id. 

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