- Timestamp:
- Oct 7, 2005, 12:49:22 AM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture.cc
r5228 r5293 60 60 PRINTF(4)("Loading texture to OpenGL-Environment.\n"); 61 61 62 GLuint texture;63 62 int w, h; 64 63 SDL_Surface *image; … … 110 109 111 110 /* Create an OpenGL texture for the image */ 112 glGenTextures(1, &t exture);113 glBindTexture(GL_TEXTURE_2D, t exture);111 glGenTextures(1, &this->texture); 112 glBindTexture(GL_TEXTURE_2D, this->texture); 114 113 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); 115 114 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); … … 134 133 SDL_FreeSurface(image); /* No longer needed */ 135 134 glBindTexture(GL_TEXTURE_2D, 0); 136 return texture;137 135 } 138 136 } … … 163 161 PRINTF(3)("loading Image %s\n", imageName); 164 162 if (tmpSurf) 165 this->texture =loadTexToGL(tmpSurf);163 loadTexToGL(tmpSurf); 166 164 167 165 -
trunk/src/lib/sound/sound_engine.cc
r5279 r5293 205 205 /** 206 206 * standard deconstructor 207 208 */ 207 */ 209 208 SoundEngine::~SoundEngine () 210 209 { 211 SoundEngine::singletonRef = NULL;212 213 210 // deleting all the SoundSources 214 211 if(this->sourceList != NULL) … … 236 233 delete bufferIterator; 237 234 } 235 238 236 // removing openAL from AudioResource 239 237 alutExit(); 238 239 SoundEngine::singletonRef = NULL; 240 240 } 241 241 … … 307 307 308 308 /** 309 * 309 * adds a SoundSource to the sourceList of the SoundEngine 310 310 * @param source The source to add to the sourceList 311 311 */ … … 392 392 393 393 /** 394 * SourceEngine::flushAllBuffers 395 */ 394 * flushes all the Buffers 395 * deletes them from the BufferList, and also removes them via the ResourceManager. 396 */ 396 397 void SoundEngine::flushAllBuffers() 397 398 { … … 410 411 411 412 /** 412 * SourceEngine::flushAllBuffers413 * deletes all the Sources. 413 414 */ 414 415 void SoundEngine::flushAllSources() -
trunk/src/orxonox.cc
r5285 r5293 432 432 delete orx; 433 433 ResourceManager::deleteFile("~/.orxonox/orxonox.lock"); 434 435 } 434 }
Note: See TracChangeset
for help on using the changeset viewer.