Пример #1
0
		public iOSGameViewController (iOSGamePlatform platform)
		{
			if (platform == null)
				throw new ArgumentNullException ("platform");
			_platform = platform;
			SupportedOrientations = DisplayOrientation.Default;
		}
Пример #2
0
 public iOSGameViewController(iOSGamePlatform platform)
 {
     if (platform == null)
         throw new ArgumentNullException("platform");
     _platform = platform;
     SupportedOrientations = 
         DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight 
         | DisplayOrientation.Portrait | DisplayOrientation.PortraitDown;
 }
 public iOSGameViewController(iOSGamePlatform platform)
 {
     if (platform == null)
     {
         throw new ArgumentNullException("platform");
     }
     _platform             = platform;
     SupportedOrientations = DisplayOrientation.Default;
 }
Пример #4
0
 public iOSGameView(iOSGamePlatform platform, RectangleF frame)
     : base(frame)
 {
     if (platform == null)
     {
         throw new ArgumentNullException("platform");
     }
     _platform = platform;
     Initialize();
 }
Пример #5
0
 public iOSGameViewController(iOSGamePlatform platform)
 {
     if (platform == null)
     {
         throw new ArgumentNullException("platform");
     }
     _platform             = platform;
     SupportedOrientations =
         DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight
         | DisplayOrientation.Portrait | DisplayOrientation.PortraitDown;
 }
Пример #6
0
        public iOSGameViewController(iOSGamePlatform platform)
        {
            if (platform == null)
            {
                throw new ArgumentNullException("platform");
            }
            _platform = platform;

            #region Modification 30-06-2014
            // Unsure if this is needed, but Ill leave it, rotation is TOTALY Nathansways problem, not MonoGames anymore.
            // MonoGame implements an XNA Enum for orientation called DislplayOrientation
            // We would prefer to use this
            // SupportedOrientations = ConvertMeToSupportedOrientations(this.iOSGlobals.G__6_SupportedOrientationMasks);
            // But it may not be a concern, as AspyCore handles orientation fine under AspyViewController base.
            SupportedOrientations = DisplayOrientation.Default;

            // Add Initialize() for AspySettings
            this.Initialize();

            #endregion
        }
Пример #7
0
		public iOSGameView (iOSGamePlatform platform, CGRect frame)
			: base(frame)
		{
			if (platform == null)
				throw new ArgumentNullException ("platform");
			_platform = platform;
			Initialize ();
		}
Пример #8
0
		protected override void Dispose (bool disposing)
        {
   
            base.Dispose (disposing);
            if (disposing) {

                if (__renderbuffergraphicsContext != null)
                {
                    DestroyFramebuffer();
                    DestroyContext ();
                }
			}
            _glapi=null;
            _platform=null;
			_isDisposed = true;
		}
Пример #9
0
		public iOSGameView (iOSGamePlatform platform, RectangleF frame)
			: base(frame)
		{
			if (platform == null)
				throw new ArgumentNullException ("platform");
			_platform = platform;
			Initialize ();
			SyncTouchRecognizers ();
		}
 protected override void Dispose (bool disposing)
 {
     _platform=null;
     base.Dispose (disposing);
 }