Changeset 6438 in orxonox.OLD for trunk/src/util/hud.h
- Timestamp:
- Jan 8, 2006, 1:51:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.h
r6437 r6438 7 7 #define _HUD_H 8 8 9 #include " element_2d.h"9 #include "glgui_widget.h" 10 10 #include <list> 11 11 12 12 // FORWARD DECLARATION 13 #include "glgui_widget.h" 14 13 class TiXmlElement; 15 14 16 15 17 16 //! A class that renders a HUD. 18 class Hud : private GLGuiWidget { 17 class Hud : private GLGuiWidget 18 { 19 19 20 20 public: 21 21 Hud(); 22 22 virtual ~Hud(); 23 24 void loadParams(const TiXmlElement* root); 23 25 24 26 void setBackGround(); … … 30 32 void removeWeaponWidget(GLGuiWidget* widget); 31 33 34 void setResolution(unsigned int resX, unsigned int resY); 32 35 33 34 35 36 private: 37 unsigned int resX; //!< The X-Resolution needed for resizing the Hud. 38 unsigned int resY; //!< The Y-Resolution needed for resizing the Hud. 36 39 37 38 39 40 GLGuiWidget* energyWidget; 41 GLGuiWidget* shieldWidget; 42 GLGuiWidget* armorWidget; 40 43 41 44 std::list<GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another 42 45 }; 43 46
Note: See TracChangeset
for help on using the changeset viewer.