using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MonoGame.FourEngine
{
    public class ClearEventArgs
    {
        public Scene Scene { get; set; }
        public ClearOptions Options { get; set; }
        public Color Color { get; set; }
        public float Depth { get; set; }
        public int Stencil { get; set; }
        public bool IsCanceled { get; private set; }

        public ClearEventArgs(Scene scene)
        {
            Scene = scene;
            Options = ClearOptions.Target;
            Color = Color.Transparent;
            Depth = FourEngineGame.Current.GraphicsDevice.Viewport.MaxDepth;
            Stencil = 0;
        }
        
        public void Cancel()
            => IsCanceled = true;
    }
}