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

HudOptions.h

Go to the documentation of this file.
00001 #ifndef _HUDOPTIONS_H_
00002 #define _HUDOPTIONS_H_
00003 
00004 #include <string>
00005 #include <vector>
00006 using namespace std;
00007 
00008 #include "HudBase.h"
00009 
00014 class HudOptions : public HudBase
00015 {
00016  public:
00017   HudOptions();
00018   virtual ~HudOptions();
00019 
00023   virtual void draw();
00027   void setOptions(vector < string > options);
00032   int getSelection();
00033   void nextSelection();
00034   void previousSelection();
00035   void clearOptions();
00036   bool hasOptions() { if (_numberOfOptions > 0) return true; else return false; }
00037 
00038  protected:
00039   int _currentSelection; // holds the current place
00040   int _finalSelection; // holds the select after enter is pressed
00041 
00042   int _numberOfOptions;
00043   vector < GLfloat * > _coordinatesVec;
00044   vector < int > _widthVec;
00045   vector < int > _heightVec;
00046 };
00047 
00048 #endif

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