Beispiel #1
0
        public void Clear(Vector4?Color = null, int ColorAttachment = 0, float?Depth = null, int?Stencil = null)
        {
            if (Color != null)
            {
                Gl.ClearNamedFramebuffer(ID, OpenGL.Buffer.Color, ColorAttachment, new float[] { Color.Value.X, Color.Value.Y, Color.Value.Z, Color.Value.W });
            }

            if (Depth != null)
            {
                Gl.ClearNamedFramebuffer(ID, OpenGL.Buffer.Depth, 0, new float[] { Depth.Value });
            }

            if (Stencil != null)
            {
                Gl.ClearNamedFramebuffer(ID, OpenGL.Buffer.Stencil, 0, new int[] { Stencil.Value });
            }
        }