From Jeremy Moles, import of the osgWidget NodeKit, sourced from the original http://osgwidget.googlecode.com/svn/trunk
Notes from Robert Osfield, I've merged osgWidget trunk, and added/changed CMakeLists.txt file to make it suitable for inclusion in the core OSG, and moved imagery/scripts/shaders out into OpenSceneGraph-Data
This commit is contained in:
28
include/osgWidget/Python
Normal file
28
include/osgWidget/Python
Normal file
@@ -0,0 +1,28 @@
|
||||
// -*-c++-*- osgWidget - Code by: Jeremy Moles (cubicool) 2007-2008
|
||||
// $Id: Python 2 2008-01-24 16:11:26Z cubicool $
|
||||
|
||||
#ifndef OSGWIDGET_PYTHON
|
||||
#define OSGWIDGET_PYTHON
|
||||
|
||||
#include <osgWidget/WindowManager>
|
||||
|
||||
namespace osgWidget {
|
||||
|
||||
struct PythonEngineData;
|
||||
|
||||
class OSGWIDGET_EXPORT PythonEngine: public ScriptEngine {
|
||||
PythonEngineData* _data;
|
||||
WindowManager* _wm;
|
||||
|
||||
public:
|
||||
PythonEngine(WindowManager* = 0);
|
||||
|
||||
bool initialize ();
|
||||
bool close ();
|
||||
bool eval (const std::string&);
|
||||
bool runFile (const std::string&);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user