10 void Scene::add_culler(Culler &c)
12 cullers.push_back(&c);
15 void Scene::remove_culler(Culler &c)
17 list<Culler *>::iterator i = find(cullers.begin(), cullers.end(), &c);
22 void Scene::render(const Tag &tag) const
25 render(renderer, tag);
28 void Scene::setup_cullers(const Renderer &renderer) const
30 for(list<Culler *>::const_iterator i=cullers.begin(); i!=cullers.end(); ++i)
31 (*i)->setup_pass(renderer);
34 bool Scene::cull(const Renderer &renderer, const Renderable &renderable) const
36 for(list<Culler *>::const_iterator i=cullers.begin(); i!=cullers.end(); ++i)
37 if((*i)->cull(renderer, renderable))