for(ShaderMap::iterator sitr = shaderMap.begin(); sitr != shaderMap.end(); ++sitr)
{
Shader *shader = sitr->second.get();
- string fileName = osgDB::findDataFile(sitr->first.first);
+ string fileName = SGModelLib::findDataFile(sitr->first.first);
if (!fileName.empty()) {
shader->loadShaderSourceFromFile(fileName);
}
{
const string& shaderName = shaderKey.first;
Shader::Type stype = shaderKey.second;
- string fileName = osgDB::findDataFile(shaderName, options);
+ string fileName = SGModelLib::findDataFile(shaderName, options);
if (fileName.empty())
throw BuilderException(string("couldn't find shader ") +
shaderName);
}
SGPath tpath("Textures.high");
tpath.append(tname);
- string fullTexPath = osgDB::findDataFile(tpath.str(), options);
+ string fullTexPath = SGModelLib::findDataFile(tpath.str(), options);
if (fullTexPath.empty()) {
tpath = SGPath("Textures");
tpath.append(tname);
- fullTexPath = osgDB::findDataFile(tpath.str(), options);
+ fullTexPath = SGModelLib::findDataFile(tpath.str(), options);
}
if (!fullTexPath.empty() ) {
}
SGPath tpath("Textures.high");
tpath.append(tname);
- string fullTexPath = osgDB::findDataFile(tpath.str(), options);
+ string fullTexPath = SGModelLib::findDataFile(tpath.str(), options);
if (fullTexPath.empty()) {
tpath = SGPath("Textures");
tpath.append(tname);
- fullTexPath = osgDB::findDataFile(tpath.str(), options);
+ fullTexPath = SGModelLib::findDataFile(tpath.str(), options);
}
st.add_texture(fullTexPath, textures[j]->getIndex());
}
const SGPropertyNode* treeTexNode = props->getChild("tree-texture");
if (treeTexNode) {
string treeTexPath = props->getStringValue("tree-texture");
- tree_texture = osgDB::findDataFile(treeTexPath, options);
+ tree_texture = SGModelLib::findDataFile(treeTexPath, options);
}
// surface values for use with ground reactions