A game framework written with osu! in mind.
at master 40 lines 1.2 kB view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using osuTK.Graphics; 5 6namespace osu.Framework.Graphics.OpenGL 7{ 8 /// <summary> 9 /// Information for how the current frame buffer should be cleared. 10 /// </summary> 11 public readonly struct ClearInfo 12 { 13 /// <summary> 14 /// The default clear properties, as defined by OpenGL. 15 /// </summary> 16 public static ClearInfo Default => new ClearInfo(default); 17 18 /// <summary> 19 /// The colour to write to the frame buffer. 20 /// </summary> 21 public readonly Color4 Colour; 22 23 /// <summary> 24 /// The depth to write to the frame buffer. 25 /// </summary> 26 public readonly double Depth; 27 28 /// <summary> 29 /// The stencil value to write to the frame buffer. 30 /// </summary> 31 public readonly int Stencil; 32 33 public ClearInfo(Color4 colour = default, double depth = 1f, int stencil = 0) 34 { 35 Colour = colour; 36 Depth = depth; 37 Stencil = stencil; 38 } 39 } 40}