- Timestamp:
- Sep 23, 2005, 1:37:57 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/spatial_separation/quadtree.cc
r5218 r5219 87 87 for (unsigned int i = 0; i < QUADTREE_MATERIAL_COUNT; i++) 88 88 delete this->materials[i]; 89 delete this->materials;89 delete[] this->materials; 90 90 } 91 91 -
trunk/src/orxonox.cc
r5216 r5219 194 194 GraphicsEngine::getInstance()->initFromIniFile(this->iniParser); 195 195 196 char* icon = ResourceManager::getFullName("pictures/fighter-top-32x32.bmp");197 GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, icon );198 delete[] icon ;196 char* iconName = ResourceManager::getFullName("pictures/fighter-top-32x32.bmp"); 197 GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, iconName); 198 delete[] iconName; 199 199 return 0; 200 200 } -
trunk/src/util/resource_manager.cc
r5216 r5219 740 740 * @param fileName the Name of the File to check 741 741 * @returns The full name of the file, including the DataDir, and NULL if the file does not exist 742 * IMPORTANT: this has to be deleted from the outside742 * !!IMPORTANT: this has to be deleted from the outside!! 743 743 */ 744 744 char* ResourceManager::getFullName(const char* fileName) -
trunk/src/world_entities/weapons/crosshair.cc
r5216 r5219 69 69 this->setRotationSpeed(5); 70 70 this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0); 71 72 this->position2D[0] = 0; 73 this->position2D[1] = 0; 71 74 72 75 this->material = new Material; … … 158 161 159 162 160 float z ;163 float z = 0.0f; 161 164 glReadPixels ((int)position2D[0], GraphicsEngine::getInstance()->getResolutionY()-(int)position2D[1]-1, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, &z); 162 165 //cout << z << endl;
Note: See TracChangeset
for help on using the changeset viewer.