Function SDL_DestroyRenderer

pub unsafe extern "C" fn SDL_DestroyRenderer(
    renderer: *mut SDL_Renderer,
)
Available on crate feature dep_sdl3 only.
Expand description

Destroy the rendering context for a window and free all associated textures.

This should be called before destroying the associated window.

§Parameters

  • renderer: the rendering context.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.

§See also