Copying texture back to surface |
Copying texture back to surface |
Alex Szpakowski
Guest
|
SDL_RenderCopy[Ex] don’t modify the texture at all, they simply draw it to the active render target (or to the screen) using native hardware acceleration.
So you could draw to a render target and then use SDL_RenderReadPixels, although I wouldn’t recommend doing that every frame as SDL_RenderReadPixels can be very slow.
|
|||||||||||||
|