:  Name: BMP Split 1.1                                    :
:  Platform : PC    	     Packaged by : Immo           :
:  Date     : 03/02/1999     Just had    : Scrambled eggs :
:  Note     : Program to split up large .bmp's to smaller :
:		  files. Same output as ppm2c.	          :

Some things u need to read before using this :
- This tool only works with TRUE-COLOR bitmap images,
winblows RGB encoded (at least that is what I tested).
- Make sure the width u enter "fits" in the bitmap width,
i.e. if u have a 320x240 texture, don't enter a value
like 100 for width, coz 320-(3*100)=20. If u do, ur output
will be fucked up.
- This prog is still 8.3 based. It adds to values after the
outputname for identification, so make sure ur outputname
is no longer then 6 characters.
- It will fix if the height dont fit'exactly
- Remember Nintendo 64 is 64 bits, so bmp must be 4byte
aligned
- I used some code Count0 mailed me. (Thanx man!)
- Send bugreports to immortal@biogate.com, along with
tested bmp's (zipped,<100kb).

Example usage :
- bmpsplit <bmpname> <outputname> <part width> <part height>

- Extra option :
bmpsplit <bmpname> <outputname> <part width> <part height> <red> <green> <blue>
If a pixel matches the <red>, <green> and <blue> values, alpha is set (transparency)

- Bitmap info : name=test.bmp, w=320, h=240
Output : name=test
executing "bmpsplit test.bmp test 64 32"
would generate :

>Bitmap file info:
>Name          : pd.bmp
>FileSize      : 230454 bytes
>Colors used   : 16777216
>Width         : 320
>Height        : 240
>Part width    : 64
>Part height   : 32
>Hor. part #   : 5
>Vert part #   : 8
>Output name   : pd

- To convert a .bmp to one file, enter :
bmpsplit <bmpname> <outputname> <bmpwidth> <bmpheigt>

- Now stop reading this stupid info and start coding for
Presence Of Mind 99, The Only Real Nintendo 64 Demo Compo

Greetings to :

LaC, Stan, Twinsen, Locke, Nagra, Jovis, Fractal,
Datawiz, Oman, Silo, Kidstardust, Rene, Sispeo, Ste,
Actraiser, Hartec, Redbox,áTitanik, Wildfire, Loom,
Steve, Neptune, Tazdevil,áRip, Nil, EarthQ, Count0,
Kemuri, Renderman, Cforman, Hotblack, Ravemax, Lem.

-Immo/Dynamix