Changeset 3300 for code/trunk/src/orxonox/tools
- Timestamp:
- Jul 17, 2009, 11:53:35 PM (15 years ago)
- Location:
- code/trunk/src/orxonox/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/tools/TextureGenerator.cc
r3280 r3300 73 73 { 74 74 std::string materialName = textureName + "_Material_" + multi_cast<std::string>(materialCount_s++); 75 Ogre::MaterialPtr material = (Ogre::MaterialPtr)Ogre::MaterialManager::getSingleton().create(materialName, "General");75 Ogre::MaterialPtr material = static_cast<Ogre::MaterialPtr>(Ogre::MaterialManager::getSingleton().create(materialName, "General")); 76 76 material->getTechnique(0)->getPass(0)->setSceneBlending(Ogre::SBT_TRANSPARENT_ALPHA); 77 77 Ogre::TextureUnitState* textureUnitState = material->getTechnique(0)->getPass(0)->createTextureUnitState(); -
code/trunk/src/orxonox/tools/Timer.h
r3196 r3300 100 100 /** @brief Returns the remaining time until the Timer calls the function. @return The remaining time */ 101 101 inline float getRemainingTime() const 102 { return (float)this->time_ / 1000000.0f; }102 { return static_cast<float>(this->time_ / 1000000.0f); } 103 103 /** @brief Gives the Timer some extra time. @param time The amount of extra time in seconds */ 104 104 inline void addTime(float time)
Note: See TracChangeset
for help on using the changeset viewer.