17 #ifndef AGXOSG_LUASCRIPT_H
18 #define AGXOSG_LUASCRIPT_H
25 #include <osgDB/ReadFile>
43 class ExampleApplication;
49 bool executeScriptImpl(const std::
string& filenameOrScript,
50 const std::
string& function,
51 agxSDK::Simulation *simulation,
52 agxOSG::ExampleApplication* application,
55 std::
string& errorMessage);
74 const std::
string& function,
75 agxSDK::Simulation *simulation,
76 agxOSG::ExampleApplication* application,
94 const std::
string& function,
95 agxSDK::Simulation *simulation,
96 agxOSG::ExampleApplication* application,
98 std::
string& errorMessage);
AGXOSG_EXPORT bool executeScriptString(const std::string &script, const std::string &function, agxSDK::Simulation *simulation, agxOSG::ExampleApplication *application, osg::Group *root, std::string &errorMessage)
Execute a named function in a lua script.
AGXOSG_EXPORT std::string readScriptError()
Checks if there were any error messages when a lua script was executed.
AGXOSG_EXPORT void resetScriptError()
Resets the script error to the empty string.
AGXCORE_EXPORT Component * root()
#define DOXYGEN_END_INTERNAL_BLOCK()
AGXOSG_EXPORT bool executeScript(const std::string &filename, const std::string &function, agxSDK::Simulation *simulation, agxOSG::ExampleApplication *application, osg::Group *root)
Execute a named function in a lua script file.
#define DOXYGEN_START_INTERNAL_BLOCK()