Is it possible to write to a kind of texture buffer using SDL_RenderGeometry
and then draw it multiple times? The only thing that occurred to me is to set areas using SDL_SetRenderViewport
. But then I have to re-render each time.
SDL_Rect r = {0, 0, 400, 300};
SDL_SetRenderViewport(renderer, &r);
SDL_RenderGeometry(renderer, NULL, vert, vertLen, NULL, 0);
r = {400, 0, 400, 300};
SDL_SetRenderViewport(renderer, &r);
SDL_RenderGeometry(renderer, NULL, vert, vertLen, NULL, 0);