namespace Msp {
namespace GL {
-Animation::Animation():
- armature(0),
- looping(false)
-{ }
-
Animation::~Animation()
{
for(TimedKeyFrame &k: keyframes)
}
-Animation::Loader::Loader(Animation &a):
- DataFile::CollectionObjectLoader<Animation>(a, 0)
-{
- init();
-}
-
-Animation::Loader::Loader(Animation &a, Collection &c):
- DataFile::CollectionObjectLoader<Animation>(a, &c)
+Animation::Loader::Loader(Animation &a, Collection *c):
+ DataFile::CollectionObjectLoader<Animation>(a, c),
+ start_slope(1),
+ end_slope(1),
+ slopes_set(0)
{
- init();
-}
-
-void Animation::Loader::init()
-{
- start_slope = 1;
- end_slope = 1;
- slopes_set = 0;
add("armature", &Animation::armature);
add("control_keyframe", &Loader::control_keyframe);
add("control_keyframe", &Loader::control_keyframe_inline);