Changeset 6574 in orxonox.OLD for branches/avi_play
- Timestamp:
- Jan 18, 2006, 3:39:48 PM (19 years ago)
- 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 56 56 } 57 57 58 59 60 58 bool MovieLoader::start() 61 59 { 60 this->isRunning = true; 62 61 62 this->run(); 63 63 } 64 65 64 66 65 bool MovieLoader::stop() 67 66 { 68 67 this->isRunning = false; 69 68 } 70 69 71 72 bool MovieLoader::pause() 73 { 74 75 } 76 77 78 bool MovieLoader::resume() 79 { 80 81 } 82 70 bool MovieLoader::pause() { } 71 bool MovieLoader::resume() { } 83 72 84 73 void MovieLoader::run() … … 96 85 } 97 86 98 void MovieLoader::draw() const99 {100 101 }102 103 87 void MovieLoader::tick() 104 88 { 105 89 // get timestamp 106 Uint32currentFrame = SDL_GetTicks();90 currentFrame = SDL_GetTicks(); 107 91 108 92 // calculate time difference in milliseconds (Uint32) -
branches/avi_play/src/story_entities/movie_loader.h
r6570 r6574 33 33 34 34 private: 35 void draw() const;36 35 void tick(); 37 36 38 39 37 MoviePlayer* movie_player; 40 Uint32 lastFrame; // last time of frame 38 Uint32 lastFrame; 39 Uint32 currentFrame; 41 40 Uint32 dt; // time needed to calculate this frame (in milliSeconds) 42 41 float dts;
Note: See TracChangeset
for help on using the changeset viewer.