Ejemplo n.º 1
0
		public Player(RectangleF bounds)
		{
			// clear title
			Title = "";
			
			// construct flash stage
			mStage = new flash.display.Stage ((int)bounds.Width, (int)bounds.Height);
		}
Ejemplo n.º 2
0
        public Player(RectangleF bounds)
        {
            // clear title
            Title = "";

            // construct flash stage
            mStage = new flash.display.Stage((int)bounds.Width, (int)bounds.Height);
        }
Ejemplo n.º 3
0
		public Player(RectangleF bounds)
		{
			AddResourceDirectory("");
			#if PLATFORM_MONOMAC || PLATFORM_MONOTOUCH 
			AddResourceDirectory(NSBundle.MainBundle.ResourcePath);
			#endif

			Title = "";
			
			// construct flash stage
			mStage = new flash.display.Stage ((int)bounds.Width, (int)bounds.Height);
		}
Ejemplo n.º 4
0
        public Player(RectangleF bounds)
        {
            AddResourceDirectory("");
                        #if PLATFORM_MONOMAC || PLATFORM_MONOTOUCH
            AddResourceDirectory(NSBundle.MainBundle.ResourcePath);
                        #endif

            Title = "";

            // construct flash stage
            mStage = new flash.display.Stage((int)bounds.Width, (int)bounds.Height);
        }
Ejemplo n.º 5
0
 public void display(Stage stage, float stageX, float stageY)
 {
     return;
 }
Ejemplo n.º 6
0
        protected override void OnRenderFrame(FrameEventArgs e)
        {
            base.OnRenderFrame (e);

            MakeCurrent ();

            if (mStage == null) {
                // construct flash stage
                mStage = new flash.display.Stage ((int)this.Frame.Width, (int)this.Frame.Height);
            }

            if (mTutorial == null) {
                // construct tutorial
                flash.display.DisplayObject.globalStage = mStage;
                //mTutorial = new Tutorial1 ();
                flash.display.DisplayObject.globalStage = null;
            }

            if (mStarling == null) {
                // construct starling  instance
                //starling.core.Starling.multitouchEnabled = true;
                //mStarling = new starling.core.Starling (typeof(MyStarlingTest), mStage);
                //mStarling.start();
            }

            if (mDemoMobile == null) {
                // construct starling demo
                flash.display.DisplayObject.globalStage = mStage;
                mDemoMobile = new _root.Demo_Mobile();
                flash.display.DisplayObject.globalStage = null;
            }

            // Do a clear to check to see if we're working.. (remark out if everything is fine).
            // GL.ClearColor (0.5f, 0.5f, 0.5f, 1.0f);
            // GL.Clear (ClearBufferMask.ColorBufferBit);

            if (mStage != null) {
                mStage.onEnterFrame ();
            }

            // update all timer objects
            flash.utils.Timer.advanceAllTimers();

            SwapBuffers ();
        }