Preliminary support for wrapping methods in the lua script plugin.

This commit is contained in:
Robert Osfield
2013-12-25 17:36:32 +00:00
parent 865a47bd6b
commit afab78ed40
12 changed files with 466 additions and 39 deletions

View File

@@ -21,6 +21,9 @@
namespace osg
{
typedef std::vector< osg::ref_ptr<osg::Object> > Parameters;
// forward declare
class ScriptEngine;
@@ -93,8 +96,6 @@ class ScriptEngine : public osg::Object
/** get the scripting language supported by the ScriptEngine.*/
inline const std::string& getLanguage() const { return _language; }
typedef std::vector< osg::ref_ptr<osg::Object> > Parameters;
/** run a Script.*/
bool run(osg::Script* script)
{

View File

@@ -95,7 +95,8 @@ class ValueObject : public Object
virtual bool get(GetValueVisitor& /*gvv*/) const { return false; }
virtual bool set(SetValueVisitor& /*gvv*/) { return false; }
protected:
protected:
virtual ~ValueObject() {}
};
@@ -207,6 +208,7 @@ void osg::Object::setUserValue(const std::string& name, const T& value)
else udc->addUserObject(new UserValueObject(name,value));
}
}
#endif