Changeset 7208 in orxonox.OLD for branches/std/src/story_entities
- Timestamp:
- Mar 10, 2006, 1:56:40 AM (19 years ago)
- Location:
- branches/std/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/story_entities/movie_loader.cc
r7193 r7208 36 36 } 37 37 38 MovieLoader::~MovieLoader() 38 MovieLoader::~MovieLoader() 39 39 { 40 40 delete this->movie_player; … … 56 56 } 57 57 58 void MovieLoader::loadMovie(const char*filename)58 void MovieLoader::loadMovie(const std::string& filename) 59 59 { 60 60 movie_player->loadMovie(filename); … … 78 78 79 79 this->movie_player->start(0); 80 80 81 81 this->isRunning = true; 82 82 this->run(); … … 139 139 140 140 // calculate time difference in milliseconds (Uint32) 141 this->dt = currentFrame - this->lastFrame; 141 this->dt = currentFrame - this->lastFrame; 142 142 // calculate time difference in seconds (float) 143 143 this->dts = (float)this->dt / 1000.0f; -
branches/std/src/story_entities/movie_loader.h
r7022 r7208 43 43 44 44 private: 45 void loadMovie(const char*filename);45 void loadMovie(const std::string& filename); 46 46 void setFPS(float fps); 47 47 void tick();
Note: See TracChangeset
for help on using the changeset viewer.