create_curves();
}
+void Animation::add_keyframe_owned(const Time::TimeDelta &t, const KeyFrame *kf)
+{
+ add_keyframe(t, kf, false, true);
+ create_curves();
+}
+
void Animation::add_keyframe(const Time::TimeDelta &t, const KeyFrame &kf, float slope)
{
add_keyframe(t, &kf, slope, slope, false);
add_keyframe(keyframes.back().time, &kf, true, false);
}
+void Animation::add_control_keyframe_owned(const KeyFrame *kf)
+{
+ if(keyframes.empty())
+ throw invalid_operation("Animation::add_control_keyframe_owned");
+
+ add_keyframe(keyframes.back().time, kf, true, true);
+}
+
void Animation::add_keyframe(const Time::TimeDelta &t, const KeyFrame *kf, float ss, float es, bool owned)
{
if(keyframes.empty())
const std::string &get_uniform_name(unsigned) const;
void add_keyframe(const Time::TimeDelta &, const KeyFrame &);
+ void add_keyframe_owned(const Time::TimeDelta &, const KeyFrame *);
DEPRECATED void add_keyframe(const Time::TimeDelta &, const KeyFrame &, float);
DEPRECATED void add_keyframe(const Time::TimeDelta &, const KeyFrame &, float, float);
void add_control_keyframe(const KeyFrame &);
+ void add_control_keyframe_owned(const KeyFrame *);
private:
void add_keyframe(const Time::TimeDelta &, const KeyFrame *, float, float, bool);
void add_keyframe(const Time::TimeDelta &, const KeyFrame *, bool, bool);