blob: 863eb711b02459fe681f7260abaf89fb1e25e0a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include <Magnum/Math/Math.h>
#include <nlohmann/json_fwd.hpp>
template<>
struct nlohmann::adl_serializer<Magnum::Color3> {
static void to_json(json& j, const Magnum::Color3& val);
static void from_json(const json& j, Magnum::Color3& val);
};
template<>
struct nlohmann::adl_serializer<Magnum::Color4> {
static void to_json(json& j, const Magnum::Color4& val);
static void from_json(const json& j, Magnum::Color4& val);
};
template<>
struct nlohmann::adl_serializer<Magnum::Color3ub> {
static void to_json(json& j, const Magnum::Color3ub& val);
static void from_json(const json& j, Magnum::Color3ub& val);
};
template<>
struct nlohmann::adl_serializer<Magnum::Color4ub> {
static void to_json(json& j, const Magnum::Color4ub& val);
static void from_json(const json& j, Magnum::Color4ub& val);
};
|