Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6319 in orxonox.OLD for branches/avi_play/src


Ignore:
Timestamp:
Dec 27, 2005, 3:58:14 PM (19 years ago)
Author:
stefalie
Message:

branches\avi_play: few other details…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/lib/graphics/importer/movie_player.cc

    r6317 r6319  
    8383void MoviePlayer::start(unsigned int start_frame)
    8484{
     85  if(status == STOP)
     86    //that'd probably do its job if getFrame worked
     87    texture = media_container->getFrame(3);
    8588  status = PLAY;
    8689}
     
    8891void MoviePlayer::resume()
    8992{
    90   status = PLAY;
     93  if(status != STOP)
     94    status = PLAY;
    9195}
    9296
     
    103107void MoviePlayer::tick(float time)
    104108{
    105   texture = media_container->getNextFrame();
     109  if(status == PLAY)
     110    texture = media_container->getNextFrame();
    106111}
    107112
     
    117122void MoviePlayer::setSpeed(float speed)
    118123{
    119 
     124  this->speed = speed;
    120125}
    121126
    122127float MoviePlayer::getSpeed()
    123128{
    124   return speed;
     129  return this->speed;
    125130}
    126131
    127132const MP_STATUS MoviePlayer::getStatus()
    128133{
    129   return status;
     134  return this->status;
    130135}
Note: See TracChangeset for help on using the changeset viewer.