00001 #ifndef TEXT_H_ 00002 #define TEXT_H_ 00003 #include <list> 00004 #include <string> 00005 #include <cstdlib> 00006 #include <GL/glut.h> 00007 #include "Textures.h" 00008 using std::list; 00009 using std::string; 00010 00014 class Text { 00015 private: 00019 int x; 00020 00024 int y; 00025 00029 string text; 00030 00034 float scale; 00035 00039 bool enabled; 00040 00044 static list<Text*> texts; 00045 00046 public: 00050 Text(int x, int y, string text, float scale = 1.0); 00051 00055 Text(string text, float scale = 1.0); 00056 00060 void setCoords(int x, int y); 00061 00065 void setEnabled(bool enabled); 00066 00070 void setText(string text); 00071 00075 static void drawAll(); 00076 00080 void draw(); 00081 00085 virtual ~Text(); 00086 }; 00087 00088 #endif /*TEXT_H_*/