- Timestamp:
- Dec 9, 2009, 10:58:26 PM (14 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.