Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6574 in orxonox.OLD for branches/avi_play


Ignore:
Timestamp:
Jan 18, 2006, 3:39:48 PM (19 years ago)
Author:
stefalie
Message:

branches/avi_play: …

Location:
branches/avi_play/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/story_entities/movie_loader.cc

    r6570 r6574  
    5656}
    5757
    58 
    59 
    6058bool MovieLoader::start()
    6159{
     60  this->isRunning = true;
    6261
     62  this->run();
    6363}
    64 
    6564
    6665bool MovieLoader::stop()
    6766{
    68 
     67  this->isRunning = false;
    6968}
    7069
    71 
    72 bool MovieLoader::pause()
    73 {
    74 
    75 }
    76 
    77 
    78 bool MovieLoader::resume()
    79 {
    80 
    81 }
    82 
     70bool MovieLoader::pause() { }
     71bool MovieLoader::resume() { }
    8372
    8473void MovieLoader::run()
     
    9685}
    9786
    98 void MovieLoader::draw() const
    99 {
    100 
    101 }
    102 
    10387void MovieLoader::tick()
    10488{
    10589  // get timestamp
    106   Uint32 currentFrame = SDL_GetTicks();
     90  currentFrame = SDL_GetTicks();
    10791
    10892  // calculate time difference in milliseconds (Uint32)
  • branches/avi_play/src/story_entities/movie_loader.h

    r6570 r6574  
    3333
    3434  private:
    35     void draw() const;
    3635    void tick();
    3736
    38 
    3937    MoviePlayer*        movie_player;
    40     Uint32              lastFrame;                    // last time of frame
     38    Uint32              lastFrame;
     39    Uint32              currentFrame;
    4140    Uint32              dt;                           // time needed to calculate this frame (in milliSeconds)
    4241    float               dts;
Note: See TracChangeset for help on using the changeset viewer.