Changeset 1563 for code/trunk/src/orxonox/hud
- Timestamp:
- Jun 7, 2008, 11:40:50 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/hud
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/hud/RadarObject.cc
r1562 r1563 65 65 { 66 66 unsigned int RadarObject::count_s = 0; 67 unsigned int RadarObject::materialcount_s = 0; 67 68 std::map<std::string, std::map<ColourValue, std::string> > RadarObject::materials_s; 68 69 … … 99 100 if (it == colourmap.end()) 100 101 { 101 materialname = "radarmaterial" + getConvertedValue<unsigned int, std::string>(RadarObject:: count_s);102 materialname = "radarmaterial" + getConvertedValue<unsigned int, std::string>(RadarObject::materialcount_s++); 102 103 Ogre::MaterialPtr material = (Ogre::MaterialPtr)Ogre::MaterialManager::getSingleton().create(materialname, "General"); 104 material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA); 103 105 Ogre::TextureUnitState* textureunitstate = material->getTechnique(0)->getPass(0)->createTextureUnitState(); 104 106 textureunitstate->setTextureName(texturename); -
code/trunk/src/orxonox/hud/RadarObject.h
r1562 r1563 64 64 private: 65 65 static std::map<std::string, std::map<ColourValue, std::string> > materials_s; 66 unsigned static int count_s; 66 static unsigned int count_s; 67 static unsigned int materialcount_s; 67 68 Ogre::SceneNode* node_; // node of object 68 69 ColourValue colour_;
Note: See TracChangeset
for help on using the changeset viewer.