add window resize function

main
cosmonaut 2021-02-24 13:03:39 -08:00
parent b928257d3c
commit 8e627c9b18
1 changed files with 11 additions and 0 deletions

View File

@ -48,5 +48,16 @@ namespace MoonWorks.Window
SDL.SDL_SetWindowFullscreen(Handle, (uint) windowFlag);
}
/// <summary>
/// Resizes the window.
/// Note that you are responsible for recreating any graphics resources that need to change as a result of the size change.
/// </summary>
/// <param name="width"></param>
/// <param name="height"></param>
public void SetWindowSize(uint width, uint height)
{
SDL.SDL_SetWindowSize(Handle, (int)width, (int)height);
}
}
}