Changeset 7062 in orxonox.OLD for trunk/src/util
- Timestamp:
- Feb 6, 2006, 9:55:04 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r6756 r7062 74 74 { 75 75 this->energyWidget->show(); 76 this->energyWidget->backMaterial().setDiffuseMap("hud_energy_background.png"); 77 this->energyWidget->backMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 78 this->energyWidget->frontMaterial().setDiffuseMap("hud_energy_bar.png"); 79 this->energyWidget->frontMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 76 80 } 77 81 … … 146 150 if (this->energyWidget != NULL) 147 151 { 148 this->energyWidget->setAbsCoor2D( .02 * this->resX, .4* this->resY);149 this->energyWidget->setSize2D(. 05 * this->resX, .55* this->resY);152 this->energyWidget->setAbsCoor2D(0 * this->resX, 0 * this->resY); 153 this->energyWidget->setSize2D(.3 * this->resX, 1 * this->resY); 150 154 } 151 155 … … 171 175 void Hud::draw() const 172 176 { 173 GLGuiWidget::draw();177 // GLGuiWidget::draw(); 174 178 } 175 179 -
trunk/src/util/hud.h
r6512 r7062 41 41 private: 42 42 void updateResolution(); 43 43 44 private: 44 45 unsigned int resX;
Note: See TracChangeset
for help on using the changeset viewer.