VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
SerializationUtils.hpp File Reference

Allows for imgui and json serialization of components, for easy loading, saving and drawing them. More...

#include <nlohmann/json.hpp>
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>

Go to the source code of this file.

Functions

void glm::to_json (nlohmann::json &j, const glm::vec2 &v)
void glm::from_json (const nlohmann::json &j, glm::vec2 &v)
void glm::to_json (nlohmann::json &j, const vec3 &v)
void glm::from_json (const nlohmann::json &j, vec3 &v)
void glm::to_json (nlohmann::json &j, const vec4 &v)
void glm::from_json (const nlohmann::json &j, vec4 &v)
void glm::to_json (nlohmann::json &j, const quat &q)
void glm::from_json (const nlohmann::json &j, quat &q)

Detailed Description

Allows for imgui and json serialization of components, for easy loading, saving and drawing them.

Author
Eryk Roszkowski

Definition in file SerializationUtils.hpp.

Function Documentation

◆ from_json() [1/4]

void glm::from_json ( const nlohmann::json & j,
glm::vec2 & v )
inline

Definition at line 16 of file SerializationUtils.hpp.

◆ from_json() [2/4]

void glm::from_json ( const nlohmann::json & j,
quat & q )
inline

Definition at line 51 of file SerializationUtils.hpp.

◆ from_json() [3/4]

void glm::from_json ( const nlohmann::json & j,
vec3 & v )
inline

Definition at line 28 of file SerializationUtils.hpp.

◆ from_json() [4/4]

void glm::from_json ( const nlohmann::json & j,
vec4 & v )
inline

Definition at line 40 of file SerializationUtils.hpp.

◆ to_json() [1/4]

void glm::to_json ( nlohmann::json & j,
const glm::vec2 & v )
inline

Definition at line 13 of file SerializationUtils.hpp.

◆ to_json() [2/4]

void glm::to_json ( nlohmann::json & j,
const quat & q )
inline

Definition at line 47 of file SerializationUtils.hpp.

◆ to_json() [3/4]

void glm::to_json ( nlohmann::json & j,
const vec3 & v )
inline

Definition at line 23 of file SerializationUtils.hpp.

◆ to_json() [4/4]

void glm::to_json ( nlohmann::json & j,
const vec4 & v )
inline

Definition at line 35 of file SerializationUtils.hpp.