Changeset 8311 in orxonox.OLD for trunk/src/lib/graphics/importer
- Timestamp:
- Jun 11, 2006, 12:41:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture_sequence.cc
r8310 r8311 122 122 retVal = false; 123 123 } 124 125 124 return retVal; 126 125 } … … 174 173 bool TextureSequence::addFrame(const std::string& imageName) 175 174 { 176 printf("adding %s\n", imageName.c_str());177 175 SDL_Surface* addSurface = IMG_Load(imageName.c_str()); 176 if (addSurface == NULL) 177 { 178 PRINTF(2)("Unable to load Image %s\n", imageName.c_str()); 179 return false; 180 } 178 181 bool success = this->addFrame(addSurface); 179 182 delete addSurface;
Note: See TracChangeset
for help on using the changeset viewer.