Changeset 6068 in orxonox.OLD for branches/avi_play/src/subprojects/importer
- Timestamp:
- Dec 12, 2005, 4:32:11 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
r6057 r6068 35 35 movie = new MediaContainer(argv[1]); 36 36 37 38 movie->printMediaInformation(); 37 // print information about the media file 38 movie->printMediaInformation(); 39 39 40 /* 41 ResourceManager::getInstance()->addImageDir("./"); 40 SDL_Delay(1000); 42 41 43 for (int i = 0; i < argc; i++) 44 { 45 printf("%s\n", argv[i]); 46 } 47 ResourceManager::getInstance()->addImageDir(""); 42 // get the frame and save it as an image 43 //while(movie->getNextFrame() != NULL); 48 44 49 50 if (argc>=3)51 obj = new OBJModel (argv[1], atof(argv[2]));52 else if (argc>=2)53 obj = new OBJModel(argv[1]);54 else55 obj = new PrimitiveModel(PRIM_CYLINDER);56 57 ResourceManager::getInstance()->debug();58 59 LightManager* lightMan = LightManager::getInstance();60 lightMan->setAmbientColor(.1,.1,.1);61 (new Light())->setAbsCoor(5.0, 10.0, 40.0);62 (new Light())->setAbsCoor(-10, -20, -100);*/63 45 } 64 46 … … 78 60 void Framework::moduleTick(float dt) 79 61 { 80 if(movie->framesLeft()) 81 movie->getNextFrame(); 62 while(movie->getNextFrame() != NULL); 82 63 } 83 64 84 65 void Framework::moduleDraw(void) const 85 66 { 86 //obj->draw();87 67 88 //LightManager::getInstance()->draw();89 68 } 90 69 -
branches/avi_play/src/subprojects/importer/multitex.cc
r6013 r6068 76 76 obj = new PrimitiveModel(PRIM_CUBE, 10.0); 77 77 break; 78 78 case SDLK_2: 79 79 obj = new PrimitiveModel(PRIM_SPHERE, 10.0); 80 80 break;
Note: See TracChangeset
for help on using the changeset viewer.