Destroy a window.
void SDL_DestroyWindow(SDL_Window *window);
window | the window to destroy |
If window
is NULL, this function will return immediately after setting the SDL error message to "Invalid window". See SDL_GetError().
This function is available since SDL 3.0.0.