Commented out the Scene Stats entry as its not implemented yet.
This commit is contained in:
parent
db86ea2d3f
commit
5a8ec8f470
@ -77,8 +77,7 @@ class OSGVIEWER_EXPORT StatsHandler : public osgGA::GUIEventHandler
|
||||
NO_STATS = 0,
|
||||
FRAME_RATE = 1,
|
||||
VIEWER_STATS = 2,
|
||||
SCENE_STATS = 3,
|
||||
LAST = 4
|
||||
LAST = 3
|
||||
};
|
||||
|
||||
void setKeyEventTogglesOnScreenStats(int key) { _keyEventTogglesOnScreenStats = key; }
|
||||
|
@ -111,12 +111,14 @@ bool StatsHandler::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdap
|
||||
_switch->setValue(_viewerChildNum, true);
|
||||
break;
|
||||
}
|
||||
#if 0
|
||||
case(SCENE_STATS):
|
||||
{
|
||||
_switch->setValue(_sceneChildNum, true);
|
||||
_camera->setNodeMask(0xffffffff);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -672,7 +674,7 @@ void StatsHandler::setUpScene(osgViewer::Viewer* viewer)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#if 0
|
||||
// scene stats
|
||||
{
|
||||
pos.x() = leftPos;
|
||||
@ -694,6 +696,7 @@ void StatsHandler::setUpScene(osgViewer::Viewer* viewer)
|
||||
_sceneChildNum = _switch->getNumChildren();
|
||||
_switch->addChild(geode, false);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
osg::Node* StatsHandler::createCameraStats(const std::string& font, osg::Vec3& pos, float startBlocks, bool aquireGPUStats, float characterSize, osg::Stats* viewerStats, osg::Camera* camera)
|
||||
|
@ -594,8 +594,6 @@ struct ViewerDoubleBufferedRenderingOperation : public osg::Operation, public Vi
|
||||
Viewer::Viewer()
|
||||
{
|
||||
constructorInit();
|
||||
|
||||
osg::notify(osg::NOTICE)<<"Here22"<<std::endl;
|
||||
}
|
||||
|
||||
Viewer::Viewer(osg::ArgumentParser& arguments)
|
||||
|
Loading…
Reference in New Issue
Block a user