From Ulrich Hertlein, spelling corrections and a few Doxgen comments.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <string>
|
||||
|
||||
#include <osg/Geode>
|
||||
#include <osg/Group>
|
||||
@@ -223,6 +224,18 @@ void ReaderWriterPFB::initPerformer()
|
||||
// }
|
||||
pfdInitConverter(".pfb");
|
||||
|
||||
/*
|
||||
* Tell Performer to look in OSG search path
|
||||
*/
|
||||
const osgDB::FilePathList& filePath = osgDB::Registry::instance()->getDataFilePathList();
|
||||
std::string path = "";
|
||||
for (unsigned int i = 0; i < filePath.size(); i++) {
|
||||
if (i != 0)
|
||||
path += ":";
|
||||
path += filePath[i];
|
||||
}
|
||||
pfFilePath(path.c_str());
|
||||
|
||||
pfConfig();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user