Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

should work

Location:
trunk/src/lib
Files:
2 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);
  • trunk/src/lib/gui/gl/glgui_cursor.cc

    r8297 r8298  
    6868
    6969    TextureSequence* seq = new TextureSequence();
    70     seq->loadImageSeries("test_###", 0, 222, "png");
     70    seq->loadImageSeries("reap_mouse/reap_mouse_##", 0, 49, "tif");
    7171
    7272    this->resize();
Note: See TracChangeset for help on using the changeset viewer.