Unravel Engine C++ Reference
Loading...
Searching...
No Matches
animation.hpp
Go to the documentation of this file.
1#pragma once
2#include <engine/engine_export.h>
3
5
9
10namespace unravel
11{
15
19
22
23
24template<typename Archive, typename T>
26{
27 try_serialize(ar, ser20::make_nvp("time", obj.time));
28 try_serialize(ar, ser20::make_nvp("value", obj.value));
29}
30
31void save_to_file(const std::string& absolute_path, const animation_clip& obj);
32void save_to_file_bin(const std::string& absolute_path, const animation_clip& obj);
33void load_from_file(const std::string& absolute_path, animation_clip& obj);
34void load_from_file_bin(const std::string& absolute_path, animation_clip& obj);
35
36} // namespace unravel
void save_to_file_bin(const std::string &absolute_path, const animation_clip &obj)
void load_from_file(const std::string &absolute_path, animation_clip &obj)
void save_to_file(const std::string &absolute_path, const animation_clip &obj)
void load_from_file_bin(const std::string &absolute_path, animation_clip &obj)
#define REFLECT_EXTERN(cls)
Definition reflection.h:120
auto try_serialize(Archive &ar, ser20::NameValuePair< T > &&t, const hpp::source_location &loc=hpp::source_location::current()) -> bool
#define SERIALIZE_EXTERN(cls)
#define LOAD_EXTERN(cls)
#define SAVE_EXTERN(cls)
#define SERIALIZE_FUNCTION_NAME
Struct representing a keyframe for animation.
Definition animation.h:29
seconds_t time
The time of the keyframe.
Definition animation.h:33
T value
The value of the keyframe.
Definition animation.h:36
Struct representing a node animation.
Definition animation.h:19
Struct representing an animation.
Definition animation.h:99