Core: Make Color constexpr

This commit is contained in:
SirLynix
2022-12-29 12:13:00 +01:00
parent 3d88746060
commit 9a553e5e9d
38 changed files with 227 additions and 222 deletions

View File

@@ -236,10 +236,10 @@ SCENARIO("Serialization", "[CORE][SERIALIZATION]")
THEN("Color")
{
context.stream->SetCursorPos(0);
Nz::Color red = Nz::Color::Red;
Nz::Color red = Nz::Color::Red();
Nz::Color copy(red);
REQUIRE(Serialize(context, red));
red = Nz::Color::Black;
red = Nz::Color::Black();
REQUIRE(red != copy);
context.stream->SetCursorPos(0);
REQUIRE(Unserialize(context, &red));