Skip to content

Commit

Permalink
GLOBE_OSG_STANDALONE_VIEWER
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Jul 5, 2011
1 parent 5642093 commit bf3880b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plugins/globe/globe_plugin.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit bf3880b

Please sign in to comment.