Added support for writing the file path of a script to the lua package.path to help with loading scripts within lua.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14451 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-09-17 17:40:07 +00:00
parent acbad2424e
commit 68c4eaaff1
3 changed files with 70 additions and 6 deletions

View File

@@ -239,6 +239,10 @@ class LuaScriptEngine : public osg::ScriptEngine
std::string lookUpGLenumString(GLenum value) const;
GLenum lookUpGLenumValue(const std::string& str) const;
void addPaths(const osgDB::FilePathList& paths);
void addPaths(const osgDB::Options* options);
protected:
void initialize();