[SDL] Alpha fade-in OR fade-out

David Olofson david at olofson.net
Wed Nov 26 04:12:02 PST 2003


On Wednesday 26 November 2003 11.04, kandjidev at yahoo.fr wrote:
> Hello, I'm trying to find a way to handle transparency for most
> common cases. I must say that my goal is to use png bitmaps only,
> enable screen alpha, and run the app only in 32 bits display mode.

Why do you want screen alpha? Any standard video card will just ignore 
it, so it's only relevant for certain (rather unusual) blending 
operations. You probably want to use OpenGL or custom s/w rendering 
code for that, as SDL only does basic source alpha blending.


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

.- Audiality -----------------------------------------------.
|  Free/Open Source audio engine for games and multimedia.  |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
   --- http://olofson.net --- http://www.reologica.se ---





More information about the SDL mailing list