Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

gui.h

Go to the documentation of this file.
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   /* NOTE: These text rendering functions currently don't do new lines.  */
00030   /* TODO: Add colored text.  */
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   /* for FPS calclulations */
00043   Timer fps_timer;
00044   int fps_count, cur_fps;
00045   double fps_clock;
00046 };
00047 
00048 #endif

Generated on Fri Jan 12 14:15:02 2007 for Construct by  doxygen 1.4.3-20050530