X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectinstance.cpp;h=7552cc937f54f30b6ffb9c654f8db8bb3d9e525d;hb=b8b06a0ff96763ba7e188d9fcacbd8c0e3dcd515;hp=78042bd1a8182de436d6963bf4d7e4dc512381b9;hpb=a361efc05fcad11b2918f3cd7abdebe794b131d8;p=libs%2Fgl.git diff --git a/source/objectinstance.cpp b/source/objectinstance.cpp index 78042bd1..7552cc93 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,14 @@ ObjectInstance::ObjectInstance(const Object &obj): object(obj) { } -void ObjectInstance::render() const +bool ObjectInstance::has_pass(const Tag &tag) const { - object.render(this); + return object.has_pass(tag); } -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