Changeset 6191 in orxonox.OLD for branches/christmas_branche/src/world_entities/world_entity.cc
- Timestamp:
- Dec 20, 2005, 3:24:14 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/christmas_branche/src/world_entities/world_entity.cc
r6187 r6191 85 85 static_cast<PNode*>(this)->loadParams(root); 86 86 87 LoadParam(root, "md2texture", this, WorldEntity, loadMD2Texture) 88 .describe("the fileName of the texture, that should be loaded onto this world-entity. (must be relative to the data-dir)") 89 .defaultValues(1, NULL); 90 87 91 // Model Loading 88 92 LoadParam(root, "model", this, WorldEntity, loadModel) 89 93 .describe("the fileName of the model, that should be loaded onto this world-entity. (must be relative to the data-dir)") 90 94 .defaultValues(3, NULL, 1.0f, 0); 91 92 } 95 } 96 93 97 94 98 /** … … 135 139 PRINTF(4)("fetching MD2 file: %s\n", fileName); 136 140 // MD2Model* m = (MD2Model*)ResourceManager::getInstance()->load(fileName, MD2, RP_CAMPAIGN); 137 Model* m = new MD2Model(fileName, "md2_fake_texture.bad");141 Model* m = new MD2Model(fileName, this->md2TextureFileName); 138 142 //this->setModel((Model*)ResourceManager::getInstance()->load(fileName, MD2, RP_CAMPAIGN), 0); 139 143 this->setModel(m, 0);
Note: See TracChangeset
for help on using the changeset viewer.