Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6254 in orxonox.OLD for branches/avi_play/src/subprojects


Ignore:
Timestamp:
Dec 21, 2005, 5:25:04 PM (19 years ago)
Author:
stefalie
Message:

branches\avi_play: some changes….

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/subprojects/importer/multitex.cc

    r6168 r6254  
    4444void Framework::moduleInit(int argc, char** argv)
    4545{
    46   if( argc <= 1)
     46  if( argc <= 2)
    4747  {
    4848    printf("Wrong arguments try following notations:\n");
    49     printf("./multitex [mediaFile]\n");
     49    printf("./multitex [media_file] [start_time]\n");
    5050    exit(0);
    5151  }
     
    5353  movie = new MediaContainer(argv[1]);
    5454  fps = movie->getFPS();
     55
     56  float start_time = atoi(argv[2]);
    5557
    5658  // print information about the media file
     
    6365  seq = new TextureSequence();
    6466
    65   // get each fram individually 
     67  // get each fram individually
    6668  //while(seq->addFrame(movie->getNextFrame()) != NULL);
    6769  // get a list of frames
     70  seq->addFrame(movie->getFrame(start_time));
    6871  seq->addFrameList(movie->getFrameList());
    6972
     
    122125  {
    123126    counter = fps * timer;
    124  
     127
    125128    if (counter > seq->getFrameCount())
    126129    {
     
    130133
    131134    seq->gotoFrame(counter);
    132   }   
     135  }
    133136}
    134137
Note: See TracChangeset for help on using the changeset viewer.