[SDL] Loading bitmaps with transparency?
L-28C
kixdemp at gmail.com
Sun Mar 4 02:06:25 PST 2007
Yes, like sprites, only one part is shown... On bitmaps, there's no
blank-pixel, so the background shows white... :-/
I can't use any of the C++ libraries 'cause I'm on Lua.
Maybe transparency masks, where there's a separate black-and-white
bitmap with the black areas as the background and white areas as what I
want to show? Would that be best or no?
Thanks! ;-)
Torsten Giebl wrote:
> Hello !
>
>
>> I'm in a situation where I can't use SDL_image. What's the best way to
>> load a transparent image?
>
>
> What kind of transparency ? Just something
> like transparent or not as with sprites for
> example or alpha transparency where you have
> a nr. 0-255 how much transp. the pixel should be ?
>
>
> CU
More information about the SDL
mailing list