6 #ifndef COGS_SCALE_PRESERVING_TRANSFORM_SERIALIZER_H 7 #define COGS_SCALE_PRESERVING_TRANSFORM_SERIALIZER_H 9 #include <Utils/Serializer.h> 10 #include <Utils/Serializables.h> 13 #include <COGS/ScalePreservingTransform.h> 19 class COGS_API ScalePreservingTransformSerializable
22 ScalePreservingTransformSerializable() =
default;
23 ScalePreservingTransformSerializable(
const ScalePreservingTransform &);
25 ScalePreservingTransform To()
const;
27 friend class cereal::access;
30 utils::GlmVec3Serializable translation;
31 utils::GlmQuatSerializable rotation;
34 template <
class Archive>
35 void serialize(Archive &ar);
42 :
public utils::Serializer<cogs::ScalePreservingTransform, cogs::ScalePreservingTransformSerializable>
46 : Serializer(
"transformation")
52 template <
class Archive>
53 void cogs::ScalePreservingTransformSerializable::serialize(Archive &ar)
56 CEREAL_NVP(translation),
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures...
Definition: AabbHierarchy.h:8