1.一般步骤
ResourceGroupManager::addResourceLocation(dir, type, group);
...
ResourceGroupManager::intializeResourceGroup(group);
然后这个group就不能再加入资源的路径了
2.手动解析文件
http://egamesir.blog.163.com/blog/static/1880960882011739122546/
// 将新的资源搜索路径添加到resourcemanager中
std::string new_location = “c:/location/ogreres”;
Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
new_location.c_str(),
"FileSystem",
"Ogre",
true);
// 手动解析脚本(以material为例)