Esempio n. 1
0
 public void Clear()
 {
     foreach (TSurface surface in layers.Values)
     {
         GraphicsContext.Clear(surface, Color.Transparent);
     }
 }
Esempio n. 2
0
        void window_RenderFrame(object sender, FrameEventArgs e)
        {
            Matrix4 projectionMatrix = Matrix4.CreateOrthographicOffCenter(0, this.Width, this.Height, 0, -1, 10);

            this.GraphicsContext.Viewport = new Rect(0, 0, this.Width, this.Height);
            this.GraphicsContext.Scissor  = this.GraphicsContext.Viewport;
            GraphicsContext.Clear(Color.MidnightBlue, ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);

            this.guiRenderer.Draw(this.panel, ref projectionMatrix);

            this.Draw(this.Time);

            this.window.SwapBuffers();
        }
 public void Clear(Color4 color, ClearBufferMask mask)
 {
     forwarding.Clear(color, mask);
     CheckGLError();
     GLCALLS++;
 }
Esempio n. 4
0
 public void Clear(Color color) => GraphicsContext.Clear(Surface, color);