Пример #1
0
 /// <summary>
 /// Set PPAA anti-aliasing mode if MSAA is not enabled
 /// </summary>
 private void FixAntiAliasingMode(ref View.AntialiasingMode mode)
 {
     if (mode == View.AntialiasingMode.MSAA &&
         this.graphicsDevice.PresentationParameters.MultiSampleCount <= 1)
     {
         // MSAA is not enabled - use PPAA in that case
         mode = View.AntialiasingMode.PPAA;
     }
 }
        /// <summary>
        /// Initializes all default values of this instance.
        /// </summary>
        protected override void DefaultValues()
        {
            base.DefaultValues();

            this.definedKeys = Enum.GetValues(typeof(Keys));

            this.Width  = 256;
            this.Height = 256;

            this.EnableMouse         = true;
            this.EnableKeyboard      = false;
            this.EnableTouch         = false;
            this.enablePostProcess   = false;
            this.antiAliasingMode    = View.AntialiasingMode.MSAA;
            this.tessellationQuality = View.TessellationQuality.Medium;
            this.backgroundColor     = Common.Graphics.Color.Black;
            this.clearFlags          = ClearFlags.All;
            this.flipY    = false;
            this.disposed = false;

            this.Family = FamilyType.PriorityBehavior;
        }