Program.cs 762 B

123456789101112131415161718192021
  1. using MonoGameDistortionSample.Core;
  2. using System.Windows.Forms;
  3. internal class Program
  4. {
  5. /// <summary>
  6. /// The main entry point for the application on Windows.
  7. /// Configures the application for high DPI awareness.
  8. /// It also creates an instance of your game and calls it's Run() method
  9. /// </summary>
  10. /// <param name="args">Command-line arguments passed to the application.</param>
  11. private static void Main(string[] args)
  12. {
  13. // Configure the application to be DPI-aware for better display scaling.
  14. Application.SetHighDpiMode(HighDpiMode.SystemAware);
  15. // Create an instance of the game and start the game loop.
  16. using var game = new MonoGameDistortionSampleGame();
  17. game.Run();
  18. }
  19. }