public:
FGStatsHandler()
{
-#if (SG_OSG_VERSION >= 30000)
// Adjust font type/size for >=OSG3.
// OSG defaults aren't working/available for FG.
_font = "Fonts/helvetica_medium.txf";
_characterSize = 12.0f;
-#endif
}
};
bool getResizable() { return resizable; }
void setResizable(bool _resizable) { resizable = _resizable; }
+ void reset();
protected:
osg::ref_ptr<osg::Node> _node;
fgIdleHandler idleHandler;
int release_keys[128];
void handleStats(osgGA::GUIActionAdapter& us);
bool changeStatsCameraRenderOrder;
+ SGPropertyNode_ptr _display, _print;
};
void eventToWindowCoords(const osgGA::GUIEventAdapter* ea, double& x, double& y);