Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8298 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Jun 9, 2006, 3:03:55 AM (19 years ago)
Author:
bensch
Message:

should work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/texture_sequence.cc

    r8297 r8298  
    134134      frameSize++;
    135135    }
     136    _imagePrefix += "." + extension;
     137    printf("TESTING %s\n", _imagePrefix.c_str());
    136138
    137139    PRINTF(4)("Found %d '#'s in %s... searching for LOD's\n", frameSize, imagePrefix.c_str());
     
    140142    {
    141143      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);
    144146    }
    145147    return true;
     
    155157bool TextureSequence::addFrame(const std::string& imageName)
    156158{
     159  printf("adding %s\n", imageName.c_str());
    157160  SDL_Surface* addSurface = IMG_Load(imageName.c_str());
    158161  bool success = this->addFrame(addSurface);
Note: See TracChangeset for help on using the changeset viewer.