]> git.tdb.fi Git - libs/gl.git/blob - source/objectinstance.cpp
Drop Renderable::has_pass; renderables are now expected to ignore unknown passes
[libs/gl.git] / source / objectinstance.cpp
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "object.h"
9 #include "objectinstance.h"
10 #include "programdata.h"
11
12 using namespace std;
13
14 namespace Msp {
15 namespace GL {
16
17 ObjectInstance::ObjectInstance(const Object &obj):
18         object(obj)
19 { }
20
21 void ObjectInstance::render(const Tag &tag) const
22 {
23         object.render(*this, tag);
24 }
25
26 } // namespace GL
27 } // namespaec Msp