Changeset 6394 for code/branches/presentation2/src/libraries/tools
- Timestamp:
- Dec 22, 2009, 2:07:44 PM (15 years ago)
- Location:
- code/branches/presentation2/src/libraries/tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/libraries/tools/BillboardSet.cc
r5781 r6394 38 38 #include "util/Convert.h" 39 39 #include "util/Math.h" 40 #include "util/StringUtils.h"41 40 #include "core/GameMode.h" 42 41 … … 81 80 catch (...) 82 81 { 83 COUT(1) << "Error: Couln't load billboard \"" << file << "\""<< std::endl;82 COUT(1) << "Error: Couln't load billboard \"" << file << '"' << std::endl; 84 83 this->billboardSet_ = 0; 85 84 } … … 104 103 catch (...) 105 104 { 106 COUT(1) << "Error: Couln't load billboard \"" << file << "\""<< std::endl;105 COUT(1) << "Error: Couln't load billboard \"" << file << '"' << std::endl; 107 106 this->billboardSet_ = 0; 108 107 } -
code/branches/presentation2/src/libraries/tools/Mesh.cc
r5781 r6394 36 36 37 37 #include "util/Convert.h" 38 #include "util/StringUtils.h"39 38 #include "core/GameMode.h" 40 39 … … 84 83 catch (...) 85 84 { 86 COUT(1) << "Error: Couln't load mesh \"" << meshsource << "\""<< std::endl;85 COUT(1) << "Error: Couln't load mesh \"" << meshsource << '"' << std::endl; 87 86 this->entity_ = 0; 88 87 } -
code/branches/presentation2/src/libraries/tools/ParticleInterface.cc
r6218 r6394 78 78 catch (...) 79 79 { 80 COUT(1) << "Error: Couln't load particle system \"" << templateName << "\""<< std::endl;80 COUT(1) << "Error: Couln't load particle system \"" << templateName << '"' << std::endl; 81 81 this->particleSystem_ = 0; 82 82 } -
code/branches/presentation2/src/libraries/tools/ResourceLocation.cc
r5929 r6394 92 92 { 93 93 // Remove from Ogre paths 94 resourceGroup_. erase();94 resourceGroup_.clear(); 95 95 try 96 96 { -
code/branches/presentation2/src/libraries/tools/Shader.cc
r6218 r6394 57 57 this->bLoadCompositor_ = GameMode::showsGraphics(); 58 58 this->bViewportInitialized_ = false; 59 this->compositor_ = "";60 this->oldcompositor_ = "";61 59 62 60 if (this->bLoadCompositor_ && Ogre::Root::getSingletonPtr()) … … 111 109 Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport(); 112 110 assert(viewport); 113 if ( this->oldcompositor_ != "")111 if (!this->oldcompositor_.empty()) 114 112 { 115 113 Ogre::CompositorManager::getSingleton().removeCompositor(viewport, this->oldcompositor_); 116 114 this->compositorInstance_ = 0; 117 115 } 118 if ( this->compositor_ != "")116 if (!this->compositor_.empty()) 119 117 { 120 118 this->compositorInstance_ = Ogre::CompositorManager::getSingleton().addCompositor(viewport, this->compositor_); … … 298 296 continue; 299 297 300 if ( pass_pointer->getFragmentProgramName() != "")298 if (!pass_pointer->getFragmentProgramName().empty()) 301 299 { 302 300 Ogre::GpuProgramParameters* parameter_pointer = pass_pointer->getFragmentProgramParameters().get(); -
code/branches/presentation2/src/libraries/tools/TextureGenerator.cc
r5781 r6394 72 72 if (it == colourMap.end()) 73 73 { 74 std::stringmaterialName = textureName + "_Material_" + multi_cast<std::string>(materialCount_s++);74 const std::string& materialName = textureName + "_Material_" + multi_cast<std::string>(materialCount_s++); 75 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);
Note: See TracChangeset
for help on using the changeset viewer.