for(vector<Step>::const_iterator i=steps.begin(); i!=steps.end(); ++i)
if(Renderable *renderable = i->get_renderable())
renderable->setup_frame(renderer);
- for(vector<Slot>::const_iterator i=renderables.begin(); i!=renderables.end(); ++i)
- i->renderable->setup_frame(renderer);
}
void Sequence::finish_frame()
for(vector<Step>::const_iterator i=steps.begin(); i!=steps.end(); ++i)
if(Renderable *renderable = i->get_renderable())
renderable->finish_frame();
- for(vector<Slot>::const_iterator i=renderables.begin(); i!=renderables.end(); ++i)
- i->renderable->finish_frame();
}
void Sequence::render(Renderer &renderer, Tag tag) const
if(const Renderable *renderable = i->get_renderable())
renderer.render(*renderable, i->get_tag());
-
- for(vector<Slot>::const_iterator j=renderables.begin(); j!=renderables.end(); ++j)
- if(j->passes.empty() || j->passes.count(i->get_tag()))
- renderer.render(*j->renderable, i->get_tag());
}
if(target[0])
clipping =c;
}
-
-Sequence::Slot::Slot(Renderable *r):
- renderable(r)
-{ }
-
} // namespace GL
} // namespace Msp
DEPRECATED typedef Step Pass;
private:
- struct Slot
- {
- Renderable *renderable;
- std::set<Tag> passes;
-
- Slot(Renderable *);
- };
-
std::vector<Step> steps;
const Camera *camera;
- std::vector<Slot> renderables;
std::vector<RefPtr<PostProcessor> > postproc;
unsigned width;
unsigned height;