Simply put: What is the simplest way to render an image to two different sdl2 windows?
I'm pretty new to SLD2, but I have a nice little level editor working. I then decided to move the area with edit tools to a separate window. I immediately got the following error:
Texture was not created with this renderer.
Alas, it looks like each window needs to have its own
SDL_Renderer, and each renderer needs to create its own textures for the images I want to display.
IMG_LoadTexture() needs a renderer and will only render the resulting texture to that renderer.
SDL_CreateRenderer() then needs a window as a parameter and doesn't seem to be able to ever render to another output window.
So does this really mean I have to create separate textures of each of my images for each and every renderer/window? Or is there a way to load graphics into textures that can be used by any renderer, or on any window?