Changeset 6112 in orxonox.OLD for branches/avi_play/src/subprojects/importer/multitex.cc
- Timestamp:
- Dec 14, 2005, 4:23:11 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/subprojects/importer/multitex.cc
r6094 r6112 37 37 MediaContainer* movie; 38 38 39 float counter = 0;39 int counter = 0; 40 40 41 41 42 42 void Framework::moduleInit(int argc, char** argv) 43 43 { 44 movie = new MediaContainer("/home/ david/Desktop/Face2.avi");44 movie = new MediaContainer("/home/lieni/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 // add one frame from the movie 61 seq->addFrame(movie->getNextFrame()); 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); 62 65 63 66 test = new Texture(argv[1]); … … 99 102 void Framework::moduleTick(float dt) 100 103 { 101 counter+ =dt;104 counter++; 102 105 103 seq->gotoFrame((unsigned int)counter); 104 if ((unsigned int)counter > seq->getFrameCount()) 106 seq->gotoFrame(counter); 107 108 if (counter > seq->getFrameCount()) 105 109 counter = 0; 110 106 111 } 107 112
Note: See TracChangeset
for help on using the changeset viewer.