Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
GlmSerialize.h
Go to the documentation of this file.
1#pragma once
2
3#include <glm/glm.hpp>
4#include "JsonArchive.h"
5
6namespace EngineCore {
8 public:
9 static void Serialize(nlohmann::json& archive, const glm::vec3& vector);
10 static void Serialize(nlohmann::json& archive, glm::mat4 matrix);
11 static void Serialize(nlohmann::json& archive, glm::quat quaternion);
12
13 static void deserialize(nlohmann::json& archive, glm::vec3& vector);
14 static void deserialize(nlohmann::json& archive, glm::mat4& matrix);
15 static void deserialize(nlohmann::json& archive, glm::quat& quaternion);
16
17 private:
18
20 public:
21 inline static std::string X = "X";
22 inline static std::string Y = "Y";
23 inline static std::string Z = "Z";
24 };
25
27 public:
28 inline static std::string X = "X";
29 inline static std::string Y = "Y";
30 inline static std::string Z = "Z";
31 inline static std::string W = "W";
32 };
33 };
34}
static void deserialize(nlohmann::json &archive, glm::vec3 &vector)
static void Serialize(nlohmann::json &archive, const glm::vec3 &vector)
Log category system implementation.