Changeset 6310 for code/branches/presentation2/src/orxonox/overlays
- Timestamp:
- Dec 9, 2009, 10:58:26 PM (15 years ago)
- Location:
- code/branches/presentation2/src/orxonox/overlays
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/overlays/OrxonoxOverlay.cc
r6218 r6310 39 39 #include <OgrePanelOverlayElement.h> 40 40 #include <OgreRenderWindow.h> 41 #include <OgreMaterialManager.h> 42 #include <OgreTechnique.h> 43 #include <OgrePass.h> 41 44 42 45 #include "util/Convert.h" … … 370 373 } 371 374 } 375 376 void OrxonoxOverlay::setBackgroundAlpha(float alpha) { 377 Ogre::MaterialPtr ptr = this->background_->getMaterial(); 378 Ogre::TextureUnitState* tempTx = ptr->getTechnique(0)->getPass(0)->getTextureUnitState(0); 379 tempTx->setAlphaOperation(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_CURRENT, alpha); 380 } 372 381 } -
code/branches/presentation2/src/orxonox/overlays/OrxonoxOverlay.h
r6108 r6310 158 158 const std::string& getBackgroundMaterial() const; 159 159 160 void setBackgroundAlpha(float alpha); 161 160 162 virtual void changedVisibility(); 161 163 … … 205 207 BaseObject* owner_; 206 208 OverlayGroup* group_; 209 Ogre::Pass* backgroundAlphaPass_; 207 210 }; 208 211
Note: See TracChangeset
for help on using the changeset viewer.