Software Surface manipulation
-
sdl2.ext.
subsurface
(surface : SDL_Surface, area : (int, int, int, int)) → SDL_Surface Creates a surface from a part of another surface. The two surfaces share pixel data.
Note
The newly created surface must not be used after its parent has been freed!