Beispiel #1
0
        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);
        }
Beispiel #2
0
        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 ();
            }
        }
Beispiel #3
0
        public void Stop()
        {
            if (!running) throw new Exception ("Already stopped!");

            api.app_Stop ();

            this.userAppSettings = null;
            this.userApp = null;
            this.running = false;
        }
Beispiel #4
0
        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;
        }