SDL_CreateSoftwareRenderer

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.

extern (C) nothrow @nogc extern
SDL_CreateSoftwareRenderer

Parameters

surface SDL_Surface*

The SDL_Surface structure representing the surface where rendering is done.

Return Value

A valid rendering context or null if there was an error; call SDL_GetError for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta