X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fobject.cpp;h=b66d2fd117a5b7e0a4bf7465baa76aa1dfacf19a;hb=188d9377dd077d495ce99b7751fecefbe2d6491a;hp=86857a9842f10d7523cc1361527df29a07f0941f;hpb=c254bc3ed8df9c4113c975bdd119f127d8360f86;p=libs%2Fgl.git diff --git a/source/object.cpp b/source/object.cpp index 86857a98..b66d2fd1 100644 --- a/source/object.cpp +++ b/source/object.cpp @@ -43,6 +43,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;