Add a way to create subsurfaces and -sprites like in pygame

#20 Merged at 3af6789
Repository
jvarho
Branch
sub-sprite
Repository
marcusva
Branch
default
Author
  1. otus
Reviewers
Description

I found myself wanting this, so I implemented a subsurface function in sdl2.ext and a corresponding subsprite method for SoftwareSprites using it.

While it might be nice for symmetry, I didn't add a similar method for TextureSprites. I wasn't sure how, since the Texture's pixels aren't necessarily even accessible.

Comments (1)