Release 2.14 of Tilengine adds a new layer window feature, based on the actual SNES hardware.
This feature extends original layer clipping that was already implemented in Tilengine. However, layer windowing is much more powerful:
New exampleLayerWindow(https://github.com/megamarc/Tilengine/blob/master/samples/LayerWindow.c) allows to play with combinations of features:


Using raster effects to modify the window edges on each scaline allows free-form clipping, the same trick used in Super Mario World where a circle and keyhole shapes scaled up and down to create a transition between layers.
These screenshots from new sampleLayerCircle(https://github.com/megamarc/Tilengine/blob/master/samples/LayerCircle.c) allow moving a circle and change its radius to mask the main layer, filling the outside part with blue:


2D retro grapics engine with true raster effects for creating 8/16 bit style games