From Art Trevs, add support for saving external shader files.

From Robert Osfield, adding missing member variable initializes and Output::getShaderFileNameForOutput() implementation
This commit is contained in:
Robert Osfield
2008-03-04 14:04:48 +00:00
parent 02b52cb73a
commit c4d07194a2
22 changed files with 515 additions and 19 deletions

View File

@@ -87,9 +87,13 @@ osg::Object* Input::readObject(const std::string& fileName)
return readObjectFile(fileName,_options.get());
}
osg::Shader* Input::readShader()
{
return Registry::instance()->readShader(*this);
}
osg::Image* Input::readImage(const std::string& fileName)
{
return readImageFile(fileName,_options.get());
}
@@ -98,6 +102,11 @@ osg::Node* Input::readNode(const std::string& fileName)
return readNodeFile(fileName,_options.get());
}
osg::Shader* Input::readShader(const std::string& fileName)
{
return readShaderFile(fileName,_options.get());
}
bool Input::read(Parameter value1)
{
if (value1.valid((*this)[0].getStr()))