Preliminary support for wrapping methods in the lua script plugin.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user