Changeset 8990 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jul 1, 2006, 6:09:30 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r8989 r8990 49 49 notifier->setAbsCoor2D(100,100); 50 50 51 this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE); 51 52 52 53 … … 192 193 } 193 194 194 195 void Hud::tick(float dt) 196 { 197 if (this->resY != State::getResY() || this->resX != State::getResX()) 198 { 195 void Hud::draw() const 196 { 197 // GLGuiWidget::draw(); 198 } 199 200 201 void Hud::process(const Event &event) 202 { 203 if (event.type == EV_VIDEO_RESIZE) 199 204 this->updateResolution(); 200 } 201 202 } 203 204 void Hud::draw() const 205 { 206 // GLGuiWidget::draw(); 207 } 208 209 205 } 206 207 -
trunk/src/util/hud.h
r8972 r8990 8 8 9 9 #include "element_2d.h" 10 #include "event_listener.h" 10 11 // FORWARD DECLARATION 11 12 class TiXmlElement; … … 20 21 21 22 //! A class that renders a HUD (Heads Up Display for User Information). 22 class Hud : public Element2D 23 class Hud : public Element2D, public EventListener 23 24 { 24 25 … … 44 45 void updateWeaponManager(); 45 46 46 void tick(float dt);47 47 void draw() const; 48 virtual void process(const Event &event); 49 48 50 49 51 private:
Note: See TracChangeset
for help on using the changeset viewer.