[SDL] Creating a transparent rectangle

Sweeney, Steven (FNB) SweeneS at fnb.co.uk
Wed Jun 26 02:07:00 PDT 2002


Hi, I've just been trying to figure out a good way to do this and so far
I've come up with the following,

1. Create a new surface of whatever dimensions you want.
2. Fill it with the required color
3. Set the surface to transparent.

The solution works fine, but if anyone has got a better way of doing it, I'd
like to know. Thanks :)





More information about the SDL mailing list