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); }
public static void ClearDepthAndColor() { GLCore.Clear(ColorDepthMask); }