#include "action.h"
-InterpolationAction::InterpolationAction(bool h):
- hermite(h),
+namespace Msp {
+namespace DemoScene {
+
+InterpolationAction::InterpolationAction(Mode m):
+ mode(m),
start_beat(0),
duration(0)
{ }
{
float t = (b-start_beat)/duration;
float dt = d/duration;
- if(hermite)
+ if(mode==HERMITE)
{
dt = t-dt;
t = (3-2*t)*t*t;
{
interpolate(1.0f, 0.0f);
}
+
+
+Action::Loader::Loader(Action &a, Demo &d):
+ DataFile::ObjectLoader<Action>(a),
+ demo(d)
+{ }
+
+} // namespace DemoScene
+} // namespace Msp