The new release of SDL adds Layer support, which means that rendering surfaces by layers is a lot easier. SDL 2.512 has several other changes too. An experimental physics interface and minor fixes. Have a look at the CHANGELOG.
Here is an implementation of the new Layer stuff.
Solitaire.
![](http://feedads.g.doubleclick.net/~a/n-w1Gixc0G4Uub3ttCs01KdM_E4/0/di)
![](http://feedads.g.doubleclick.net/~a/n-w1Gixc0G4Uub3ttCs01KdM_E4/1/di)
![](http://feeds.feedburner.com/~r/YetAnotherPerlGameHackeryapgh/~4/Q5bESE5CTdc)