]> git.tdb.fi Git - libs/gl.git/blob - source/objectinstance.cpp
Use DevIL for loading images
[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 namespace Msp {
13 namespace GL {
14
15 ObjectInstance::ObjectInstance(const Object &obj):
16         object(obj)
17 { }
18
19 void ObjectInstance::render() const
20 {
21         object.render(this);
22 }
23
24 void ObjectInstance::render(const std::string &pn) const
25 {
26         object.render(pn, this);
27 }
28
29 } // namespace GL
30 } // namespaec Msp