Пример #1
0
 static void Main(string[] args)
 {
     args = args.Where(i => !i.StartsWith("-psn")).ToArray();             // Skip Xamarin debugger specific arguments.
     Lime.Application.Initialize();
     NSApplication.SharedApplication.DidFinishLaunching += (sender, e) => TangerineApp.Initialize(args);
     Lime.Application.Run();
 }
Пример #2
0
        public static void Main(string[] args)
        {
            var thisExe = System.Reflection.Assembly.GetExecutingAssembly();

            string [] resources = thisExe.GetManifestResourceNames();
            Lime.Application.Initialize(new ApplicationOptions {
                RenderingBackend = RenderingBackend.Vulkan
            });
            TangerineApp.Initialize(args);
            Lime.Application.Run();
        }
Пример #3
0
        public static void Main(string[] args)
        {
            var thisExe = System.Reflection.Assembly.GetExecutingAssembly();

            string [] resources = thisExe.GetManifestResourceNames();
            var       supportedRenderingBackends = Lime.Application.EnumerateSupportedRenderingBackends().ToList();
            var       renderingBackend           = RenderingBackend.OpenGL;

            if (supportedRenderingBackends.Contains(RenderingBackend.Vulkan))
            {
                renderingBackend = RenderingBackend.Vulkan;
            }
            Application.Initialize(new ApplicationOptions {
                RenderingBackend = renderingBackend
            });
            TangerineApp.Initialize(args);
            Lime.Application.Run();
        }
Пример #4
0
 public static void Initialize(string[] args)
 {
     Instance = new TangerineApp(args);
 }
Пример #5
0
 public static void Initialize()
 {
     Instance = new TangerineApp();
 }
Пример #6
0
 static void Main(string[] args)
 {
     Lime.Application.Initialize();
     NSApplication.SharedApplication.DidFinishLaunching += (sender, e) => TangerineApp.Initialize();
     Lime.Application.Run();
 }
Пример #7
0
 public override void DidFinishLaunching(NSNotification notification)
 {
     TangerineApp.Initialize();
 }