Program.cs 685 B

1234567891011121314151617181920212223242526272829303132
  1. using Foundation;
  2. using UIKit;
  3. namespace RenderTarget2DSample.iOS
  4. {
  5. [Register("AppDelegate")]
  6. class AppDelegate : UIApplicationDelegate
  7. {
  8. private static RenderTarget2DSampleGame game;
  9. internal static void RunGame()
  10. {
  11. game = new RenderTarget2DSampleGame();
  12. game.Run();
  13. }
  14. /// <summary>
  15. /// The main entry point for the application.
  16. /// </summary>
  17. static void Main(string[] args)
  18. {
  19. UIApplication.Main(args, null, typeof(AppDelegate));
  20. }
  21. public override void FinishedLaunching(UIApplication app)
  22. {
  23. RunGame();
  24. }
  25. }
  26. }