Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6441 in orxonox.OLD for trunk/src/util/hud.h


Ignore:
Timestamp:
Jan 8, 2006, 4:02:30 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: the Hud now scales the Widgets itself

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.h

    r6438 r6441  
    1515
    1616//! A class that renders a HUD.
    17 class Hud : private GLGuiWidget
     17class Hud : public GLGuiWidget
    1818{
    1919
     
    2121  Hud();
    2222  virtual ~Hud();
     23
    2324
    2425  void loadParams(const TiXmlElement* root);
     
    3233  void removeWeaponWidget(GLGuiWidget* widget);
    3334
    34   void setResolution(unsigned int resX, unsigned int resY);
     35  void tick(float dt);
     36  void draw() const;
    3537
     38  private:
     39    void updateResolution();
    3640private:
    37   unsigned int             resX;          //!< The X-Resolution needed for resizing the Hud.
    38   unsigned int             resY;          //!< The Y-Resolution needed for resizing the Hud.
     41  unsigned int             resX;
     42  unsigned int             resY;
    3943
    4044  GLGuiWidget*             energyWidget;
Note: See TracChangeset for help on using the changeset viewer.