Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7062 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Feb 6, 2006, 9:55:04 PM (19 years ago)
Author:
bensch
Message:

hud

Location:
trunk/src/util
Files:
2 edited

Legend:

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

    r6756 r7062  
    7474  {
    7575    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);
    7680  }
    7781
     
    146150  if (this->energyWidget != NULL)
    147151  {
    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);
    150154  }
    151155
     
    171175void Hud::draw() const
    172176{
    173   GLGuiWidget::draw();
     177//  GLGuiWidget::draw();
    174178}
    175179
  • trunk/src/util/hud.h

    r6512 r7062  
    4141  private:
    4242    void updateResolution();
     43
    4344private:
    4445  unsigned int             resX;
Note: See TracChangeset for help on using the changeset viewer.