Base: Allow constexpr Color

This changes Base::Color class so it can be used as constexpr, useful
for defining various defaults.
This commit is contained in:
Kacper Donat
2025-08-10 22:53:53 +02:00
parent a5a59ff2e3
commit 203e2e5f1c
2 changed files with 6 additions and 8 deletions

View File

@@ -34,13 +34,6 @@ using namespace Base;
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
Color::Color(float red, float green, float blue, float alpha)
: r(red)
, g(green)
, b(blue)
, a(alpha)
{}
Color::Color(uint32_t rgba)
: Color {}
{