SDL_CreateSoftwareRenderer
Create a 2D software rendering context for a surface.
- Provided by: libsdl3-doc (Version: 3.4.2+ds-1ubuntu1)
- Source: libsdl3
- Report a bug
Create a 2D software rendering context for a surface.
#include <SDL3/SDL_render.h>
SDL_Renderer * SDL_CreateSoftwareRenderer(SDL_Surface *surface);
Two other API which can be used to create SDL_Renderer: SDL_CreateRenderer() and SDL_CreateWindowAndRenderer(). These can _also_ create a software renderer, but they are intended to be used with an SDL_Window as the final destination and not an SDL_Surface.
Returns a valid rendering context or NULL if there was an error; call SDL_GetError() for more information.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.