Changeset 6094 in orxonox.OLD for branches/avi_play/src/subprojects/importer
- Timestamp:
- Dec 14, 2005, 1:18:19 AM (19 years ago)
- Location:
- branches/avi_play/src/subprojects/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/subprojects/importer/importer.cc
r6068 r6094 60 60 void Framework::moduleTick(float dt) 61 61 { 62 while(movie->getNextFrame() != NULL); 62 while(movie->getNextFrame() != NULL) 63 movie->saveCurrentFrame(); 63 64 } 64 65 -
branches/avi_play/src/subprojects/importer/multitex.cc
r6068 r6094 29 29 30 30 #include "resource_manager.h" 31 #include "media_container.h" 31 32 32 33 Model* obj; … … 34 35 Texture* test; 35 36 Material* testMat; 37 MediaContainer* movie; 36 38 37 39 float counter = 0; … … 40 42 void Framework::moduleInit(int argc, char** argv) 41 43 { 44 movie = new MediaContainer("/home/david/Desktop/Face2.avi"); 45 46 // print information about the media file 47 movie->printMediaInformation(); 48 42 49 ResourceManager::getInstance()->addImageDir("./"); 43 50 … … 50 57 printf("%s\n", argv[i]); 51 58 } 59 60 // add one frame from the movie 61 seq->addFrame(movie->getNextFrame()); 62 52 63 test = new Texture(argv[1]); 53 64 testMat->setDiffuseMap(argv[1]);
Note: See TracChangeset
for help on using the changeset viewer.