Core: Make Color constexpr
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
||||
// This file is part of the "Nazara Engine - Core module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Core/Color.hpp>
|
||||
#include <Nazara/Core/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
const Color Color::Black(0.f, 0.f, 0.f);
|
||||
const Color Color::Blue(0.f, 0.f, 1.f);
|
||||
const Color Color::Cyan(0.f, 1.f, 1.f);
|
||||
const Color Color::Gray(80.f / 255.f, 80.f / 255.f, 80.f / 255.f);
|
||||
const Color Color::Green(0.f, 1.f, 0.f);
|
||||
const Color Color::Magenta(1.f, 0.f, 1.f);
|
||||
const Color Color::Orange(1.f, 165.f / 255.f, 0.f);
|
||||
const Color Color::Red(1.f, 0.f, 0.f);
|
||||
const Color Color::Yellow(1.f, 1.f, 0.f);
|
||||
const Color Color::White(1.f, 1.f, 1.f);
|
||||
}
|
||||
Reference in New Issue
Block a user