#define SG_CANVAS_SYSTEM_ADAPTER_HXX_
#include "canvas_fwd.hxx"
-#include <simgear/nasal/naref.h>
+#include <simgear/nasal/nasal.h>
namespace simgear
{
virtual void removeCamera(osg::Camera* camera) const = 0;
virtual osg::Image* getImage(const std::string& path) const = 0;
+ virtual naContext getNasalContext() const = 0;
+
/**
* Save passed reference to Nasal object from being deleted by the
* garbage collector.
* cleaned up by the garbage collector.
*/
virtual void gcRelease(int key) = 0;
+
+ /**
+ * Call a Nasal function with the given environment and arguments.
+ */
+ virtual naRef callMethod( naRef code,
+ naRef self,
+ int argc,
+ naRef* args,
+ naRef locals ) = 0;
};
} // namespace canvas