Skip to content
Permalink
Browse files

GLOBE_OSG_STANDALONE_VIEWER

  • Loading branch information
pka committed Nov 7, 2010
1 parent 5642093 commit bf3880ba21a6c7099cd8238f99c0a942d8d6cb8d
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/plugins/globe/globe_plugin.cpp
@@ -108,6 +108,10 @@ void GlobePlugin::run()

viewer.show();

#ifdef GLOBE_OSG_STANDALONE_VIEWER
osgViewer::Viewer viewer;
#endif

// install the programmable manipulator.
osgEarthUtil::EarthManipulator* manip = new osgEarthUtil::EarthManipulator();
viewer.setCameraManipulator( manip );
@@ -177,6 +181,10 @@ void GlobePlugin::run()
viewer.addEventHandler(new osgViewer::StatsHandler());
viewer.addEventHandler(new osgViewer::WindowSizeHandler());
viewer.addEventHandler(new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()));

#ifdef GLOBE_OSG_STANDALONE_VIEWER
viewer.run();
#endif
}

void GlobePlugin::extentsChanged()

0 comments on commit bf3880b

Please sign in to comment.
You can’t perform that action at this time.