示例#1
0
        async void LaunchGame()
        {
            await Task.Yield();

            using (var context = new Context())
            {
                using (var app = new DemoApplication(context, new ApplicationOptions()))
                {
                    app.Run();
                }
            }
        }
示例#2
0
 public static int SdlMain(int argn, IntPtr argv)
 {
     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());
         }
     }
 }