]> git.tdb.fi Git - libs/gl.git/blobdiff - source/object.cpp
Drop Id tags and copyright notices from files
[libs/gl.git] / source / object.cpp
index 86857a9842f10d7523cc1361527df29a07f0941f..d573fdd4975695eddfd3d164eca0128d97936937 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007-2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include <msp/datafile/collection.h>
 #include <msp/strings/formatter.h>
 #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;