X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectinstance.cpp;h=7552cc937f54f30b6ffb9c654f8db8bb3d9e525d;hb=c6aea1bc1586ffef132e6fffdf99343cb56617db;hp=80f44cd48ea35e45528d1f0b4f7b54c6dc0c3a6b;hpb=85e83ace47e5a9a8ae7263886255dd81afc69278;p=libs%2Fgl.git diff --git a/source/objectinstance.cpp b/source/objectinstance.cpp index 80f44cd4..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,9 +18,14 @@ ObjectInstance::ObjectInstance(const Object &obj): object(obj) { } -void ObjectInstance::render() const +bool ObjectInstance::has_pass(const Tag &tag) const +{ + return object.has_pass(tag); +} + +void ObjectInstance::render(const Tag &tag) const { - object.render(this); + object.render(*this, tag); } } // namespace GL