public override void FinishedLaunching(NSObject notification) { var appSettings = new AppSettings ("Blimey Engine Demo") { FullScreen = true, MouseGeneratesTouches = true }; var entryPoint = new Demo (); var api = new Api (); platform = new Platform (api); platform.Start (appSettings, entryPoint); }
public static void Main( string[] args ) { var appSettings = new AppSettings ("Blimey Engine Demo") { FullScreen = true, MouseGeneratesTouches = true }; var entryPoint = new Demo(); IApi api = new Api (); using (var platform = new Platform (api)) { platform.Start (appSettings, entryPoint); (api as Api).Run (); platform.Stop (); } }
public void Stop() { if (!running) throw new Exception ("Already stopped!"); api.app_Stop (); this.userAppSettings = null; this.userApp = null; this.running = false; }
public void Start(AppSettings userAppSettings, IApp userApp) { if (running) throw new Exception ("Already running!"); this.userAppSettings = userAppSettings; this.userApp = userApp; // apply settings input.UpdateSettings (userAppSettings.MouseGeneratesTouches); // start the app api.app_Start (Update, Render); this.running = true; }