示例#1
0
        public void Clear(Color color)
        {
            UpdateDrawingSessionWithFlags(0);

            CurrentRenderTarget.Clear(color);

            _matrixSaves.Clear();
            _flagSaves.Clear();
            _clipSaves.Clear();
        }
示例#2
0
        public void Clear(Color color)
        {
            UpdateDrawingSessionWithFlags(0);

            CurrentRenderTarget.Clear(new RawColor4(color.R, color.G, color.B, color.A));
            ;

            _matrixSaves.Clear();
            _flagSaves.Clear();
            _clipSaves.Clear();
        }
示例#3
0
        private void PaintBody()
        {
            if (!Visible)
            {
                return;
            }
            if (externalTarget == null)
            {
                if (this.BackColor != Color.Transparent)
                {
                    CurrentRenderTarget.Clear(this.BackColor.ToArgb());
                }
            }

            OnDraw();
            if (externalTarget == null)
            {
                CurrentRenderTarget.flush();
            }
        }
示例#4
0
 public static void Clear(SystemColor color)
 {
     CurrentRenderTarget.Clear(color.ToSFMLColor());
 }