Function SDL_GetRenderTarget
pub unsafe extern "C" fn SDL_GetRenderTarget(
renderer: *mut SDL_Renderer,
) -> *mut SDL_Texture
Available on crate feature
dep_sdl3
only.Expand description
Get the current render target.
The default render target is the window for which the renderer was created, and is reported a NULL here.
§Parameters
renderer
: the rendering context.
§Return value
Returns the current render target or NULL for the default render target.
§Thread safety
This function should only be called on the main thread.
§Availability
This function is available since SDL 3.2.0.