Copying a texture |
Andreas Falkenhahn
Guest
|
Hi,
what's the suggested way of copying a texture? I know I can use SDL_RenderCopy() in case the target texture is of type SDL_TEXTUREACCESS_TARGET. But what if the target texture is of type SDL_TEXTUREACCESS_STATIC/STREAMING? Do I have to use the slow SDL_RenderReadPixels() on the source texture first and then jam the pixels down to the target texture by using SDL_UpdateTexture()/SDL_LockTexture() or is there a faster way to make an independent copy of a SDL_TEXTUREACCESS_STATIC/STREAMING texture? Tks -- Best regards, Andreas Falkenhahn mailto: _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||
|