Changeset 6149 in orxonox.OLD for branches/avi_play/src/subprojects/importer
- Timestamp:
- Dec 17, 2005, 4:32:29 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/subprojects/importer/multitex.cc
r6127 r6149 42 42 void Framework::moduleInit(int argc, char** argv) 43 43 { 44 movie = new MediaContainer( "/home/david/Desktop/Face2.avi");44 movie = new MediaContainer(argv[2]); 45 45 46 46 // print information about the media file … … 52 52 53 53 seq = new TextureSequence(); 54 for (int i = 1; i < argc; i++)55 {56 seq->addFrame(argv[i]);57 printf("%s\n", argv[i]);58 }54 //for (int i = 1; i < argc; i++) 55 //{ 56 // seq->addFrame(argv[i]); 57 // printf("%s\n", argv[i]); 58 //} 59 59 60 60 // add one frame from the movie 61 seq->addFrame(movie->getNextFrame()); 62 GLuint tex; 63 //while((tex = movie->getNextFrame()) != NULL) 64 // seq->addFrame(tex); 61 //seq->addFrame(movie->getNextFrame()); 62 //GLuint tex; 63 while(seq->addFrame(movie->getNextFrame()) != NULL) 65 64 66 65 test = new Texture(argv[1]); … … 102 101 void Framework::moduleTick(float dt) 103 102 { 104 counter += dt;103 counter += 0.2; 105 104 106 105 seq->gotoFrame((unsigned int)counter);
Note: See TracChangeset
for help on using the changeset viewer.