sculpto
Classes | Namespaces | Typedefs | Functions
scene_serializer.h File Reference

Scene serializer (also could perform deserialization) class definition module. More...

#include <json.h>
#include "scene.h"
#include "scene_object.h"
#include "core/components/components.h"

Go to the source code of this file.

Classes

class  scl::scene_serializer
 

Namespaces

namespace  scl
 
namespace  scl::math
 

Typedefs

using scl::json = nlohmann::json
 

Functions

template<typename T >
void scl::math::to_json (json &Json, const vec2< T > &Vector)
 
template<typename T >
void scl::math::to_json (json &Json, const vec3< T > &Vector)
 
template<typename T >
void scl::math::to_json (json &Json, const vec4< T > &Vector)
 
template<typename T >
void scl::math::to_json (json &Json, const matr3< T > &Matrix)
 
template<typename T >
void scl::math::to_json (json &Json, const matr4< T > &Matrix)
 
template<typename T >
void scl::math::from_json (const json &Json, vec2< T > &Vector)
 
template<typename T >
void scl::math::from_json (const json &Json, vec3< T > &Vector)
 
template<typename T >
void scl::math::from_json (const json &Json, vec4< T > &Vector)
 
template<typename T >
void scl::math::from_json (const json &Json, matr3< T > &Matrix)
 
template<typename T >
void scl::math::from_json (const json &Json, matr4< T > &Matrix)
 
void scl::to_json (json &Json, const name_component &NameComponent)
 
void scl::to_json (json &Json, const transform_component &TransformComponent)
 
void scl::to_json (json &Json, const camera_component &CameraComponent)
 
void scl::to_json (json &Json, const point_light_component &PointLightComponent)
 
void scl::to_json (json &Json, const directional_light_component &DirectionalLightComponent)
 
void scl::to_json (json &Json, const spot_light_component &SpotLightComponent)
 
bool scl::from_json (const json &Json, name_component &NameComponent)
 
bool scl::from_json (const json &Json, transform_component &TransformComponent)
 
bool scl::from_json (const json &Json, camera_component &CameraComponent)
 
bool scl::from_json (const json &Json, point_light_component &PointLightComponent)
 
bool scl::from_json (const json &Json, directional_light_component &DirectionalLightComponent)
 
bool scl::from_json (const json &Json, spot_light_component &SpotLightComponent)
 

Detailed Description

Scene serializer (also could perform deserialization) class definition module.

Author
Sabitov Kirill
Date
17 July 2022

Definition in file scene_serializer.h.