public void glClear(Color cor) { if (BackBuffer != null) { BackBuffer.Fill(cor.ToArgb()); } DepthBuffer.Fill(float.PositiveInfinity); }
public void Clear(Color clearColor, bool clearDepthBuffer) { int width = Viewport.Width; int height = Viewport.Height; if (BackBuffer != null) { BackBuffer.Fill(clearColor.ToArgb()); } if (clearDepthBuffer && DepthBuffer != null) { DepthBuffer.Fill(float.MaxValue); } }