Files Classes Functions Hierarchy
00001 #ifndef TEXTOVERLAY_H 00002 #define TEXTOVERLAY_H 00003 00004 #include <string> 00005 using namespace std; 00006 00007 #include <GL/glut.h> 00008 #include <GL/gl.h> 00009 00010 #include <gobj.h> 00011 00012 /* 00013 \brief Text as a 2D projection. 00014 00015 \par Use 00016 Derive from this class overloading draw. 00017 Call drawpre.draw() and drawpost.draw() before and 00018 after writing text. 00019 */ 00020 class textoverlay : public gobj 00021 { 00022 public: 00023 00025 double left; 00027 double right; 00029 double bottom; 00031 double top; 00032 00035 textoverlay 00036 ( 00037 doublec left_, 00038 doublec right_, 00039 doublec bottom_, 00040 doublec top_ 00041 ); 00042 00044 textoverlay(); 00045 00047 void init(); 00048 00049 00051 virtual void draw() = 0; 00052 00055 gobjContainerdeque drawpre; 00058 gobjContainerdeque drawpost; 00059 00061 void printstring(void *font, string const & s) const; 00062 00065 void lightingdisable(); 00066 }; 00067 00068 #endif 00069
1.5.8