|
|
|
@ -25,7 +25,7 @@ StatsHandler::StatsHandler():
|
|
|
|
|
_statsWidth(1280.0f),
|
|
|
|
|
_statsHeight(1024.0f),
|
|
|
|
|
_font(""),
|
|
|
|
|
_characterSize(20.0f)
|
|
|
|
|
_characterSize(18.0f)
|
|
|
|
|
{
|
|
|
|
|
_camera = new osg::Camera;
|
|
|
|
|
_camera->getOrCreateStateSet()->setGlobalDefaults();
|
|
|
|
@ -45,6 +45,8 @@ Profiler::Profiler()
|
|
|
|
|
else
|
|
|
|
|
_font = "";
|
|
|
|
|
|
|
|
|
|
_characterSize = 18;
|
|
|
|
|
|
|
|
|
|
setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|