add optional Destroy method to Game

main
cosmonaut 2022-06-23 23:59:23 -07:00
parent d32bbcd537
commit a9b3b53ce9
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,8 @@ namespace MoonWorks
Tick();
}
Destroy();
AudioDevice.Dispose();
GraphicsDevice.Dispose();
Window.Dispose();
@ -103,6 +105,7 @@ namespace MoonWorks
protected abstract void Update(TimeSpan delta);
protected abstract void Draw(double alpha);
protected virtual void Destroy() {}
// Called when a file is dropped on the game window.
protected virtual void DropFile(string filePath) {}