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:
30
src/osgPlugins/osgWidget/WindowManager.cpp
Normal file
30
src/osgPlugins/osgWidget/WindowManager.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
// -*-c++-*- osgWidget - Code by: Jeremy Moles (cubicool) 2007-2008
|
||||
// $Id: WindowManager.cpp 50 2008-05-06 05:06:36Z cubicool $
|
||||
|
||||
#include <osgDB/Registry>
|
||||
#include <osgDB/Input>
|
||||
#include <osgDB/Output>
|
||||
#include <osgDB/FileUtils>
|
||||
#include <osgWidget/WindowManager>
|
||||
|
||||
bool osgWidget_WindowManager_readData(osg::Object& obj, osgDB::Input& fr) {
|
||||
osgWidget::warn() << "WindowManager read" << std::endl;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool osgWidget_WindowManager_writeData(const osg::Object& obj, osgDB::Output& fw) {
|
||||
const osgWidget::WindowManager& model = static_cast<const osgWidget::WindowManager&>(obj);
|
||||
|
||||
fw.indent() << fw.wrapString("WindowManager stuff...") << std::endl;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
osgDB::RegisterDotOsgWrapperProxy g_osgWidget_WindowManagerProxy(
|
||||
new osgWidget::WindowManager(),
|
||||
"osgWidget::WindowManager",
|
||||
"Object Node Group Switch osgWidget::WindowManager",
|
||||
&osgWidget_WindowManager_readData,
|
||||
&osgWidget_WindowManager_writeData
|
||||
);
|
||||
Reference in New Issue
Block a user