Exemple #1
0
        public void Clear(OpenTK.Graphics.OpenGL.ClearBufferMask mask)
        {
            var g = GetCurrentGraphics();

            if ((mask & ClearBufferMask.ColorBufferBit) != 0)
            {
                g.Clear(_currentClearColor);
            }
        }
Exemple #2
0
        public void Clear(OpenTK.Graphics.OpenGL.ClearBufferMask mask)
        {
            ClearFlags flags = ClearFlags.None;

            if ((mask & gl.ClearBufferMask.ColorBufferBit) != 0)
            {
                flags |= ClearFlags.Target;
            }
            if ((mask & gl.ClearBufferMask.DepthBufferBit) != 0)
            {
                flags |= ClearFlags.ZBuffer;
            }
            if ((mask & gl.ClearBufferMask.StencilBufferBit) != 0)
            {
                flags |= ClearFlags.Stencil;
            }
            Dev.Clear(flags, _clearColor, 0.0f, 0);
        }
 public void Clear(OpenTK.Graphics.OpenGL.ClearBufferMask mask)
 {
 }