Changeset 6877 for code/branches/lod/src/orxonox/Level.cc
- Timestamp:
- May 10, 2010, 3:35:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lod/src/orxonox/Level.cc
r6838 r6877 72 72 XMLPortParam(Level, "description", setDescription, getDescription, xmlelement, mode); 73 73 XMLPortParam(Level, "gametype", setGametypeString, getGametypeString, xmlelement, mode).defaultValues("Gametype"); 74 75 XMLPortObjectExtended(Level, BaseObject, "", addObject, getObject, xmlelement, mode, true, false); 74 76 75 XMLPortObject(Level, MeshLodInformation, "lodinformation", addLodInfo, getLodInfo, xmlelement, mode); 76 XMLPortObjectExtended(Level, BaseObject, "", addObject, getObject, xmlelement, mode, true, false); 77 77 } 78 78 … … 141 141 } 142 142 143 //LoD144 143 void Level::addLodInfo(MeshLodInformation* lodInformation) 145 144 { 146 // std::pair<std::map<std::string,MeshLodInformation*>::iterator,bool> it147 // = new std::pair<lodInformation->getMeshName(),lodInformation>;148 145 std::string meshName = lodInformation->getMeshName(); 149 146 this->lodInformation_.insert(std::make_pair(meshName,lodInformation)); 150 //this->lodInformation_[std::make_pair<meshName,lodInformation>);151 147 } 152 148 … … 157 153 158 154 return 0; 159 160 161 /*162 unsigned int i = 0;163 for (std::map<MeshLodInformation*>::const_iterator it = this->lodInformation_.begin(); it != this->lodInformation_.end(); ++it)164 {165 if (i == index)166 return (*it);167 ++i;168 }169 return 0;*/170 155 } 171 156
Note: See TracChangeset
for help on using the changeset viewer.