Copying Source Per-Pixel Alpha to new Surface created with S |
Copying Source Per-Pixel Alpha to new Surface created with S |
Jonathan Dearborn
Guest
|
Has your Googling led you here?
http://pubpages.unh.edu/~jmb97/tutorials/blending.html If you're looking to copy the alpha channel, you have to disable alpha-blending using SDL_SetAlpha(surface, 0, surface->format->alpha), blit it, then re-enable it SDL_SetAlpha(newSurface, SDL_SRCALPHA, newSurface->format->alpha). Jonny D On Mon, Dec 22, 2008 at 1:33 AM, Leeor D. <leeor.net at gmail.com> wrote:
An HTML attachment was scrubbed... URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20081222/cb9f8b21/attachment-0001.htm> |
|||||||||||||
|
Copying Source Per-Pixel Alpha to new Surface created with S |
Andreas Schiffler
Guest
|
There is some code in SDL_gfx - SDL_gfxBlitFunc.c: custom blitters -
which may help you. --Andreas Leeor D. wrote:
-------------- next part -------------- A non-text attachment was scrubbed... Name: aschiffler.vcf Type: text/x-vcard Size: 135 bytes Desc: not available URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20081222/d22a676d/attachment-0001.vcf> |
|||||||||||||
|