X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fobject.cpp;h=d573fdd4975695eddfd3d164eca0128d97936937;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hp=86857a9842f10d7523cc1361527df29a07f0941f;hpb=df1f68d366e145716225f1a4dd223b0129280fb2;p=libs%2Fgl.git diff --git a/source/object.cpp b/source/object.cpp index 86857a98..d573fdd4 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #include #include "except.h" @@ -43,6 +36,14 @@ void Object::set_mesh(unsigned i, const Mesh *m) meshes[i].keep(); } +const Mesh *Object::get_mesh(unsigned i) const +{ + if(i>=meshes.size()) + return 0; + + return meshes[i].get(); +} + void Object::set_technique(const Technique *t) { technique = t;