]> git.tdb.fi Git - libs/gl.git/blobdiff - source/objectinstance.cpp
Inherit Loaders from the ObjectLoader classes
[libs/gl.git] / source / objectinstance.cpp
index 78042bd1a8182de436d6963bf4d7e4dc512381b9..666d90056774d4fc963fd7d38248f5e19f61f9f7 100644 (file)
@@ -9,6 +9,8 @@ Distributed under the LGPL
 #include "objectinstance.h"
 #include "programdata.h"
 
+using namespace std;
+
 namespace Msp {
 namespace GL {
 
@@ -16,14 +18,9 @@ ObjectInstance::ObjectInstance(const Object &obj):
        object(obj)
 { }
 
-void ObjectInstance::render() const
-{
-       object.render(this);
-}
-
-void ObjectInstance::render(const std::string &pn) const
+void ObjectInstance::render(const Tag &tag) const
 {
-       object.render(pn, this);
+       object.render(*this, tag);
 }
 
 } // namespace GL