]> git.tdb.fi Git - libs/gl.git/blobdiff - source/objectinstance.cpp
Add a Tag class to identify passes
[libs/gl.git] / source / objectinstance.cpp
index 80f44cd48ea35e45528d1f0b4f7b54c6dc0c3a6b..7552cc937f54f30b6ffb9c654f8db8bb3d9e525d 100644 (file)
@@ -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