Changeset 6971 in orxonox.OLD for branches/avi_play/src
- Timestamp:
- Feb 2, 2006, 12:20:15 AM (19 years ago)
- Location:
- branches/avi_play/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/story_entities/movie_loader.cc
r6731 r6971 47 47 48 48 LoadParam(root, "name", this, MovieLoader, loadMovie); 49 LoadParam(root, "fps", this, MovieLoader, setFPS); 50 } 51 52 void MovieLoader::setFPS(float fps) 53 { 54 this->movie_player->setFPS(fps); 49 55 } 50 56 -
branches/avi_play/src/story_entities/movie_loader.h
r6600 r6971 41 41 private: 42 42 void loadMovie(const char* filename); 43 void setFPS(float fps); 43 44 void tick(); 44 45 void draw() const; -
branches/avi_play/src/world_entities/movie_entity.cc
r6731 r6971 46 46 counter = 0; 47 47 timer = 0; 48 fps = media_container->getFPS();49 48 } 50 49 … … 66 65 //LoadParam(root, "rotation", this, MovieEntity, setRotation); 67 66 LoadParam(root, "size", this, MovieEntity, setSize); 67 LoadParam(root, "fps", this, MovieEntity, setFPS); 68 } 69 70 void MovieEntity::setFPS(float fps) 71 { 72 this->fps = fps; 73 PRINTF(0)("fps: %f\n", fps); 68 74 } 69 75 … … 71 77 { 72 78 if(media_container->loadMedia(filename)) 79 { 73 80 mediaLoaded = true; 81 fps = media_container->getFPS(); 82 } 74 83 else 75 84 mediaLoaded = false; … … 78 87 void MovieEntity::setAxis(float axis) 79 88 { 89 PRINTF(0)("fps: %f\n", fps); 80 90 this->axis = axis; 81 91 } … … 141 151 glPushAttrib(GL_ENABLE_BIT); 142 152 glDisable(GL_LIGHTING); 153 glDisable(GL_BLEND); 143 154 144 155 glEnable(GL_TEXTURE_2D); -
branches/avi_play/src/world_entities/movie_entity.h
r6731 r6971 41 41 void setRotation(float rotation); 42 42 void setSize(float width, float height); 43 void setFPS(float fps); 43 44 44 45 };
Note: See TracChangeset
for help on using the changeset viewer.