Unified Vec/Plane/Quat handling code.
This commit is contained in:
@@ -45,37 +45,54 @@ 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;
|
||||
|
||||
protected:
|
||||
|
||||
void initialize();
|
||||
|
||||
virtual ~LuaScriptEngine();
|
||||
|
||||
bool loadScript(osg::Script* script);
|
||||
|
||||
bool isType(int pos, osgDB::BaseSerializer::Type type) const;
|
||||
osgDB::BaseSerializer::Type getType(int pos) const;
|
||||
osgDB::BaseSerializer::Type getType() const;
|
||||
|
||||
bool getfields(const char* f1, const char* f2, int type) const;
|
||||
bool getfields(const char* f1, const char* f2, const char* f3, int type) const;
|
||||
bool getfields(const char* f1, const char* f2, const char* f3, const char* f4, int type) const;
|
||||
bool getelements(int numElements, int type) const;
|
||||
|
||||
bool getvec2() const;
|
||||
bool getvec3() const;
|
||||
bool getvec4() const;
|
||||
bool getmatrix() const;
|
||||
|
||||
bool getValue(osg::Vec2f& value) const;
|
||||
bool getValue(osg::Vec3f& value) const;
|
||||
bool getValue(osg::Vec4f& value) const;
|
||||
bool getValue(osg::Matrixf& value) const;
|
||||
|
||||
bool getValue(osg::Vec2d& value) const;
|
||||
bool getValue(osg::Vec3d& value) const;
|
||||
bool getValue(osg::Vec4d& value) const;
|
||||
bool getValue(osg::Quat& value) const;
|
||||
bool getValue(osg::Plane& value) const;
|
||||
bool getValue(osg::Matrixd& value) const;
|
||||
|
||||
void pushValue(const osg::Vec2f& value) const;
|
||||
void pushValue(const osg::Vec3f& value) const;
|
||||
void pushValue(const osg::Vec4f& value) const;
|
||||
void pushValue(const osg::Matrixf& value) const;
|
||||
|
||||
void pushValue(const osg::Vec2d& value) const;
|
||||
void pushValue(const osg::Vec3d& value) const;
|
||||
void pushValue(const osg::Vec4d& value) const;
|
||||
void pushValue(const osg::Quat& value) const;
|
||||
void pushValue(const osg::Plane& value) const;
|
||||
void pushValue(const osg::Matrixd& value) const;
|
||||
|
||||
bool pushParameter(osg::Object* object);
|
||||
bool popParameter(osg::Object* object);
|
||||
|
||||
protected:
|
||||
|
||||
void initialize();
|
||||
|
||||
virtual ~LuaScriptEngine();
|
||||
|
||||
|
||||
lua_State* _lua;
|
||||
|
||||
typedef std::set< osg::ref_ptr<osg::Script> > ScriptSet;
|
||||
|
||||
Reference in New Issue
Block a user