OpenSceneGraph/include/osgWidget/Lua

47 lines
1.3 KiB
Plaintext
Raw Normal View History

/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield
2008-07-26 04:04:41 +08:00
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
2008-07-26 04:04:41 +08:00
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
2008-07-26 04:04:41 +08:00
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2008-07-26 04:04:41 +08:00
* OpenSceneGraph Public License for more details.
*/
// Code by: Jeremy Moles (cubicool) 2007-2008
#ifndef OSGWIDGET_LUA
#define OSGWIDGET_LUA
#include <osgWidget/WindowManager>
namespace osgWidget {
// Externally defined; does this work in Windows?
struct LuaEngineData;
2018-04-21 00:18:22 +08:00
// The actual Engine itself. Every attempt is made to export the implementation into the
// source file, rather than having it here.
class OSGWIDGET_EXPORT LuaEngine: public ScriptEngine
{
public:
LuaEngine(WindowManager* = 0);
bool initialize ();
bool close ();
bool eval (const std::string&);
bool runFile (const std::string&);
protected:
LuaEngineData* _data;
WindowManager* _wm;
};
}
#endif