Dandelion 1.1.2
A light-weight 3D builder for educational usage
载入中...
搜索中...
未找到
json_serialize.hpp 文件参考

实现场景保存、读取时,所有场景相关对象的 JSON 序列化和反序列化函数。 更多...

#include <nlohmann/json.hpp>
#include <spdlog/spdlog.h>
#include <Eigen/Core>
#include "../scene/object.h"
#include "../scene/camera.h"
#include "../scene/light.h"

浏览该文件的源代码.

函数

template<typename T, int Rows, int Cols>
void Eigen::to_json (json &j, const Matrix< T, Rows, Cols > &m)
template<typename T, int Rows, int Cols>
void Eigen::from_json (const json &j, Matrix< T, Rows, Cols > &m)
void to_json (json &j, const Object &o)
void from_json (const json &j, Object &o)
void to_json (json &j, const Camera &c)
void from_json (const json &j, Camera &c)
void to_json (json &j, const Light &l)
void from_json (const json &j, Light &l)

详细描述

实现场景保存、读取时,所有场景相关对象的 JSON 序列化和反序列化函数。