Changeset 4834 in orxonox.OLD for orxonox/trunk/src/lib/graphics/importer/material.cc
- Timestamp:
- Jul 11, 2005, 5:47:23 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/importer/material.cc
r4746 r4834 57 57 { 58 58 PRINTF(4)("delete Material %s.\n", this->getName()); 59 59 60 if (this->diffuseTexture) 60 61 ResourceManager::getInstance()->unload(this->diffuseTexture); 62 if (this->ambientTexture) 63 ResourceManager::getInstance()->unload(this->ambientTexture); 64 if (this->specularTexture) 65 ResourceManager::getInstance()->unload(this->specularTexture); 61 66 } 62 67 … … 267 272 ResourceManager::getInstance()->unload(this->diffuseTexture); 268 273 269 //! \todo check if RESOURCE MANAGER is availiable 270 //! \todo Textures from .mtl-file need special care. 271 this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE); 274 //! @todo check if RESOURCE MANAGER is availiable 275 //! @todo Textures from .mtl-file need special care. 276 if (dMap!= NULL) 277 this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE); 278 else 279 this->diffuseTexture = NULL; 272 280 } 273 281
Note: See TracChangeset
for help on using the changeset viewer.