]> git.tdb.fi Git - libs/gl.git/blobdiff - source/instancescene.cpp
Route rendering calls through Renderer and add an exclusion system
[libs/gl.git] / source / instancescene.cpp
index fb99dda881f83ca8630a4cfcba36e42b3ca5a51a..6ddfa0d2c5a2dd44cf2e33e6980b98466a15caa5 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007-2008, 2010-2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "object.h"
 #include "objectinstance.h"
 #include "instancescene.h"
@@ -33,7 +26,7 @@ void InstanceScene::render(Renderer &renderer, const Tag &tag) const
 {
        for(InstanceMap::const_iterator i=renderables.begin(); i!=renderables.end(); ++i)
                for(RenderableSet::const_iterator j=i->second.begin(); j!=i->second.end(); ++j)
-                       (*j)->render(renderer, tag);
+                       renderer.render(**j, tag);
 }
 
 } // namespace GL