Changeset 6838 for code/branches/lod/src/orxonox/Level.cc
- Timestamp:
- May 3, 2010, 2:29:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lod/src/orxonox/Level.cc
r6828 r6838 126 126 this->objects_.push_back(object); 127 127 object->setGametype(this->getGametype()); 128 128 object->setLevel(this); 129 129 } 130 130 … … 144 144 void Level::addLodInfo(MeshLodInformation* lodInformation) 145 145 { 146 // 147 // 148 146 // std::pair<std::map<std::string,MeshLodInformation*>::iterator,bool> it 147 // = new std::pair<lodInformation->getMeshName(),lodInformation>; 148 std::string meshName = lodInformation->getMeshName(); 149 149 this->lodInformation_.insert(std::make_pair(meshName,lodInformation)); 150 150 //this->lodInformation_[std::make_pair<meshName,lodInformation>); 151 151 } 152 152 153 constMeshLodInformation* Level::getLodInfo(std::string meshName) const153 MeshLodInformation* Level::getLodInfo(std::string meshName) const 154 154 { 155 155 if(this->lodInformation_.find(meshName)!=this->lodInformation_.end())
Note: See TracChangeset
for help on using the changeset viewer.