- if(obj.technique && !obj.main_texture)
- obj.main_texture=obj.technique->get_main_texture();
- for(unsigned i=0; i<obj.textures.size(); ++i)
- {
- if(!obj.textures[i])
- {
- obj.textures[i]=obj.technique->get_texture(i);
- if(!obj.textures[i])
- throw Exception("Object does not specify all textures required by Technique");
- }
- }
+ allow_pointer_reload = false;
+
+ add("mesh", static_cast<void (Loader::*)()>(&Loader::mesh));
+ add("mesh", static_cast<void (Loader::*)(unsigned)>(&Loader::mesh));
+ add("mesh", static_cast<void (Loader::*)(const std::string &)>(&Loader::mesh));
+ add("mesh", static_cast<void (Loader::*)(unsigned, const std::string &)>(&Loader::mesh));
+ // Deprecated alias, will be removed
+ add("lod_mesh", static_cast<void (Loader::*)(unsigned, const std::string &)>(&Loader::mesh));
+ add("technique", static_cast<void (Loader::*)()>(&Loader::technique));
+ add("technique", static_cast<void (Loader::*)(const std::string &)>(&Loader::technique));