00001 /* 00002 File: FrameCounter.h 00003 00004 Copyright(C) C. Kotterink, Computed Graphics 00005 */ 00006 #ifndef FRAMECOUNTER_H 00007 #define FRAMECOUNTER_H 00008 00009 #include<Region.h> 00010 00016 class FrameCounter : public Region 00017 { 00018 DYNAMIC_OBJECT; 00019 public: 00021 FrameCounter(); 00022 00024 void refresh(); 00025 00026 protected: 00028 int time; 00030 int frame; 00032 float fps; 00033 00034 private: 00035 typedef Region super; 00036 }; 00037 #endif