Ejemplo n.º 1
0
        //		private void Resize (object sender, VideoResizeEventArgs e)
        //		{
        //			Video.SetVideoMode(e.Width, e.Height, true);
        //			if (screen.Width != e.Width || screen.Height != e.Height)
        //			{
        //				//this.Init();
        //				this.RedBook t = new RedBook(); t.Reshape();
        //			}
        //		}

        #endregion Event Handlers

        #region Run Loop
        /// <summary>
        /// Starts demo
        /// </summary>
        public static void Run()
        {
            RedBookSurfaceOld t = new RedBookSurfaceOld();

            t.Reshape();
            Init();
            Events.Run();
        }
Ejemplo n.º 2
0
		//		private void Resize (object sender, VideoResizeEventArgs e)
		//		{
		//			Video.SetVideoMode(e.Width, e.Height, true);
		//			if (screen.Width != e.Width || screen.Height != e.Height)
		//			{
		//				//this.Init();
		//				this.RedBook t = new RedBook(); t.Reshape();
		//			}
		//		}

		#endregion Event Handlers

		#region Run Loop
		/// <summary>
		/// Starts demo
		/// </summary>
		public static void Run()
		{
            RedBookSurfaceOld t = new RedBookSurfaceOld(); 
            t.Reshape();
			Init();
			Events.Run();
		}