Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

HudChat.h

Go to the documentation of this file.
00001 #ifndef _HUDCHAT_H_
00002 #define _HUDCHAT_H_
00003 
00004 #include <vector>
00005 #include <string>
00006 using namespace std;
00007 
00008 #include "HudBase.h"
00009 
00014 class HudChat : public HudBase
00015 {
00016  public:
00017   HudChat();
00018   virtual ~HudChat();
00019 
00023   virtual void draw();
00027   void addMessage(string message);
00033   void addChat(unsigned char c);
00037   void clearChat();
00042   void popChat();
00046   string getChat();
00051   void finishChat();
00052 
00053  protected:
00054   // for message box
00055   vector < GLfloat * > _coordinatesVec;
00056   vector < int > _widthVec;
00057   vector < int> _heightVec;
00058   int _messageTopPosition;
00059   int _messageLeftPosition;
00060   
00061   // for interactive chat we use the variables
00062   //  in HudBase  
00063   string _chatLine;
00064   GLuint _chatTexture[1];
00065   bool _hasChat;
00066 };
00067 
00068 #endif

Generated on Wed Apr 21 11:10:53 2004 for naturecalls by doxygen1.2.18