예제 #1
0
 public static void Main(string[] args)
 {
     Parser.Default.ParseArguments <ApplicationOptions>(args)
     .WithParsed <ApplicationOptions>(o =>
     {
         using (var context = new Context())
         {
             using (var application = new DemoApplication(context, o))
             {
                 application.Run();
             }
         }
     });
 }
예제 #2
0
 private int SdlMain(int n, IntPtr v)
 {
     Trace.WriteLine("MainActivity.SDLMain()");
     using (var context = new Urho3DNet.Context())
     {
         var options = new ApplicationOptions();
         //var assets = Android.OS.Environment.ExternalStorageDirectory.ToString();
         //options.EpResourcePrefixPaths = assets+";"+ assets+"/Assets";
         using (var application = new DemoApplication(context, options))
         {
             return(application.Run());
         }
     }
 }