Added ability to replace callback objects via lua scripts to allow one to override callbacks.

Added fallback for osgGA::Widget::Extents.
This commit is contained in:
Robert Osfield
2014-03-07 11:09:25 +00:00
parent 9319350176
commit 9b299dc4b9
4 changed files with 43 additions and 23 deletions

View File

@@ -105,6 +105,7 @@ class LuaScriptEngine : public osg::ScriptEngine
int pushPropertyToStack(osg::Object* object, const std::string& propertyName) const;
int setPropertyFromStack(osg::Object* object, const std::string& propertyName) const;
int setPropertyFromStack(osg::Object* object, const std::string& propertyName, osgDB::BaseSerializer::Type type) const;
bool loadScript(osg::Script* script);