00001 /*************************************************************************** 00002 *cr 00003 *cr (C) Copyright 1995-2019 The Board of Trustees of the 00004 *cr University of Illinois 00005 *cr All Rights Reserved 00006 *cr 00007 ***************************************************************************/ 00008 #ifndef FPS_H 00009 #define FPS_H 00010 00011 #include "Displayable.h" 00012 class DisplayDevice; 00013 00015 class FPS : public Displayable { 00016 private: 00017 DisplayDevice *disp; 00018 double last_update; 00019 int loop_count; 00020 int colorCat; 00021 int usecolor; 00022 00023 public: 00025 FPS(DisplayDevice *, Displayable *); 00026 virtual void prepare(); 00027 00028 protected: 00029 virtual void do_color_changed(int); 00030 00031 }; 00032 00033 #endif 00034