Changeset 8298 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Jun 9, 2006, 3:03:55 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/texture_sequence.cc
r8297 r8298 134 134 frameSize++; 135 135 } 136 _imagePrefix += "." + extension; 137 printf("TESTING %s\n", _imagePrefix.c_str()); 136 138 137 139 PRINTF(4)("Found %d '#'s in %s... searching for LOD's\n", frameSize, imagePrefix.c_str()); … … 140 142 { 141 143 sprintf(tmpString, "%d", i); 142 _imagePrefix.replace(index+frameSize -strlen(tmpString), index+frameSize, tmpString);143 printf("TEST STRING %s\n", _imagePrefix.c_str());144 _imagePrefix.replace(index+frameSize -strlen(tmpString), strlen(tmpString), tmpString); 145 this->addFrame(_imagePrefix); 144 146 } 145 147 return true; … … 155 157 bool TextureSequence::addFrame(const std::string& imageName) 156 158 { 159 printf("adding %s\n", imageName.c_str()); 157 160 SDL_Surface* addSurface = IMG_Load(imageName.c_str()); 158 161 bool success = this->addFrame(addSurface);
Note: See TracChangeset
for help on using the changeset viewer.