Set a window's fullscreen state.
int SDL_SetWindowFullscreen(SDL_Window *window, SDL_bool fullscreen);
|window||the window to change|
|fullscreen||SDL_TRUE for fullscreen mode, SDL_FALSE for windowed mode|
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
By default a window in fullscreen state uses fullscreen desktop mode, but a specific display mode can be set using SDL_SetWindowFullscreenMode().
This function is available since SDL 3.0.0.