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(); } } }); }
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()); } } }