Exemplo n.º 1
0
 public void glClear(Color cor)
 {
     if (BackBuffer != null)
     {
         BackBuffer.Fill(cor.ToArgb());
     }
     DepthBuffer.Fill(float.PositiveInfinity);
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 public void Clear(Color color, bool clearDepthBuffer)
 {
     BackBuffer.Fill((int)((uint)color.ToArgb() | (uint)0xFF000000));
 }