]> git.tdb.fi Git - libs/gl.git/blobdiff - source/objectinstance.cpp
Add class Renderable
[libs/gl.git] / source / objectinstance.cpp
index 78042bd1a8182de436d6963bf4d7e4dc512381b9..10dae3926c05374d07df95e9cd58d7184eb23853 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,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