[SDL] Loading bitmaps
todd.lang at kiyote.ca
Fri Mar 4 14:46:49 PST 2005
Actually, I found the post I was thinking of that linked to a patch put
forth about March last year that enables the alpha channel on the bitmaps
the SDL library loads. It was about 10 lines to change. I just made the
changes and recompiled SDL. Works great! I'm surprised it's not part of
the main CVS.
From: sdl-bounces+todd.lang=kiyote.ca at libsdl.org
[mailto:sdl-bounces+todd.lang=kiyote.ca at libsdl.org] On Behalf Of Rob Probin
Sent: March 4, 2005 4:10 PM
To: sdl at libsdl.org
Subject: [SDL] Loading bitmaps
Some graphics packages do support outputting .bmp files with alpha channel
in the unused channel at 32 bit. (I use GraphicConverter.)
I have some code that operates with a very similar interface to the SDL
LoadBMP and it uses RWops as the input (i.e. files or memory). I'd be
willing to open source license if it's any use.
I have this vague recollection of either stumbling across a post, or someone
posting to this list, a patch for SDL that allowed it to load 32bpp bitmaps.
Am I having some kind of mental breakdown, or does that ring a bell for
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL