![]() |
Dandelion 1.1.2
A light-weight 3D builder for educational usage
|
实现场景保存、读取时,所有场景相关对象的 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 序列化和反序列化函数。