Changeset 6570 in orxonox.OLD for branches/avi_play
- Timestamp:
- Jan 18, 2006, 3:28:46 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
r6567 r6570 15 15 16 16 #include "movie_loader.h" 17 17 #include "movie_player.h" 18 18 #include "resource_manager.h" 19 19 … … 92 92 this->tick(); 93 93 94 movie_player >draw();94 movie_player->draw(); 95 95 } 96 96 } … … 109 109 this->dt = currentFrame - this->lastFrame; 110 110 // calculate time difference in seconds (float) 111 this->dt S= (float)this->dt / 1000.0f;111 this->dts = (float)this->dt / 1000.0f; 112 112 113 113 movie_player->tick(dts); -
branches/avi_play/src/story_entities/movie_loader.h
r6567 r6570 10 10 #include "story_entity.h" 11 11 12 class MoviePlayer; 12 13 13 14 class MovieLoader : public StoryEntity … … 35 36 void tick(); 36 37 38 39 MoviePlayer* movie_player; 37 40 Uint32 lastFrame; // last time of frame 38 41 Uint32 dt; // time needed to calculate this frame (in milliSeconds) 39 float dt S;42 float dts; 40 43 }; 41 44
Note: See TracChangeset
for help on using the changeset viewer.