-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update renderer clear info to use
PremultipliedColour
- Loading branch information
1 parent
21f500d
commit 5c9e39d
Showing
5 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osuTK.Graphics; | ||
using osu.Framework.Graphics.Colour; | ||
|
||
namespace osu.Framework.Graphics.Rendering | ||
{ | ||
|
@@ -18,7 +18,7 @@ public readonly struct ClearInfo | |
/// <summary> | ||
/// The colour to write to the frame buffer. | ||
/// </summary> | ||
public readonly Color4 Colour; | ||
public readonly PremultipliedColour Colour; | ||
|
||
/// <summary> | ||
/// The depth to write to the frame buffer. | ||
|
@@ -30,7 +30,7 @@ public readonly struct ClearInfo | |
/// </summary> | ||
public readonly int Stencil; | ||
|
||
public ClearInfo(Color4 colour = default, double depth = 1f, int stencil = 0) | ||
public ClearInfo(PremultipliedColour colour = default, double depth = 1f, int stencil = 0) | ||
{ | ||
Colour = colour; | ||
Depth = depth; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters