Kaya 0.5.2 reference for SDL::setTransparency

List of functions and data types in SDL

Void setTransparency(SDLSurface surface, SDLColour rgba)

Arguments

Usage

Select a particular colour on the surface to be considered transparent when copying the surface.

setTransparency(pic,RGBA(0,255,0,255)); // green is transparent
kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya