Changeset 8448 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jun 15, 2006, 12:48:26 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r8145 r8448 21 21 22 22 #include "world_entities/weapons/weapon_manager.h" 23 24 using namespace std; 25 23 #include "glgui_widget.h" 26 24 27 25 /** … … 76 74 this->energyWidget->backMaterial().setDiffuseMap("hud_energy_background.png"); 77 75 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 /* this->energyWidget->frontMaterial().setDiffuseMap("hud_energy_bar.png"); 77 this->energyWidget->frontMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);*/ 80 78 } 81 79 … … 132 130 weapon->getEnergyWidget()->backMaterial().setDiffuse( .8,.2,.11); 133 131 weapon->getEnergyWidget()->backMaterial().setTransparency(.1); 134 weapon->getEnergyWidget()-> frontMaterial().setDiffuse( .2,.5,.7);135 weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);132 weapon->getEnergyWidget()->setFrontColor(Color( .2,.5,.7,.6)); 133 // weapon->getEnergyWidget()->frontMaterial().setTransparency(.6); 136 134 this->weaponsWidgets.push_back(weapon->getEnergyWidget()); 137 135 } -
trunk/src/util/hud.h
r8145 r8448 7 7 #define _HUD_H 8 8 9 #include "glgui_widget.h" 10 #include <list> 11 9 #include "element_2d.h" 12 10 // FORWARD DECLARATION 13 11 class TiXmlElement; 14 12 class WeaponManager; 13 namespace OrxGui { class GLGuiWidget; } 15 14 16 15 //! A class that renders a HUD.
Note: See TracChangeset
for help on using the changeset viewer.