[SDL] Alpha transparency on created surface?

L-28C kixdemp at gmail.com
Wed Aug 8 08:35:59 PDT 2007


Hmm... The docs on SDL_CreateRGBSurface(...) say that if you specify an 
alpha mask > 0, then SDL_SRCALPHA will be automatically set...

Well, I set a mask of 255, but the surface is still black instead of 
transparent. :-/

I called SDL_SetAlpha(...) with the parameters you specified, but the 
same thing is displayed.

I basically just want the surface to be filled with (0,0,0,0) (nothing) 
instead of (0,0,0) (black).

Thanks you three! ;-)

(P.S; talking about SDL_CreateRGBSurface, what's the advantage on using 
hardware surfaces over software ones?)



More information about the SDL mailing list