1. Marcus von Appen
  2. py-sdl2

Pull requests

#20 Merged
Repository
otus
Branch
sub-sprite
Repository
marcusva
Branch
default

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

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.

  • Learn about pull requests

Comments (1)