+void Object::Loader::texture(const string &n)
+{
+ if(obj.main_texture)
+ throw Exception("Only one main texture may be specified");
+
+ obj.main_texture=coll.get<Texture>(n);
+ obj.textures.push_back(obj.main_texture);
+ textures.push_back("texture");
+}
+