// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osuTK.Graphics; namespace osu.Framework.Graphics.OpenGL { /// /// Information for how the current frame buffer should be cleared. /// public readonly struct ClearInfo { /// /// The default clear properties, as defined by OpenGL. /// public static ClearInfo Default => new ClearInfo(default); /// /// The colour to write to the frame buffer. /// public readonly Color4 Colour; /// /// The depth to write to the frame buffer. /// public readonly double Depth; /// /// The stencil value to write to the frame buffer. /// public readonly int Stencil; public ClearInfo(Color4 colour = default, double depth = 1f, int stencil = 0) { Colour = colour; Depth = depth; Stencil = stencil; } } }