pub unsafe extern "C" fn SDL_GetWindowSurface(
    window: *mut SDL_Window
) -> *mut SDL_Surface
Expand description

Gets the surface of the window.

This is a “borrowed” surface, associated to the window’s lifetime and invalidated whenever the window is resized. Do not free it.

You cannot combine usage of this surface with any other rendering API system (SDL’s, GL, Vulkan, etc). Use SDL_UpdateWindowSurface to finalize your changes for the user to see.

Returns: the surface pointer, or NULL on failure. Call SDL_GetErrorMsg for more.