sdl@lists.libsdl.org
[Top] [All Lists]

Re: [SDL] Transparency on PNG

Subject: Re: [SDL] Transparency on PNG
From:
Date: Sat, 21 Nov 2009 16:54:00 +0100
Am Donnerstag, dem 19. Nov 2009 schrieb Tabris:

> I call this function once with the 2nd tile, then again with the first one. 
> So the overlap i should see the first tile and then the 2nd through the hole 
> of the first one.

As far as I can see, you simply copy the pixels. So the pixeldata of the
second one simply overwrites the first data. They are not merged in your
code.

Use SDL_BlitSurface. That should handle the Alpha channel...

-- 
AKFoerster
_______________________________________________
SDL mailing list
SDL@xxxxxxxxxxxxxxxx
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

<Prev in Thread] Current Thread [Next in Thread>