[SDL] PNG Transparency (other image formats too)

mal content artifact.one at googlemail.com
Thu Sep 28 13:36:59 PDT 2006


On 28/09/06, mal content <artifact.one at googlemail.com> wrote:
> On 28/09/06, David Olofson <david at olofson.net> wrote:
> > SDL_DisplayFormatAlpha()
>
> On 28/09/06, Torsten Giebl <wizard at syntheticsw.com> wrote:
> > There is a SDL_DisplayFormatAlpha(), just test this.
>

Ok, I have another one...

What's a reliable way to test if a freshly loaded image has an
alpha channel, so I know whether to call SDL_DisplayFormatAlpha()
or just plain SDL_DisplayFormat() on it?

MC




More information about the SDL mailing list