[SDL] transparent surface problem

Davide "M3xican" Coppola dmc at dev-labs.net
Sun Jan 22 09:08:30 PST 2006


Hi, after some tests I have solved the problem, these are the results:

1- it's useless use SDL_BlitSurface() if you need to blit an image with
transparent pixels on a surface totally transparent.

2- it's possible use getpixel() and putpixel() functions, but this 
method is
very slow.

3- the fastest method possible is use memcpy() copying pixels data from
the image to the surface.

Thanks to everybody has replied me.

-- 

Davide "M3xican" Coppola

--------------------------------------------------------------------
email:  dmc at dev-labs.net
homep:  http://dmc.dev-labs.net
ICQ:    104241710
MSN:	bad_hangover at hotmail.it

Don't use IE and OE! 
Download FireFox and ThunderBird: http://www.mozilla.org/
--------------------------------------------------------------------




More information about the SDL mailing list