The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Windows, Renderers and Textures
Utekishi


Joined: 02 Mar 2015
Posts: 1
Hello
I have questions regarding those features, namely:
Every SDL_Renderer is assigned corresponding SDL_Window, if we want multiple windows we need multiple Renders. Subsequently every SDL_Texture is created from SDL_Surface in specific SDL_Renderer and there is no way for SDL_Renderers to share their already created textures. Well you can store SDL_Surface and duplicate SDL_Texture if needed.
The question is: Is there any better way to do this?

Best Regards
Utekishi