blob: ac6206d6d173857d1579b448f1cf4f0629161815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#pragma once
#include <nlohmann/json_fwd.hpp>
namespace nlohmann {
template<floormat::size_t N, typename T>
struct adl_serializer<Magnum::Math::Vector<N, T>>
{
static void to_json(json& j, Magnum::Math::Vector<N, T> val);
static void from_json(const json& j, Magnum::Math::Vector<N, T>& val);
};
template<typename T> struct adl_serializer<Magnum::Math::Vector2<T>> : adl_serializer<Magnum::Math::Vector<2, T>> {};
template<typename T> struct adl_serializer<Magnum::Math::Vector3<T>> : adl_serializer<Magnum::Math::Vector<3, T>> {};
template<typename T> struct adl_serializer<Magnum::Math::Vector4<T>> : adl_serializer<Magnum::Math::Vector<4, T>> {};
} // namespace nlohmann
|