Ophidian
 All Classes Namespaces Functions
fps.h
1 #ifndef OPHIDIAN_GUI_FPS_H
2 #define OPHIDIAN_GUI_FPS_H
3 
4 #include <SFML/Graphics.hpp>
5 #include <boost/date_time/posix_time/posix_time.hpp>
6 
7 namespace ophidian {
8 namespace gui {
9 
10 class fps : public sf::Drawable
11 {
12  sf::Text m_text;
13  sf::Font m_opensans;
14  boost::posix_time::ptime m_last;
15  boost::posix_time::ptime m_current;
16 public:
17  fps();
18  void update();
19 
20  void draw(sf::RenderTarget& target, sf::RenderStates states) const;
21 };
22 
23 }
24 }
25 
26 #endif // OPHIDIAN_GUI_FPS_H]
Definition: fps.h:10