Changeset 10052 in orxonox.OLD for branches/mount_points/src/world_entities/world_entity.cc
- Timestamp:
- Dec 13, 2006, 12:22:11 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/world_entities/world_entity.cc
r10013 r10052 24 24 #include "md2/md2Model.h" 25 25 #include "md3/md3_model.h" 26 #include "oif/object_information_file.h" 26 27 27 28 #include "aabb_tree_node.h" … … 191 192 { 192 193 PRINTF(4)("fetching OBJ file: %s\n", fileName.c_str()); 194 // creating the model and loading it 193 195 StaticModel* model = new StaticModel(); 194 196 *model = ResourceOBJ(fileName, this->scaling); … … 201 203 else 202 204 delete model; 205 206 // now get the object information file for this model, if any 207 std::string oifName = fileName.substr(0, fileName.length() - 3) + ".oif"; 208 this->loadObjectInformationFile( oifName); 203 209 } 204 210 /// LOADING AN MD2-model … … 246 252 247 253 this->models[modelNumber] = model; 254 } 255 256 257 258 /** 259 * loads the object information file for this model 260 * @param fileName the name of the file 261 */ 262 void WorldEntity::loadObjectInformationFile(const std::string& fileName) 263 { 264 PRINTF(0)("loading the oif File: %s", fileName.c_str()); 248 265 } 249 266
Note: See TracChangeset
for help on using the changeset viewer.