X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectinstance.cpp;h=666d90056774d4fc963fd7d38248f5e19f61f9f7;hb=927a1aa0a3a27e463ec0efc08bd08e7c4e969909;hp=78042bd1a8182de436d6963bf4d7e4dc512381b9;hpb=a361efc05fcad11b2918f3cd7abdebe794b131d8;p=libs%2Fgl.git diff --git a/source/objectinstance.cpp b/source/objectinstance.cpp index 78042bd1..666d9005 100644 --- a/source/objectinstance.cpp +++ b/source/objectinstance.cpp @@ -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