Associate a software renderer with a surface.
Defined in <SDL3/SDL_render.h>
bool SDL_SetSoftwareRendererSurface(SDL_Renderer *renderer, SDL_Surface *surface);| SDL_Renderer * | renderer | the rendering context. |
| SDL_Surface * | surface | the surface where rendering is done. |
(bool) Returns true on success or false on failure; call SDL_GetError() for more information.
This function should be called on the thread that created the renderer.
This function is available since SDL 3.6.0.