Changeset 6576 in orxonox.OLD for branches/avi_play/src
- Timestamp:
- Jan 18, 2006, 3:46:40 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
r6574 r6576 15 15 16 16 #include "movie_loader.h" 17 17 18 #include "movie_player.h" 19 #include "load_param.h" 18 20 #include "resource_manager.h" 21 19 22 20 23 using namespace std; 21 24 22 25 23 MovieLoader::MovieLoader( )26 MovieLoader::MovieLoader(const TiXmlElement* root) 24 27 { 25 28 this->setClassID(CL_MOVIE_LOADER, "MovieLoader"); 29 30 movie_player = new MoviePlayer(); 31 this->loadParams(root); 26 32 } 27 33 … … 35 41 void MovieLoader::loadParams(const TiXmlElement* root) 36 42 { 43 StoryEntity::loadParams(root); 37 44 45 LoadParam(root, "name", this, MovieLoader, loadMovie); 46 } 47 48 void MovieLoader::loadMovie(const char* filename) 49 { 50 movie_player->loadMovie(filename); 51 52 PRINTF(0)("loaded Movie %s", filename); 38 53 } 39 54 … … 81 96 this->tick(); 82 97 83 movie_player->draw();98 //movie_player->draw(); 84 99 } 85 100 } -
branches/avi_play/src/story_entities/movie_loader.h
r6574 r6576 14 14 class MovieLoader : public StoryEntity 15 15 { 16 private: 17 MoviePlayer* movie_player; 18 19 Uint32 lastFrame; 20 Uint32 currentFrame; 21 Uint32 dt; // time needed to calculate this frame (in milliSeconds) 22 float dts; 16 23 17 24 public: 18 MovieLoader( );25 MovieLoader(const TiXmlElement* root); 19 26 virtual ~MovieLoader(); 20 27 … … 33 40 34 41 private: 42 void loadMovie(const char* filename); 35 43 void tick(); 36 44 37 MoviePlayer* movie_player;38 Uint32 lastFrame;39 Uint32 currentFrame;40 Uint32 dt; // time needed to calculate this frame (in milliSeconds)41 float dts;42 45 }; 43 46
Note: See TracChangeset
for help on using the changeset viewer.