Mail Archives: djgpp/1999/08/09/03:30:23
Andre LaMothe goes through this in "Black Art of 3D Game Programming". The
process is something like this:
read in first 128 bytes if you want the header info (header is constant as
first 128 bytes). then goto the end of the file and backup 768 bytes (256 * 3
color spots for RGB). from here you can read the file's palette info. then,
using the data in between the two spots you've read, just use a RLE decoding
method to extract the actual image data (i'm assuming you know of RLE
decoding...just drop a line here if you don't). HTH
- Raw text -