00001
00006 #ifndef GUI_H
00007 #define GUI_H
00008
00009 #include <string>
00010
00011 class Vector2D;
00012 #include "timer.h"
00013
00014 class GUI
00015 {
00016 public:
00018 GUI (void);
00019
00021 ~GUI (void);
00022
00024 void LoadMatrices (void) const;
00025
00027 void FPS (bool show_fps);
00028
00029
00030
00031
00033 void Display (const Vector2D &p, const std::string &s) const;
00034
00036 void Center (double y, const std::string &s) const;
00037
00039 void printf (const Vector2D &p, char *fmt, ...) const;
00040
00041 private:
00042
00043 Timer fps_timer;
00044 int fps_count, cur_fps;
00045 double fps_clock;
00046 };
00047
00048 #endif