TestGame.cs 518 B

12345678910111213141516171819202122
  1. using System;
  2. using Microsoft.Xna.Framework;
  3. namespace MonoGame.Extended.Tests
  4. {
  5. public class TestGame : Game
  6. {
  7. private readonly GraphicsDeviceManager _graphicsDeviceManager;
  8. public TestGame()
  9. {
  10. _graphicsDeviceManager = new GraphicsDeviceManager(this);
  11. RunOneFrame();
  12. }
  13. protected override void Dispose(bool disposing)
  14. {
  15. ((IDisposable)_graphicsDeviceManager).Dispose();
  16. base.Dispose(disposing);
  17. }
  18. }
  19. }