#ifndef WIN32 #include #include #else #include #include #include #endif #include #include #include "osg/Notify" #include "osg/OSG" #include "osg/Node" #include "osg/Geode" #include "osg/Group" #include "osg/Input" #include "osg/Output" #include "osg/Registry" using namespace osg; #ifdef WIN32 char *PathDelimitor = ";"; static const char *s_default_file_path = ".;D:/OpenSceneGraph/Data;D:/OpenSceneGraph/Data/Images;D:/OpenSceneGraph/lib"; //static char *s_filePath = (char *)s_default_file_path; static char *s_filePath = ".;"; #else char *PathDelimitor = ":"; static const char *s_default_file_path = ".:"; #ifdef __sgi static const char *s_default_dso_path = "/usr/lib32/osgPlugins/"; #else static const char *s_default_dso_path = "/usr/lib/osgPlugins/"; #endif static char *s_filePath = ".:"; //static char *s_filePath = s_default_file_path; #endif #include #include using std::vector; using std::find_if; void osg::Init( void ) { char *ptr; if( (ptr = getenv( "OSGFILEPATH" )) ) { notify(DEBUG) << "osg::Init("<