Scroll to navigation

SDL_SetSoftwareRendererSurface(3) SDL3 FUNCTIONS SDL_SetSoftwareRendererSurface(3)

NAME

SDL_SetSoftwareRendererSurface - Associate a software renderer with a surface.

SYNOPSIS

#include <SDL3/SDL_render.h>
bool SDL_SetSoftwareRendererSurface(SDL_Renderer *renderer, SDL_Surface *surface);

FUNCTION PARAMETERS

the rendering context.
the surface where rendering is done.

RETURN VALUE

Returns true on success or false on failure; call SDL_GetError() for more information.

THREAD SAFETY

This function should be called on the thread that created the renderer.

AVAILABILITY

This function is available since SDL 3.6.0.

SEE ALSO

SDL_CreateSoftwareRenderer(3)

SDL 3.5.0 Simple Directmedia Layer