1 #ifndef OPENMW_COMPONENTS_RESOURCE_STATS_H
2 #define OPENMW_COMPONENTS_RESOURCE_STATS_H
4 #include <osgViewer/ViewerEventHandlers>
18 class Profiler :
public osgViewer::StatsHandler
32 bool handle(
const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa);
36 void toggle(osgViewer::ViewerBase* viewer);
39 void setUpScene(osgViewer::ViewerBase* viewer);
42 virtual void getUsage(osg::ApplicationUsage& usage)
const;
virtual void getUsage(osg::ApplicationUsage &usage) const
Definition: stats.cpp:319
bool _initialized
Definition: stats.hpp:48
float _characterSize
Definition: stats.hpp:55
void setKey(int key)
Definition: stats.hpp:29
int _key
Definition: stats.hpp:46
void setUpHUDCamera(osgViewer::ViewerBase *viewer)
Definition: stats.cpp:119
float _statsWidth
Definition: stats.hpp:51
void setWindowSize(int w, int h)
Definition: stats.cpp:77
Profiler()
Definition: stats.cpp:37
osg::ref_ptr< osg::Camera > _camera
Definition: stats.hpp:47
float _statsHeight
Definition: stats.hpp:52
osg::ref_ptr< osg::Switch > _switch
Definition: stats.hpp:45
StatsHandler()
Definition: stats.cpp:18
void setUpScene(osgViewer::ViewerBase *viewer)
Definition: stats.cpp:244
int _resourceStatsChildNum
Definition: stats.hpp:57
bool _statsType
Definition: stats.hpp:49
int getKey() const
Definition: stats.hpp:30
void toggle(osgViewer::ViewerBase *viewer)
Definition: stats.cpp:93
std::string _font
Definition: stats.hpp:54
bool handle(const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa)
Definition: stats.cpp:44