Function sdl2_sys::SDL_CreateSoftwareRenderer
source ยท pub unsafe extern "C" fn SDL_CreateSoftwareRenderer(
surface: *mut SDL_Surface,
) -> *mut SDL_Renderer
Expand description
Create a 2D software rendering context for a 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.
\param surface the SDL_Surface structure representing the surface where rendering is done \returns a valid rendering context or NULL if there was an error; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_CreateRenderer \sa SDL_CreateWindowRenderer \sa SDL_DestroyRenderer