Changeset 6127 in orxonox.OLD for branches/avi_play/src/subprojects
- Timestamp:
- Dec 15, 2005, 11:54:48 PM (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
r6094 r6127 60 60 void Framework::moduleTick(float dt) 61 61 { 62 while(movie->getNextFrame() != NULL)63 movie->saveCurrentFrame();62 //while(movie->getNextFrame() != NULL); 63 // movie->saveCurrentFrame(); 64 64 } 65 65 -
branches/avi_play/src/subprojects/importer/multitex.cc
r6112 r6127 37 37 MediaContainer* movie; 38 38 39 int counter = 0;39 float counter = 0; 40 40 41 41 42 42 void Framework::moduleInit(int argc, char** argv) 43 43 { 44 movie = new MediaContainer("/home/ lieni/Desktop/Face2.avi");44 movie = new MediaContainer("/home/david/Desktop/Face2.avi"); 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());61 seq->addFrame(movie->getNextFrame()); 62 62 GLuint tex; 63 while((tex = movie->getNextFrame()) != NULL)64 seq->addFrame(tex);63 //while((tex = movie->getNextFrame()) != NULL) 64 // seq->addFrame(tex); 65 65 66 66 test = new Texture(argv[1]); … … 102 102 void Framework::moduleTick(float dt) 103 103 { 104 counter ++;104 counter += dt; 105 105 106 seq->gotoFrame( counter);106 seq->gotoFrame((unsigned int)counter); 107 107 108 if ( counter > seq->getFrameCount())108 if ((unsigned int)counter > seq->getFrameCount()) 109 109 counter = 0; 110 110
Note: See TracChangeset
for help on using the changeset viewer.