Changeset 6786 for code/branches/lod/src/orxonox/Level.cc
- Timestamp:
- Apr 26, 2010, 4:05:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lod/src/orxonox/Level.cc
r6691 r6786 141 141 142 142 //LoD 143 void Level::addLodInfo( constMeshLodInformation* lodInformation)143 void Level::addLodInfo(MeshLodInformation* lodInformation) 144 144 { 145 145 // std::pair<std::map<std::string,MeshLodInformation*>::iterator,bool> it 146 146 // = new std::pair<lodInformation->getMeshName(),lodInformation>; 147 this->lodInformation_.insert(std::pair<lodInformation->getMeshName(),lodInformation>); 147 std::string meshName = lodInformation->getMeshName(); 148 this->lodInformation_.insert(std::make_pair(meshName,lodInformation)); 149 //this->lodInformation_[std::make_pair<meshName,lodInformation>); 148 150 } 149 151 150 MeshLodInformation* Level::getLodInfo(string meshName) const152 const MeshLodInformation* Level::getLodInfo(std::string meshName) const 151 153 { 152 if(this->lodInformation_.find(meshName)!= std::map::end)153 return this->lodInformation_.find(meshName) ;154 if(this->lodInformation_.find(meshName)!=this->lodInformation_.end()) 155 return this->lodInformation_.find(meshName)->second; 154 156 155 157 return 0;
Note: See TracChangeset
for help on using the changeset viewer.