public override void Clear()
        {
            Color color = window.BackgroundColor;

            if (color.A == 0)
            {
                return;
            }
            GLCore.ClearColor(color.RedValue, color.GreenValue, color.BlueValue, color.AlphaValue);
            GLCore.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);
        }
Exemple #2
0
 public static void ClearDepthAndColor()
 {
     GLCore.Clear(ColorDepthMask);
 }