We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SDL_LockTextureToSurface()
SDL_UnlockTexture()
Possible implementation (pseudo code):
class Texture: ... def get_surface(self, rect: Rect): Surface *sf; SDL_LockTextureToSurface(self.tex, rect, &sf) return sf def update_from_surface(self): SDL_UnlockTexture(self.tex) ...
Or something better than this.