[SDL] Does "Alpha" channel blend blitting work on ALL platforms ???
Sam Lantinga
slouken at devolution.com
Tue Aug 7 13:48:19 PDT 2007
> I wish to have screens in my next game that:
> 1. fade from black to rendered screen
> 2. fade from rendered screen to black
> Blitting a black sprite the size of the screen over the pre rendered screen
> with varying levels of alpha enabled should do the trick.
> My question to the S.D.L.(R) game making experts is:
> does "Alpha" channel blend blitting work on ALL platforms?
Yes, it does.
> Another question is are would the above technique be C.P.U. intensive
> and very expensive?
Yes, it is.
You might also try gamma fading, which is faster when supported, but isn't
supported on all platforms and drivers.
> P.S. - "S.D.L.(R) Rocks!"
Thanks! :)
See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
More information about the SDL
mailing list