[SDL] PNG Transparency (other image formats too)

David Olofson david at olofson.net
Thu Sep 28 11:10:16 PDT 2006


On Thursday 28 September 2006 20:08, mal content wrote:
> Hi.
> 
> When I call SDL_DisplayFormat() on a surface to convert it and
> speed up blitting, I lose all alpha channel information as loaded
> from the file.
> 
> How do I preserve alpha channel information? Or is this not
> possible?

SDL_DisplayFormatAlpha()


//David Olofson - Programmer, Composer, Open Source Advocate

.-------  http://olofson.net - Games, SDL examples  -------.
|        http://zeespace.net - 2.5D rendering engine       |
|       http://audiality.org - Music/audio engine          |
|     http://eel.olofson.net - Real time scripting         |
'--  http://www.reologica.se - Rheology instrumentation  --'




More information about the SDL mailing list