public:
FadeOverlay(Msp::DataFile::Collection &);
- void set_content(Msp::GL::Renderable *);
void set_color(const Msp::GL::Color &);
virtual void render(Msp::GL::Renderer &, const Msp::GL::Texture2D &, const Msp::GL::Texture2D &);
if(sb<0 || sb>eb)
throw invalid_argument("Sequencer::add_action");
- Segment seq_act;
- seq_act.action = &act;
- seq_act.start_beat = sb;
- seq_act.end_beat = eb;
+ Segment seg;
+ seg.action = &act;
+ seg.start_beat = sb;
+ seg.end_beat = eb;
auto i = find_if(segments, [=](const Segment &s){ return s.start_beat>sb; });
- segments.insert(i, seq_act);
+ segments.insert(i, seg);
}
void Sequencer::start()
Stage::UseInView::Loader::Loader(UseInView &u, Demo &d):
DataFile::DerivedObjectLoader<UseInView, Action::Loader>(u, d)
{
- add("view", &Loader::view);
add("stage", &Loader::stage);
+ add("view", &Loader::view);
}
-void Stage::UseInView::Loader::view(const string &n)
+void Stage::UseInView::Loader::stage(const string &n)
{
- obj.view = &demo.get_thing<GL::View>(n);
+ obj.stage = &demo.get_thing<Stage>(n);
}
-void Stage::UseInView::Loader::stage(const string &n)
+void Stage::UseInView::Loader::view(const string &n)
{
- obj.stage = &demo.get_thing<Stage>(n);
+ obj.view = &demo.get_thing<GL::View>(n);
}
Loader(UseInView &, Demo &);
private:
- void view(const std::string &);
void stage(const std::string &);
+ void view(const std::string &);
};
private: