[SDL] The perfect transparent surface. ( Improved question )

Alberto Luaces aluaces at udc.es
Tue Nov 6 09:00:40 PST 2007


El Tuesday 06 November 2007 13:04:20 Miguel Pragier escribió:
> > Every mask is the binary mask that specify where its colour component is
> > stored.
> >
> >
> >     surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, 32,
> >                                    rmask, gmask, bmask, amask);
> >
> > What do you mean by 100% transparent? Invisible?
>
> Yes. Invisible.

Sorry if I do not fully understand you, but if you are going to blit an 
invisible surface, why bother to try to display it at all?

> I'm going to try some masks combinations.

If you are using Windows your pixel format will be tipically RGBA, 8 bits for 
every of the four components, stored in little endian format. However it is 
better to do as the example shown in the documentation and mind the endianess 
of your system.


More information about the SDL mailing list