Add osg stats and other usefull stuff.
Modified Files: utils/fgviewer/fgviewer.cxx
This commit is contained in:
parent
8a6bad9c59
commit
b180ce7be5
1 changed files with 9 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
#include <osg/ArgumentParser>
|
#include <osg/ArgumentParser>
|
||||||
#include <osgDB/ReadFile>
|
#include <osgDB/ReadFile>
|
||||||
#include <osgViewer/Viewer>
|
#include <osgViewer/Viewer>
|
||||||
|
#include <osgViewer/ViewerEventHandlers>
|
||||||
|
|
||||||
#include <simgear/props/props.hxx>
|
#include <simgear/props/props.hxx>
|
||||||
#include <simgear/misc/sg_path.hxx>
|
#include <simgear/misc/sg_path.hxx>
|
||||||
|
@ -47,6 +48,14 @@ main(int argc, char** argv)
|
||||||
// ... for some reason, get rid of that FIXME!
|
// ... for some reason, get rid of that FIXME!
|
||||||
viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded);
|
viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded);
|
||||||
|
|
||||||
|
// Usefull stats
|
||||||
|
viewer.addEventHandler(new osgViewer::HelpHandler);
|
||||||
|
viewer.addEventHandler(new osgViewer::StatsHandler);
|
||||||
|
// Same FIXME ...
|
||||||
|
// viewer.addEventHandler(new osgViewer::ThreadingHandler);
|
||||||
|
viewer.addEventHandler(new osgViewer::LODScaleHandler);
|
||||||
|
viewer.addEventHandler(new osgViewer::ScreenCaptureHandler);
|
||||||
|
|
||||||
const char *fg_root_env = std::getenv("FG_ROOT");
|
const char *fg_root_env = std::getenv("FG_ROOT");
|
||||||
std::string fg_root;
|
std::string fg_root;
|
||||||
if (fg_root_env)
|
if (fg_root_env)
|
||||||
|
|
Loading…
Reference in a new issue