- Timestamp:
- Oct 7, 2005, 2:42:30 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/material.cc
r5302 r5303 36 36 Material::Material (const char* mtlName) 37 37 { 38 PRINTF(4)("initializing new Material.\n"); 38 this->setClassID(CL_MATERIAL, "Material"); 39 39 40 this->setIllum(3); 40 41 this->setDiffuse(0,0,0); … … 58 59 PRINTF(4)("delete Material %s.\n", this->getName()); 59 60 60 if (this->diffuseTexture )61 if (this->diffuseTexture != NULL) 61 62 ResourceManager::getInstance()->unload(this->diffuseTexture); 62 if (this->ambientTexture )63 if (this->ambientTexture != NULL) 63 64 ResourceManager::getInstance()->unload(this->ambientTexture); 64 if (this->specularTexture )65 if (this->specularTexture != NULL) 65 66 ResourceManager::getInstance()->unload(this->specularTexture); 66 67 } … … 275 276 //! @todo Textures from .mtl-file need special care. 276 277 if (dMap!= NULL) 277 this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE );278 this->diffuseTexture = (Texture*)ResourceManager::getInstance()->load(dMap, IMAGE, RP_GAME); 278 279 else 279 280 this->diffuseTexture = NULL; -
trunk/src/orxonox.cc
r5298 r5303 21 21 ### File Specific: 22 22 main-programmer: Patrick Boenzli 23 co-programmer: Christian Meyer23 co-programmer: Christian Meyer 24 24 co-programmer: Benjamin Grauer: injected ResourceManager/GraphicsEngine/GUI 25 25 */ 26 26 27 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ORXONOX 27 28 #include "orxonox.h" 28 29 -
trunk/src/util/resource_manager.cc
r5302 r5303 71 71 // deleting the Resources-List 72 72 this->unloadAllByPriority(RP_GAME); 73 74 if (this->resourceList->getSize() > 0) 75 PRINTF(1)("Not removed all Textures, since there are still %d resources registered\n", this->resourceList->getSize()); 76 73 77 delete this->resourceList; 74 78 // deleting the Directorie Lists … … 77 81 while(tmpDir) 78 82 { 79 delete []tmpDir;83 delete[] tmpDir; 80 84 tmpDir = tmpIt->nextElement(); 81 85 }
Note: See TracChangeset
for help on using the changeset viewer.