Hi,
Attached is a patch for loading .bmp with alpha channel.
Version 4 of .bmp format allow alpha information, so with this patch SDL
will be able to load them.
I have found that Windows programs encode 32bpp .bmp as 32bpp BI_RGB,
while other bitdepths with alpha are encoded as BI_BITFIELDS, so I
handle both cases.
you can find a sample 32bpp bmp here:
http://knights.planet-d.net/impulse/orange.bmp
Gautier
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed…
Name: bmp32.patch
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040319/eb0bd983/attachment.asc