X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fobjectinstance.cpp;h=10dae3926c05374d07df95e9cd58d7184eb23853;hp=78042bd1a8182de436d6963bf4d7e4dc512381b9;hb=4324df6e3d807d35e02e828320e436c509275520;hpb=01525e40e4bc32b885196dd85ff68e876678d19d diff --git a/source/objectinstance.cpp b/source/objectinstance.cpp index 78042bd1..10dae392 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,19 @@ ObjectInstance::ObjectInstance(const Object &obj): object(obj) { } +bool ObjectInstance::has_pass(const string &pn) const +{ + return object.has_pass(pn); +} + void ObjectInstance::render() const { - object.render(this); + object.render(*this); } -void ObjectInstance::render(const std::string &pn) const +void ObjectInstance::render(const string &pn) const { - object.render(pn, this); + object.render(pn, *this); } } // namespace GL